📋 The Boring Thing

The $250,000 / $500,000 Home-Sale Exclusion, Explained

The home-sale capital gains exclusion — found in IRS Section 121 — lets you exclude up to $250,000 of gain from the sale of your main home if you are single, or up to $500,000 if you are married filing jointly. It is the single most valuable tax break most homeowners will ever use, and it is why the majority of home sellers owe no federal capital gains tax at all. But it comes with specific rules: an ownership test, a use test, a once-every-two-years limit, and extra requirements for couples claiming the full $500,000. This guide walks through each one carefully.

Not tax advice. This is general information, not tax or legal advice, and tax rules change. For your situation, see IRS Publication 523 and Topic No. 701, and consult a qualified tax professional.

Key takeaways

  • Section 121 excludes up to $250,000 of gain (single) or $500,000 (married filing jointly).
  • You must pass an ownership test and a use test: 2 years of each within the 5 years before the sale.
  • The 2 years do not need to be continuous.
  • You generally cannot use the exclusion twice within a 2-year period.
  • Job change, health, or unforeseen circumstances can qualify you for a partial exclusion.

What the exclusion actually does

The exclusion does not lower your sale price or wipe out the tax entirely. It removes a slice of your gain — your profit after subtracting selling costs and your adjusted basis — from taxable income. If your gain is smaller than the amount you can exclude, none of it is taxed. If your gain is larger, only the portion above the exclusion is taxable, generally at long-term capital gains rates if you owned the home more than a year. If you are still fuzzy on how gain is calculated in the first place, start with do you pay capital gains when you sell your house.

The two tests: ownership and use

To claim the exclusion, you must satisfy two separate tests, both measured over the 5-year period ending on the date of sale:

These are two different requirements, and they can be met in different stretches of time. Owning the home is not the same as living in it, and the IRS checks both.

A worked example

Maria buys a condo in January 2021 and lives in it as her main home. In March 2023 she takes a job in another city and rents the condo out to a tenant. She sells it in December 2025. Does she qualify?

Maria qualifies for the exclusion even though the condo was a rental for the final couple of years, because she still had 2 years of use inside the 5-year lookback. Had she waited until, say, 2027 to sell, her period of personal use would have slipped outside the 5-year window and she could have lost the exclusion. Timing matters.

The "not continuous" nuance

The 2 years of use do not have to be a single unbroken stretch. The IRS lets you add up the months you lived in the home across the 5-year window. Someone who lived in a home for 14 months, moved out for a year, then moved back for 10 months has 24 months of use and meets the test. Short absences — vacations, seasonal trips — still count as time you lived there, even if you rented the place out during them. What matters is the total amount of time the home genuinely served as your main residence within the window.

The once-every-two-years rule

You generally cannot claim the Section 121 exclusion if you already excluded gain from the sale of another home within the 2 years before the current sale. This stops people from flipping a series of homes and excluding gain on each one every few months. If you sold a home last year and used the exclusion, you typically have to wait until two years have passed before you can use it again. Plan your sales with this window in mind, especially if you own more than one property you have lived in.

Getting the full $500,000 as a married couple

The $500,000 figure for married filing jointly is not automatic just because you are married. To exclude the full $500,000, all of the following must be true:

If only one spouse meets the use test, the couple is generally limited to a $250,000 exclusion rather than the full $500,000. This detail catches newer couples off guard — for example, when one spouse moved into a home the other already owned and lived in. Count the months carefully.

The partial exclusion for life's disruptions

What if you have to sell before hitting 2 years? You may still qualify for a partial exclusion if the reason you fell short was one of three broad categories the IRS recognizes:

A partial exclusion is proportional. You take the fraction of the 2-year requirement you actually met and apply it to the maximum exclusion. If a single person lived in and owned the home for 12 of the required 24 months and sold because of a qualifying job move, they can generally exclude 12/24 — that is, half — of the $250,000 maximum, or up to $125,000 of gain. The fraction is usually based on the shortest of your ownership time, use time, or time since your last exclusion, measured in months or days. It is not all-or-nothing, which is why it is worth checking even if you clearly missed the 2-year mark.

Putting it together

The exclusion is generous, but it rewards attention to the calendar. Confirm you have 2 years of ownership and 2 years of use inside the 5-year window, remember the months do not need to be back-to-back, watch the two-year reuse limit, and — if you are married — make sure both of you cleared the use test before counting on the full $500,000. If life forced an early sale, look hard at the partial exclusion before assuming you owe. And once you know your exclusion, the practical strategies in how to avoid capital gains on a home sale can help shrink whatever gain is left.

Frequently asked questions

What is the $250,000 / $500,000 home-sale exclusion?

It is a rule (IRS Section 121) that lets you exclude up to $250,000 of gain from selling your main home if you are single, or up to $500,000 if married filing jointly, as long as you meet the ownership and use tests.

What are the ownership and use tests?

You must have owned the home for at least two years and lived in it as your main home for at least two years out of the five years before the sale. The two years do not need to be continuous, and for the exclusion you also cannot have used it on another home sale in the prior two years.

Can I get a partial exclusion if I did not live there two years?

Sometimes. If you sold early because of a work location change, a health reason, or certain unforeseen circumstances, the IRS allows a partial exclusion proportional to the time you did qualify.