Skip to main content

The Money Overview

The home-sale tax exclusion lets a married couple shield up to $500,000 of profit

A married couple who sells the home they have lived in for years can walk away with up to $500,000 of profit and owe the IRS nothing on it, while a single filer selling under the same circumstances shelters only half that amount. The rule, spelled out in IRS Topic No. 701, is one of the largest tax breaks written into the code, and it applies automatically to anyone who qualifies — no application, no phase-out for high earners. But the exclusion comes wrapped in an ownership-and-use test that trips up sellers who assume decades of homeownership alone is enough to guarantee the full amount.

The ownership and use tests behind the $500,000 line

To claim any part of the exclusion, a seller must meet both an ownership test and a use test, generally by owning and living in the home as a main residence for at least 24 months out of the 5 years leading up to the sale. Those two tests don’t have to be satisfied during the same stretch of time — a seller could have owned the home for years before moving in full-time, or moved out and later rented it before selling — but both tests still have to be met somewhere inside that same 5-year window.

Married couples get a specific carve-out on the ownership side: if the couple is filing a joint return for the year of sale, only one spouse needs to have owned the home for the required period, but both spouses individually must clear the use test. That distinction matters for couples where one spouse’s name is on the deed while both have lived in the house the whole time — the $500,000 exclusion is still in reach even though only one of them technically owns it.

The exclusion isn’t available on repeat, either. A seller generally can’t claim it if they already excluded gain from selling a different home within the two years before the current sale — a rule that catches people who downsize twice in quick succession, such as a retiree who sells a family home, buys something smaller, and then relocates again within two years for health or family reasons.


Free retirement updates: Want plain-English help keeping more of your money in retirement? The free Retirement Shield newsletter covers the benefits, deadlines, and money mistakes that cost retirees, a couple times a week. Subscribe free.

A cap that hasn’t moved while home values have

Unlike the standard deduction, retirement account contribution limits, or the income thresholds that trigger higher Medicare premiums, the $250,000 and $500,000 exclusion amounts are fixed dollar figures written directly into the tax code rather than adjusted for inflation each year. For a household that bought a home decades ago in a market that has since appreciated many times over, that fixed ceiling means a larger share of any eventual sale profit sits inside the taxable zone than it would have when the exclusion was first written.

That gap falls hardest on sellers who no longer qualify for the married-filing-jointly rate — specifically, anyone who becomes a single filer, whether through divorce or the death of a spouse, and later sells a home that gained most of its value while the couple owned it jointly. The exclusion follows the filing status used on the return for the year of sale, not the years the gain was actually building, which is part of why the surviving-spouse provision described below exists at all.

The exclusion also applies to profit, not to the sale price itself, and profit is measured against an adjusted basis that most sellers underestimate. A home’s basis starts with the original purchase price but grows with the cost of capital improvements made over the years the owner has held it — a new roof, an addition, a remodeled kitchen — which lowers the taxable gain accordingly. A longtime owner who never tracked those improvement costs has no way to prove a higher basis at sale time, effectively forcing more of the gain into the taxable side of the $250,000 or $500,000 line than a seller with organized records would face on an identical house.

What happens when a sale crosses the line — and the surviving-spouse exception

Any gain beyond the applicable exclusion amount is taxable, and a seller must report the sale at all if they receive a Form 1099-S or can’t exclude the full gain, even when most of the profit ends up sheltered. A seller who takes payments over time instead of a lump sum can still use the exclusion under the installment-sale rules, but the reporting obligation itself doesn’t go away just because the number written on the return turns out to be zero.

The clearest illustration of how much the filing-status rule matters shows up for widows and widowers. A surviving spouse who doesn’t remarry can raise their own exclusion back up to the full $500,000 on a home sale that happens within 2 years of their spouse’s death, as long as neither spouse used the exclusion on another home in the two years before that sale and the ownership-and-use test is met counting the late spouse’s time in the home. Miss that two-year window, and the same surviving spouse selling the identical house is limited to the single filer’s $250,000 — potentially exposing an extra quarter-million dollars of the same gain to tax for no reason other than the calendar.

That two-year cliff is the real design tension in an otherwise generous rule: a couple who built decades of appreciation together sees it protected in full as long as they sell while married or a widowed spouse acts within the window Congress built in, but the same gain becomes only half-protected the moment either condition lapses. For anyone weighing whether to sell a long-held home now, later, or after a spouse’s death, the exclusion amount on paper is less important than which two years the sale actually falls into.

This article was researched and drafted with the assistance of artificial intelligence.

More Financial Reading

Avatar photo

Daniel Harper

Daniel is a finance writer covering personal finance topics including budgeting, credit, and beginner investing. He began his career contributing to his Substack, where he covered consumer finance trends and practical money topics for everyday readers. Since then, he has written for a range of personal finance blogs and fintech platforms, focusing on clear, straightforward content that helps readers make more informed financial decisions.​


Plain-English help keeping more of your money in retirement. Get the free newsletter.

Free from Retirement Shield. Unsubscribe anytime. We never ask for money.