Skip to content

Taxes and retirement

Rental Property Sale Tax Calculator: Capital Gains, Recapture and 1031

2026 federal rates on a rental sale

Depreciation part
Ordinary rate, 25% maximum
Rest of the gain
0%, 15% or 20%
20% starts above
$613,700 joint; $545,500 single
3.8% tax above
$250,000 joint; $200,000 single
Defer it
1031 exchange or opportunity zone fund

Rev. Proc. 2025-32 and IRC sections 1(h) and 1411. Federal only.

A rental property sale tax calculator subtracts your adjusted basis from the net sale price.

The sale
What you paid

Use the depreciation you took or could have taken; it counts either way.

Your 2026 taxes
Filing status

Your 2026 taxable income without this sale.

Estimated tax if you sell

$157,611

Gain
$700,000
Tax / gain
22.5%
Amount realizedPrice minus selling costs
$1,400,000
Adjusted basisPaid + improvements - depreciation
$700,000
Depreciation part of the gainTaxed at your rate, 25% at most
$200,000
Rest of the gainTaxed at 0%, 15% or 20%
$500,000
Federal income tax on the sale
$133,587
Net investment income tax (3.8%)
$24,024
Cash after taxBefore paying off any loan
$1,242,389

Three routes, federal tax

Sell and payDue for 2026
$157,611
1031 exchange$700,000 of gain carried into the new property
$0 now$157,611 deferred, not forgiven
Opportunity zone fundInvest the $700,000 gain within 180 days, after Dec 31, 2026
$0 nowAbout $139,151 in 5 years ($102,231 for a rural fund)
  • Simplified: federal tax for 2026 only. No alternative minimum tax, suspended passive losses, installment sale, Section 1245 recapture on personal property or cost segregation, or Section 1231 losses from earlier years. Assumes you held the rental more than a year and took straight-line depreciation.
  • The 3.8% tax uses taxable income plus the 2026 standard deduction as your modified AGI; if you itemize, it may be higher. Only the gain counts as investment income here.
How this is calculated

Gain = sale price - selling costs - (purchase price + improvements - depreciation). The part equal to depreciation is unrecaptured Section 1250 gain; the rest is long-term gain.

Federal tax follows the IRS Schedule D Tax Worksheet (Internal Revenue Code section 1(h)) with 2026 brackets from Rev. Proc. 2025-32: the depreciation part is taxed at ordinary rates up to the top of the 24% bracket and 25% above it; the rest at 0%, 15% or 20%, stacked on your other income; never more than ordinary rates on everything. The tax shown is the difference the sale makes.

Net investment income tax = 3.8% of the smaller of the gain and modified AGI above $250,000 (married, joint), $125,000 (married, separate) or $200,000 (others). These thresholds are not indexed for inflation.

1031: the whole gain is deferred if you reinvest all the proceeds and replace the debt. Opportunity zone: for money invested after Dec 31, 2026, the gain is taxed 5 years after the investment (or on an earlier sale), with a 10% basis increase (30% for a rural fund); shown here at 2026 rates on 90% or 70% of the gain.

Illustration only, not tax advice. Federal estimate for 2026 with the simplifications listed above; ask a tax adviser before you sell.

Embed this calculator

Free to use on your site. Paste this code where the calculator should appear; keep the credit line under it.

The short answer

A rental property sale tax calculator subtracts your adjusted basis from the net sale price, taxes the depreciation part at your ordinary rate up to 25% and the rest at 0%, 15% or 20%, and adds the 3.8% net investment income tax. For 2026, a married couple with a $700,000 gain and $150,000 of other income owes about $157,611 federally; a 1031 exchange defers it.

2026 federal rates on a rental sale

Depreciation part
Ordinary rate, 25% maximum
Rest of the gain
0%, 15% or 20%
20% starts above
$613,700 joint; $545,500 single
3.8% tax above
$250,000 joint; $200,000 single
Defer it
1031 exchange or opportunity zone fund

Rev. Proc. 2025-32 and IRC sections 1(h) and 1411. Federal only.

  • Two parts of the gain. The depreciation part is taxed at your ordinary rate, 25% at most; the rest at 0%, 15% or 20%.
  • The 3.8% tax has fixed lines. $250,000 married filing jointly, $200,000 single, $125,000 married filing separately, not indexed.
  • Deferral is not forgiveness. A 1031 exchange carries the gain into the new property; an opportunity zone fund defers it five years.
  • Stacking matters. The gain sits on top of your other income, so a top-rate estimate usually overstates the bill.
In this guide · 4 sections
  1. How is the tax on selling a rental property calculated?
  2. How much tax do you pay on a $700,000 gain from a rental?
  3. How do a 1031 exchange and an opportunity zone fund change the tax?
  4. What else do people ask about tax on a rental property sale?

How it works

How is the tax on selling a rental property calculated?

The calculator finds your gain, splits it into two parts and taxes each at 2026 federal rates. Gain is the sale price minus selling costs, minus your adjusted basis: what you paid plus improvements, minus the depreciation you took. The part of the gain equal to that depreciation is "unrecaptured Section 1250 gain," taxed at your ordinary rate but no more than 25%. The rest is long-term capital gain at 0%, 15% or 20%, stacked on top of your other taxable income. A 3.8% net investment income tax applies above set income lines, and you can add a flat state rate.

It follows the IRS Schedule D Tax Worksheet, which applies Internal Revenue Code section 1(h), with the 2026 brackets in Rev. Proc. 2025-32. The tax shown is the difference the sale makes to your 2026 federal bill.

2026 federal lines the calculator uses, by filing status, from Rev. Proc. 2025-32 (sections 4.01, 4.03 and 4.14) and IRC section 1411. Taxable income unless noted.
Filing status0% gains up to15% gains up toTop of 24% bracket3.8% tax above (modified AGI)
Married filing jointly$98,900$613,700$403,550$250,000
Single$49,450$545,500$201,775$200,000
Head of household$66,200$579,600$201,750$200,000
Married filing separately$49,450$306,850$201,775$125,000

The 3.8% thresholds are written into the tax code and are not adjusted for inflation. The 25% cap on the depreciation part starts where the 24% bracket ends, so most sellers pay their ordinary rate on it.

Worked example

How much tax do you pay on a $700,000 gain from a rental?

About $157,611 of federal tax for a married couple with $150,000 of other taxable income, using the calculator's default numbers.

Worked example

A married couple sells a rental in 2026 for $1,450,000 and pays $50,000 of selling costs. They paid $900,000 and took $200,000 of depreciation, so their adjusted basis is $700,000 and the gain is $700,000: $200,000 from depreciation and $500,000 of long-term gain. Their other 2026 taxable income is $150,000.

Federal tax on the sale in 2026, married filing jointly, from the calculator. Illustrative, not tax advice.
RouteFederal tax nowWhat happens later
Sell and pay$157,611 ($133,587 income tax plus $24,024 net investment income tax)Settled; $1,242,389 left before any loan payoff
1031 exchange$0$700,000 of gain carried into the replacement property, deferred, not forgiven
Opportunity zone fund$0 on the $700,000 gain invested within 180 days, after Dec 31, 2026About $139,151 due 5 years after investing at 2026 rates ($102,231 for a rural fund)

22.5% of the gain goes to federal tax if they sell and pay.

Before state tax, suspended passive losses or cost segregation recapture. The depreciation part is taxed at 22% and 24% here because their income stays below the top of the 24% bracket.

Filing status changes the bill less than you might expect at this size: the same sale costs $157,608 for a single filer, $156,208 for a head of household and $170,829 for a married person filing separately, whose brackets and 3.8% threshold are narrower. A 5% state rate adds $35,000. That is below the $176,600 upper bound in the guide to what to do after selling a rental, which assumes top rates on every dollar.

Deferral

How do a 1031 exchange and an opportunity zone fund change the tax?

Both defer the tax rather than cancel it. A 1031 exchange carries the whole gain into a replacement property if you reinvest all the net proceeds and replace the debt; you identify the replacement within 45 days and close within 180, which the 1031 deadline calculator dates for you. The deferred tax comes due when you sell the replacement property in a taxable sale, and heirs who inherit it get a basis step-up. Delaware statutory trusts are one way to complete a 1031 exchange into a passive investment, covered in the guide to 1031 exchanges, DSTs and syndications.

An opportunity zone fund needs only the gain, not the full proceeds, invested within 180 days of the sale. For money invested after December 31, 2026, the gain is taxed five years after the investment or on an earlier sale, with a 10% basis increase after five years (30% for a qualified rural fund). IRS Notice 2026-40 says a gain realized in 2026 can use these rules if it is invested on or after January 1, 2027, within the 180 days. Hold the fund 10 years and you can elect to step up the fund investment's basis to fair market value when you sell it. The opportunity zone funds list shows funds raising now. For a fund investment made before 2027, see the opportunity zone deferred gain calculator.

The calculator leaves out the alternative minimum tax, suspended passive losses (a fully taxable sale of your whole interest releases them), installment sales, Section 1245 recapture on personal property or cost segregation components, and Section 1231 losses from the prior five years. For the broader picture, see real estate tax benefits.

Short answers

What else do people ask about tax on a rental property sale?

What is depreciation recapture on a rental property?

It is tax on the part of your gain that equals the depreciation you deducted, or could have deducted, while you owned the rental. For a building depreciated straight-line, that part is unrecaptured Section 1250 gain, taxed at your ordinary rate up to a 25% maximum. Paying the tax settles it; a 1031 exchange defers it.

Do I owe the 3.8% net investment income tax on a rental sale?

Usually, if your modified adjusted gross income is above $250,000 married filing jointly, $125,000 married filing separately or $200,000 otherwise. The tax is 3.8% of the smaller of your net investment income and the amount above the line. A real estate professional whose rental is a trade or business may be outside it; ask a tax adviser.

Can I avoid capital gains tax by reinvesting in another rental?

Only through a 1031 exchange, which defers the tax if you sell and buy, usually through a qualified intermediary, and meet the 45-day and 180-day deadlines. Buying another property with the cash after a normal sale does not defer anything. Opportunity zone funds offer a second route for the gain alone.

Why is my result lower than a quick top-rate estimate?

Because part of your gain may fall in the 0% or 15% capital gains brackets and the depreciation part is taxed at your ordinary rate when that is under 25%. The calculator stacks the gain on your other taxable income, as the IRS worksheet does, instead of applying 20%, 25% and 3.8% to every dollar.

Sources

  1. Revenue Procedure 2025-32 (2026 rate tables sec. 4.01, capital gain amounts sec. 4.03, standard deduction sec. 4.14), Internal Revenue Service (2025 | accessed Nov 13, 2026)
  2. Schedule D instructions, Schedule D Tax Worksheet, Internal Revenue Service (2025 | accessed Nov 13, 2026)
  3. 26 U.S. Code 1, Tax imposed (section 1(h) and 1(j)(5)), Legal Information Institute, Cornell Law School (accessed Nov 13, 2026)
  4. 26 U.S. Code 1411, Imposition of tax (net investment income), Legal Information Institute, Cornell Law School (accessed Nov 12, 2026)
  5. Topic no. 409, Capital gains and losses, Internal Revenue Service (reviewed Nov 9, 2026)
  6. Net investment income tax, Internal Revenue Service (reviewed Jul 1, 2026)
  7. Publication 544, Sales and other dispositions of assets, Internal Revenue Service (reviewed Apr 30, 2026)
  8. 26 U.S. Code 1031, Exchange of real property held for productive use or investment, Legal Information Institute, Cornell Law School (accessed Nov 12, 2026)
  9. 26 U.S. Code 1400Z-2, Special rules for capital gains invested in opportunity zones (as amended by Pub. L. 119-21), Legal Information Institute, Cornell Law School (accessed Nov 13, 2026)
  10. Notice 2026-40: Transitional guidance on qualified opportunity zones, Internal Revenue Service (2026)
  11. 26 U.S. Code 1014, Basis of property acquired from a decedent, Legal Information Institute, Cornell Law School (accessed Nov 12, 2026)

Your next investment starts with a conversation.

Browse offerings from sponsors we review, and talk to each one directly.