Skip to content
Connecting live market data
Full board

Taxes

The $250,000/$500,000 Home Sale Tax Break: How Section 121 Really Works

Selling a primary residence can shield large capital gains from tax, but the ownership-and-use tests, partial exclusions, and basis rules trip up many sellers.

Wallcrest Tax DeskPublished 8 Sept 2026, 16:01 UTCUpdated 8 Sept 2026, 16:01 UTC4 min read
Finance
Photo: huw-ogilvie · BY 2.0

The short answer

  • Section 121 of the tax code lets qualifying home sellers exclude up to $250,000 of capital gain ($500,000 for married couples filing jointly) from federal income tax.
  • To qualify, you generally must have owned and used the home as your primary residence for at least 2 of the 5 years before the sale.
  • The exclusion can typically be used once every 2 years, but partial exclusions are allowed for job changes, health issues, or unforeseen circumstances.
  • Gain is calculated using adjusted basis, which includes the purchase price plus qualifying capital improvements, so keeping renovation records matters.
  • This is general tax information, not personalized advice; consult the IRS or a tax professional for your specific situation.

For most Americans, a home is the largest asset they will ever sell, and the tax code offers a notably generous break for it. Under Internal Revenue Code Section 121, a single filer can exclude up to $250,000 of capital gain from the sale of a primary residence, and a married couple filing jointly can exclude up to $500,000. Unlike many tax provisions, this exclusion can be used repeatedly over a lifetime, not just once. Understanding its mechanics can mean the difference between owing nothing on a home sale and facing a substantial capital gains bill.

The Ownership and Use Tests

To claim the full exclusion, the IRS generally requires that, during the five-year period ending on the date of sale, the seller owned the home for at least two years and used it as a primary residence for at least two years. These two years do not need to be consecutive, and they do not need to overlap perfectly, but both tests must be satisfied within that five-year lookback window, according to IRS guidance in Publication 523.

Married couples filing jointly can claim the full $500,000 exclusion if either spouse meets the ownership test and both spouses meet the use test, and neither spouse excluded gain from a different home sale within the prior two years. If only one spouse qualifies, the couple may still be limited to that spouse's $250,000 exclusion.

How Often You Can Use It

The exclusion is generally available only once every two years. If you sold a home and claimed the exclusion, you typically cannot claim it again for a sale that closes within two years of the prior sale's date. This rule is designed to target the benefit at genuine primary residences rather than frequent property flipping.

Partial Exclusions for Special Circumstances

Sellers who do not meet the full two-year ownership and use requirements may still qualify for a reduced, prorated exclusion if the sale is due to a change in place of employment, health reasons, or other IRS-defined unforeseen circumstances, such as certain divorces, multiple births from a single pregnancy, or job-required relocations. The partial exclusion is calculated based on the fraction of the two-year period actually satisfied.

  • Job-related moves: generally must involve a new job location that meets IRS distance guidelines.
  • Health-related sales: typically must be recommended by a physician for a specific medical condition.
  • Unforeseen circumstances: can include events such as death, divorce, legal separation, or natural disaster affecting the home.

Calculating the Taxable Gain

Gain is not simply the difference between the original purchase price and the sale price. It is the difference between the amount realized on sale and the home's adjusted basis. Adjusted basis starts with the original purchase price and closing costs, then adds the cost of qualifying capital improvements, such as a new roof, an addition, or major system upgrades, while routine repairs and maintenance generally do not count. Selling expenses, such as real estate commissions, reduce the amount realized. Because improvement records can substantially reduce taxable gain, tax professionals commonly advise homeowners to retain receipts and records for major projects for as long as they own the property, and for several years after selling.

When Gain Exceeds the Exclusion

If the calculated gain exceeds the applicable $250,000 or $500,000 threshold, the excess is generally subject to capital gains tax, taxed at long-term rates if the home was owned for more than a year. Depending on income level, the Net Investment Income Tax may also apply to a portion of the gain for higher-income taxpayers. Homeowners in markets with significant price appreciation over long holding periods should model this calculation before listing a property, since the fixed exclusion amounts have not been indexed for inflation since they were set in 1997.

Special Situations Worth Noting

  • Rental or business use of part of the home may reduce the eligible exclusion or require separate allocation of gain.
  • Depreciation claimed on a home office or rental portion generally must be recaptured and is not eligible for the Section 121 exclusion.
  • Inherited homes typically receive a stepped-up basis to fair market value at the date of the decedent's death, which can substantially reduce or eliminate gain for heirs who sell soon after inheriting.
  • Surviving spouses may, under certain conditions, still qualify for the full $500,000 exclusion on a sale within two years of a spouse's death.

Sources

Spotted an error? Tell our corrections desk.

How this article was produced

Responsible desk:
Taxes
Published:
8 Sept 2026, 16:01 UTC
Last updated:
8 Sept 2026, 16:01 UTC
Verification:
Figures and quotations checked against primary sources under our fact-checking policy and editorial standards.
Independence:
No advertiser or affiliate partner had any involvement in this article — see editorial independence and how we make money.

This article is general financial information and journalism, not personalised financial, investment, tax or legal advice.

Share

taxescapital gainsreal estatehome sale exclusionSection 121IRS