Rental Property Sale Tax Calculator — Selling a rental? See each layer of the tax.
Choose “A rental or investment property”, then enter the price, your basis, the depreciation you took and your income. See the 25% layer, the rest of the gain, the 3.8% surtax and your state, and what a 1031 exchange would put off.
- Free to start
- No sign-up to try
- Depreciation at 25%
- Selling a business?See how it works for a business sale →
Every layer of a rental’s tax
Depreciation comes back first, at up to 25%. The rest is a long-term gain, and as investment income it carries the 3.8% surtax. Then what a 1031 exchange or a note would change.
What you keep
Depreciation at 25%, the rest at 15% or 20%.
Enter the depreciation you took and it is taxed at up to 25%, the rest of the gain at the capital gains rates, with the 3.8% surtax and your state on top. How it’s worked out shows each layer.
“Depreciation on buildings, at up to 25% $170,000”How it’s worked out, on the “Selling a rental property” example
- Depreciation at up to 25%
- The 3.8% surtax and your state
- What you keep, and what to set aside


What you keep 1/2
A 1031 exchange
What trading up would put off.
Put the whole price into another investment property through a qualified intermediary and the tax waits until you sell that one. The calculator shows how much that puts off, and what carrying a note for the buyer over four years would save instead.
“Trade it for another property (a 1031 exchange) · Puts off about $116,252”Ways to keep more, on the rental example
- What a 1031 exchange would put off
- Seller financing over several years
- An opportunity fund

About the Rental Property Sale Tax Calculator
Selling a rental is taxed in layers. The depreciation you took, or could have taken, comes back first, at up to 25% federally. The rest of the gain is a long-term capital gain at 0%, 15% or 20%, and as investment income it counts for the 3.8% surtax once your income passes $200,000 ($250,000 married). Most states tax all of it.
Enter the price, your basis after depreciation, the depreciation you took, the selling costs and your income, and the calculator shows each layer, what you keep and what to set aside. Under “Ways to keep more” it shows what a 1031 exchange into another property would put off, and what carrying a note for the buyer over several years would save.
What you can do
- Depreciation taxed at up to 25%, the rest at 0%, 15% or 20%
- The 3.8% surtax and your state
- What a 1031 exchange would put off
- Seller financing over several years, taxed year by year
- What you keep, and what to set aside
Frequently asked questions
How is depreciation taxed when I sell a rental?
Depreciation taken on the building (unrecaptured section 1250 gain) is taxed at up to 25% federally, instead of the 15% or 20% on the rest of the gain. It counts whether or not you claimed it: the IRS reduces your basis by the depreciation you were allowed.
How does a 1031 exchange work?
Sell through a qualified intermediary, name the replacement property within 45 days and buy it within 180, and put the whole price into it: the tax waits until you sell the new property. Any cash you keep out is taxed now, and the new property takes over the old one’s lower basis.
Does the 3.8% surtax apply to a rental sale?
Usually, once your income passes $200,000 ($250,000 married filing jointly), because rental gain is investment income. A real estate professional who materially participates can be exempt; the calculator assumes you are not.
Related calculators and tools
Other calculators and tools that pair well with the Rental Property Sale Tax Calculator.
Photos by Ollie Singleton, Nikita Khavkin and Jakub Żerdzicki on Unsplash.


