For many retirees, the family home is the largest store of wealth they have, and after decades of appreciation, selling it can surface a gain worth hundreds of thousands of dollars. Tax law contains one of its most generous breaks for exactly that moment. Handled right, a home sale in retirement can move a very large amount of profit off the tax return entirely.
The $250,000 and $500,000 exclusion
The rule lives in Section 121 of the tax code, the home-sale exclusion. A single filer can exclude up to $250,000 of capital gain from the sale of a main home, and a married couple filing jointly can exclude up to $500,000. Gain, not sale price, is what matters: it is the profit above the home’s tax basis, so a house bought long ago for a modest sum and sold today for far more can still fall entirely within the exclusion if the profit stays under the ceiling.
The exclusion is not a one-time-in-a-lifetime break, either. It can generally be used again on a later home sale, subject to timing limits, which matters for retirees who downsize more than once. The Internal Revenue Service lays out the core amounts and eligibility in its tax topic on the sale of a home, the starting point for anyone estimating the tax on a sale.
Free retirement updates: Miss an enrollment or claim deadline and it may be gone. Our free Retirement Shield newsletter keeps readers ahead of the ones that matter. Get the free newsletter.
The two-of-five-years ownership and use test
The break is not automatic; it is earned by living in the home. To qualify for the full exclusion, the seller must generally have owned the home and used it as a primary residence for at least two of the five years before the sale. The two years do not have to be continuous, and for married couples both spouses must meet the use test to claim the full $500,000, though only one needs to meet the ownership test.
Sellers who fall short of the two years because of a specific hardship, such as a change in health, a job-related move, or certain unforeseen circumstances, may still qualify for a partial exclusion rather than losing the break entirely. The IRS spells out the ownership and use requirements, the partial-exclusion rules, and the exceptions in Publication 523, which is the detailed reference behind the shorter summary.
Why the cap is a growing problem for long-held homes
There is a catch that hits longtime owners hardest: the $250,000 and $500,000 figures have not been adjusted for inflation since the exclusion took its current form in 1997. Home values have climbed steeply in the decades since, so a couple who bought early and stayed put can now realize a gain that runs well past $500,000, especially in high-cost markets. Everything above the exclusion is taxed as a long-term capital gain.
That means a growing share of ordinary sellers, not just the wealthy, now owe capital-gains tax on part of a home sale simply because the ceiling stood still while prices rose. A widow or widower selling after a spouse’s death faces a particular timing issue, since the ability to claim the full $500,000 as a survivor is limited to a window after the spouse’s death, after which the exclusion typically drops to $250,000.
Basis records are the lever that shrinks the taxable gain
Because tax is owed only on gain above the exclusion, the way to reduce or erase that overage is to raise the home’s basis, and that is where records pay off. The basis starts at the purchase price plus buying costs, but it also includes the cost of capital improvements made over the years, a room addition, a new roof, a remodeled kitchen, replaced windows, or a deck. Each documented improvement lifts the basis and lowers the taxable gain dollar for dollar.
A partial exclusion can also rescue a sale that misses the two-year test. When a home is sold early because of a change in place of employment, a health problem, or certain unforeseen circumstances, the tax rules allow a prorated share of the $250,000 or $500,000 exclusion based on the portion of the two years actually met, as the guidance on selling a home spells out. A retiree forced to relocate for medical care after 18 months, for example, may still shelter three-quarters of the normal exclusion rather than losing it entirely, which is why the reason for an early sale is worth documenting alongside the ownership dates.
Routine repairs and maintenance do not count, but genuine improvements do, and the difference can be tens of thousands of dollars on a home owned for decades. The practical discipline is keeping receipts and records for major work across the entire period of ownership, since a homeowner who cannot document an improvement generally cannot use it to raise basis. For a retiree preparing to sell an appreciated home, running the numbers in advance, gain against the exclusion, and gathering improvement records before signing a contract is what turns a potential tax bill into a sale that is largely or entirely tax-free.
This article was produced with the assistance of artificial intelligence and reviewed by The Financial Wire editorial team.
More Financial Reading
- Bank statements: how long to keep them and when to toss them
- Adding someone to your bank account: tax traps and smart moves


