Follow the same sale through two questions

In a fictional sale, the price is $500,000, eligible selling expenses for this simplified illustration are $30,000, adjusted basis is $350,000 and the mortgage payoff is $300,000.

Illustrative arithmetic before exclusions, special rules and other costs
QuestionArithmeticResult
Cash after these sale costs and payoff$500,000 − $30,000 − $300,000$170,000
Gain before exclusions and special rules$500,000 − $30,000 − $350,000$120,000

The payoff does not become a second tax deduction. The IRS explains why paying the mortgage does not itself determine the tax due. IRS: Mortgage payoff and home-sale gain. This example assumes all $30,000 qualifies in the simplified gain computation; your actual costs need classification.

The main-home exclusion has conditions

IRS Topic 701 describes a potential exclusion of up to $250,000 of gain, or up to $500,000 for a qualifying joint return. Ownership, use, prior exclusion and other conditions matter; joint filers have different ownership/use details. Marriage or buying a replacement home is not a universal qualification shortcut. IRS: Sale of your home, Topic 701.

Bring exact ownership and occupancy dates, prior home-sale records and filing status to the tax discussion. Ask about exceptions or partial exclusion if the ordinary conditions are not met. Do not treat a general article as confirmation that your whole gain is excluded.

Build the records before they become hard to find

The basis file is different from the loan file. Gather the original acquisition settlement record, later improvements, relevant tax returns, insurance/casualty history, prior rental/depreciation records and any gift or inheritance documents. For an inherited property, establish the applicable basis with the estate/tax adviser instead of using the decedent’s mortgage balance or today’s asking price.

IRS Publication 523 contains specific basis, inherited-home and business/rental-use sections. These facts can require different treatment. A repair invoice is not automatically a basis addition, and a refinancing loan amount is not a substitute for basis.

A non-taxable result can still have reporting steps

Receiving Form 1099-S can create a reporting requirement even if the gain is excludable. IRS Topic 701 points to the applicable return forms and Publication 523 for the details. IRS: Sale of your home, Topic 701. Keep a copy of the final settlement record and check the identifying details and amounts before filing.

For a rental or business property, start the 1031 discussion before closing if an exchange is under consideration. A residence exclusion, inherited basis and exchange deferral answer different questions. Do not combine favorable parts of each without professional analysis.

Use the separate seller cash worksheet →

Check the sale year and the history before assuming an exclusion

The current 26 USC §121 keeps the principal-residence exclusion framework, including ownership/use and prior-sale conditions, with a generally $250,000 cap or $500,000 for qualifying joint filers. A joint return alone does not prove the larger exclusion. Review periods of rental or other nonqualified use, separate portions, inherited or gifted basis, and special exceptions with a tax professional.

Gain attributable to depreciation adjustments after May 6, 1997 is not excluded by §121. The 2025 Publication 523 provides detailed worksheets and examples; do not turn its example facts into a universal 2026 outcome. Ask for the actual sale-year treatment and reporting requirements.

Records before pricing the next purchase: original and sale closing statements, improvement invoices, basis adjustments, depreciation allowed or allowable, ownership/occupancy dates, prior exclusions and current payoff quotes. The seller proceeds tool can estimate cash; it does not certify taxable gain. Set money aside separately for an unresolved tax bill instead of treating every closing dollar as available for the next down payment.

Sources and review dates

The dates below show when we checked each source. Our worked examples use fictional figures. We identify official samples by their publisher.

What the review covered

Introduction edited November 22, 2026. We edited the introduction and reordered the guide. Each source keeps its original check date. We did not recheck every financial or legal rule in this edit.

AI tools helped us prepare and edit this guide. Your lender, tax adviser or lawyer can help you apply the rules to your situation. How we check sources and correct errors.