If you meet IRS ownership and use tests, you may exclude up to 250,000 in gains (500,000 if married filing jointly) on the sale of your main home. Generally, you must have owned and lived in the property for at least two of the last five years and not used the exclusion on another home in the previous two years. If your gain exceeds the exclusion or you don’t qualify, the excess may be taxable.