Skip to content

Capital Gains Tax Calculator for a Rental Property Sale

Know the bill before you decide

The short answer

Selling a rental property without an exchange can bring 4 separate taxes: federal capital gains tax at 0%, 15% or 20%, tax on the depreciation you took at up to 25%, the 3.8% net investment income tax once income passes $200,000 ($250,000 on a joint return), and state income tax. This calculator estimates each one from your own numbers using the 2026 federal brackets.

An example is filled in. Tap any number to change it.

$
%

$54,000 on this price. Commission, title and closing costs.

Sale price
$900,000
Closing costs
−$54,000
Net sale price
$846,000
$

Purchase price, buying costs and capital improvements. Repairs do not count.

$

The total to date, on the depreciation schedule kept with your tax return.

$

Without this sale. The taxable income line on last year's Form 1040 is a fair guide.

The long-term rates of 0%, 15% and 20% apply.

Your home state can tax the gain too.

Fills in that state's rate on the gain. You can change it. If you live in another state, it may tax the gain too.

%

Type 0 if no state income tax applies.

Estimated tax if you sell without an exchange

About $97,000

On a gain of about $476,000, or 20.4% of it.

Net sale price
$846,000
Adjusted basisWhat you paid plus improvements, less depreciation
−$370,000
Gain on the sale
$476,000
Federal capital gains tax
$54,015
Tax on depreciation
$27,572
Net investment income tax
$15,512
State tax at 0%
$0

A 1031 exchange set up before closing can defer it. Your target spend would be $846,000. Plan the exchange with these numbers.

An estimate for planning, not tax advice. 2026 federal figures. State rates are top rates; many owners pay less, and local taxes are not included. Not included: alternative minimum tax, passive loss carryovers, installment sales, depreciation on equipment and other gains or losses this year.

How each line was worked out

Your adjusted basis, how the gain splits, how many dollars land in each federal band and at what rate. A page to hand to your CPA.

By sending this you agree that PEG may call or text you about your request. Your details stay with PEG and are never sold.

Before closing or not at all

Once the sale closes and the money reaches the seller, that sale cannot become an exchange. One conversation before the closing date keeps the option open.

See your 2 dates

How the numbers work

The calculator starts with your adjusted basis: what you paid plus improvements, less the depreciation you took. The net sale price, which is the sale price less closing costs, less that basis is the gain. The part of the gain that comes from depreciation is taxed at your ordinary rate up to a ceiling of 25%. The rest is stacked on top of your other taxable income and taxed at 0%, 15% or 20% as it crosses the 2026 thresholds.

The 3.8% net investment income tax is added when modified adjusted gross income passes $200,000, or $250,000 on a joint return. State tax is the rate you type times the gain. A 1031 exchange arranged before closing can defer all of it when the replacement costs at least as much as the net sale price and all of the proceeds go into it. Take the result to your CPA as a starting point.

Questions people ask

Why is the tax so high on a rental I bought for a lot less?

2 things stack up. The gain is measured from your adjusted basis, and depreciation lowers that basis every year you own the property, so the gain is larger than the price difference alone. Then the depreciation portion is taxed at up to 25%, above the 15% most owners pay on the rest. Long ownership in a rising market makes both effects bigger.

Where do I find how much depreciation I have taken?

Look at the depreciation schedule kept with your tax return, the worksheet your preparer or tax software updates every year. It lists the building and each improvement with the depreciation taken to date. If you skipped depreciation in some years, the IRS still counts the larger of what you took or what you were allowed to take, so ask your preparer for the full figure before you rely on any estimate.

Is depreciation recapture always taxed at 25 percent?

No. 25% is the ceiling for the part of the gain that comes from depreciation on a building. That gain is taxed at your ordinary rate when your ordinary rate is lower, so an owner in the 12% or 22% bracket pays that rate on it, and only the part that reaches past the 24% bracket is taxed at 25%. The calculator stacks it on your other income to work out the split.

Does the estimate include my state's tax?

Only if you enter a rate. Put in your state's income tax rate that applies to the gain, or 0 if your state has no income tax. Some states have their own rules for nonresident sellers and withholding at closing, which this estimate does not model. Your state page on this site covers those rules from the state's own sources.

What does the calculator leave out?

It covers a property owned for more than a year and leaves out the alternative minimum tax, suspended passive losses that a sale can release, installment sales, depreciation on equipment or from a cost segregation study, other capital gains or losses in the same year, and state rules such as withholding on nonresident sellers. Any of these can move the figure in either direction, which is why the result is a planning estimate to take to your CPA.

Sources

Call