Guide

Capital Gains Tax on a Home Sale: What Sellers Should Know

By ActiveEngine · 5 min read · Last updated February 20, 2026

The primary residence exclusion

Under Section 121 of the federal tax code, many homeowners can exclude a substantial portion of the gain on the sale of a primary residence from taxable income — generally up to $250,000 for a single filer and $500,000 for a married couple filing jointly.

The exclusion applies to gain, not to sale price and not to proceeds. A seller can receive a large check at closing and still owe nothing, or receive very little and still have taxable gain, depending on the original purchase price.

Who generally qualifies

The common requirements are ownership and use: having owned the home and lived in it as a primary residence for at least two of the five years before the sale, and generally not having claimed the exclusion on another sale within the prior two years.

Partial exclusions may be available in some circumstances, such as certain job relocations, health reasons, or other unforeseen events. Rental periods, home-office depreciation, and inherited or gifted property all complicate the analysis.

See your exact numbers

Try the free Field Net calculator — no signup, PDF download included.

Open the calculator →

What counts as gain

Gain is broadly the amount realized on the sale minus your adjusted basis. Amount realized is the sale price less selling expenses such as commissions and certain closing costs. Adjusted basis generally starts with what you paid, plus qualifying capital improvements, with certain adjustments including depreciation previously claimed.

This is why keeping receipts for renovations matters: improvements can raise basis and reduce gain.

When tax might be owed

Tax can apply when gain exceeds the available exclusion, when the property was an investment or second home rather than a primary residence, when the ownership and use tests are not met, or when depreciation from rental or home-office use must be recaptured. Some states also impose their own tax on the gain, and high earners may face additional federal surtaxes.

The practical takeaway: run the numbers early, because the answer depends on facts a calculator cannot see.

This is general information, not tax advice

Field Net is a net proceeds estimator, not a tax tool, and nothing here is tax or legal advice. Rules change and individual circumstances vary widely. Consult a CPA or qualified tax professional before making decisions based on the potential tax outcome of a sale.

State-specific calculators

Frequently asked questions

Related guides