1031 Exchange Capital Gains Tax Calculator
Home  /  Calculators  /  1031 Exchange Capital Gains Tax Calculator
1031 Exchange Calculator

1031 Exchange Capital Gains Tax Calculator

Estimate the federal and state tax you'd owe on a sale — capital gains, depreciation recapture, and the 3.8% NIIT — and the amount a 1031 exchange lets you defer.

Jerry Baker · Updated June 2026 · Free interactive tool
1

Your sale

Property basis
Sale & tax rates
2

Estimated tax (deferred by a 1031)

Adjusted basis
Total gain
Depreciation recapture
Long-term capital gain
Federal tax
NIIT
State tax
Total tax a 1031 defers

Browse replacement property →
Understanding the tax

Three layers of tax on a sale

When you sell appreciated investment property without a 1031 exchange, the IRS collects on three fronts. Most investors are surprised by how large the combined bill can be — and how much of it a well-executed exchange can defer indefinitely.

  • Long-term capital gains. Federally taxed at 0%, 15%, or 20% depending on your taxable income. Most investors selling appreciated property fall in the 15% or 20% bracket. State taxes add another layer on top.
  • Unrecaptured §1250 depreciation recapture. The depreciation deductions you claimed over the years are "recaptured" at up to 25% — higher than the capital-gains rate — and this is often the biggest surprise at closing.
  • 3.8% net investment income tax (NIIT). An additional Medicare surtax applies to net investment income for higher earners (modified AGI above $200,000 single / $250,000 married filing jointly). It applies to the full gain.

How a 1031 defers all three

A fully-qualified 1031 exchange defers every layer listed above — federal capital gains, depreciation recapture, NIIT, and most state tax — as long as you reinvest all your equity into like-kind replacement property and replace at least as much debt as you paid off. The tax isn't forgiven, but it can be deferred indefinitely and potentially eliminated at death via a stepped-up basis for heirs.

Educational estimate only. This tool is for general illustration and is not tax, legal, or investment advice. It uses simplifying assumptions and the figures you enter, which may not reflect your situation or current law; depreciation recapture, net investment income tax, state taxes, and other items can change the result materially. Figures are illustrative and not guaranteed. Consult your own qualified tax and legal advisors before acting. Not an offer or solicitation. DST interests are sold only to accredited investors via private placement memorandum. Securities offered through Aurora Securities, Inc. (ASI), member FINRA/SIPC; Baker 1031 Investments is independent of ASI.

Frequently asked questions

What is depreciation recapture?

The portion of your gain attributable to the depreciation you deducted over the years. It's taxed at up to 25% — higher than the long-term capital-gains rate — and is often the largest surprise in a sale.

Does a 1031 exchange defer all of this tax?

Yes. A fully-qualified 1031 exchange defers federal capital gains, depreciation recapture, and the 3.8% net investment income tax, plus most state tax, as long as you reinvest all your equity and replace your debt.

What capital-gains rate should I use?

Long-term gains are taxed federally at 0%, 15%, or 20% depending on taxable income; most investors selling appreciated property are at 15% or 20%. Use your own bracket or ask your CPA.

Related tools