Capital Gains Tax on Commercial Property Sale
A commercial sale is taxed in more layers than a house
When you sell a commercial property you have held more than 1 year, the gain is usually taxed in layers. Federal long-term capital gains rates of 0%, 15% or 20% apply to the appreciation, up to 25% applies to straight-line depreciation on the building, and ordinary rates apply to depreciation recaptured on equipment and other personal property. State tax and, above certain income levels, a 3.8% net investment income tax may be added.
The commercial seller's checklist: 12 items. The first is free on this page.
Updated November 15, 2026 by Private Exchange Group. 3 minute read. Not tax or legal advice.
The short version
- Gain on a commercial building is the amount realized minus an adjusted basis that years of depreciation have pushed well below the purchase price.
- Straight-line depreciation on the building is taxed at up to 25%, while recapture on personal property components is ordinary income under Section 1245.
- A cost segregation study speeds up deductions during ownership and can move more of the gain into ordinary income when the property is sold.
- An owner who is buying other business or investment real estate can defer the gain through a 1031 exchange arranged before the sale closes.
How the gain on a commercial building is measured
Gain is the amount you realize from the sale minus your adjusted basis. For a commercial building that basis has usually been falling for years. Nonresidential real property is generally depreciated on the straight-line method over 39 years, and each year's deduction lowers the basis by the same amount. Land is not depreciated, so its cost stays in place.
The gain then has to be sorted. IRS Publication 544 explains that real property used in a business or held as rental property is not a capital asset, and that gain on such property held more than 1 year is generally a Section 1231 gain. A net Section 1231 gain is treated as long-term capital gain, except that it is ordinary income up to any net Section 1231 losses from the previous 5 years that have not already been recaptured.
The layers and how each one is taxed
Once the gain is measured, each part of it is taxed under its own rule, and the mix depends on how the property was depreciated and on your income for the year. The rates shown are the federal rates for individuals. If a C corporation owns the building, its tax is figured differently, so ask that company's CPA.
The 3.8% layer depends on how you hold the property. Section 1411 applies it to gain from property that is not held in a trade or business, and to businesses that are passive for the owner. A building you rent out as a passive investor is generally covered. A building used in a business you actively run generally is not.
Swipe the table sideways to see every column
Federal treatment for individuals from the IRS sources listed below. An outline of the rules, not a forecast of any seller's tax.
Before closing or not at all
Three ways a sale stops being an exchange
Touch money. Pay tax.
If the proceeds are paid to you or to someone acting for you, the sale is taxable. The intermediary has to be in place before the closing.
Day 45 passes
You have 45 calendar days from the closing to name, in writing, the property you may buy. Weekends and holidays count.
You come out with cash
Cash you keep, or a loan you pay off and do not replace, is taxed up to the amount of your gain.
General rules, not tax or legal advice.
What cost segregation changes at sale
Many commercial owners commission a cost segregation study after they buy. The IRS audit guide on these studies describes what they do: costs are moved out of the building, which is Section 1250 property on a 39-year straight-line schedule, and into tangible personal property such as equipment, furniture and fixtures, which is Section 1245 property with a shorter recovery period such as 5 or 7 years.
The faster write-off returns at sale. Under Section 1245, gain on that property is ordinary income up to the depreciation allowed or allowable, where the same dollars left in the building would have been taxed at no more than 25%. Ask your CPA for the split before you set a price. The capital gains estimator gives a first range for the real property layers.
The exchange option for owners who are staying invested
Commercial owners often sell because the building has stopped fitting: a tenant left, the business outgrew the space, or the equity would earn more somewhere else. If the plan is to buy other real estate, there is an alternative to selling and paying. In a 1031 exchange, a building used in business or held as an investment is traded for other real estate of like kind, and the gain is not recognized at that time. It is deferred, not forgiven, and it rides in the lower basis of the replacement.
Buildings with a cost segregation history need extra care. Since 2018 Section 1031 has covered only real property, and Treasury Regulation 1.1031(a)-3 defines the term for this purpose, so components a study classed as personal property have to be reviewed against that definition. Section 1245 also carries its own limit in an exchange, which can bring ordinary income back when the replacement includes less Section 1245 property. Both are questions for your CPA, and both are easier to answer before a contract is signed.
None of this works unless the exchange is opened before the sale closes, with a qualified intermediary named in the closing instructions. From closing you have 45 days to put your replacement choices in writing and 180 days to take title, or until your tax return is due, extensions included, if that date comes sooner. If you are leaving real estate or need the proceeds for the business, a taxable sale may be the better course. The checklist at the end of this page covers what to request from your CPA, and you can request a consultation before you list.
Questions people ask
What is the capital gains tax rate on commercial real estate?
There is no single rate. For an individual who held the property more than 1 year, the appreciation falls under the 0%, 15% or 20% capital gains rates, straight-line depreciation on the building is taxed at up to 25%, and depreciation recaptured on personal property is taxed at ordinary rates. Your state may tax the gain as well, and higher-income owners can owe the 3.8% tax too.
Do I pay depreciation recapture when I sell a commercial building?
Usually, in some form. Depreciation lowered your basis, so it comes back as gain when you sell. On the building itself, straight-line depreciation is taxed at a maximum of 25%. On equipment and other Section 1245 property, the depreciation is recaptured as ordinary income.
Does a cost segregation study hurt me when I sell?
It can raise the tax at sale, though it does not change the total gain. A study moves cost into Section 1245 property, and gain on that property is ordinary income up to the depreciation taken. You received larger deductions earlier in return. Whether that trade was worthwhile depends on your rates then and now, which your CPA can compare.
Is a tax free exchange allowed on commercial property or only on rentals?
Commercial property qualifies. The statute reaches any real property used in a business or held as an investment, so offices, retail, warehouses and land stand on the same footing as rental housing. The exchange is tax deferred, not tax free: the gain carries into the replacement property. A building bought mainly to resell is the exception and cannot be exchanged.


Know where you stand before you close
Tell us when the sale closes and what you own. You will hear where you stand and what has to happen first.
- Whether the property qualifies
- Your 2 deadlines on a calendar
- What your closing agent needs
Asking commits you to nothing. It keeps the option open.
Keep reading
Sources
- IRS: Topic no. 409, Capital gains and losses
- IRS: Publication 544, Sales and Other Dispositions of Assets
- 26 U.S.C. 1245, Gain from dispositions of certain depreciable property
- IRS: Publication 5653, Cost Segregation Audit Technique Guide
- 26 CFR 1.1031(a)-3, Definition of real property
- IRS: Topic no. 559, Net investment income tax
