Home› Glossary› Capital Gains Exclusion (Section 121)
Glossary · Real Estate Terms

Capital Gains Exclusion (Section 121)

The Section 121 exclusion lets a home seller exclude up to $250,000 of gain from federal tax on the sale of a primary residence, or up to $500,000 for most married couples filing jointly, if the ownership and use tests are met. Tax rules change and depend on your facts, so confirm with a tax professional.

How Much Gain Can You Exclude?

Per IRS Publication 523, the exclusion applies to gain on the sale of your main home. Gain above the limit is generally taxable.

$250KSingle filer maximum
$500KMost married couples filing jointly
2 of 5Years of ownership and use before the sale

What Are the Ownership and Use Tests?

Ownership

At least 2 years

You owned the home for at least 24 months during the 5 years before the sale.

Use

At least 2 years

You lived in it as your main home for at least 24 months in that 5 year window. The months do not have to be consecutive.

Frequency

Generally once every 2 years

You generally cannot claim the exclusion on another home sold within 2 years of an earlier claim.

Partial exclusion

Unforeseen circumstances

If you sell early because of a job change, health reasons or other qualifying circumstances, a reduced exclusion may apply. Review with a tax professional.

How Is the Gain Calculated?

Gain is generally the sale price minus selling costs minus your adjusted basis. Your basis is what you paid plus qualifying capital improvements, not routine maintenance. Keep records of major projects such as a new roof, an addition or a kitchen remodel.

Illustration only. A couple bought a home for $600,000, added $50,000 of qualifying improvements, and sold for $1,200,000 with $60,000 in selling costs.
ItemIllustrative Amount
Sale price$1,200,000
Selling costs- $60,000
Adjusted basis ($600,000 + $50,000)- $650,000
Gain$490,000
Exclusion if married filing jointly and qualifiedup to $500,000
Gain above the exclusion in that case$0

A single filer with the same numbers would exceed the $250,000 limit by about $240,000. Your actual result depends on your tax situation, so this is not tax advice.

Selling a home and wondering about costs? Roman can walk you through selling costs and timing. Ask your tax professional about the tax side.

Get My Free Estimate

What Should You Track Before Selling?

  1. 1
    Confirm the testsOwn and use for 2 of the last 5 years
  2. 2
    Gather recordsPurchase documents and improvement receipts
  3. 3
    Estimate your gainCompare it with the $250K or $500K limit
  4. 4
    Ask a tax proBefore you list, not after closing

Helpful to know

  • Selling costs generally reduce your gain
  • Improvements raise your basis
  • Use can be met in separate months

Ask a tax professional about

  • Rental or home office use
  • Selling after a divorce or a death
  • How it applies to your state return

The exclusion is for a primary residence. Investment property is generally treated differently, and a 1031 exchange is a separate tool. Roman is a real estate agent, not a tax advisor or CPA.

Frequently Asked Questions

What is the Section 121 exclusion?
A federal tax rule that lets you exclude up to $250,000 of gain on the sale of your main home, or up to $500,000 for most married couples filing jointly, if you meet the ownership and use tests. See IRS Publication 523.
What is the ownership and use test?
You generally must have owned the home and lived in it as your main home for at least 2 of the 5 years before the sale. The two years do not have to be consecutive.
Can I use the exclusion more than once?
Yes, generally, but not more than once every 2 years. Confirm your situation with a tax professional.
What if I do not meet the full 2 years?
A reduced exclusion may apply if you sell because of a job change, health reasons or other unforeseen circumstances. Ask a tax professional rather than assuming you do not qualify.
Does it apply to investment properties?
Generally no. It is for your main home. Investment property may involve other rules, such as a 1031 exchange, so ask a tax professional.
What counts toward my cost basis?
Your purchase price plus qualifying capital improvements. Routine maintenance and repairs generally do not count. Keep records of major projects.
Do I have to report the sale?
You may need to report the sale in some cases, for example if you receive a Form 1099-S or if your gain exceeds the exclusion. A tax professional can tell you what applies to you.