EstateCalcHub

Selling & Agent Economics · rules/explainer

Home Sale Capital Gains Exclusion: Section 121 Basics

By EstateCalcHub · Published and reviewed 2026-10-04 · Educational U.S. property scenarios

The direct answer

Section 121 may allow an eligible taxpayer to exclude part of the gain from selling a main home from U.S. federal income tax. Eligibility depends on statutory ownership, use and timing rules, with special rules for circumstances such as business or rental use, prior exclusions and reduced exclusions.

Test ownership and use separately

The common framework examines whether the property was owned and used as the taxpayer’s main home for the required periods within the applicable lookback window. Do not reduce this to a slogan; IRS Publication 523 provides the current tests, exceptions and worksheets.

To apply the approach to an editable scenario, use the Security Deposit Interest Calculator. For the neighboring question, explore Home Sale / Seller Net Proceeds Calculator.

Check prior exclusions and special facts

A recent use of the exclusion, changes in employment or health, unforeseen circumstances, periods of nonqualified use and marital status can affect eligibility or the amount. Apply the current IRS instructions to the taxpayer’s actual facts.

Separate depreciation-related gain

When a home was used for business or rental activity, gain attributable to depreciation allowed or allowable after the relevant statutory date may not be excludable. Adjusted basis and reporting can therefore differ materially from a simple sale-price-minus-purchase-price calculation.

Worked example

A homeowner who appears to satisfy the basic ownership and use tests can still have taxable gain if part of the gain is attributable to depreciation from rental or business use. The exclusion analysis and the depreciation analysis must be performed separately.

Common mistakes and limitations

Do not promise a tax-free home sale based only on living in the property for two years. Prior exclusions, nonqualified use, depreciation and other facts can change the result.

Security-deposit rules and required rates differ by jurisdiction. The calculator must not auto-apply a legal rate without a sourced location-specific module.

Frequently asked questions

Does living in a home for two years automatically make all gain tax-free?

No. Section 121 has multiple requirements and limitations, and depreciation-related gain or other facts can remain taxable.

Where should eligibility be checked?

Use the current IRS Publication 523 and related IRS instructions for the year of sale, and obtain tax advice for fact-specific questions.

Sources and further reading

The article’s examples are illustrative arithmetic. The references below provide context for operating, valuation or transaction concepts; they do not endorse the assumptions or the calculator.

Read our editorial policy for the scope of these educational methods.