Home / Capital Gains Tax Calculator

Capital Gains Tax Calculator

This is the bill without the exchange: two federal taxes, priced separately, on a real estate sale you complete outright.

Rates this calculator applies, tax year 2026
Line itemRate
Section 1250 depreciation recapture25%
Long-term capital gains, selectable0%, 15%, or 20%
Net Investment Income Tax (NIIT), optional3.8%

Details

Results

Total tax on sale -
Total gain -
Recapture tax (25%) -
Capital gains tax -
NIIT (3.8%) -
Net proceeds after tax -

Federal only, tax year 2026. State tax would layer on top.

Good to know

FAQs

Why is my depreciation broken into its own line instead of one gain figure?

Because the IRS taxes it separately. This calculator pulls the depreciation you took out of the gain first, taxes that slice at 25% under Section 1250, and only then applies your long-term rate to what's left.

I'm under the income threshold. Should I still check the NIIT box?

No. The 3.8% Net Investment Income Tax only applies once your income clears certain federal thresholds. Leave the toggle off if you're not sure it applies, and confirm with a preparer before filing.

Does selecting 0% for my capital gains rate mean I owe nothing?

It means the capital-gain portion of your tax is zero. Depreciation recapture at 25% still applies separately if you claimed any, and NIIT can still apply if you selected it.

How is this different from the 1031 exchange calculator on this site?

This page shows what you'd owe if you sold outright with no exchange. The 1031 exchange calculator shows the same sale routed through a like-kind swap, where some or all of this bill defers instead.

My net proceeds number looks lower than sale price minus basis. Why?

Net proceeds here is sale price minus selling expenses minus total tax, not minus basis. Basis already did its job inside the gain calculation, so subtracting it twice would understate what you actually keep.

Two taxes, stacked, not blended

Sell an investment property outright and the IRS does not treat your gain as one number. It pulls out whatever you claimed in depreciation and taxes that piece at 25% under Section 1250, then applies your long-term capital gains rate, zero, 15, or 20 percent, to what remains. Cross certain income thresholds and the 3.8% NIIT adds a third layer across the whole gain.

Worked example. A $170,000 gain with $60,000 of past depreciation: recapture tax lands at $15,000. The remaining $110,000, taxed at 20%, adds $22,000. NIIT adds a further slice on top of that if it applies. Investors run this exact math before they decide whether an exchange is worth the paperwork.

Compare the deferral

See what this same sale looks like routed through a 1031 exchange instead.