Up to $250,000 in home-sale profit for a single owner, and $500,000 for a married couple filing jointly, can be pocketed with no federal capital-gains tax at all. That exclusion is one of the largest tax breaks available to ordinary Americans, and it matters most to retirees who bought decades ago and are now selling a house worth many times what they paid. The gain that would otherwise be taxed disappears entirely up to those limits, provided the seller clears a set of tests that trip up more people than the generous numbers suggest.
The two-of-five-year test that unlocks it
The break, written into the tax code as the home-sale exclusion, is not automatic; it is earned by how long and how the property was used. A seller must have owned the home and lived in it as a main residence for at least two of the five years leading up to the sale. The two years do not have to be consecutive, which gives some flexibility, but they must add up within that five-year window.
The ownership and use requirements are separate hurdles, and both have to be met. The agency’s summary of the home-sale rules makes clear that a seller who owned a property but rented it out for most of the period, or who lived somewhere as a guest without owning it, can fall short on one test even while passing the other. For married couples claiming the full $500,000, both spouses must meet the use test, though only one needs to satisfy the ownership test.
Free retirement updates: Want plain-English help keeping more money in retirement? The free Retirement Shield newsletter covers scams, benefits, and money many retirees may be owed, a couple times a week. Subscribe free.
Figuring the gain that actually counts
A crucial misunderstanding is that the exclusion applies to the sale price, when it actually applies to the gain. The gain is the sale price minus the home’s adjusted basis, and getting the basis right can shrink a taxable overage or erase it. Basis starts with the original purchase price and grows with the cost of major improvements made over the years, such as a new roof, an addition, or a remodeled kitchen. The rules for figuring the basis of property treat those capital improvements as additions to what a seller has invested, which lowers the gain when the house sells.
That distinction rescues sellers whose paper profit looks alarming. A retiree who bought a house long ago and watched its value climb into the high six figures may fear a huge tax bill, but decades of documented improvements can lift the basis enough to pull the gain back under the exclusion limit. The sellers who lose out here are usually the ones who never kept records of what they spent upgrading the home, leaving basis lower than it should be and gain higher.
Only gain above the exclusion is taxed. A single seller with a $310,000 gain, for example, excludes the first $250,000 and owes capital-gains tax only on the remaining $60,000. The overage is treated as a long-term capital gain when the home was held more than a year, which for most homeowners means it is taxed at a lower rate than ordinary income rather than as a windfall.
The limits that quietly disqualify sellers
The exclusion cannot be used on a rapid schedule. A seller generally may claim it only once in any two-year period, so someone who excluded gain on a prior home sale within the past two years is barred from using it again on the next one. That rule is meant to reserve the break for genuine primary residences rather than a string of quick flips, and it catches people who move more often than they expect.
Partial relief exists for those forced to sell early. A seller who fails the two-year test because of a specific hardship, such as a job change, a health condition, or another qualifying unforeseen circumstance, may still claim a prorated portion of the exclusion rather than losing it entirely. The detailed guidance on selling a home lays out how that reduced exclusion is calculated based on the share of the two-year period actually met, which can preserve real value for a retiree who has to move on short notice.
A widowed seller has a narrow but valuable window that many never learn about. A surviving spouse can generally claim the full $500,000 exclusion, rather than being dropped to the $250,000 single limit, if the home is sold within two years of the spouse’s death and the couple would have qualified for the larger amount before the death. For an older homeowner who loses a spouse and then decides to sell the family home, that timing rule can preserve an extra $250,000 of tax-free gain, and missing the two-year mark by even a few weeks can cut the exclusion in half.
For older Americans downsizing out of a long-held house, the broader lesson is that the exclusion is enormous but conditional. The dollar limits are among the most favorable in the entire tax code, yet they reward preparation: meeting the use test, holding the timing right, and documenting every improvement that raises basis. The sellers who keep the most are not simply the ones with the biggest gain, but the ones who understood the tests before they signed the closing papers rather than after.
This article was produced with AI assistance and reviewed by The Money Overview editorial team.
More Financial Reading