Taxes

How Much Tax Do You Pay When You Sell a Rental Property? (The 4 Layers)

The number one surprise I hear from landlords after closing is not the capital gains tax. It's the other three taxes stacked on top of it. Here is the full bill on a typical rental sale, with real numbers, and what you can legally do about it before you sign a contract.

8 min read·Updated September 2026·By Leah Badach, CES
Key takeaways

Layer 1: Federal capital gains tax

Your gain is not 'sale price minus what you paid.' It's net sale price minus adjusted basis, and adjusted basis is your purchase price plus capital improvements minus every dollar of depreciation. Because depreciation lowers basis, your taxable gain is always larger than your paper profit.

Property held more than one year is taxed at long-term capital gains rates: 0%, 15%, or 20% depending on your total taxable income for the year. Most rental sellers land in the 15% or 20% bracket because the sale itself pushes their income up in that year.

Layer 2: Depreciation recapture (the one nobody budgets for)

Every year you owned the rental, you deducted roughly 1/27.5 of the building's value as depreciation. At sale, the IRS takes that back. The portion of your gain equal to depreciation claimed is taxed as unrecaptured Section 1250 gain at a maximum rate of 25%, not the lower capital gains rate.

Two things trip people up here. First, the rule is 'allowed or allowable': if you were entitled to depreciation and didn't claim it, you still owe recapture on it. Second, recapture is often the largest single line on the bill for long-held property. Run yours in the depreciation recapture calculator.

Layer 3: The 3.8% net investment income tax

If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), the gain on a rental sale is also subject to the 3.8% net investment income tax under IRC §1411. Because the sale year is usually your highest-income year, most rental sellers cross the threshold in exactly the year it hurts most.

Layer 4: State income tax

Most states tax capital gains as ordinary income. That ranges from zero in Texas, Florida, Wyoming, Nevada, Tennessee, South Dakota, Alaska, and Washington (which exempts real estate from its capital gains tax) to over 13% in California and roughly 10.9% at the top New York State bracket, plus another 3.876% for New York City residents. Nonresident sellers usually face withholding at closing as well. Compare rates in the state-by-state table.

A worked example: $400,000 rental sold for $700,000

Say you bought a rental for $400,000 twelve years ago, allocated 20% to land, and sell for a net $700,000 this year. You are in the 20% bracket and live in a state with a 9% top rate.

Total: roughly $151,000, or about 22% of the sale price and 34% of the gain. In a no-income-tax state the bill drops to about $111,000. In New York City it climbs past $175,000. Model your own numbers in the 1031 exchange calculator.

What defers all four layers at once

A 1031 exchange is the only tool that defers every layer above in a single move: capital gains, recapture, NIIT, and state tax (with the exception of a few states' tracking rules, notably California's clawback). The $151,000 in the example stays invested in your next property instead of going to the Treasury.

The catch is timing. A qualified intermediary must be in place before your sale closes; there is no way to elect an exchange after the money reaches you. If you're within 60 days of closing, that's the call to make this week. The alternatives, from installment sales to opportunity zones, are covered in seven legal ways to avoid capital gains on a rental.

Frequently asked questions

What is the capital gains tax rate on a rental property sale?

Long-term federal capital gains are taxed at 0%, 15%, or 20% depending on your taxable income in the year of sale. On top of that, depreciation you claimed is recaptured at up to 25%, the 3.8% net investment income tax may apply, and your state taxes the gain as well.

Do I pay depreciation recapture if I never claimed depreciation?

Yes. The IRS applies an 'allowed or allowable' standard, so basis is reduced by the depreciation you were entitled to take whether or not you took it. If you skipped depreciation for years, talk to your CPA about Form 3115 to catch up before selling.

How do I avoid paying taxes when I sell my rental property?

The most complete tool is a 1031 exchange, which defers all four tax layers if you reinvest in other investment real estate through a qualified intermediary engaged before closing. Other partial tools include the Section 121 exclusion after moving in, installment sales, opportunity zone funds, and holding until death for a stepped-up basis.

Is the tax on selling a rental based on the sale price or the profit?

On the gain, which is net sale price minus adjusted basis. Adjusted basis is your purchase price plus improvements minus all depreciation taken. Because depreciation reduces basis, taxable gain is usually much larger than the cash profit you feel you made.


Selling a rental this year?

I'll run your actual four-layer number and tell you honestly whether an exchange is worth it. 30 minutes, no obligation.

See If I Qualify