2026 & 2027 guide
How Selling a Rental Property Is Taxed in 2026 and 2027
When you sell a rental, you're taxed on the gain over your adjusted basis: what you paid plus closing costs and improvements, minus every dollar of depreciation you took or could have taken. That gain is split into pieces taxed at different rates. The calculator above follows IRS Publication 544, Publication 527 and the Schedule D instructions.
The sale, step by step
- Adjusted basis. Purchase price + purchase closing costs + capital improvements − depreciation. Land is never depreciated, so its share of the cost stays in your basis in full.
- Gain. Sale price − selling costs (commissions, transfer taxes, title fees) − adjusted basis.
- Split the gain. The part equal to your depreciation (up to the total gain) is unrecaptured section 1250 gain. The rest is long-term capital gain if you owned the property more than a year.
- Apply the rates. Federal tax on each piece, the 3.8% Net Investment Income Tax if your income is high enough, then state income tax.
| Piece of the gain | Federal rate | Where it's reported |
|---|---|---|
| Unrecaptured §1250 gain (the depreciation) | Your ordinary bracket rate, 25% maximum | Form 4797, then the Schedule D worksheet |
| Remaining long-term gain | 0%, 15% or 20% | Form 4797, then Schedule D |
| Gain if held 1 year or less | Ordinary rates, 10% to 37% | Form 4797, Part II |
| Net Investment Income Tax | 3.8% on the lesser of the gain or MAGI above $200,000 / $250,000 / $125,000 | Form 8960 |
What depreciation recapture really is
Each full year you own a residential rental, you deduct 1/27.5 of the building's basis (3.636%). Those deductions lower your basis, so they come back as gain when you sell. For residential rental property placed in service after 1986, which is depreciated straight-line, that gain isn't fully ordinary income: it's unrecaptured section 1250 gain, taxed at your regular bracket rate but never more than 25%. So 25% is a ceiling, not a flat rate: someone in the 12% bracket pays 12%. It also fills your brackets first, and the rest of the gain is taxed at 0%/15%/20% on top of it.
1031 exchanges and boot
Under section 1031 you can postpone the tax by exchanging your rental for other real property held for investment or business use. Since 2018 only real property qualifies, and property held primarily for sale doesn't. You must identify the replacement within 45 days of the sale and receive it within 180 days (or by your return's due date, if earlier), and the proceeds must sit with a qualified intermediary, not with you (IRS like-kind exchange tips).
You owe tax now on the smaller of your gain or the boot you receive: cash you take out, proceeds left unspent, and net debt relief, meaning the old mortgage minus the new one minus any cash you add. Under the Form 8824 instructions, cash you add offsets debt relief but never cash you receive. The calculator treats the taxable part as depreciation first, because the Unrecaptured Section 1250 Gain Worksheet takes the smaller of your depreciation or the gain you report.
It's deferral, not forgiveness. The replacement's basis is its price minus the deferred gain, so you depreciate less and the gain is still there when you sell in a taxable sale. Under current law, property held until death generally gets a basis equal to its fair market value for the heirs.
Passive losses, NIIT and state tax
If your rental produced losses you couldn't deduct, selling your entire interest in a fully taxable sale to an unrelated buyer releases them, and they offset ordinary income. In a 1031 exchange they generally stay suspended. Gain on investment real estate is net investment income for the 3.8% NIIT unless the property was held in a trade or business that isn't passive for you, which for most landlords means qualifying as a real estate professional (more than half your working time and more than 750 hours in real property businesses you materially participate in) and materially participating in the rental. Most states tax the whole gain as ordinary income; Washington's capital gains excise tax exempts real estate.
Sizing up the next property? Try the rental cash flow calculator or the BRRRR analyzer. For a home you lived in, use the home sale capital gains tax calculator; for shares, the stock capital gains tax calculator.
Frequently asked questions
Is depreciation recapture on a rental taxed at 25%?
Not necessarily. For residential rental property depreciated straight-line, the depreciation part of your gain is unrecaptured section 1250 gain. It is taxed at your ordinary bracket rate, but never more than 25%. If that gain falls in the 10%, 12% or 22% bracket, you pay that lower rate instead.
Do I owe recapture tax if I never claimed depreciation?
Yes. Your basis is reduced by the depreciation allowed or allowable, which means the amount you could have claimed even if you did not claim it. Skipping depreciation does not avoid the tax at sale; it only gives up the yearly deductions. The calculator uses the larger of the depreciation you enter and the straight-line amount for your dates.
How is depreciation on a rental property calculated?
Residential rental buildings are depreciated straight-line over 27.5 years, so a full year is 3.636% of the building's basis. Under the mid-month convention you get half a month for the month the property is placed in service and half a month for the month you sell. Land is not depreciable, so its share of the cost is left out.
What is boot in a 1031 exchange?
Boot is value you receive that is not like-kind real property: cash you take out, sale proceeds left unspent, and net debt relief when the new mortgage is smaller than the old one and you do not add cash to make up the difference. You owe tax now on the smaller of your gain or the boot.
Does a 1031 exchange eliminate the tax?
No, it postpones it. The deferred gain carries into the replacement property as a lower basis, so it is taxed when you later sell that property in a taxable sale, and the depreciation you can claim on it is smaller. Under current law, property held until death generally gets a basis equal to its fair market value for the heirs.
Do I pay the 3.8% Net Investment Income Tax when I sell a rental?
Usually, if your modified AGI including the gain is above $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). Gain on investment real estate is net investment income unless the property was held in a trade or business that is not a passive activity for you, which for most landlords requires real estate professional status and material participation.
Is the tax on selling a rental different in 2027?
The rules are the same: the 25% maximum rate on unrecaptured section 1250 gain, the 27.5-year depreciation schedule and the 3.8% NIIT thresholds are set by statute and do not change. The brackets the gain stacks into are adjusted for inflation, though. For 2027 the 0% long-term rate covers taxable income up to $51,050 single ($102,100 married filing jointly) and the 20% rate starts above $563,200 ($633,600 joint), under Rev. Proc. 2026-35. Pick 2027 in the Tax Year menu to estimate a sale that closes next year.