How to Calculate Tax on Sale of Commercial Property
Use this advanced calculator to estimate depreciation recapture tax, capital gain tax, NIIT, state tax, and your net proceeds.
Expert Guide: How to Calculate Tax on Sale of Commercial Property
Calculating tax on the sale of commercial property is more complex than simply multiplying profit by a tax rate. In practice, you are dealing with at least four moving parts: adjusted basis, total gain, depreciation recapture, and gain character (short-term vs long-term). Depending on your income, ownership structure, and state, your effective tax bill can differ dramatically from a headline federal rate. This guide walks you through a practical framework that investors, brokers, and tax planners use when evaluating a disposition strategy.
1) Start with the amount realized
Your first step is to determine amount realized, which is not necessarily the contract price. Amount realized generally equals gross sale price minus direct selling costs, such as broker commissions, legal fees, transfer taxes, title costs, and certain closing charges. Investors frequently overestimate gain because they use gross sale price and ignore legitimate selling expenses.
- Gross sale price: the contract amount received
- Less selling expenses: commission, legal, escrow, and other closing costs
- Result: amount realized
If your lender payoff is high, remember that debt payoff affects your cash at closing, but it does not directly reduce taxable gain. Tax gain is based on amount realized compared to adjusted basis.
2) Calculate adjusted basis correctly
Adjusted basis is a tax concept that starts with your original cost and then moves up or down over the ownership period. For commercial real estate, the biggest downward adjustment is depreciation taken (or allowable). The basic formula is:
- Original purchase price
- + Capital improvements (eligible basis additions)
- – Accumulated depreciation
- = Adjusted basis
This is the number many owners underestimate, especially if records are old or property improvements were not tracked clearly. A lower adjusted basis creates a larger taxable gain.
3) Determine total gain
After calculating amount realized and adjusted basis, total gain is straightforward:
Total Gain = Amount Realized – Adjusted Basis
If the number is negative, you may have a loss. Loss treatment depends on how the property was used and your entity structure. For most income-producing commercial property, a loss can potentially offset other gains, subject to passive activity and entity-level rules.
4) Split gain into depreciation recapture and remaining gain
This is the step that surprises many sellers. For depreciable real property, the portion of gain attributable to prior depreciation is generally taxed at a higher federal rate cap than long-term capital gain. In common planning language, owners call this “depreciation recapture,” and for unrecaptured Section 1250 gain it is commonly taxed up to 25% federally.
- Recapture portion: up to cumulative depreciation taken, limited by total gain
- Remaining gain: generally eligible for long-term capital gains rates if held over one year
This split matters because two sales with identical gross profit can generate very different taxes if one property had heavy cost segregation and accelerated depreciation versus another with lighter depreciation history.
5) Apply federal rates, NIIT, and state tax
Federal tax on a commercial sale may involve multiple layers:
- Depreciation recapture component (often up to 25%)
- Long-term capital gains rate (0%, 15%, or 20% depending on taxable income)
- Net Investment Income Tax (NIIT) at 3.8% for qualifying higher-income taxpayers
- Potential ordinary income treatment for short-term holding periods or special circumstances
- State and local income tax on gain
Because state taxes vary, a seller in a no-income-tax state can have a significantly lower combined burden than a seller in a high-tax state, even if their federal profile is the same.
Federal tax components at a glance
| Tax Component | Common Federal Rate | When It Typically Applies | Planning Impact |
|---|---|---|---|
| Unrecaptured Section 1250 gain (depreciation-related) | Up to 25% | Gain attributable to prior depreciation on real property | Can materially increase blended rate on sale |
| Long-term capital gain | 0%, 15%, or 20% | Property held more than 1 year; gain above recapture portion | Main tax driver for appreciated assets |
| Net Investment Income Tax | 3.8% | Higher-income taxpayers with net investment income | Stacking effect that raises effective federal burden |
| Ordinary income rates | Up to 37% (individual federal bracket) | Short-term gain or certain recharacterized items | Can sharply increase tax for rapid flips |
2024 long-term capital gains thresholds (IRS)
| Filing Status | 0% Rate Up To | 15% Rate Range | 20% Rate Above |
|---|---|---|---|
| Single | $47,025 | $47,026 to $518,900 | $518,900 |
| Married Filing Jointly | $94,050 | $94,051 to $583,750 | $583,750 |
| Married Filing Separately | $47,025 | $47,026 to $291,850 | $291,850 |
| Head of Household | $63,000 | $63,001 to $551,350 | $551,350 |
6) Example calculation workflow
Suppose an investor sells a commercial building for $1,800,000, pays $90,000 in selling expenses, originally purchased for $1,200,000, added $180,000 of improvements, and claimed $220,000 depreciation.
- Amount realized = $1,800,000 – $90,000 = $1,710,000
- Adjusted basis = $1,200,000 + $180,000 – $220,000 = $1,160,000
- Total gain = $1,710,000 – $1,160,000 = $550,000
- Depreciation recapture portion = min($550,000, $220,000) = $220,000
- Remaining gain = $330,000
From there, apply your tax assumptions. If recapture is 25%, long-term gain is 20%, NIIT applies, and state tax is 5% on gain, total tax can be materially higher than using a single 20% assumption.
7) Common mistakes when estimating tax on commercial sales
- Ignoring depreciation history: Prior returns and depreciation schedules are crucial.
- Using gross sale price instead of amount realized: Selling costs matter.
- Forgetting NIIT: High-income taxpayers often miss the 3.8% layer.
- Missing state tax impact: State rates can alter net proceeds by tens of thousands.
- Assuming all gain is capital gain: Recapture and ordinary buckets may apply.
8) High-level planning options to consider before sale
While this page focuses on calculation, planning timing is equally important. Depending on your objectives, options may include deferring gain via like-kind exchanges, structuring installment treatment where applicable, bunching offsetting losses, or coordinating charitable and estate strategies. The right approach depends on your cash needs, debt profile, portfolio plan, and expected future tax rates.
Important: This calculator provides an educational estimate, not legal or tax advice. Commercial property dispositions can trigger additional rules at the federal and state level, including passive activity, depreciation method nuances, and entity-specific consequences. Always review final numbers with a CPA or tax attorney.
9) How to use this calculator effectively
- Pull your latest depreciation schedule from your tax return files.
- Estimate selling costs realistically, including brokerage and legal fees.
- Choose holding period correctly; short-term treatment can significantly increase tax.
- Enter your best estimate for ordinary and long-term rates based on your broader income.
- Toggle NIIT on if your projected income likely exceeds NIIT thresholds.
- Run multiple scenarios (base, optimistic, conservative) before listing the property.
10) Authoritative government resources
- IRS Publication 544: Sales and Other Dispositions of Assets
- IRS Topic No. 409: Capital Gains and Losses
- IRS Form 4797 (Sales of Business Property)
Bottom line: calculating tax on the sale of commercial property requires a layered approach, not a single rate shortcut. If you accurately compute adjusted basis, split depreciation-related gain from remaining gain, and apply NIIT and state tax where relevant, you will produce a far more reliable estimate of post-sale proceeds. Use the calculator above as a planning tool, then validate final figures with professional tax preparation support before closing.