When you sell your main home, up to $250,000 of profit is tax-free if you owned and lived in it for two of the past five years, or $500,000 on a joint return if your spouse lived there that long too. Time your sale to pass that test, and keep every improvement receipt in case your gain tops the cap.
That break is the fifth-largest in the income tax code by Treasury’s latest estimates, worth about $85 billion to homeowners in fiscal 2026. At the 15% long-term capital gains rate, a married couple’s full $500,000 exclusion keeps $75,000 out of federal tax.
The two-year test is more flexible than it sounds. Your 24 months of living there can fall anywhere in the five years before the sale, and they don’t have to be consecutive. So after you move out, you have up to three years to sell and still qualify.
Renting the place after you move out doesn’t shrink the exclusion. The one cost is depreciation on the rental years, which is taxed when you sell whether or not you claimed it.
The cap hasn’t risen since 1997, so the gain on a long-held home in a pricey market can top it. Keep receipts for every improvement, such as a new roof, an addition, or a kitchen remodel. Each one adds to your basis, the cost your profit is measured from, and shrinks the taxable gain. Routine repairs don’t count.
Couples get the full $500,000 only if both spouses lived there for two of the five years. A surviving spouse who hasn’t remarried keeps the $500,000 limit by selling within two years of the death.
Selling before you meet the two-year test because of a move for work, a health problem, or an unforeseeable event still earns a partial exclusion. You can use the break only once every two years, and a Form 1099-S from the closing means you report the sale even when no tax is due.
Before you list, count your months in the house over the past five years. The closing date can be worth tens of thousands of dollars.
Editorial & Advertiser Disclosure: The editorial content on this page is not provided, commissioned, reviewed, approved, or otherwise endorsed by any advertiser. Opinions expressed here are ours alone, not those of any advertiser. The offers that appear on this site are from companies that compensate us. That compensation may influence which products we cover and where and how they appear on a page – including the order in which they appear – but it does not influence our evaluations, ratings, or opinions. We do not include every company or offer available in the marketplace.
Related: