You bought the building for a million dollars. You sell it for a million two. You figure the gain is two hundred thousand, and you start doing the math on a 15 percent capital gains rate. That math is wrong, and by the time you find out, the listing agreement is already signed.

Here is the part the sale price never shows you. Every year you owned the building, depreciation reduced your tax basis. If you took $300,000 of depreciation over ten years, your adjusted basis is $700,000, not a million. Your gain is not $200,000. It is $500,000. The depreciation you deducted while you owned the property comes back as gain the day you sell.

That gain is taxed in layers, and the layers do not share a rate. The portion equal to the straight-line depreciation you claimed on the building is called unrecaptured Section 1250 gain. It is taxed at your ordinary rate, capped at 25 percent. Only the gain above your total depreciation gets the long-term capital gains rates of 0, 15, or 20 percent. And for most passive rental owners, the 3.8 percent net investment income tax applies on top of all of it. The 25 percent is a ceiling, not a flat rate — a landlord in the 22 percent bracket pays 22 percent on that layer — but either way, it is not the 15 percent you budgeted for.

The second layer is the one that surprises people who did a cost segregation study. The appliances, carpeting, fixtures, and land improvements the study carved out of the building are Section 1245 property, not Section 1250. Every dollar of depreciation you took on those components — including the 100 percent bonus depreciation that made the study so attractive in year one — is recaptured as ordinary income at sale, at your full marginal rate, up to 37 percent. The first-year deduction comes back at the highest rate in the stack. That does not make cost segregation a bad idea. It makes it an idea you should model through the sale, not just through year one.

There are ways to deal with the bill, and they all work better before the sale than after it. A 1031 exchange defers both the capital gain and the recapture into the replacement property — that is the primary tool, and it is why the exchange deadlines matter so much. An installment sale spreads the Section 1250 layer over the years you receive payments, but the Section 1245 recapture is due in full in the year of sale even if you have not been paid yet. And if you have suspended passive losses sitting on Form 8582 that you could never use, selling the entire interest to an unrelated party releases them in the year of sale, first against the gain from the property. One more fact worth knowing: heirs generally do not inherit the recapture, because the basis steps up at death.

So the discipline is simple. Before you list a building, ask your CPA for the sale model: original basis, accumulated depreciation, the Section 1245 balance, the Section 1250 balance, and the three layers of tax. It takes one spreadsheet and one phone call. The depreciation was real money when you took it — it sheltered income every year you owned the building. Just do not let it be a surprise at the closing table. The best time to price the tax is before you price the building.

← All insights