Investment property is taxed differently from a home you live in, and the difference that catches the most sellers off guard is depreciation recapture. It is a tax on a benefit you already received, and on a rental held for many years it can add up to a large, unexpected number at closing. Understanding how it works, alongside the other ways investment property is taxed, is essential before you sell or plan an exit.
First, how depreciation works
When you own a residential rental, the tax code lets you deduct the cost of the building, not the land, over 27.5 years. This annual depreciation deduction reduces your taxable rental income each year, which is a real benefit while you hold the property. Commercial property depreciates over a longer schedule, but the principle is the same: you write off a portion of the building's value every year.
The catch is that depreciation also lowers your cost basis in the property. A lower basis means a larger gain when you sell, and the portion of that gain attributable to depreciation is taxed under its own rules.
Depreciation recapture at sale
When you sell, the government recaptures the depreciation you claimed. Federally, this recaptured amount is taxed at a rate up to 25 percent, higher than the long-term capital gains rate that applies to the rest of your gain. California does not have a separate recapture rate, but it taxes the recaptured amount as ordinary income at your full state rate, up to 13.3 percent, with no cap.
The result is that recapture is often taxed more heavily than the appreciation portion of your gain. On a property you have depreciated for a decade or more, the recapture tax alone can reach five or six figures. Because it is calculated on depreciation you were allowed to take, whether or not you actually claimed it, skipping depreciation to avoid recapture does not work; the IRS calculates it as if you took it.
The full tax picture on an investment sale
Selling a rental generally triggers three layers of tax. First, depreciation recapture on the depreciation taken. Second, capital gains tax on the appreciation above your original basis, taxed federally at 0, 15, or 20 percent plus a possible 3.8 percent surtax, and by California as ordinary income. Third, on high-value sales in certain cities, a local transfer tax. There is no primary-residence exclusion to soften any of it, which is why the total can be surprising.
This is the central reason investors turn to a 1031 exchange, which defers both the capital gains and the depreciation recapture entirely if you reinvest into like-kind property. Our 1031 deferral calculator shows how much tax an exchange would defer, including the recapture portion.
Planning around it
Beyond a 1031 exchange, investors use a few approaches. An installment sale spreads the gain, and the recapture, across multiple years to soften the bracket impact, though recapture rules on installment sales have their own wrinkles. Holding property inside a self-directed IRA changes the tax treatment entirely, since the IRA, not you, owns the asset, though that path has its own rules around non-recourse financing and unrelated business income. Our self-directed IRA guide covers that route. And at death, heirs may receive a stepped-up basis that eliminates the deferred gain and recapture, a key reason some investors hold and exchange rather than cash out.
The right approach depends on your goals, your other income, and what you plan to do next. If you own rental property and are thinking about selling, our guide for landlords lays out the options. For the tax specifics, a CPA who knows real estate is well worth the fee.