When a homeowner sells a primary residence at a profit, the federal tax code lets a single seller shield up to $250,000 of that gain from capital gains tax, and a married couple filing jointly up to $500,000. Those dollar amounts have not changed since 1997. Nearly three decades of rising home prices have quietly eroded what the exclusion covers, and a growing number of longtime owners, especially retirees selling homes they bought decades ago, are discovering that their profit now runs past the cap.
How the $250,000 and $500,000 exclusion works
The exclusion applies to the gain, not the sale price, and gain is the difference between the adjusted basis in the home and the amount it sells for. Under IRS Topic 701, a taxpayer can exclude up to $250,000 of that gain, or up to $500,000 on a joint return, provided the home was a main residence. Any profit above the applicable limit is taxed as a long-term capital gain, generally at 0%, 15%, or 20% depending on income, and can also carry a net investment income tax for higher earners.
Qualifying turns on two tests. A seller must have owned the home for at least two years and lived in it as a main home for at least two years during the five-year period ending on the sale date, according to IRS Publication 523. The two years of use do not have to be continuous, and the ownership and use periods can fall in different stretches of that five-year window. For a married couple to claim the full $500,000, both spouses must meet the use test and neither may have used the exclusion on another home sale in the prior two years.
Free retirement updates: Miss an enrollment or claim deadline and it may be gone. The free Retirement Shield newsletter keeps readers ahead of the ones that matter. Get the free newsletter.
Why a frozen 1997 cap now bites longtime owners
The $250,000 and $500,000 figures were written into law by the Taxpayer Relief Act of 1997 and, unlike many tax thresholds, were never indexed to inflation. A home bought for $150,000 in the late 1990s that sells for $700,000 today produces a $550,000 gain before adjustments, which for a single seller pushes $300,000 past the $250,000 cap and straight into taxable territory. The exclusion has stayed still while the value it is meant to protect has multiplied, and that gap widens every year prices climb.
The squeeze falls hardest on people who did exactly what they were told to do: buy a home, stay in it, and let it appreciate. A retiree downsizing after 30 years in the same house is far more likely to breach the cap than a younger owner who bought recently, because decades of appreciation are precisely what the frozen limit fails to keep pace with. A surviving spouse faces an added trap, because the ability to claim the full $500,000 generally ends after the year of a spouse’s death, cutting the shield in half at the moment many decide to sell.
Basis is the lever most sellers overlook, and it is where a large gain can shrink. The adjusted basis includes the original purchase price plus the cost of capital improvements made over the years, such as a new roof, an addition, or a kitchen remodel, though not routine repairs. The IRS guidance on figuring gain treats those improvements as additions to basis, which directly reduces the taxable profit. A homeowner who kept receipts for decades of upgrades can lower the gain by tens of thousands of dollars, which is often the difference between owing capital gains tax and staying under the cap.
The rules carry exceptions that cut both ways. A seller who fails the two-year test because of a job relocation, a health problem, or another unforeseen circumstance can still claim a partial exclusion under Publication 523, prorated by the share of the two years actually met, so a forced early sale does not automatically forfeit the entire break. Working in the opposite direction, any depreciation claimed for a home office or for renting the property out after May 6, 1997, must be recaptured and taxed as gain even when the rest of the profit stays under the cap, at a federal rate as high as 25%. For a longtime owner who once wrote off part of the house, that recaptured amount is taxable no matter how large the exclusion looks on paper.
What sellers can control before the closing
Because the exclusion amounts are fixed, the parts a seller can influence are timing, basis, and filing status. Meeting the two-year use test matters when a home has been rented or was recently converted from a second home, since periods of non-qualified use can reduce the excludable share of gain. A couple who marries and both want the full $500,000 need each spouse to satisfy the use test, so selling before one of them has lived in the home two years can cost the larger exclusion.
The broader point is that the home-sale exclusion has slowly shifted from a benefit almost no ordinary seller had to worry about into a real ceiling for long-tenured owners in appreciated markets. The rules themselves are stable and well documented, but the frozen 1997 limits mean the question is no longer whether the exclusion exists, it is whether decades of gain have grown large enough to spill over it, and how much careful basis tracking can pull back under the line.
This article was produced with AI assistance and reviewed against primary sources by The Money Overview editorial team.
More Financial Reading