Free · Nonprofit · Education only · Updated October 13, 2026

Rental property capital gains tax calculator (2026)

Selling a rental means three taxes at once: depreciation recapture at up to 25%, capital gains at 0%, 15% or 20%, and the 3.8% NIIT, plus your state. Losses you could not use for years come back. Enter your numbers to see the full bill and what you keep.

By , founder, Retirement Literacy Foundation. 2026 federal law, every rate sourced below.

Free calculator

Rental property capital gains tax calculator

Enter your numbers. Your results show right on the page.

Worked example

A 2026 example, worked out

A married couple in California sells a rental they have owned for 15 years for $1,200,000. They paid $500,000, added $50,000 of improvements, took $180,000 of depreciation and have $40,000 of suspended passive losses. Selling costs are $70,000 and their other income is $120,000.

LineAmount
Estimated tax on your rental sale$216,160
Amount realized (price minus selling costs)$1,130,000
Adjusted basis (price paid plus improvements, minus depreciation)$370,000
Total gain$760,000
Unrecaptured Section 1250 gain (taxed up to 25%)$180,000
Rest of the gain (0/15/20%)$580,000
Suspended passive losses released (IRC 469(g))-$40,000
Federal income tax (incl. any AMT)$126,533
Net investment income tax (3.8%)$22,420
California tax$67,207
What you keep after tax (before paying off any mortgage)$913,840

Spread the same taxable gain over 5 years with an installment sale and the tax drops from $216,160 to $175,988: they keep $40,173 more (2026 law and income held flat; interest on the note left out).

Computed October 13, 2026 with the same engine the calculator uses: 2026 federal brackets (IRS Rev. Proc. 2025-32), state rates as coded for 2026. Illustrative; your numbers will differ.

How it works

The rules behind the numbers

  1. Your gain starts with depreciation. Your basis is what you paid plus improvements minus all depreciation allowed or allowable, even depreciation you never claimed (IRC 1016(a)(2); IRS Publication 527).
  2. The 25% layer. The part of the gain equal to building depreciation is unrecaptured Section 1250 gain, taxed at your ordinary rate but not more than 25% (IRC 1(h)(6)). Appliances, carpet and furniture are Section 1245 property: their depreciation comes back as ordinary income (IRS Publication 544).
  3. The rest at 0%, 15% or 20%. For 2026, married couples pay 0% up to $98,900 of taxable income, 15% up to $613,700, and 20% above, with single filers at $49,450 and $545,500 (IRS Rev. Proc. 2025-32).
  4. Plus the 3.8% NIIT. Rental gains are net investment income unless you are a real estate professional running a trade or business (IRC 1411). The calculator applies it above $250,000 married or $200,000 single.
  5. Old losses come back. Passive losses you could not deduct are released when you sell your entire interest in a fully taxable sale to an unrelated buyer (IRC 469(g); Form 8582). They offset ordinary income first, then the gain.
  6. Spreading the gain. In an installment sale you report gain as payments come in (IRC 453). The 25% layer comes out of the first payments (Treas. Reg. 1.453-12) and Section 1245 recapture is all taxed in the year of sale (IRC 453(i)). A 1031 exchange is the other route: see the 1031 boot calculator.

Common questions

Straight answers

How is a rental property sale taxed in 2026?

In layers: depreciation you took is taxed at up to 25%, the rest of the gain at 0%, 15% or 20%, the 3.8% net investment income tax applies when income is over $250,000 married or $200,000 single, and your state taxes it too. The calculator stacks all of them.

Do I pay recapture on depreciation I never claimed?

Yes. Basis drops by depreciation allowed or allowable (IRC 1016(a)(2)), so the gain and the 25% layer include it. You may be able to catch up missed depreciation with Form 3115 before the sale year ends.

What happens to my suspended passive losses when I sell?

Selling your entire interest in a fully taxable sale to an unrelated buyer frees them (IRC 469(g)). They offset the gain and other income in the year of sale; in an installment sale they are freed in proportion to the gain recognized each year.

Can I avoid capital gains on a rental by moving in?

Partly at best. Gain from years after 2008 when it was not your main home stays taxable, and depreciation is always taxed (IRC 121(b)(5), 121(d)(6)). Use the home sale capital gains calculator to see the split.

Is spreading the sale over years worth it?

It can be: smaller yearly gains can stay in lower brackets, below the NIIT line and in lower state brackets. The calculator compares one year with the same gain over the years you pick. Interest on the note is extra income, and the buyer's credit matters.

Related: Capital gains tax on selling a rental (guide) · Depreciation recapture calculator · Capital gains tax calculator · 1031 boot calculator · Mortgage over basis calculator · Net investment income tax calculator · Estimated tax after a sale

Free seller tax calculators

More calculators for the year you sell

Audit trail

Sources and review

Reviewed for the Retirement Literacy Foundation, a 501(c)(3) education nonprofit. Prepared by Hans Goldstein, EA, retirement educator. Admitted to practice before the IRS. Informational only. Not tax, legal or investment advice. Every figure below cites its source so your CPA or attorney can check it.

Figures are 2026 federal amounts unless stated. Examples are illustrative and rounded; your numbers will differ. By , founder, Retirement Literacy Foundation. Last reviewed .

Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS.