Guide

Capital Gains Tax on Commercial Property: What Agents Should Tell Sellers

Capital gains tax on commercial property: 39-year depreciation, recapture, cost segregation, price allocation, and how a 1031 or an OZ fund can defer it.

Updated October 18, 2026

Commercial sellers usually have advisors, but the agent is often the first to ask what they’ll do after closing. Knowing how the gain breaks down helps you set up the right conversation early, especially when the buyer wants to allocate the price or the seller is weighing a 1031 against getting out. This guide covers the essentials.

It’s part of our series for agents. The hub is OZ talking points for your next listing appointment.

How the gain breaks down

A commercial building used in a business or rented out is generally §1231 property (IRC §1231). On a sale:

Part of the gainFederal rate
Up to straight-line depreciation on the building (unrecaptured §1250 gain)Up to 25% (IRC §1(h)(1)(E))
Up to depreciation on personal property and cost-segregated components (§1245)Ordinary income (IRC §1245)
The restLong-term capital gain, 0%, 15% or 20%
On top, for some sellers3.8% net investment income tax (IRC §1411)

Commercial buildings are generally depreciated over 39 years (IRC §168(c)), so the recapture builds more slowly than on a residential rental, but cost segregation studies can move part of the basis into faster-depreciating personal property, and that part comes back as ordinary income. The depreciation recapture calculator splits a sale into these parts; a worked example is in depreciation recapture for selling landlords.

Price allocation matters

The contract price is often split among land, building, equipment, and sometimes intangibles like an assumed lease. Each piece is taxed differently: land has no recapture, equipment is mostly ordinary income, and the building carries §1250 gain. Buyers and sellers want different allocations, so it’s worth flagging early for both sides’ advisors. If an operating business is part of the deal, see selling a business with real estate.

Deferral options

  • 1031 exchange. Commercial sellers often exchange into other commercial property, including triple-net leased buildings or DST interests. The whole gain, including recapture, can be deferred if all the proceeds are reinvested (IRC §1031). Deadlines are in the 1031 exchange 45-day rule.
  • Opportunity Zone fund. The seller invests an amount equal to the eligible gain in a qualified opportunity fund within 180 days (IRC §1400Z-2). The §1250 and §1231 parts can be deferred; §1245 recapture can’t (Treas. Reg. §1.1400Z2(a)-1(b)(11)(iii)). For investments on or after January 1, 2027, the deferred gain is included after five years, less a 10% basis step-up (30% for a qualified rural fund). See the Opportunity Zone tax benefits guide and the 180-day deadline calculator.
  • Installment sale, with ordinary recapture taxed in the year of sale (IRC §453(i)).

Run the options on the seller’s numbers with the 1031 vs DST vs Opportunity Zone calculator.

If the buyer is an opportunity fund

Commercial buildings in a zone can draw fund buyers, but the fund generally has to substantially improve the building by adding more than its basis within 30 months. Land-heavy sites and buildings due for major renovation fit best. See the substantial improvement rule for buyers and check the tract on the Opportunity Zone map.

Questions to ask a commercial seller

  • Has a cost segregation study been done? When?
  • How is the property owned: individually, in an LLC, or a partnership with other owners?
  • Are there existing leases, and will any equipment or business assets convey?
  • Is the plan to exchange, to get out, or to carry a note?

Sources: IRC §1231; IRC §1; IRC §1245; IRC §1250; IRC §168; IRC §1411; IRC §1031; IRC §453; IRC §1400Z-2; Treas. Reg. §1.1400Z2(a)-1; IRS Publication 544.

Not tax advice.

Frequently asked questions

How is the sale of commercial property taxed?
A commercial building used in a business or held for rent is §1231 property. Gain up to the straight-line depreciation on the building is taxed at up to 25%, gain from depreciation on personal property such as equipment or cost-segregated components is ordinary income, and the rest is usually long-term capital gain. The 3.8% net investment income tax can apply for some sellers.
How long is commercial property depreciated?
Nonresidential real property is generally depreciated straight-line over 39 years (IRC §168(c)). Land isn't depreciated.
Does cost segregation increase the tax when a commercial building sells?
It can shift part of the gain into ordinary-income recapture, because components reclassified as personal property are §1245 property (IRC §1245). That part can't be deferred in an Opportunity Zone fund.
Can a commercial property seller defer the gain?
Yes. A 1031 exchange into other investment or business real property defers the whole gain if all the proceeds are reinvested. Investing the eligible gain in a qualified opportunity fund within 180 days defers the §1250 and §1231 parts, but not §1245 recapture.

Get the OZ 2.0 Investor Guide

One email when major OZ 2.0 events happen — Treasury guidance, state filings, rule changes. Unsubscribe anytime.

Tools: Depreciation recapture calculator · 1031 vs DST vs Opportunity Zone calculator · Substantial improvement test calculator · all Opportunity Zone tools