Back to Glossary

Capital Gains Tax

Reviewed and updated November 25, 2026 by DealCalcPro. Sources are listed at the end of this entry. How we write and review

The question it answers

How much federal tax might selling this rental trigger?

What Capital Gains Tax means

Capital gains tax is the tax owed on the profit from selling a capital asset. For federal purposes, gains on assets held more than one year are long-term and are taxed at 0%, 15% or 20% depending on taxable income and filing status. Gains on assets held one year or less are short-term and taxed as ordinary income.

Rental property adds a layer. The part of the gain that comes from depreciation on the building, called unrecaptured section 1250 gain, is taxed at a maximum rate of 25%. The rest is taxed at the regular long-term rates.

Higher-income investors may also owe the 3.8% net investment income tax, which applies to net gains from selling real estate and to rents, unless an exception applies. The MAGI thresholds are $200,000 for single filers, $250,000 for married filing jointly and $125,000 for married filing separately. State income tax may apply on top of all of this.

How it changes a decision

The tax estimate changes the real net proceeds of a sale, and that changes whether selling, holding, refinancing or exchanging is best. Comparing a sale with a 1031 exchange starts with estimating the tax that would be deferred. Timing matters too: waiting past one year of ownership, or selling in a lower-income year, can change the rate. The brackets and whether the NIIT applies are questions for a CPA.

Worked example

Hypothetical: selling a rental condo after eight years

A hypothetical investor sells a rental condo after eight years. The investor is assumed to be in the 15% long-term bracket, to pay 25% on the depreciation portion, and to owe the NIIT on the full gain. All three are simplifying assumptions.

Inputs

Condo purchase price
$190,000
Capital improvements
$15,000
Depreciation taken
$48,000
Sale price
$305,000
Selling costs
$18,300
Rate applied to depreciation portion (25% maximum)
25%
Long-term capital gain rate (assumed bracket)
15%
Net investment income tax, if it applies
3.8%

Steps

  1. Adjusted basis: $157,000Formula: = purchase price + improvements − depreciation
  2. Net sale price: $286,700Formula: = sale price − selling costs
  3. Realized gain: $129,700Formula: = greater of (net sale price − adjusted basis, 0)
  4. Depreciation portion: $48,000Formula: = lower of (depreciation, realized gain)
  5. Remaining long term gain: $81,700Formula: = realized gain − depreciation portion
  6. Tax on depreciation portion: $12,000Formula: = depreciation portion × recapture rate
  7. Tax on remaining gain: $12,255Formula: = remaining long term gain × ltcg rate
  8. NIIT estimate: $4,928.60Formula: = realized gain × niit rate
  9. Federal estimate: $29,183.60Formula: = tax on depreciation portion + tax on remaining gain + niit estimate

Result: The realized gain is $129,700, and the estimated federal tax is $29,183.60.

Depreciation of $48,000 lowered taxes during ownership, but it raises the gain and is taxed at up to 25% now. The NIIT here is applied to the whole gain; in practice it is 3.8% of the lesser of net investment income or the MAGI excess over the threshold. State tax is not included.

Common mistakes

  • Treating an asset held exactly one year as long-term. Long-term requires more than one year.
  • Leaving out the depreciation portion and its higher maximum rate.
  • Ignoring the NIIT for higher-income sellers.
  • Forgetting state income tax in net proceeds.

Limitations

  • Actual rates depend on total income, filing status and the full tax return.
  • Rates and thresholds change by law and are adjusted over time, so use the current year's figures.

How it differs from related terms

Capital Gains
Capital gains are the profit. The tax is calculated on that profit.
Depreciation Recapture
Recapture is the depreciation part of the gain, taxed at a maximum of 25% for real property.
1031 Exchange
An exchange can defer the tax on a qualifying sale.
Rules vary by locationFederal rates and thresholds are national, but state and some local income taxes on gains vary widely. Check with a CPA in the investor's state.

Run the numbers

Related terms

Sources

  1. Internal Revenue Service, Topic no. 409, Capital gains and losses. Supports: Long-term vs short-term definitions, 0/15/20% long-term rates, 25% maximum on unrecaptured section 1250 gain, gain measured from adjusted basis
  2. Internal Revenue Service, Topic no. 559, Net investment income tax. Supports: 3.8% net investment income tax, MAGI thresholds of $200,000, $250,000 and $125,000, and inclusion of rents and gains from real estate

Examples are hypothetical and for education only. This page is not legal, tax, lending or investment advice; rules change, so check current sources or a licensed professional before relying on them.