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.

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.
| Parameter | Value | Source | Last updated |
|---|---|---|---|
| Section 121 exclusion, single | 250,000 | irs.gov | Effective 2026-01-01Section 121 home-sale gain exclusion, single (statutory) |
| Section 121 exclusion, married joint | 500,000 | irs.gov | Effective 2026-01-01Section 121 home-sale gain exclusion, MFJ (statutory) |
| Section 121 ownership and use test, minimum months in the look-back period | 24 | irs.gov | Effective 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 months | 60 | irs.gov | Effective 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 gain | 0.25 | irs.gov | Effective 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

