Free tool

Capital Gains Tax Estimator

See what selling an investment property could cost in tax without an exchange, and how much a full 1031 exchange could defer.

For property held longer than one year. The rate on your gain depends on your whole tax return, which this tool does not see.

Your estimate appears here.Enter the sale price and what you paid to see the gain and an estimate of the tax a sale could trigger.

What this estimator shows

When you sell investment real estate you have owned for more than a year, the federal tax on the gain usually comes in up to three layers, and your state may add a fourth. This estimator adds them up so you can see the size of the bill a taxable sale could produce. A 1031 exchange defers that tax. It does not erase it: the deferred gain carries into the replacement property through a lower basis.

How the math works

StepHow it is worked out
Amount realizedSale price less selling costs
Adjusted basisOriginal purchase price plus improvements, less depreciation
GainAmount realized less adjusted basis
Unrecaptured section 1250 gainThe part of the gain that comes from depreciation, taxed at up to 25%
Remaining gainGain less the depreciation part, taxed at the 0%, 15% or 20% rate you select
Net investment income tax3.8% of the gain, if you tick the box
State taxThe gain times the state rate you enter

Depreciation comes back at a higher rate

Depreciation lowers your basis each year you own a building, which makes your gain larger when you sell. The IRS calls the part of the gain created by straight-line depreciation on real property unrecaptured section 1250 gain. IRS Topic 409 states that it is taxed at a maximum rate of 25%. The estimator uses the full 25%, so the figure is a ceiling. If your ordinary bracket is lower, your actual rate on that part is lower.

The rate on the rest

The remaining long-term gain is taxed at 0%, 15% or 20%, depending on your taxable income for the year. The IRS publishes the income thresholds each year. A large one-time gain can push part of your income into a higher band. The estimator does not try to work this out. You pick the rate, ideally after asking your CPA which rate most of the gain would fall under.

Net investment income tax

The net investment income tax is a separate 3.8% tax. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds a threshold set by filing status, which the IRS lists as $250,000 for married filing jointly and $200,000 for single or head of household filers. Whether gain on your property counts as net investment income depends on how the property was used and your role in it, which your CPA can confirm. When you tick the box, the estimator applies 3.8% to the whole gain, which is the highest this tax could be on the sale.

State tax

States differ widely. Some have no income tax, some tax gains at a flat rate, and some tax them as ordinary income. Enter the rate that applies to you. If you are selling California property, the California clawback estimator covers a rule that follows the gain out of state.

A worked example

You bought a building for $1,200,000, added $100,000 of improvements and took $300,000 of depreciation. Your adjusted basis is $1,000,000. You sell for $2,000,000 and pay $100,000 of selling costs, so the amount realized is $1,900,000 and the gain is $900,000.

  • Unrecaptured section 1250 gain: $300,000 at 25% is $75,000.
  • Remaining gain: $600,000 at a 20% rate is $120,000.
  • Net investment income tax: $900,000 at 3.8% is $34,200.
  • State tax at an entered rate of 5%: $45,000.
  • Estimated total: $274,200, or about 30% of the gain.

In a full exchange, where you buy equal or greater value and reinvest all of the equity, that $274,200 is deferred and stays invested in the replacement property. The boot calculator shows the two targets you need to meet.

Assumptions and limits

  • Long-term gain only. Property held one year or less is taxed at ordinary rates.
  • Real property, straight-line depreciation. If a cost segregation study moved part of your building into shorter-lived property, the depreciation on those parts can be recaptured at ordinary rates under a different rule. The estimator does not model that.
  • No brackets. It applies one federal rate to all of the remaining gain and the maximum 25% rate to the depreciation part.
  • No losses or carryovers. Suspended passive losses, capital loss carryovers and installment sales can all change the result.
  • State rules are yours to enter. The estimator applies a single state rate to the whole gain.
  • Deferral is not forgiveness. The amount shown as deferred becomes taxable if you later sell the replacement property in a taxable sale.

For the basics of how deferral works, read what a 1031 exchange is. For the kind of replacement property Investor Hub offers, see new-construction NNN properties. To check your timing, use the 1031 deadline calculator.

General information, not tax, legal or investment advice. Your qualified intermediary, CPA and attorney confirm how any rule applies to you.

FAQ

Questions About This Calculator

How is the gain on an investment property worked out?

Take the sale price less selling costs, then subtract your adjusted basis. Adjusted basis is what you paid plus capital improvements, less the depreciation you took or were allowed to take.

What is unrecaptured section 1250 gain?

It is the part of your gain that comes from straight-line depreciation on real property. The IRS taxes it at a maximum rate of 25%, which is higher than the 15% or 20% rate that applies to most long-term gain.

Which federal capital gains rate should I pick?

The rate is 0%, 15% or 20% depending on your taxable income for the year of sale, and a large gain can move you into a higher band. Ask your CPA which rate most of your gain would fall under and select that one.

Does the 3.8% net investment income tax apply to a property sale?

It can. The tax applies to net investment income when your modified adjusted gross income is above a threshold set by filing status. Your CPA can confirm whether the gain on your property counts and whether the tax applies to you.

Does a 1031 exchange make the tax go away?

No. A 1031 exchange is tax-deferred. The gain carries into the replacement property and becomes taxable if you later sell that property in a taxable sale.

Does Investor Hub give tax advice?

No. Investor Hub does not give tax or legal advice. This estimator is arithmetic on the figures you enter, and your CPA confirms what applies to your return.

Get started

Tell Us What You Want to Own

Share your budget, your timing and the kind of property you have in mind. A member of the Investor Hub team will follow up personally to talk through options that fit.

  • No obligation and no cost to talk
  • Properties matched to your criteria and timeline
  • 1031 deadlines planned from day one