Capital Gains on Home Sale Calculator

Estimate federal taxable gain and tax on a home sale after a Section 121 exclusion sketch using sale price, basis, selling costs, and LTCG rate.

Capital Gains on Home Sale Calculator

Federal Section 121 exclusion only. NIIT (3.8%), depreciation recapture, and state capital gains taxes are not included. Partial exclusions for job moves / health events are not modeled. Not tax advice.

Formula

gain = sale - basis - selling costs; exclusion = 250k single / 500k joint if qualify; taxable = max(0, gain - exclusion); tax = taxable x LTCG rate

Multicalify computes realized gain, applies a simplified Section 121 exclusion when the qualify toggle is yes, then multiplies remaining taxable gain by the long-term capital gains rate you enter. Federal NIIT and state tax are omitted.

Use this free online capital gains on home sale calculator to estimate federal taxable gain and tax on a primary residence sale after a Section 121 exclusion sketch. Enter sale price, cost basis, selling costs, filing status, whether you meet the ownership and use tests in the tool, and a long-term capital gains rate. The calculator returns realized gain, exclusion, taxable gain, and estimated federal tax for planning. No signup is required.

Home sale capital gains planning is not the same as estimating buyer or seller closing costs at purchase, and it is not a monthly mortgage payment tool. Closing costs at sale can reduce gain when they are selling costs, but the settlement fee worksheet itself belongs on the closing costs calculator. Payment redesign after a lump sum belongs on the mortgage recast calculator. This page focuses on federal gain and exclusion math for education only.

Browse related pages under mortgage and real estate. Compare keep-versus-sell cash flow ideas on the rent vs sell calculator, review wage withholding concepts on the salary tax calculator, and return to the mortgage calculator when the loan payment is the question instead of tax on a sale.

What this capital gains on home sale calculator estimates

Realized gain equals sale price minus basis minus selling costs, floored at zero in the Multicalify model. If you indicate that you qualify under the tool ownership and use toggle, the Section 121 exclusion is 250,000 for single filers or 500,000 for joint filers. Taxable gain equals the greater of zero and realized gain minus that exclusion. Estimated tax equals taxable gain times the long-term capital gains rate you entered. The live tool notes that federal NIIT and state tax are outside this sketch.

How to use the calculator

  • Enter the expected sale price.
  • Enter your cost basis, including purchase price and capital improvements you can document.
  • Enter selling costs such as commissions and eligible closing costs on the sale.
  • Choose single or joint filing status for the exclusion sketch.
  • Indicate whether you meet the ownership and use tests as modeled in the tool.
  • Enter the long-term capital gains rate you want to stress-test, often 0, 15, or 20 percent federally depending on income.
  • Read realized gain, exclusion, taxable gain, and estimated tax.

How Multicalify applies Section 121 in this model

Section 121 can exclude gain on a primary residence when ownership and use tests are met and other IRS limits do not reduce the exclusion. Multicalify uses a simplified qualify toggle: if you select yes, the full 250,000 or 500,000 exclusion applies in the math; if you select no, exclusion is zero. Partial exclusions, nonqualified use, depreciation recapture on prior rental periods, and special situations are not fully modeled. Always read current IRS guidance or consult a tax professional for your facts.

Worked federal planning example

Sale price 750,000, basis 300,000, and selling costs 40,000 produce a realized gain of 410,000. A qualifying single filer exclusion of 250,000 leaves 160,000 taxable. At a 15 percent long-term rate, estimated federal tax is 24,000. A qualifying joint filer with a 500,000 exclusion would see zero taxable gain in this same example. Change any input in the calculator to match your file rather than copying the illustration.

StepAmount
Sale price750,000
Basis300,000
Selling costs40,000
Realized gain410,000
Single Section 121 exclusion250,000
Taxable gain160,000
Tax at 15%24,000

Basis, improvements, and selling costs

Basis usually starts with what you paid for the home and rises with capital improvements that add value or prolong life, such as a room addition or new roof documented with receipts. Routine repairs may not increase basis. Selling costs that reduce amount realized can include commissions and certain sale closing costs. Poor records shrink basis and inflate taxable gain in a real filing, so gather documents before you rely on any estimate.

Primary residence exclusion versus investment property

Section 121 is aimed at a qualifying principal residence. Investment property and many vacation homes follow different rules. A 1031 exchange discussion is a separate deferral strategy for qualifying like-kind real property held for investment or business use, not a substitute for this primary residence calculator. If you are deciding whether to keep a home as a rental instead of selling, the rent vs sell calculator explores cash-flow style tradeoffs without replacing tax advice.

Federal framing and what is left out

Multicalify estimates federal long-term capital gains tax on the taxable slice only. Net Investment Income Tax, state capital gains tax, local transfer taxes already paid at closing, and alternative minimum tax interactions are outside the result. High-income filers may land in a different long-term rate bracket than the 15 percent example. Enter the rate that matches your planning scenario and verify with a preparer.

Timing the sale and the exclusion lookback

Section 121 generally looks at ownership and use during a lookback window ending on the sale date. People who converted a prior rental into a primary residence, or who used the exclusion on another home recently, can face reduced or unavailable exclusion amounts. Multicalify does not encode every lookback nuance. If your history includes multiple homes, partial years, or military exceptions, treat the calculator as a first pass and bring documentation to a tax professional before you set a list price strategy around tax alone.

Selling costs lower realized gain in this model, which is why commission estimates matter. You can cross-check a commission-heavy settlement sketch on the closing costs calculator, then paste a realistic selling cost total back into this capital gains on home sale calculator so the tax estimate and the fee estimate stay consistent with each other.

Common mistakes

  • Using purchase closing cost averages as if they were the capital gains computation
  • Forgetting selling commissions when computing realized gain
  • Assuming every home sale automatically gets the full 500,000 exclusion
  • Ignoring prior rental depreciation that can create taxable gain even when exclusion applies to other gain
  • Treating the Multicalify figure as a filed tax amount without professional review

Limitations and YMYL disclaimer

This page provides educational federal estimates only. It is not tax, legal, or financial advice. Section 121 has ownership, use, lookback, and other rules that a simple qualify toggle cannot fully capture. State tax and NIIT are omitted. Confirm results with current IRS publications or a qualified tax professional before you sell or file.

Related calculators

Estimate sale-side fees in a settlement sense on the closing costs calculator, revisit loan payment math on the mortgage calculator, and compare paycheck-style federal sketches on the salary tax calculator under tax and payroll. Housing decision tools continue in mortgage and real estate.

Conclusion

A careful capital gains on home sale calculator estimate shows how sale price, basis, selling costs, and Section 121 can shape federal taxable gain. Enter your figures, stress-test the long-term rate, and treat the output as a planning sketch. Confirm eligibility and final tax with a professional, then return to Multicalify when listing price or improvement records change.

Frequently Asked Questions

Do I pay capital gains on a home sale?

You may owe tax on gain above any available Section 121 exclusion and other adjustments. Many qualifying primary residence sales owe little or no federal capital gains tax, but results depend on your facts.

How does this capital gains on home sale calculator work?

It sets gain as sale minus basis minus selling costs, applies 250,000 or 500,000 exclusion when you mark qualify, then taxes the remainder at your entered long-term rate.

What is the worked example?

Sale 750,000, basis 300,000, costs 40,000 produce gain 410,000. A single 250,000 exclusion leaves 160,000 taxable. At 15 percent, estimated tax is 24,000.

What is Section 121?

Section 121 is the federal primary residence exclusion that can exclude up to 250,000 of gain for single filers or 500,000 for joint filers when ownership and use tests and other rules are met.

Does this include state tax or NIIT?

No. The Multicalify sketch is federal long-term capital gains on the taxable slice only.

Is this the same as a closing costs calculator?

No. Closing costs estimate settlement fees. This tool estimates taxable gain after a sale, though selling costs can reduce gain.

Can investment property use this exclusion?

Section 121 is for a qualifying principal residence. Investment property follows different rules and may need other planning tools or professional advice.

Is this tax advice?

No. Results are educational estimates only and are not tax, legal, or financial advice.