Cost segregation selling commercial property — what happens to all that depreciation?

Sold a commercial building this year after holding it about nine years. Back in 2016 we did a cost segregation study that reclassified a big chunk of the building into 5-year and 15-year property, so we front-loaded a lot of depreciation. Now I'm trying to figure out how the sale interacts with all of that. I know there's something called depreciation recapture but I'm not clear on whether the recaptured amount from the accelerated stuff gets taxed differently than the straight-line portion on the building itself. My CPA mentioned Section 1245 and Section 1250 but didn't have time to walk me through it. I've been staring at Form 4797 and I'm lost on which parts go where. Is all the gain from the cost-seg components ordinary income, or does some of it still qualify for capital gains treatment?

38 comments

Form 4797 is where this all plays out, and cost segregation sales are genuinely one of the more complicated sections of it. The short answer: the 5-year personal property components you reclassified are Section 1245 property. The 15-year land improvements are generally Section 1250 property, so only their depreciation in excess of straight-line is ordinary. When you sell, all the depreciation you claimed on the 5-year components is recaptured as ordinary income — not capital gain — up to the amount of gain on each component. The building itself (the remaining Section 1250 real property) has its own recapture rule, but for most commercial owners it's the unrecaptured Section 1250 gain taxed at a maximum rate. These are genuinely two different recapture buckets and they go on different parts of Form 4797.

Marcus A.

Author

Part II of Form 4797 is what I'm on now. Am I right that the 5-year components each get their own line entry, or do I group them?

Part III of Form 4797 handles Section 1245 recapture. Each asset class can be grouped if placed in service the same year with the same recovery period — your cost seg study should list them that way. The recapture flows up to Part II and then to Schedule D for any remaining gain.

The piece that tripped my accountant up on my sale was distinguishing Section 1245 recapture from unrecaptured Section 1250 gain. For the personal property (5-year, 7-year), every dollar of depreciation you took is potentially Section 1245 ordinary income recapture. The 15-year land improvements are Section 1250 property, where only depreciation in excess of straight-line is ordinary. For the 39-year building shell, the recapture concept is different — the "unrecaptured Section 1250 gain" is the straight-line depreciation on the real property portion, taxed at a capped rate rather than your full ordinary rate. It matters a lot because those rates can be very different.

Marcus A.

Author

Unrecaptured Section 1250 gain — so that goes on the Schedule D worksheet, not directly on Form 4797?

Schedule D instructions include an Unrecaptured Section 1250 Gain Worksheet. The amount from Form 4797 feeds into it. Your software or preparer should pull it automatically, but worth verifying the number matches what your cost seg study shows as straight-line depreciation on the real property portion.

Went through this two years ago on an office building. The cost segregation study itself becomes your documentation — you need it to defend the asset-by-asset basis and accumulated depreciation figures on Form 4797. If you don't have the original study or the annual depreciation schedules your preparer maintained, reconstructing the numbers is painful. Pull those records before you do anything else.

Marcus A.

Author

Depreciation schedules — yes, I have them, twelve pages. So each asset on the study gets its own accumulated depreciation figure that I subtract from original allocated cost to get adjusted basis?

Adjusted basis on each component is correct: original allocated cost from the study minus all depreciation allowed or allowable. "Allowable" matters — if you ever missed claiming depreciation you were entitled to, the IRS treats it as if you took it anyway for recapture purposes.

Form 4562 from every prior year is what I had to pull together when I sold my industrial property last spring. I uploaded all of them along with the cost seg report to taxr.ai and it organized the asset-by-asset depreciation taken versus basis remaining into a table I could hand straight to my CPA. Saved probably three hours of spreadsheet work. It didn't file anything — I brought the table to my preparer who ran the final Form 4797 numbers — but having everything laid out clearly made the whole conversation faster.

Marcus A.

Author

Form 4562 year by year — I think I have PDFs of all nine years. That's exactly the kind of reconciliation I was dreading.

Prior-year 4562s are the source of truth for accumulated depreciation per asset. If any year used bonus depreciation on the 5-year components, make sure that shows up in full in the "prior depreciation" column when you build your Form 4797 entries.

Bonus depreciation is the part people forget when they sell. If the cost seg study was done in a year when 100% bonus was available and you took it on the 5-year and 15-year property, the entire cost of those components was expensed immediately. So your adjusted basis in those components is zero. When you sell and allocate any proceeds to the 5-year pieces, that gain is Section 1245 ordinary income up to the depreciation taken. The 15-year land improvements are Section 1250 property: the bonus in excess of straight-line is ordinary, and the straight-line portion is unrecaptured Section 1250 gain.

Marcus A.

Author

Basis at zero — that's a rough number to see. So the allocation of sale proceeds between land, building, and components actually matters for how much ordinary income I end up with?

Allocation of proceeds matters enormously. If the buyer and seller agree on an allocation in the purchase agreement, both parties generally use it. Form 8594 is filed by both sides when applicable. If there's no written allocation, the IRS can challenge whatever you report, so having a defensible appraisal-based allocation is worth the cost.

Form 8594 — just to make sure this is on the poster's radar, that's the Asset Acquisition Statement. It's required when a group of assets constituting a business changes hands and both buyer and seller have to file it and use the same allocation. Whether it applies depends on whether this was a sale of assets or an entity sale. Worth confirming with your CPA which structure the transaction was.

Marcus A.

Author

Entity vs. asset sale — it was a straight asset sale, so Form 8594 likely applies. I'll flag that for my CPA.

Something worth knowing: the 15-year land improvements bucket (parking lots, landscaping, fencing, etc.) is generally Section 1250 property, even though cost seg studies group it with the fast-depreciating components. A lot of people assume it falls under Section 1245 rules because it's depreciated so quickly. It doesn't. Only depreciation in excess of straight-line (including any bonus) is recaptured as ordinary income on those components; the straight-line part is unrecaptured Section 1250 gain.

Section 1250 on 15-year land improvements — confirmed, that's correct. Caught me off guard on my first cost seg sale too.

One angle worth checking: if you have any suspended passive activity losses from prior years on this property, the sale is a fully taxable disposition that releases them. Form 8582 tracks suspended passive losses. When you dispose of the property in a fully taxable sale, those losses free up and can offset the gain — including the ordinary recapture income. It's one of the few ways to soften a big recapture hit.

Marcus A.

Author

Form 8582 — I actually do have some suspended losses from a couple of lean years. I didn't realize a sale would release them. That changes my numbers meaningfully.

Released passive losses in the year of sale offset income in a specific order under the Form 8582 instructions. Confirm with your preparer that the losses are flowing to the right place on your return and not getting stranded somewhere.

Schedule D and Form 4797 together are what my preparer spent the most time on when I sold my strip mall last year. I'd already had Taxr read through my cost seg report and the sale closing statement side by side — it flagged that my allocated land value looked inconsistent between the two documents and pointed out which lines on Form 4797 would be affected. I brought that comparison to my CPA and we caught an error in the preliminary numbers before anything was filed.

Marcus A.

Author

Land value inconsistency — that's exactly the kind of thing I'd miss on my own. I'll do that comparison before I sit down with my preparer.

For anyone wondering about a 1031 exchange as an alternative: if you're not selling outright, a 1031 lets you defer the recapture as well as the capital gain — but the recapture doesn't disappear, it carries into the replacement property's basis. When you eventually sell without exchanging, all that deferred recapture comes due. Cost segregation on a replacement property can restart the cycle, but you need a qualified intermediary involved before the sale closes, not after.

Marcus A.

Author

1031 exchange — too late for this one, closing already happened. But useful to know for the next property.

Qualified intermediary deadlines are strict — they have to be in place before you receive any proceeds. Good to know for next time.

The state tax piece can add a layer too. Several states don't conform to federal bonus depreciation, so the accumulated depreciation for state purposes may be much lower than federal. That means your state adjusted basis is higher, your state gain is smaller, and you may owe less state tax than you'd expect — or you might have a state depreciation recapture calculation that runs separately from the federal one. Depends entirely on your state.

Marcus A.

Author

State conformity — hadn't thought about that. I'm in a state that decoupled from bonus depreciation so I probably have different basis numbers for state.

State depreciation schedules may have been tracked separately by your preparer each year. Ask for the state Form 4562 equivalents or the depreciation detail from prior state returns. Those accumulated figures are what you'll use for the state gain calculation.

For a commercial building the IRS reference you want is Publication 946, not Publication 527, which deals mostly with residential rental property depreciation. The MACRS recovery periods, the recapture rules, and the interaction with Section 1245 and 1250 are all laid out there. It's dense but it's the authoritative source if you want to understand why the numbers work the way they do.

Cost basis allocation from the original purchase also matters. If you bought the building and land together without a formal appraisal-based allocation at acquisition, any weakness in that original split affects both your depreciation history and your gain calculation at sale. If the original allocation was thin on documentation, now is the time to gather whatever you have — the contract, the county assessed value ratio, any appraisal from closing.

Marcus A.

Author

Original allocation — I have the purchase contract and a county assessment from that year. Should be enough to support the split we used.

Form 4797 Part III line 25 is where you compute the Section 1245 recapture for each asset. The form walks you through it: sale price allocated to the asset, minus adjusted basis, gives you the total gain; then you compare that to total depreciation taken, and the lesser of the two is ordinary income recapture. Any gain above total depreciation taken passes through as Section 1231 gain and can get capital gain treatment after the Section 1231 lookback rules are applied.

Section 1231 lookback — worth flagging that if you had net Section 1231 losses in any of the five prior tax years, those convert an equivalent amount of this year's 1231 gain back to ordinary income. Form 4797 has a line for it and the instructions walk through the lookback.

Marcus A.

Author

Section 1231 lookback — I had a small 1231 loss about three years ago. So some of what would have been capital gain might flip to ordinary. I need to check that line carefully.

If the numbers here are large, this is a situation where working with a CPA who has specific cost segregation sale experience is worth it, not just any preparer. The interplay between Section 1245 recapture, unrecaptured Section 1250 gain, Section 1231 lookback, suspended passive losses, and state conformity differences means there are several ways a return can go wrong and the IRS matching programs are good at catching Form 4797 mismatches. An enrolled agent with real estate experience is also a solid option.

Marcus A.

Author

Agreed — this is clearly beyond a DIY job. I'm going to pull together the cost seg study, all prior 4562s, and the closing statement and go into my CPA meeting with everything organized. This thread helped me understand what questions to ask.