Real Estate & PropertyCost Basis & Exclusion Model

Capital Gains on Home Sale Calculator

Calculate your estimated adjusted cost basis, net amount realized, realized capital gain, and net gain after applying a user-entered exclusion on a home sale.

Cost Basis, Selling Price & Exclusion

Common Section 121 thresholds: $250,000 (single) or $500,000 (married filing jointly), or $0 if non-qualifying.

Educational Capital Gain Estimate
Gain After User-Entered Exclusion
$30,000.00

Total Realized Capital Gain: $280,000.00

Estimated Adjusted Cost Basis$360,000.00
Net Selling Proceeds Realized$640,000.00
Exclusion Applied$250,000.00
Educational Notice: This calculator provides an educational estimate of adjusted cost basis and capital gain and is not formal tax or legal advice. Consult a qualified CPA regarding Section 121 eligibility and depreciation recapture.

Adjusted Cost Basis & Realized Gain Formula

Adjusted Cost Basis = Original Purchase Price + Capital Improvements + Basis Adjustments | Realized Gain = (Selling Price โˆ’ Selling Expenses) โˆ’ Adjusted Cost Basis
  • Amount Realized = Home Selling Price minus Selling Expenses (agent commissions, transfer taxes, legal/title fees).
  • Estimated Realized Gain = Amount Realized minus Estimated Adjusted Cost Basis.
  • Gain After Exclusion = max(0, Realized Gain โˆ’ User-Entered Exclusion Amount).

Step-by-Step Worked Example

Scenario: Selling a primary residence for $680,000 that was purchased for $310,000 with $45,000 in capital improvements, $5,000 in purchase basis adjustments, $40,000 in selling costs, and a $250,000 single-filer exclusion

Calculation Steps:

  1. Estimated Adjusted Cost Basis = $310,000 + $45,000 + $5,000 = $360,000
  2. Realized Capital Gain = $640,000 โˆ’ $360,000 = $280,000
  3. Gain After Exclusion = $280,000 โˆ’ $250,000 = $30,000
Result: Your total realized gain is $280,000.00, leaving $30,000.00 in net gain after the $250,000.00 exclusion.

How to Use This Calculator

  1. 1Enter your original purchase price and documented capital improvements (such as room additions, new roof, HVAC replacement, or kitchen remodel).
  2. 2Enter your expected selling price and total selling expenses (commissions, title, transfer taxes).
  3. 3Enter an applicable gain exclusion amount (e.g., $250,000, $500,000, or $0 if the property does not qualify) and any other basis adjustments.

Assumptions & Limitations

  • Provided strictly as an educational estimate of cost basis and realized gain; this is not tax or legal advice.
  • Routine repairs and maintenance do not increase cost basisโ€”only permanent capital improvements add to basis.
  • Investment properties or homes with prior rental depreciation may be subject to depreciation recapture rules.

Frequently Asked Questions

Does my remaining mortgage balance affect my capital gain on a home sale?

No. Capital gain is determined by your Selling Price (less selling expenses) minus your Adjusted Cost Basis (original price plus improvements), regardless of whether you have a large mortgage or own the home free and clear.

What is the Section 121 home sale exclusion?

Under IRS Section 121, homeowners who owned and used their home as a primary residence for at least 2 of the 5 years prior to sale may qualify to exclude up to $250,000 of capital gain ($500,000 for married couples filing jointly). Always verify eligibility with a CPA.

Related Cost Calculators

Real Estate Commission Calculator

Calculate total real estate agent commission dollars, additional broker transaction fees, and gross seller proceeds before payoff.

Home Sale Proceeds Calculator

Estimate net seller walkaway proceeds after deducting real estate commissions, seller closing costs, staging/repairs, and mortgage payoff.

Seller Closing Cost Calculator

Calculate itemized seller closing costs including agent commissions, owner title insurance, settlement fees, and state/county transfer taxes.

Real Estate Appreciation Calculator

Project future property value, total dollar appreciation gain, and cumulative compound percentage growth over any holding period.