Selling a primary home lets married couples exclude up to $500,000 of capital gains from federal tax

Couple surrounded by moving boxes in new home

Married couples who sell a primary residence can shield as much as $500,000 in capital gains from federal income tax, a benefit rooted in a 1997 law and administered through IRS rules that hinge on strict ownership and residency tests. But in markets where home values have climbed sharply over the past decade, that half-million-dollar ceiling increasingly leaves a portion of the profit exposed, forcing more joint filers to report taxable gains they once assumed would be fully excluded.

How the $500,000 exclusion works and why it falls short for some couples

The exclusion traces back to the Taxpayer Relief Act of 1997, which amended IRC Section 121 to replace the old once-in-a-lifetime rollover with a repeatable benefit. Under the current statute, gross income does not include gain from the sale or exchange of a principal residence up to $250,000 for single filers. A $500,000 limitation applies for certain joint returns filed by married couples, as spelled out in 26 U.S. Code Section 121.

To qualify, both spouses must satisfy two tests during a two-year lookback period before the sale date. The ownership test requires that at least one spouse owned the home for two of the five years preceding the sale. The use test requires that both spouses lived in the property as their main home for at least two of those same five years. Failing either test, or selling a second home within two years, can reduce or eliminate the exclusion entirely, according to IRS guidance.

The IRS summarizes the basic rules in its overview of home sale exclusions, noting that the benefit generally can be used once every two years. Exceptions exist for certain unforeseen circumstances, such as a job change or health issue, which may allow a partial exclusion if the full two-year requirements are not met. But these exceptions are narrowly drawn, and they do not raise the $250,000 or $500,000 caps themselves. As a result, the exclusion has not kept pace with long-term home price appreciation, especially in coastal and high-demand urban markets.

Reporting obligations that catch sellers off guard

When a sale qualifies in full, the transaction can even skip third-party information reporting. A closing agent may omit Form 1099-S if the seller provides written assurance that the entire gain is excludable under Section 121, per the instructions for Form 1099-S. That convenience, however, disappears the moment any portion of the gain exceeds the cap or the seller fails a timing requirement.

Sellers whose gain is not fully covered must report the taxable portion on their federal return using Form 8949 and Schedule D. The IRS has reminded taxpayers in its home-sale reminders that they must report taxable gain whenever the exclusion does not apply in full, even if they do not receive a Form 1099-S. In practice, this means couples who bought homes before a long run-up in prices and later sell at a gain above $500,000 face a capital-gains bill they did not plan for, often at the 15 or 20 percent long-term rate depending on their income bracket.

The gap between expectation and reality is widest in high-appreciation metro areas. A couple that purchased a home for $400,000 and sells it for $1.1 million realizes a $700,000 gain before adjustments. After applying the $500,000 exclusion, $200,000 remains taxable. That scenario was rare when Congress set the cap in 1997, but cumulative price growth has made it more common, effectively converting a portion of what many homeowners view as inflationary or market-driven gains into taxable income.

Some couples are further surprised to learn that the gain calculation is not simply the sale price minus the original purchase price. The IRS allows sellers to increase their basis by certain settlement costs and capital improvements, such as major renovations or additions, which can reduce the taxable gain. Conversely, depreciation claimed for a home office or rental use after May 6, 1997, must be recaptured and is not eligible for the exclusion. Misunderstanding these adjustments can lead to both overpayment and underreporting risks.

Planning ahead for a potential tax hit

Because the exclusion amount is fixed while home prices fluctuate, tax planning around a future sale has become more important, particularly for long-term owners. Couples approaching retirement, for example, may consider the timing of a downsizing move to ensure they meet the two-year ownership and use tests and to coordinate the sale with other income events that affect their capital-gains rate. In some cases, staggering major income-such as Roth conversions or large portfolio sales-into different tax years than the home sale can keep the marginal rate on the real-estate gain lower.

Homeowners with unusually large unrealized gains may also evaluate whether incremental improvements, properly documented, could increase their basis enough to bring more of the profit under the $500,000 cap. While renovations should rarely be driven solely by tax considerations, accurate recordkeeping of qualifying costs can meaningfully shrink a future tax bill. For others, especially in very high-priced markets, the reality may be that a sizable taxable gain is unavoidable, and the focus shifts to ensuring adequate liquidity to pay the tax when due.

Ultimately, the $500,000 exclusion remains a generous benefit by historical standards, but its real-world value has eroded in places where home prices have far outpaced inflation since the late 1990s. Married couples contemplating a sale are increasingly discovering that “tax-free” does not always mean entirely free of tax-and that understanding the rules well before listing a home can prevent unwelcome surprises at filing time.