The capital gains tax on commercial property applies to the difference between what you net from the sale and your adjusted basis in the building, and the bill arrives in two layers: the portion tied to depreciation you took (or were allowed to take) is taxed at a federal rate of up to 25%, and the portion representing genuine appreciation is taxed at the long-term capital gains rate of 0%, 15%, or 20%. A 3.8% net investment income tax often stacks on top of both layers for higher earners, and state income tax comes on top of that. For most sellers, the combined federal hit lands somewhere between 20% and 29% of the gain before state taxes.
How the Gain Is Calculated
Every commercial property gain starts with one equation: amount realized minus adjusted basis. The amount realized is the sale price plus any debt the buyer assumes and the fair market value of any other property received, less broker commissions, legal fees, title insurance, and transfer taxes.
The adjusted basis is where the surprises happen. It starts with your original purchase price plus acquisition costs (title fees, surveys, appraisals, recording fees, legal fees tied to the purchase). If you inherited the property, your starting basis is the fair market value on the date of the prior owner’s death instead.
Then two adjustments run in opposite directions. Capital improvements raise the basis: a roof replacement, a new HVAC system, structural additions, ADA renovations. Routine maintenance and repairs do not count. Depreciation lowers the basis, and this is the adjustment that catches owners off guard.
The Depreciation Problem
Commercial real estate is Section 1250 property and depreciates straight-line over 39 years.1Office of the Law Revision Counsel. 26 USC 1250 – Gain From Dispositions of Certain Depreciable Realty2Internal Revenue Service. Publication 946, How To Depreciate Property Only the building depreciates; land does not, so at purchase you have to split the price between the two. Owners typically allocate based on relative fair market values, and some use local assessed values when market data is thin.3Internal Revenue Service. Publication 551, Basis of Assets
Here is the trap. The statute reduces your basis by depreciation that was “allowed or allowable,” meaning the IRS treats you as though you claimed every year of depreciation you were entitled to, whether you actually did or not.4Office of the Law Revision Counsel. 26 US Code 1016 – Adjustments to Basis Skipping depreciation deductions to save tax later does not preserve your basis. You lose the basis anyway, and the gain at sale is calculated as if you had depreciated all along.
A $1 million building depreciated for 15 years accumulates roughly $385,000 in depreciation (about $25,641 per year), leaving the building’s basis at about $615,000 before you add the undepreciated land back in. That single adjustment is usually the biggest driver of the taxable gain.
The Two Rates That Apply
Depreciation Recapture at Up to 25%
The IRS splits your long-term gain into two buckets. The portion equal to the depreciation you took (or should have taken) is called unrecaptured Section 1250 gain, and it faces a maximum federal rate of 25%.1Office of the Law Revision Counsel. 26 USC 1250 – Gain From Dispositions of Certain Depreciable Realty This bucket gets filled first. Only after the recapture layer is accounted for does the remaining appreciation get taxed at the standard long-term rate.
Long-Term Capital Gains at 0%, 15%, or 20%
Property held longer than one year qualifies for the preferential long-term rates. For 2026, the 20% rate begins above $545,500 for single filers and $613,700 for married couples filing jointly, with the 15% rate covering most taxpayers below those thresholds and the 0% rate reserved for the lowest brackets.5Internal Revenue Service. Revenue Procedure 2025-326Internal Revenue Service. Topic No. 409, Capital Gains and Losses The gain from a commercial sale often pushes sellers into the 20% bracket even when their regular income would not, because the gain stacks on top of everything else earned that year.
If you held the property one year or less, none of this applies. The entire gain is short-term and taxed at ordinary rates up to 37% for 2026.7Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
The 3.8% Net Investment Income Tax
Higher-income sellers owe an additional 3.8% surtax on investment income once modified adjusted gross income exceeds $250,000 for married joint filers or $200,000 for single filers.8Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax Those thresholds have not been indexed since the tax took effect in 2013, so more sellers hit them each year. The 3.8% applies to the smaller of net investment income or the amount income exceeds the threshold.
Stacked all together, the maximum federal rate on the recapture layer reaches 28.8% (25% plus 3.8%), and the maximum on the appreciation layer reaches 23.8% (20% plus 3.8%). State income tax adds another layer, and rates range from zero in some states to full ordinary-income treatment in others.
Worked Example
Suppose you bought a commercial building 10 years ago for $1,000,000, allocated $200,000 to land and $800,000 to the building, and depreciated the building straight-line for a decade. That produces about $205,000 of accumulated depreciation ($800,000 ÷ 39 × 10). You also spent $50,000 on a new roof.
Adjusted basis: $1,000,000 + $50,000 − $205,000 = $845,000.
You sell for $1,600,000 with $80,000 in commissions and closing costs, so the amount realized is $1,520,000. Total gain: $675,000. The first $205,000 is unrecaptured Section 1250 gain taxed at up to 25%. The remaining $470,000 is taxed at your long-term rate, typically 15% or 20%. If your income is above the NIIT threshold, 3.8% applies to both pieces.
Ways to Defer or Reduce the Tax
1031 Like-Kind Exchange
Section 1031 lets you roll the sale proceeds into another investment or business property and defer the entire gain until you sell the replacement.9Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Both properties must be held for business or investment; personal residences and property held for resale do not qualify.
Nearly every 1031 today runs through a qualified intermediary who holds the proceeds in escrow. If you receive the cash yourself, even briefly, the IRS treats it as constructive receipt and the deferral collapses.10Internal Revenue Service. Revenue Procedure 2003-39 Two deadlines run from the closing date on the property you sold: 45 calendar days to identify replacement property in writing, and 180 calendar days to close on it. The 180 days include the 45-day window, so the total is 180, not 225. Miss either date and the full gain becomes taxable.
To defer everything, the replacement must be equal or greater in value and you must reinvest all the proceeds. Any leftover cash or reduction in mortgage debt is “boot” and is taxable in the current year up to the amount of realized gain. Debt relief is the form of boot that most often surprises sellers.
Installment Sale
If you finance the buyer or otherwise receive at least one payment after the year of sale, you can report the gain proportionally as payments come in.11Office of the Law Revision Counsel. 26 US Code 453 – Installment Method Spreading the income out can keep you below the 20% capital gains threshold or the NIIT threshold in any given year.
One catch on larger deals: the IRS charges interest on the deferred tax liability when the sale price is over $150,000 and your outstanding installment obligations exceed $5 million at year-end.12Internal Revenue Service. Interest on Deferred Tax Liability For high-value sales, that interest can eat much of the timing benefit.
Releasing Suspended Passive Losses
If the property generated passive losses you couldn’t deduct against other income in prior years, selling your entire interest in a fully taxable transaction frees all of those suspended losses in the year of sale.13Internal Revenue Service. Topic No. 425, Passive Activities – Losses and Credits They offset the gain dollar for dollar. $100,000 of suspended losses wipes out $100,000 of taxable gain. This one is easy to miss because the losses have been sitting on paper for years.
Step-Up in Basis at Death
If you hold the property until death, your heirs receive a new basis equal to the fair market value on the date of death.14Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent All the accumulated depreciation and unrealized appreciation are effectively erased. A property with a $500,000 adjusted basis and $2 million fair market value passes to heirs at $2 million; they could sell shortly after and owe virtually nothing. For older investors, this is a legitimate part of the analysis, though non-tax considerations obviously matter.
Qualified Opportunity Zones
Gains reinvested into a Qualified Opportunity Fund defer the tax, and if the investment is held for at least 10 years the appreciation inside the fund is permanently excluded.15Internal Revenue Service. Opportunity Zones Frequently Asked Questions The original program required deferred gains to be recognized by December 31, 2026. New legislation has overhauled the program for investments made after that date, introducing a rolling five-year deferral, a 10% basis step-up for standard zones (30% for rural zones), and a 30-year cap on gain exclusion, with new zone designations effective January 1, 2027. The rules are in transition, so the benefits available depend on when you invest.
Forms You’ll File
Most commercial sales involve Form 4797 and Schedule D at minimum, with additional forms depending on how the sale is structured.
- Form 4797 reports the sale of business property and calculates depreciation recapture. Part III handles the Section 1250 recapture.16Internal Revenue Service. About Form 4797, Sales of Business Property17Internal Revenue Service. Instructions for Form 4797
- Schedule D reports the appreciation portion of the long-term gain at the applicable 0%, 15%, or 20% rate.6Internal Revenue Service. Topic No. 409, Capital Gains and Losses
- Form 8960 calculates the 3.8% net investment income tax when your income exceeds the threshold.18Internal Revenue Service. Instructions for Form 8960, Net Investment Income Tax
- Form 8824 is required for a 1031 exchange.9Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment
- Form 6252 is required for an installment sale.11Office of the Law Revision Counsel. 26 US Code 453 – Installment Method
The recapture calculation and basis adjustment are the two places where errors show up most often, and where the IRS can adjust the return years later. On any commercial sale of meaningful size, running the numbers with a tax professional before closing is worth more than doing it after the papers are signed.