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
| Step | How it is worked out |
|---|---|
| Amount realized | Sale price less selling costs |
| Adjusted basis | Original purchase price plus improvements, less depreciation |
| Gain | Amount realized less adjusted basis |
| Unrecaptured section 1250 gain | The part of the gain that comes from depreciation, taxed at up to 25% |
| Remaining gain | Gain less the depreciation part, taxed at the 0%, 15% or 20% rate you select |
| Net investment income tax | 3.8% of the gain, if you tick the box |
| State tax | The 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.