Your gain, by layer
What each dollar of gain is taxed as.
Selling an office, retail, industrial or mixed-use building? Enter the price, what you paid and the depreciation you took. You will see the tax on the sale layer by layer: cost segregation recapture, the 25% layer, the long-term gain, the 3.8% tax and your state, with suspended passive losses applied. Then the same sale spread over the years you are paid, and how much more you keep. Everything runs in your browser.
What each dollar of gain is taxed as.
A cash sale: everything taxed in the year of sale.
Seller financing: gain taxed as principal arrives (IRC 453).
This is an estimate. Getting it right down to the tee takes your actual tax forms (returns, K-1s, depreciation schedules), a consult and a paid analysis. The first 15-minute scope call is free.

These are estimates. Have a qualified tax professional run your real numbers in a 15-minute scope call.
Book my 15-minute callThis is an estimate. Getting it right down to the tee takes your actual tax forms (returns, K-1s, depreciation schedules), a consult and a paid analysis. The first 15-minute scope call is free.
A commercial building is taxed differently from a home or raw land because of depreciation. Every dollar you deducted lowered your basis, and on the sale it comes back in a specific order (IRS Publication 544).
Adjusted basis is what you paid plus capital improvements, minus all depreciation taken: straight-line building depreciation and any cost segregation or bonus depreciation. Gain is the sale price, minus selling costs, minus adjusted basis. In the example, $3,000,000 plus $400,000 of improvements, minus $1,500,000 of depreciation, leaves a $1,900,000 basis; a $7,500,000 sale with $375,000 of costs is a $5,225,000 gain.
A cost segregation study moves parts of a building (carpet, specialty electrical, parking lots, landscaping) to 5, 7 or 15-year lives. Those parts are Section 1245 property, so every dollar of their depreciation is recaptured as ordinary income, up to the gain (IRC 1245). On an installment sale it is still taxed in the year of sale (IRC 453(i)).
Commercial buildings are depreciated straight line over 39 years (IRC 168(c)). That depreciation is unrecaptured Section 1250 gain: taxed at your ordinary rate, capped at 25% (IRC 1(h)(1)(E), (h)(6)). On a note, it is reported out of the first payments (Treas. Reg. 1.453-12).
The rest is long-term capital gain at 0%, 15% or 20%. For 2026, married couples filing jointly reach 20% above $613,700 of taxable income (Rev. Proc. 2025-32). Rental property gain is also net investment income, taxed at 3.8% above $250,000 married or $200,000 single (IRC 1411). Your state adds its own tax; choose it above.
Losses the passive activity rules held back on this building are released when you sell your entire interest to an unrelated buyer, and they offset the gain and other income (IRC 469(g)). Your Form 8582 worksheets show the carryforward.
A married couple in California bought a retail building for $3,000,000 (25% land) and spent $400,000 on improvements. Over 18 years they took $1,200,000 of straight-line depreciation and $300,000 of cost segregation depreciation, and $150,000 of passive losses are suspended. They sell for $7,500,000 with 5% selling costs; other income is $200,000.
One building held more than a year by an individual or a pass-through owner, level yearly payments, the 2026 tables carried forward for later years. It does not model a Section 1031 exchange (see the 1031 boot calculator), C corporation ownership, the alternative minimum tax, local transfer taxes, a mortgage paid off at closing (a year-one payment on a note), or partnership-level rules for multi-owner buildings.
It comes in four layers. Cost segregation depreciation (Section 1245 property) is recaptured as ordinary income at up to 37%. Straight-line building depreciation is unrecaptured Section 1250 gain, taxed at up to 25%. The rest is long-term gain at 0%, 15% or 20% (2026 brackets, Rev. Proc. 2025-32). Add the 3.8% net investment income tax and your state. A California couple selling a $7,500,000 building in the example on this page owes $1,933,527 in one year.
Commercial buildings are depreciated straight line over 39 years (IRC 168(c)). On a sale, that depreciation is unrecaptured Section 1250 gain, taxed at your ordinary rate but not more than 25% (IRC 1(h)(6)). Components a cost segregation study moved to 5, 7 or 15-year lives are Section 1245 property, and all of that depreciation is ordinary income, up to the gain.
Yes, the gain can be reported as principal arrives (IRC 453), but two parts cannot wait: Section 1245 recapture is taxed in the year of sale even on a note (IRC 453(i)), and the 25% layer is reported out of the first payments (Treas. Reg. 1.453-12). Notes over $5,000,000 at year end also owe the Section 453A interest charge.
When you sell your entire interest in the activity to an unrelated buyer in a taxable sale, the losses Form 8582 held back are released and deduct against the gain and your other income (IRC 469(g)). On an installment sale they are released in proportion to the gain reported each year. Enter them in the calculator.
Usually yes for a rental building: gain on property held for rent is net investment income (IRC 1411). The threshold is $250,000 of modified adjusted gross income for married couples and $200,000 for single filers, and it is not indexed for inflation. A real estate professional who materially participates can be outside it.
Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.