Commercial real estate capital gains tax — how is it actually calculated?

Sold a small office building I'd owned for 11 years. Closing happened in March. My broker sent a 1099-B but the numbers look off — the proceeds match what I expected but the cost basis column is blank, and there's no depreciation figure anywhere on the form. My CPA mentioned something about depreciation recapture being taxed differently from the rest of the gain but didn't explain it clearly. I've been reading Topic 409 on the IRS site and I understand the basic long-term vs short-term distinction, but commercial real estate capital gains tax seems like it splits into at least two buckets. Is that right? And which forms actually capture each piece? I want to understand the structure before my next meeting with my CPA so I'm not just nodding along.

34 comments

You're right that it splits. Commercial real estate capital gains tax has at least two separate components. The first is the section 1250 piece. Because the building was depreciated straight-line, there's generally no ordinary-income recapture. Instead, the portion of gain attributable to depreciation claimed over the years is unrecaptured section 1250 gain, taxed at a maximum 25% rate and figured with the worksheet in the Schedule D instructions. The second is the remaining gain above that amount, which flows to Schedule D as a long-term capital gain if you held more than a year. You held 11 years so that part is long-term. The rates on each piece differ — the instructions for Form 4797 and Schedule D walk through the interaction.

Amara K.

Author

So Form 4797 is where the recapture lives, not Form 8949? I had assumed everything went through 8949 and then to Schedule D.

Correct. Real property used in a trade or business goes on Form 4797, not Form 8949. 8949 is for capital assets — stocks, bonds, that kind of thing. The net from 4797 flows to Schedule D line 11, but the recapture itself is calculated inside 4797.

The blank basis on the 1099-B is worth flagging. A sale of business real property goes on Form 4797, not Form 8949, so there's no box E or column (g) adjustment here. You just enter your adjusted basis from your own records on Form 4797, and real estate sales normally come on a 1099-S, which has no basis field. But honestly for commercial property the 1099-B is often just the proceeds side — your actual cost basis needs to come from your original purchase records plus depreciation schedules.

Amara K.

Author

My closing documents from 2014 have the original purchase price. Is that enough or do I need to reconstruct depreciation going back to that year?

You need the full depreciation taken, year by year. Your CPA should have that in prior-year tax files. The IRS wants the adjusted basis, which is original cost plus capital improvements minus all depreciation claimed. If that history is incomplete an enrolled agent can help reconstruct it.

Went through this two years ago on an industrial property. The piece that surprised me was how the section 1250 recapture amount is determined — it's tied to the accumulated depreciation on the structure (not the land, which isn't depreciable). Make sure your depreciation schedule separates land from building value from day one, otherwise the calculation gets messy fast.

Amara K.

Author

My original appraisal did separate land from building. I think the schedule is there, just haven't pulled it yet.

Before my CPA meeting last spring I uploaded my closing statement, the depreciation schedule, and the 1099-S to taxr.ai and had Taxr lay out each piece of gain — recapture, section 1231 gain, any installment piece — and show me which line of which form would carry each number. Made the meeting actually useful because I already knew what Form 4797 Part III looked like filled in with my figures. The recapture calculation in Part III is where the real work happens: line 22 through 26 walk you through it.

Amara K.

Author

Form 4797 Part III is new to me. I'll pull it up tonight. Did you have an installment sale component or was your deal all cash at closing?

All cash at closing. If you had seller financing you'd also need Form 6252 for installment sale reporting, which adds another layer. Your situation sounds like it might be simpler. On a straight-line building there's usually no ordinary recapture that must be recognized in the year of sale. The unrecaptured 1250 gain is reported as payments come in, taken first, so that piece does spread out.

One thing people miss: the land portion of commercial real estate never depreciates, so when you calculate your total gain (proceeds minus adjusted basis), the land gain is straight long-term capital gain with no recapture component at all. If land was a big chunk of your original purchase price that actually works in your favor rate-wise.

Yes, and conversely if the building was the larger share, the recapture exposure is higher. The original cost allocation matters a lot here.

Worth reading Publication 544 alongside this — it covers sales and other dispositions of business property and ties directly to Form 4797. The IRS also has Topic 409 for the capital gains side. Between those two and your depreciation schedules you can verify what your CPA builds.

Had my own commercial sale last fall. I loaded the closing disclosure, the original HUD-1 from purchase, and all 11 years of depreciation schedules into Taxr and it identified that my broker's 1099-S proceeds figure included a proration credit I'd already subtracted separately — would have double-counted a deduction. It drafted a summary of the adjustments I needed to make to column (d) and (g) on the relevant forms, which I brought to my enrolled agent to verify and implement.

Amara K.

Author

That double-counting issue is exactly the kind of thing I'd miss. I'll check my closing disclosure against the 1099-S proceeds figure carefully.

Worth it. Prorations for property tax, rent, and prepaid items all show up differently depending on how the settlement agent prepared the statement. The proceeds figure on the 1099-S is gross proceeds, not reduced by selling expenses like commissions, so it won't match net sales price. If it doesn't match the gross price you signed off on at closing, that discrepancy needs an explanation before the return is filed.

Does a 1031 exchange change any of this? Asking because I'm looking at a commercial sale next year and my broker keeps mentioning it.

Yes, completely changes it. A properly structured 1031 exchange defers both the section 1250 recapture and the section 1231 gain — but the rules on identification and closing timelines are strict. That's a conversation for a qualified intermediary and a tax attorney before you close, not after.

Good to know, I'll loop in a QI early. Thanks.

On Form 4797 specifically: Part I is for property held more than a year where the gain is a section 1231 gain. Part III handles the depreciation recapture calculation. The result of Part III feeds into Part I. If your total gain exceeds the recapture, the excess drops into Part I and from there to Schedule D as long-term. For a straight-line building there's usually no ordinary recapture at all. Even if the gain is less than or equal to depreciation taken, it goes to Schedule D as unrecaptured 1250 gain taxed at up to 25%.

Amara K.

Author

So if my total gain were somehow less than depreciation taken, nothing would hit Schedule D at all?

Not quite. For a straight-line building, the gain up to the depreciation claimed is unrecaptured section 1250 gain, not ordinary income, and it still flows to Schedule D, taxed at a maximum 25% rate. Only the amount above that gets the regular long-term capital gains rates on Schedule D.

State taxes are a separate issue. Some states tax commercial real estate capital gains at ordinary income rates regardless of federal treatment, so check your state return separately. The federal calculation on 4797 and Schedule D doesn't automatically carry the right numbers to every state form.

If you made capital improvements over the 11 years — new roof, HVAC, tenant buildouts — those increase your basis and reduce your total gain. But you also may have depreciated those improvements separately, so each one has its own recapture calculation. Your CPA's depreciation schedule should show each asset class and its accumulated depreciation separately.

Amara K.

Author

We replaced the roof in year 4 and upgraded electrical in year 7. I assumed those just added to basis but sounds like they also have their own depreciation lines.

Exactly. Each improvement starts its own depreciation schedule from the placed-in-service date. So the roof has 7 years of depreciation, the electrical has 4 years. Both reduce basis and both create recapture exposure. A complete depreciation schedule breaks this out asset by asset.

Stepped-up basis question adjacent to this: if you inherited commercial property instead of buying it, your basis is the fair market value at the date of the decedent's death, per Publication 551. That would wipe out a lot of potential recapture. Not your situation but worth knowing for anyone reading.

The holding period rule for the long-term portion — more than 1 year counted from the day after acquisition to the trade date of sale — is straightforward for real estate since there's no settlement-date vs trade-date distinction the way there is for securities. Your closing date is your sale date.

Yes, Publication 550 makes the trade-date rule specific to securities traded on established markets. For real estate the closing date controls.

Quick sanity check: the net investment income tax (NIIT) may also apply to gain from commercial real estate if your income is above the threshold. It's a separate calculation. The instructions for Form 8960 cover it. Your CPA should model both the regular tax and the NIIT on the same transaction.

Amara K.

Author

My CPA hasn't mentioned Form 8960 yet. I'll bring it up specifically.

To sum up what this thread has built: your commercial real estate capital gains tax question really needs three documents — Form 4797 (recapture and 1231 gain), Schedule D (long-term capital gain), and potentially Form 8960 (net investment income). The 1099-B blank basis just means you supply it yourself from your purchase and depreciation records. The recapture piece is the one that bites people who don't expect it.

And Form 6252 if any seller financing. Otherwise that's the right list.