How tax on a rental sale is calculated
Your adjusted basis is what you paid plus capital improvements, minus the depreciation you've taken (or were allowed to take). The difference between the net sale price and the adjusted basis is your gain. For property held more than one year, the gain is split into two parts:
- Unrecaptured Section 1250 gain: the part of the gain equal to depreciation, taxed at your ordinary rate up to a maximum federal rate of 25%.
- Long-term capital gain: the rest, taxed federally at 0%, 15% or 20% depending on your taxable income.
Higher-income taxpayers may also owe the 3.8% net investment income tax. Most states tax the gain as well. Set NIIT or the state rate to 0 if they don't apply to you.
Worked example
A rental bought for $450,000 with $100,000 of depreciation taken has an adjusted basis of $350,000. It sells for $600,000 with 6% selling costs, a net of $564,000 and a gain of $214,000.
$100,000 is recapture, taxed at 25% ($25,000). The remaining $114,000 is long-term gain at 15% ($17,100). NIIT at 3.8% adds about $8,132 and a 5% state tax about $10,700. Total estimated tax is about $60,900, an effective rate of about 28.5% of the gain.
Ways investors reduce or defer the tax
- 1031 exchange: reinvest in another investment property to defer the gain. See the 1031 Exchange Calculator and 1031 rules and timeline.
- Hold until death: under current law, heirs generally receive a stepped-up basis.
- Installment sale: spreading payments over years can spread the gain.
- Track improvements: documented capital improvements increase your basis and reduce the gain.
This calculator is an estimate for education. It doesn't cover passive loss carryforwards, short-term holdings, partial-year residence, state-specific rules or the alternative minimum tax.
Frequently asked questions
What is depreciation recapture?
When you sell a rental, the part of your gain that comes from depreciation you deducted is taxed as unrecaptured Section 1250 gain, at a federal rate of up to 25%.
Do I pay recapture if I never claimed depreciation?
Generally yes. The IRS reduces basis by depreciation "allowed or allowable", so skipping the deduction does not avoid recapture.
What capital gains rate applies to me?
Federal long-term rates are 0%, 15% or 20% depending on taxable income and filing status. Check current IRS thresholds or ask a tax professional.
Can a 1031 exchange avoid this tax?
A properly structured 1031 exchange defers both the capital gain and the recapture into the replacement property.
Sources
- IRS Topic No. 409: Capital gains and losses
- IRS Publication 544: Sales and Other Dispositions of Assets
- IRS: Net Investment Income Tax
Last reviewed November 4, 2026. Formulas and assumptions are described in our methodology. Results are estimates for education, not financial, tax or lending advice.