Capital Gains Tax on Commercial Property: What Sellers Owe at Sale
Request the analysis Book a free scope call
Why a commercial sale is taxed in more pieces than a house
A commercial building is depreciated over 39 years under IRC 168(c), against 27.5 for residential rentals, so each year adds less to the 25% layer. What makes commercial sales different is everything around the shell: parking lots, signage, dedicated electrical, tenant improvements, and the in-place leases a buyer pays for. Each piece has its own recovery period and its own tax character when you sell.
The building's straight-line depreciation is unrecaptured Section 1250 gain, taxed at no more than 25% (IRC 1(h)(1)(E), 2027). Gain above the depreciation is long-term capital gain at 0%, 15% or 20% (Rev. Proc. 2026-35, 2027; see the rate table).
Passive owners add the 3.8% net investment income tax (IRC 1411, 2027). In our first example, a New Jersey couple selling an office building pays $848,491 on $2,356,000 of gain: $523,353 federal, $89,528 NIIT and $235,610 to New Jersey, whose 10.75% top rate applies above $1 million of income (NJ Division of Taxation, 2026 schedule).
Cost segregation: the early deduction comes back at ordinary rates
A cost segregation study pulls components out of the 39-year building and into 5-, 7- and 15-year classes. Combined with bonus depreciation, which was 100% for property acquired after September 27, 2017 and placed in service before 2023 (IRC 168(k)(6)), and is again 100% for property acquired after January 19, 2025 (P.L. 119-21; IRS Publication 946), that can mean hundreds of thousands of dollars deducted in year one.
At sale the bill arrives. Personal property components are Section 1245 property, so gain up to the depreciation taken is ordinary income (IRC 1245).
Fifteen-year land improvements such as paving are Section 1250 property, but bonus depreciation is not straight-line for recapture purposes (Treas. Reg. 1.168(k)-2(g)(3)), so the excess over straight-line is ordinary too under IRC 1250(a). Both are taxed in the year of sale even if you carry a note (IRC 453(i)).
In our second example the same building with a 2018 study shows $2,992,000 of gain instead of $2,356,000, because the extra deductions lowered basis, and the tax at sale is $248,286 higher. That is not a loss on its own: the deductions saved tax years earlier, often at higher rates.
The question is the spread between the rate you deducted at and the rate you pay back at, and how long you held the savings. Our cost segregation before a sale page runs that trade-off.
What is Section 291 gain? The extra recapture for C corporations
Section 291 gain is extra ordinary income a corporation reports when it sells depreciated real estate. Under IRC 291(a)(1), a C corporation treats 20% of the excess of what would be ordinary income if the building were Section 1245 property over what is ordinary income under Section 1250 as additional ordinary income under Section 1250.
Individuals, partnerships and most S corporations do not have this rule. They have the 25% cap on unrecaptured Section 1250 gain instead.
Example: a C corporation sells a building for $3,000,000. It paid $2,000,000 for the building and took $600,000 of straight-line depreciation, so its basis is $1,400,000 and the gain is $1,600,000. If the building were 1245 property, $600,000 would be ordinary. Under 1250 with straight-line depreciation, $0 is ordinary. Section 291 makes 20% of the $600,000 difference, or $120,000, ordinary income. The other $1,480,000 is Section 1231 gain.
The corporate rate is a flat 21% (IRC 11(b)), so the tax on this sale is the same either way. The label matters elsewhere. A corporation can deduct capital losses only against capital gains (IRC 1211(a)), and ordinary income cannot absorb them. An S corporation is also subject to Section 291 if it, or a predecessor, was a C corporation in any of the 3 taxable years before (IRC 1363(b)(4)).
Sources: IRC 291(a)(1), IRC 11(b), IRC 1211(a), IRC 1363(b)(4) (Cornell LII), read November 12, 2026.
Section 1231 netting and the five-year lookback
Commercial buildings held over a year are Section 1231 assets. All your 1231 gains and losses for the year are netted: a net gain is taxed as long-term capital gain, a net loss is fully ordinary (IRC 1231(a)).
That asymmetry is generous, and the lookback claws part of it back. If you deducted net 1231 losses in any of the five preceding years, this year's net 1231 gain is ordinary income up to the amount of those losses not already recaptured (IRC 1231(c)).
The recaptured amount comes first out of the 25% layer: the IRS unrecaptured Section 1250 gain worksheet subtracts it before anything else (Schedule D instructions, 2025). In our third example a $250,000 loss taken in 2023 adds $12,508 to the bill, because that slice moves from a 25% ceiling to ordinary rates.
Owners with several properties can sometimes sequence sales so loss years and gain years do not collide inside the same five-year window.
Tenant improvements: write off the old ones before you sell
Landlord-funded build-outs are depreciated over their own lives; interior improvements to nonresidential buildings are generally qualified improvement property with a 15-year life (IRC 168(e)(6)). When a tenant leaves and the improvements are torn out, the code lets you treat them as disposed of at lease end and deduct the remaining basis (IRC 168(i)(8)(B)).
Owners often skip this, and the stranded basis just rides along until sale. Writing it off in the year of the demolition gives an ordinary deduction now, rather than a smaller gain later at capital gain rates.
Before you list, ask your CPA to walk the rent roll and the fixed asset schedule side by side and retire anything that no longer exists.
The reverse also holds: improvements you put in for a current tenant and the in-place leases add value the buyer will pay for, and the purchase agreement should allocate that value deliberately (see purchase price allocation).
The same logic covers roofs, HVAC and parking lots you replace yourself: the partial disposition election writes off the old component, but only on the timely original return for the year of replacement (Treas. Reg. 1.168(i)-8(d)(2), 2027 rules). See partial disposition before a sale, and for depreciation never claimed, missed depreciation before a sale.
When the mortgage is bigger than your basis
Commercial owners who refinanced over the years often owe more than their adjusted basis. The amount realized on a sale includes debt the buyer pays off or takes over, even if it exceeds the property's value (Commissioner v. Tufts, 461 U.S. 300 (1983)). You can owe tax on gain that never reaches your bank account, and the same holds if you hand the keys to the lender.
It also shapes the exits. In a 1031, debt paid off that is not replaced by new debt or added cash is taxable boot (see 1031 boot). In an installment sale where the buyer takes over your loan, the excess of that debt over your basis counts as a payment in the year of sale (Treas. Reg. 15a.453-1(b)(3)). Map the debt before you pick a structure.
1031 options: another building or a Delaware statutory trust
Commercial property can be exchanged for any real property held for investment or business use, including apartments, land or a net-leased store (IRC 1031).
Owners tired of tenants often use a Delaware statutory trust: a fractional interest in a professionally managed property that the IRS treats as real estate for 1031 purposes if the trustee's powers are tightly limited, with no new capital, no renegotiated leases and no new borrowing (Rev. Rul. 2004-86).
Compare it on our Delaware statutory trust and tenancy in common pages, and see 1031 vs installment sale.
Exchanging California property for property elsewhere carries a reporting tail: the owner files an annual California information return for as long as the gain stays deferred (FTB 3840, per the 2026 Form 593 instructions).
If the building was cost-segged, check the replacement's Section 1245 property before closing, or part of the recapture is due even with no boot; see Section 1245 recapture in a 1031. Owners staying invested with a capital partner sometimes look at a leveraged partnership instead.
State withholding at closing
Several states make the buyer or escrow hold back tax from the seller's proceeds, mostly for nonresidents. Verified figures for 2026:
| State | What is withheld |
|---|---|
| California | 3 1/3% of price, or an elected gain-based amount, on sales over $100,000 (Form 593, 2026) |
| New Jersey | Nonresident estimated payment of 10.75% of gain, at least 2% of price (GIT/REP-1, 2026) |
| New York | Nonresident estimated tax of 10.9% of gain at deed recording (Form IT-2663, 2026) |
| Oregon | Least of 4% of price, 8% of gain or net proceeds, over $100,000 (OR-18-WC, 2026) |
The withholding is a prepayment, not the final tax, but it can strand cash you planned for a 1031 or a down payment. Some states exempt 1031 exchanges or sales at a loss, but the exemption form generally has to be in the escrow file before closing. Our state pages list each state's rule.
Other ways commercial sellers keep more
Owner-users can sell and lease back the building to free capital while staying put (sale-leaseback). Sellers willing to carry paper can use an installment sale, though cost segregation recapture is still due in year one.
An Opportunity Zone fund can take the capital gain portion, and a charitable remainder trust fits owners with a giving plan. For a smaller rental, see capital gains tax on rental property.
To see every path side by side with your numbers, get the Big Sale Tax Analysis.
What to know
Cost segregation is a timing trade, not free money, and the recapture lands in the sale year whatever structure you choose. A 1031 defers gain but keeps you in real estate, and a Delaware statutory trust gives up control and liquidity. Seller-carried note leaves you exposed to the buyer's credit. State withholding is a prepayment you may wait a year to recover.
How much tax does this sale cause? A worked example
Married couple with $300,000 of other income. Bought in 2018 for $4,000,000 ($800,000 land), sold in 2027 for $6,000,000 less $300,000 of costs. Eight years of 39-year depreciation: $656,000.
Gain $2,356,000. A 2018 study moved $800,000 into 5-, 7- and 15-year property, written off with 100% bonus depreciation. At sale those components are allocated $500,000, all ordinary recapture; the rest of the building carried $492,000 of straight-line depreciation.
Gain $2,992,000. Same as the first example, but the couple deducted a $250,000 net Section 1231 loss on another property in 2023. That amount of this year's 1231 gain is taxed as ordinary income, taken first from the 25% layer.
| Engine run | Office building, New Jersey, no cost segregation | Same building, cost segregation in 2018 | No cost segregation, $250,000 1231 loss in 2023 |
|---|---|---|---|
| Filing status | Married, joint | Married, joint | Married, joint |
| State | New Jersey | New Jersey | New Jersey |
| Other income (wages, pension, interest) | $300,000 | $300,000 | $300,000 |
| Long-term capital gain | $1,700,000 | $2,000,000 | $1,700,000 |
| Unrecaptured Section 1250 gain (25% max) | $656,000 | $492,000 | $406,000 |
| Section 1245 recapture (ordinary income) | $0 | $500,000 | $0 |
| Ordinary income from the sale (short-term gain, inventory, non-compete) | $0 | $0 | $250,000 |
| Federal income tax on the sale | $523,353 | $693,200 | $535,860 |
| Net investment income tax (3.8%) | $89,528 | $113,696 | $89,528 |
| State income tax on the sale | $235,610 | $289,880 | $235,610 |
| Total tax caused by the sale | $848,491 | $1,096,776 | $860,998 |
| Effective rate on the gain | 36.0% | 36.7% | 36.5% |
| Gain kept after these taxes | $1,507,510 | $1,895,224 | $1,495,002 |
Computed November 21, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2026-35 (IR-2026-133, Nov 5 2026) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table.
"Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.
How much tax would you owe? Run your own numbers
2027 federal law from the engine: 0/15/20% brackets (Rev. Proc. 2026-35), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules (California on the FTB 2026 schedules, because the 2027 schedule is not published yet).
What was sold and years held only matter in a few states: Washington exempts real estate, Ohio and New Mexico treat a business sale differently, Arizona subtracts 25% for assets bought after 2011 and Oklahoma deducts gain on Oklahoma property held 5 years or more.
Tax shown is the tax caused by the sale. Excludes local taxes other than Maryland's county tax (3.2% used). Tick the active-owner box if you materially participate in the business. Education only.
Long-Term vs Short-Term Capital Gains (2027)
The one-year holding rule, the 2027 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.
Frequently asked questions
How is capital gains tax on commercial property figured?
How much is capital gains tax on commercial real estate when you sell?
What are the capital gains tax implications of investing in commercial real estate?
Does New Hampshire have a capital gains tax on commercial real estate?
What are the long-term capital gains tax implications of investing in commercial real estate?
Is depreciation recapture on commercial property 25%?
Can I 1031 a commercial property into residential rentals?
How do capital gains taxes affect the profitability of commercial real estate investments?
What is Section 291 gain on a commercial property sale?
Sources
- IRC 168, MACRS recovery periods and leasehold improvements (Cornell LII)
- IRC 1231 (Cornell LII)
- IRC 1245 (Cornell LII)
- IRC 1250 (Cornell LII)
- Treas. Reg. 1.168(k)-2 (eCFR)
- Instructions for Schedule D (IRS)
- Commissioner v. Tufts, 461 U.S. 300 (Cornell LII)
- Treas. Reg. 15a.453-1 (eCFR)
- Rev. Rul. 2004-86, IRB 2004-33 (IRS)
- IRS Publication 946, How to Depreciate Property
- NJ GIT/REP-1 nonresident seller estimated payment
- California FTB Form 593 instructions, 2026
- New York Form IT-2663 instructions
- Oregon Form OR-18-WC instructions
- NH RSA 78-B:1 real estate transfer tax
- IRC 1031 (Cornell LII)
- IRC 291, extra recapture for C corporations (Cornell LII)
Figures as of November 21, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
South Carolina
Only 56% of a long-term gain is taxed, at a top rate cut to 5.21% for 2026, but equipment recapture gets no deduction.
ReadMissouri
Missouri stopped taxing individuals' capital gains in 2025, but ordinary income hiding inside a sale still pays 4.7%.
ReadOhio
Two rates for one gain: 2.75% on investment gains, 3% on business-sale gain after a $250,000 deduction, plus a new 2026 payroll-based deduction.
ReadCost segregation before a sale
Faster depreciation now, ordinary recapture at sale: when a late cost segregation study still pays.
ReadDepreciation recapture
Which rate applies to the depreciation you took, how much comes back, and what a 1031 or an installment sale does to it.
Read1031 exchange
Defer the whole gain by trading investment real estate for more real estate, if you can find it and close inside 180 days.
ReadKnow your number before you sign.
Start with a free scope call: a short call to see whether the Big Sale Tax Analysis is worth it for your sale. No obligation.
Prefer email? Request the analysis by email.
You talk to Hans Goldstein. Enrolled Agent, admitted to practice before the IRS.