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

When you sell your primary residence, you can exclude up to $250,000 of capital gains from federal income tax ($500,000 for married filing jointly). To qualify, you must have owned the home and used it as your primary residence for at least 2 of the last 5 years before the sale. These amounts are statutory under IRC 121 and are not indexed for inflation.

The exclusion amounts and who qualifies

The home sale exclusion under IRC 121 is one of the most generous tax benefits available to individual taxpayers. Congress established this exclusion so that most homeowners pay no federal capital gains tax when they sell their primary home. The amounts are set directly in the statute:

  • Single filers: Up to $250,000 of gain excluded
  • Married filing jointly: Up to $500,000 of gain excluded

These figures have not changed since the Taxpayer Relief Act of 1997 created the exclusion, and they are not adjusted annually for inflation. A homeowner who qualifies fully and whose gain falls within these limits pays zero federal capital gains tax on the sale, regardless of their income level.

To qualify for the full exclusion, a taxpayer must meet two tests: the ownership test and the use test. Both must be satisfied for the same property, though not necessarily for the same 2-year period.

Ownership and use tests

The ownership test requires that you owned the home for at least 2 of the 5 years ending on the date of sale. Ownership does not have to be continuous. If you owned the home for 3 years, rented it out for a year, and then sold it, you still meet the ownership test.

The use test requires that you used the home as your primary residence for at least 2 of the 5 years ending on the date of sale. Short absences (vacations, temporary work assignments) generally do not disqualify periods of use. Extended absences, such as renting the home to tenants, generally do disqualify those periods.

The two 2-year periods do not need to overlap. You could have owned and used the home for 2 years, rented it for 2 years, and then sold it. You still meet both tests independently.

For married filing jointly filers claiming the $500,000 exclusion, at least one spouse must meet the ownership test, and both spouses must meet the use test.

Calculating your gain

The capital gain on a home sale is the difference between your amount realized and your adjusted basis.

Amount realized = Sale price minus selling costs (real estate commissions, legal fees, transfer taxes, and other closing costs paid by the seller).

Adjusted basis = Original purchase price, plus purchase-side closing costs, plus capital improvements made over the years, minus any depreciation claimed (if you ever used part of the home for business or rental purposes).

Capital improvements add to your basis and reduce your gain. These include additions to the home, major systems replacements (roof, HVAC, plumbing), renovations, and landscaping. Routine repairs and maintenance do not add to basis.

Example: You bought a home for $300,000, paid $5,000 in closing costs, and spent $45,000 on a kitchen renovation and new roof over the years. Your adjusted basis is $350,000. You sell for $700,000 with $20,000 in selling costs. Your amount realized is $680,000. Your gain is $680,000 minus $350,000, which is $330,000. As a single filer, you can exclude $250,000 and would owe capital gains tax on the remaining $80,000.

Partial exclusion

If you do not meet the full 2-year tests, you may still qualify for a partial exclusion if the sale was primarily due to one of three qualifying reasons under Treasury Regulation 1.121-3:

  • Change in place of employment: You (or a qualifying person in your household) got a new job or transferred to a job that is at least 50 miles farther from the home than the old job was.
  • Health: A doctor recommended the move, or you needed to care for a family member's health condition that required the change of residence.
  • Unforeseen circumstances: Events such as divorce, death of a co-owner, multiple births from a single pregnancy, natural disasters, or job loss that qualify under IRS guidance.

The partial exclusion is calculated as a fraction of the full exclusion amount. The fraction is the shorter of (1) the period you owned and used the home, or (2) the period since the last time you claimed the exclusion, divided by 24 months (or 730 days). If you owned and used the home for 12 months out of the required 24 before a qualifying job change, you could exclude up to 50% of $250,000 (single) = $125,000.

The once-every-2-years rule

You cannot claim the full exclusion if you excluded gain from another home sale during the 2-year period ending on the date of the current sale. This rule is per taxpayer, not per property.

The once-every-2-years rule does not prevent you from selling multiple homes in a short period. It simply limits how often you can claim the exclusion. If you sell a home and then sell another home within 2 years, the second sale may not qualify unless the partial exclusion rules apply.

Married filing separately treatment

When spouses file separately in the year of sale, each spouse is limited to a $250,000 exclusion on their own return. However, to claim the exclusion, each spouse must individually meet the ownership and use tests for their own share of the property. A spouse who did not use the property as their principal residence for the required period cannot claim the exclusion on their separate return.

This is notably different from the MFJ treatment where only one spouse needs to meet the ownership test (though both must meet the use test). Married couples who file separately do not combine their exclusions. Filing jointly typically produces a better outcome for joint homeowners because the $500,000 exclusion is available on a single combined return.

When the exclusion does not help

The exclusion only applies to your primary residence. It does not apply to:

  • Investment properties and rental properties: Gains are fully taxable, and depreciation recapture (taxed at up to 25%) also applies.
  • Vacation homes: A second home used primarily for personal enjoyment does not qualify as a principal residence unless you convert it to your primary home and meet the ownership and use tests before selling.
  • Gains above the limit: If your gain exceeds the exclusion amount, the excess is taxable. A single filer with a $400,000 gain excludes $250,000 and pays capital gains tax on $150,000. At the 15% long-term rate (assuming taxable income in the 15% range), that is $22,500 in federal capital gains tax on the excess.
  • Business use portion: If you claimed a home office deduction or rented part of your home, the portion of gain attributable to those business or rental uses may not be excludable, and depreciation recapture rules may apply to that portion.

When the exclusion does not fully shelter your gain, long-term capital gains rates (15% for most filers, 20% for high earners) apply to the taxable portion. See the full 2026 rate table in our Capital Gains Tax Brackets for 2026 guide.

Frequently Asked Questions

How much gain can I exclude when I sell my home?
Under IRC 121, you can exclude up to $250,000 of capital gain if you are single, or up to $500,000 if you are married filing jointly, provided you meet the ownership and use tests. These amounts are set by statute and are not indexed for inflation.
What are the ownership and use tests?
You must have owned the home for at least 2 of the last 5 years before the sale (ownership test), and you must have used it as your primary residence for at least 2 of the last 5 years before the sale (use test). The two 2-year periods do not have to be the same 2 years, and they do not have to be continuous.
Can I claim the exclusion if I have only lived in the home for one year?
Generally no, unless you qualify for the partial exclusion. A partial exclusion is available if the sale was due to a change in place of employment, a health condition, or other unforeseen circumstances as defined in Treasury Regulation 1.121-3. The partial exclusion is proportional to how much of the 2-year period you satisfied.
How often can I use the home sale exclusion?
You can use the exclusion once every 2 years. If you excluded gain on a home sale within the 2 years before your current sale, you do not qualify for the full exclusion. You may still qualify for a partial exclusion if your move was due to work, health, or unforeseen circumstances.
What if my gain is more than $250,000 (or $500,000)?
Any gain that exceeds the exclusion amount is taxable as a long-term capital gain (if you held the home for more than one year). For example, a single filer with a $350,000 gain could exclude $250,000 and would owe capital gains tax on the remaining $100,000.
Does the exclusion apply to investment properties?
No. The IRC 121 exclusion applies only to your primary residence. Rental properties, vacation homes, and investment properties do not qualify for the $250,000/$500,000 exclusion. Gains on those properties are fully taxable, and depreciation recapture rules also apply.
What counts as my basis in the home?
Your basis generally starts with what you paid for the home (purchase price plus closing costs). It is then increased by the cost of capital improvements you made over the years (additions, renovations, new systems) and decreased by any depreciation claimed if you ever used part of the home for business or rental.