The tax implications of selling a rental property come down to four layers: depreciation taxed at up to 25% (or ordinary rates on some components), long-term capital gain at 0%, 15%, or 20%, a possible 3.8% net investment income tax, and state tax where the property sits. Suspended passive losses released by the sale can offset a good part of it.
Most surprises come from the first layer. People remember what they paid and forget that depreciation has been lowering their basis every year.
How is the gain on a rental property sale calculated?
Your gain is the amount realized (sale price minus selling costs such as commissions and title fees) minus your adjusted basis. Adjusted basis is what you paid, plus capitalized closing costs and improvements, minus all depreciation.
The depreciation that counts is the amount “allowed or allowable” (§1016(a)(2)). If a prior preparer never claimed depreciation, your basis is reduced anyway, and you pay tax on depreciation you never got the benefit of.
That is fixable before the sale return is filed. When depreciation was missed for two or more years, a Form 3115 accounting method change catches up the missed depreciation in one year without amending old returns, which I explain in catch-up depreciation with Form 3115.
What tax rates apply when you sell a rental property?
A rental held more than one year is taxed in layers, from the highest rate to the lowest:
- Ordinary income rates on depreciation taken on §1245 property, such as appliances, carpet, and other components a cost segregation study broke out
- Ordinary income rates on bonus or accelerated depreciation in excess of straight-line on §1250 property, such as 15-year land improvements
- Up to 25% on unrecaptured §1250 gain, which is the straight-line depreciation on the building
- 0%, 15%, or 20% on the remaining gain as long-term capital gain
For 2026, the 20% rate starts above $613,700 of taxable income for joint filers and $545,500 for single filers. A rental held one year or less is taxed entirely at ordinary rates.
What is depreciation recapture on a rental property?
Depreciation recapture is the part of your gain equal to depreciation you took, taxed at higher rates than ordinary capital gain. On a residential building depreciated straight-line, it is “unrecaptured §1250 gain,” taxed at your ordinary rate but capped at 25% (§1(h)(1)(E)).
If you did a cost segregation study, the 5- and 7-year components are §1245 property, and the depreciation on them comes back as ordinary income, up to the gain allocated to those components. That is the price of front-loading deductions.
There are ways to defer or eliminate recapture rather than pay it. I walk through them in how to avoid depreciation recapture.
Does the 3.8% net investment income tax apply to a rental sale?
Usually yes. Gain on a rental sale is net investment income under §1411 unless the rental is a nonpassive trade or business, and the 3.8% applies to the lesser of that income or your modified AGI above $200,000 single, $250,000 married filing jointly, or $125,000 married filing separately.
Those thresholds are not indexed for inflation, and a large gain can push you over them in a year your income is normally below.
Real estate professionals who spend more than 500 hours in their rental activities have a safe harbor that treats the rental income and gain as business income, outside NIIT (Reg. 1.1411-4(g)(7)). If you are close, document it in the year of sale.
What happens to suspended passive losses when you sell?
A fully taxable sale of your entire interest in a rental to an unrelated buyer releases all of that activity’s suspended passive losses (§469(g)). They become deductible against any income that year, not only the gain.
The losses also reduce net investment income, so they cut the 3.8% tax as well as regular tax. On an installment sale, they are released in proportion to the gain recognized each year.
A 1031 exchange or a sale to a related party does not release them. The details are in suspended passive losses on the sale of a rental.
Do you owe state tax when you sell a rental property?
It depends on where the property is and where you live. Texas has no personal income tax, so a Texas resident selling a Texas rental owes no state income tax on the gain.
A Texas resident selling a rental in another state generally owes that state’s nonresident income tax on the gain, because states tax income from real property located inside their borders. Several states also require the title company to withhold a percentage of the price at closing from nonresident sellers.
An investor in an income-tax state who sells a Texas property owes Texas nothing, but the home state taxes the gain.
What does the tax on a rental sale look like in real numbers?
Take a single investor whose salary puts her in the 32% bracket, with $240,000 of other taxable income. She bought a rental for $400,000 including closing costs, with $80,000 allocated to land, and has taken $100,000 of depreciation.
- Sale price $600,000, minus $36,000 selling costs = $564,000 amount realized
- Adjusted basis: $400,000 − $100,000 = $300,000
- Gain: $564,000 − $300,000 = $264,000
- Unrecaptured §1250 gain: $100,000 × 25% = $25,000
- Remaining gain: $164,000 × 15% = $24,600 (her taxable income stays under $545,500)
- NIIT: $264,000 × 3.8% = $10,032
Total federal tax on the sale: $59,632. Texas adds nothing.
How do suspended losses change that example?
If the same property carries $30,000 of suspended passive losses, the sale frees all of it. Deducted inside her 32% bracket, that saves $9,600 of regular tax.
The released losses also reduce her net investment income from $264,000 to $234,000, cutting NIIT by $1,140. The net federal cost of the sale drops from $59,632 to $48,892.
This is why I ask for prior-year Form 8582 worksheets before estimating tax on a sale. Suspended losses get lost when clients change preparers.
Can you defer or avoid the tax on a rental sale?
Yes. The three main options are a 1031 exchange, an installment sale, and holding the property until death.
A 1031 exchange defers the gain, including recapture, if you buy replacement real property of equal or greater value and reinvest all the net proceeds through a qualified intermediary. On a cost-segregated property, the §1245 components can still trigger ordinary recapture in an exchange (§1245(b)(4)), so run that number first. The deadlines are strict: identify within 45 days and close within 180, as laid out in the 1031 exchange timeline.
Holding until death gives your heirs a basis equal to fair market value (§1014), which wipes out both the gain and the recapture. In Texas, community property gets a step-up on both halves at the first spouse’s death.
Does an installment sale reduce taxes on a rental?
An installment sale spreads the capital gain over the years you collect payments, which can keep you in the 15% bracket and under the NIIT threshold in more of those years (§453).
It does not spread everything. Depreciation recapture taxed as ordinary income under §1245 and §1250 is recognized in the year of sale even if you received no cash that year (§453(i)). Unrecaptured §1250 gain is taxed first as payments come in, before the 15% or 20% gain (Reg. 1.453-12).
On a heavily cost-segregated property, that year-one recapture can be large, so I run both versions before a client agrees to carry a note.
If you are thinking about selling a rental, talk to me before you sign the contract, while every option is still open. Book a call or call (832) 594-0339. Real estate is most of my practice at Whetzel CPA; you can review my real estate CPA services and published fees first.
General information under IRC §§1(h), 453, 469(g), 1014, 1016, 1031, 1245, 1250 and 1411, and Regs. 1.453-12 and 1.1411-4, current as of October 2026. Not advice for your specific situation.