RentWiseCalc

Real Estate Capital Gains Calculator

This calculator estimates the US federal capital gains tax on a real estate sale, covering both primary residences and investment properties. It applies the Section 121 primary residence exclusion (up to $250,000 single / $500,000 married), long-term capital gains rates, and depreciation recapture tax under IRS Section 1250. Results are estimates based on published IRS rules — individual tax situations vary. Always consult a qualified CPA or tax professional before making decisions based on these figures. Sources: IRS Publication 523 (primary residences) and Publication 544 (investment property).

$

Original price paid for the property

$

Title, legal, recording fees added to basis

$

Major renovations added to cost basis

$
%

Agent commissions + fees as % of sale price (typically 6–8%)

$

Total depreciation claimed during ownership (see Depreciation Calculator)

%

For depreciation recapture — capped at 25% per IRS Section 1250

Net Proceeds After Tax

$448,250.00

Estimated Capital Gains Tax (15%)

$21,750.00

Depreciation Recapture Tax

$0.00

Taxable Capital Gain (after exclusion)

$145,000.00

Gain Before Exclusion

$145,000.00

Primary Residence Exclusion

N/A (investment property)

Adjusted Cost Basis

$325,000.00

Estimate only. Uses 15% long-term CGT rate. Excludes state taxes, NIIT (3.8%), and short-term gains treatment. Consult a CPA before making tax decisions.

How to use this calculator

  1. 1

    Enter purchase details

    Enter the original purchase price plus any purchase closing costs (title, legal fees, recording) that were not deducted at the time of purchase. These form your adjusted cost basis.

  2. 2

    Enter capital improvements

    Add the total cost of major improvements made during ownership (additions, roof replacements, HVAC systems). Routine repairs and maintenance are not added to basis.

  3. 3

    Enter sale price and closing costs

    Enter the expected sale price. Sale closing costs (agent commissions, transfer taxes, title fees) are entered as a percentage of the sale price — typically 6–8% for sellers in the US. These reduce your net proceeds and taxable gain.

  4. 4

    Select property type and filing status

    Choose "Primary Residence" if you have lived in the home as your main residence for at least 2 of the last 5 years — this unlocks the Section 121 exclusion. Choose your IRS filing status to apply the correct exclusion amount.

  5. 5

    Enter years owned and accumulated depreciation

    Years owned determines whether you qualify for long-term rates (1+ year). For investment properties, enter the total depreciation claimed over the holding period — this is subject to recapture tax at your ordinary rate (up to 25%).

  6. 6

    Review the tax estimate

    The calculator shows your net sale proceeds after taxes, estimated capital gains tax, depreciation recapture tax, and taxable gain. These are estimates using a 15% long-term CGT rate — your actual rate depends on your total income and filing status.

Formula

Adjusted Basis = Purchase Price + Purchase Closing Costs + Improvements

Sale Proceeds (Net) = Sale Price − (Sale Price × Sale Closing Costs %)

Gain Before Exclusion = Net Sale Proceeds − Adjusted Basis

Primary Residence Exclusion = $250,000 (Single) or $500,000 (Married)
  — only if Primary Residence AND owned ≥ 2 years

Taxable Capital Gain = max(Gain − Exclusion, 0)

Depreciation Recapture Tax = Accumulated Depreciation × Ordinary Rate
  — investment property only; rate capped at 25%

Long-Term CGT (estimated) = Taxable Capital Gain × 15%
  — 0% for lower incomes, 20% for highest bracket

Net Proceeds = Sale Proceeds − Estimated CGT − Depreciation Recapture Tax

The adjusted basis starts with the purchase price plus capitalized acquisition costs and improvements. Selling costs reduce sale proceeds directly (lowering the taxable gain). For primary residences owned and used for 2+ of the last 5 years, Section 121 excludes up to $250,000 (single) or $500,000 (married) of gain from tax. Investment property gains are fully taxable at long-term rates (0%, 15%, or 20% based on income). Previously claimed depreciation is "recaptured" and taxed as ordinary income (capped at 25% under Section 1250 unrecaptured gain rules). This calculator uses 15% as the long-term CGT estimate (the most common rate) — actual rates depend on total taxable income. Source: IRS Publications 523 and 544.

Worked Example — Investment Property

Purchase Price: $300,000 Purchase Closing Costs: $5,000 Improvements: $20,000 Sale Price: $500,000 Sale Closing Costs: 6% Years Owned: 8 Property Type: Investment Property Filing Status: Single Accumulated Depreciation: $65,455 (approx 8 yrs × $8,182/yr) Ordinary Income Rate: 22% Adjusted Basis = $300,000 + $5,000 + $20,000 = $325,000 Net Sale Proceeds = $500,000 − ($500,000 × 6%) = $470,000 Gain Before Exclusion = $470,000 − $325,000 = $145,000 Exclusion = $0 (investment property) Taxable Gain = $145,000 Depreciation Recapture Tax = $65,455 × 22% = $14,400 (est.) Capital Gains Tax = $145,000 × 15% = $21,750 Net Proceeds After Tax = $470,000 − $21,750 − $14,400 = $433,850

Frequently Asked Questions

Related Tools