Section 121 Home Sale Exclusion Calculator United States

This Section 121 exclusion calculator shows how much home-sale gain you can exclude and what stays taxable, based on filing status and the 2-of-5-year test.

Section 121 Home Sale Exclusion Calculator United States
US$
%
Advanced options
US$
Taxable gain —
Excluded gain —
Exclusion limit —
Unrecaptured section 1250 gain —
Qualifying months counted —
Estimated tax on taxable gain —

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

What it does

The Section 121 Exclusion Calculator estimates how much gain on the sale of your main home you can exclude from tax, and how much of the gain remains taxable.

Data sources & parameters

The figures below drive this calculator. We keep them aligned with the latest official guidance, and each result recalculates automatically whenever a value changes.

ParameterValueSourceLast updated
Section 121 exclusion, single250,000irs.govEffective 2026-01-01Section 121 home-sale gain exclusion, single (statutory)
Section 121 exclusion, married joint500,000irs.govEffective 2026-01-01Section 121 home-sale gain exclusion, MFJ (statutory)
Section 121 ownership and use test, minimum months in the look-back period24irs.govEffective 2026-01-01Fix 2026-10-24: the row went live with country_code AU, so Resolver never saw it and the key fell back to the tool.json default. Value unchanged.
Section 121 ownership and use test, length of the look-back period in months60irs.govEffective 2026-01-01Fix 2026-10-24: the row went live with country_code AU, so Resolver never saw it and the key fell back to the tool.json default. Value unchanged.
Maximum rate on unrecaptured section 1250 gain0.25irs.govEffective 2026-01-01Fix 2026-10-24: the row went live with country_code AU, so Resolver never saw it and the key fell back to the tool.json default. Value unchanged.

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

The formula

Taxable gain = max(0, gain − exclusion limit); excluded gain = min(gain, limit)

How it works

It applies the Section 121 exclusion limit for your filing status when the 2-of-5-year ownership and use test is met, then treats any gain above the limit as taxable.

Where it is used

  • Estimating tax on a home sale gain
  • Checking whether a gain is fully excluded
  • Planning the timing of selling a primary residence

Worked example

A married couple with a $400,000.00 gain who meet the ownership and use test exclude …, leaving a taxable gain of ….

What the Section 121 exclusion calculator does

The calculator estimates how much of the gain from selling your main home you can exclude from federal income tax, and how much stays taxable. Enter the capital gain on the sale, your filing status, and whether you meet the ownership and use test. The tool applies the exclusion limit and shows the excluded gain, the taxable gain, and an estimate of the tax on any taxable portion.

Section 121 lets many homeowners sell owing little or no capital gains tax, as long as the home was their main residence for long enough.

How the exclusion works

If you meet the requirements, you can exclude gain up to a limit that depends on your filing status: the single limit for a qualifying single filer, or the larger married-joint limit for a qualifying married couple filing jointly. Gain above the limit is taxable.

  • If you meet the ownership and use test, the calculator uses the exclusion limit for your filing status.
  • It excludes gain up to that limit.
  • It treats any gain above the limit as taxable.
  • It estimates the tax on the taxable portion using the long-term capital gains rate you enter.

The exclusion limits are set by the IRS and stored as parameters that are updated when they change. If you do not meet the test, the calculator treats the whole gain as taxable, which shows how much qualifying is worth.

The ownership and use test

To claim the full exclusion, you generally must meet the 2-of-5-year test: during the five years ending on the date of sale, you owned the home for at least two years and lived in it as your main residence for at least two years. The ownership and use periods do not have to be the same two years, and the time does not need to be continuous, but both conditions must be met.

For the full married-joint exclusion, both spouses usually must meet the use test and at least one must meet the ownership test, with neither having excluded gain from another home sale within the prior two years. If only one spouse qualifies, the couple may be limited to the single amount. The calculator takes a simple yes-or-no answer to the test, so if your situation is more complicated, treat the result as a starting estimate.

Working out the gain

The gain is the profit on the sale, not the sale price. Broadly, it is the sale price minus selling costs such as agent commissions, minus your adjusted basis. The adjusted basis usually starts with what you paid for the home and rises with the cost of qualifying improvements, such as a new roof, an addition or major renovations.

Records of those improvements raise your basis and reduce your gain, and many homeowners overestimate their taxable gain by forgetting years of capital improvements. Work out the gain carefully, because every other figure depends on it.

Reading your result

The output shows the taxable gain, the excluded gain, the exclusion limit that applied, and the estimated tax on the taxable portion. If the gain is within the limit and the test is met, the taxable gain is zero and no capital gains tax is due under this provision. If the gain exceeds the limit, only the excess is taxable, at the capital gains rate you enter.

Owners with a large gain, often those who have held a home in a rising market for many years, may find part of it falls outside the exclusion, which is useful to know before finalizing a sale or planning its timing around the two-year rules.

Special situations

If part of the home was used for business or rented out, gain tied to depreciation may not be excludable and can be taxed differently. Members of the armed forces and certain other groups may be able to suspend the five-year test during qualifying service. Homeowners who miss the full two-year test because of a work relocation, a health issue or another unforeseen event may still qualify for a reduced exclusion in proportion to the time they did meet the conditions. In any of these cases, treat the figure here as a first approximation, and consult a tax professional when the gain is large or your circumstances are complicated.

This is general information only and not financial or tax advice.

About This Section 121 Exclusion Calculator

Use this Section 121 exclusion calculator to get an instant, accurate estimate. The figures follow official IRS guidance and every rate and threshold is kept up to date for 2026. Adjust the inputs above to match your situation, or browse all our calculators to plan your next step.

Tax year 2026

Frequently asked questions

What is the Section 121 exclusion?
Section 121 of the tax code lets you exclude a portion of the capital gain from selling your main home from federal income tax, provided you meet the ownership and use requirements. Single filers and married couples filing jointly have different limits.
What is the 2-of-5-year ownership and use test?
To claim the full exclusion, you generally must have owned the home and used it as your main residence for at least two of the five years before the sale. The two years do not need to be continuous, but both the ownership and use conditions must be satisfied.
How much gain can I exclude?
A qualifying single filer can exclude up to the single limit, and a qualifying married couple filing jointly can exclude up to the married-joint limit. These amounts are set by the IRS, and the calculator stores them as parameters that are updated when they change.
What happens to gain above the exclusion limit?
Any gain that exceeds the exclusion limit is taxable, generally at long-term capital gains rates if you owned the home for more than a year. This tool estimates that tax using the rate you enter.
Can I use the exclusion more than once?
The exclusion can generally be used again, but not more than once in any two-year period. There are also partial-exclusion rules for sales due to a change in job, health, or other unforeseen circumstances.
Is my data private?
Yes. The calculation runs entirely in your browser, so nothing you enter is uploaded, stored, or shared.

About the author

Taha Kheirandish

Written and reviewed by

Taha Kheirandish

Economics student and independent researcher

Taha Kheirandish reads tax codes the way other people read maps — to find out where a system actually leads, not where it claims to go.

He is an economics student, and his work here is comparative by design. A pension deferral bonus in Quebec, a commuting allowance in Germany, a rent-increase ceiling in the Netherlands: each is a decision a government made about how money should move, and each reads differently once you set it beside eight others. He builds and checks these calculators across nine markets from primary sources — the regulation rather than a summary of it, the ministry’s own circular rather than a news item quoting it.

That is the editorial standard of the site as well as his habit. Every rate, threshold and bracket here carries the document it was read from and the date it takes effect, and gets re-checked when the law moves rather than when someone happens to notice.

He is a researcher, not a licensed adviser, and nothing on this site is personal financial advice. It is arithmetic done carefully with its sources shown — so that you can check it, and take it to someone who is.

Leave a Reply

Your email address will not be published. Required fields are marked *