Homeowners who bought during the pandemic-era price surge and sell now could walk away with six-figure gains and owe nothing in federal capital gains tax. Under 26 U.S. Code Section 121, married couples filing jointly can exclude up to $500,000 of profit from the sale of a principal residence, while single filers can exclude up to $250,000. The rule has been on the books since the Taxpayer Relief Act of 1997, but rapid home appreciation across many U.S. markets has made it far more consequential for sellers closing deals in 2026.
How the $500,000 exclusion works for joint filers
The federal tax code sets a clear threshold: a married couple filing a joint return can shield up to $500,000 of gain from income tax when they sell a home that qualifies as their main residence. A single taxpayer gets half that amount, with the cap set at $250,000. To claim either figure, the seller must pass two tests. The ownership test requires that at least one spouse owned the property for at least two of the five years before the sale date. The use test requires that both spouses lived in the home as their principal residence for the same two-out-of-five-year window.
That distinction matters. Under Section 121, only one spouse needs to be on the deed, but both must have actually lived in the home. Couples who bought a property in early 2024 and sell in mid-2026, for example, would meet the two-year mark. Those who purchased later may need to wait before they qualify. The statute also limits how often taxpayers can use the exclusion: in general, you cannot claim it if you sold another principal residence and used the benefit within the previous two years.
Why high-appreciation markets raise the stakes
The exclusion was designed for an era of more modest price growth. When Congress enacted the current home-sale rules in the late 1990s, a $500,000 gain on a primary home was unusual. In many metro areas where prices climbed sharply after 2020, couples who bought at lower valuations and sell at current prices can now generate gains that approach or exceed the exclusion ceiling. A couple that purchased a home for $400,000 and sells for $850,000 would realize a $450,000 gain, all of it potentially tax-free under the joint-return rule, assuming they meet the ownership and use requirements.
In slower-growth markets, the exclusion still applies but rarely comes close to its limit. The practical effect is that the tax benefit delivers its largest dollar-for-dollar savings in zip codes where appreciation has been steepest, concentrating the advantage geographically. No publicly available IRS Statistics of Income data currently breaks down how many joint filers claim the full $500,000 exclusion by market or income bracket, leaving the exact distribution of the benefit unmeasured. Still, tax preparers report more middle-income households brushing up against the cap than in prior housing cycles, simply because entry-level prices rose so fast.
Ownership and use tests that trip up sellers
The two-out-of-five-year requirement is not as simple as it sounds. Federal regulations specify that the qualifying period is an aggregate of two years during the five-year window ending on the sale date. The time does not have to be consecutive, so a couple that moved out for a year and then returned can still qualify if their total qualifying use adds up to at least 24 months within that five-year span.
Where many sellers run into trouble is timing a move to a new home or relocating for work. If you convert your former residence to a rental and hold it for several years, the period of nonqualified use can reduce the portion of gain eligible for exclusion. Divorce and marriage can also complicate the picture. A former spouse who remains in the home under a divorce or separation agreement may be treated as using the property as a principal residence even after moving out, but only if specific conditions are met.
Another stumbling block is the once-every-two-years limit. Homeowners who flip between properties quickly-whether because of job changes, family needs, or attempts to capture rapid appreciation-can find that a second sale within 24 months does not qualify for the full exclusion. In some hardship situations, such as certain job relocations or health-related moves, the law allows a partial exclusion based on the fraction of the two-year period that was actually met, but the calculation is narrower than many sellers expect.
Calculating gain and documenting your position
Even when the headline numbers suggest a large profit, the taxable gain may be smaller once you account for basis adjustments. Sellers can add certain closing costs and capital improvements-such as a new roof or major kitchen remodel-to their original purchase price to arrive at an adjusted basis. Subtracting that figure from the sale price, net of selling expenses, yields the gain that is tested against the $250,000 or $500,000 exclusion cap.
Because the rules are technical and the dollar amounts large, many homeowners choose to verify their eligibility before listing. The IRS offers an online account system at IRS Online Account where taxpayers can review prior filings and confirm whether they claimed a home-sale exclusion in the past two years. Tax professionals can also help reconstruct basis from old records and ensure that improvements are properly documented.
For sellers in markets where prices have doubled or more since 2020, the difference between a fully excluded gain and a partially taxable one can easily reach tens of thousands of dollars. Understanding the ownership and use tests, planning the timing of a sale, and keeping thorough records of improvements are now central parts of navigating a hot housing market. With more homeowners sitting on substantial unrealized gains, the once-obscure home-sale exclusion has become a pivotal factor in deciding when-and whether-to cash out.



