Skip to main content
Skip to main content
How to Calculate Tax on Sale of Commercial Property

How to Calculate Tax on Sale of Commercial Property

May 17, 2026 | Written and reviewed by , CPA, California Board of Accountancy License #56113

Understanding how to calculate tax on the sale of commercial property can save you money and devastating mistakes that could result in heavy fines or penalties. Unlike a simple home sale, commercial property transactions involve more complex aspects, from determining your adjusted cost basis to applying the correct tax rates and deductions. Because of this, getting professional help is not a luxury; it’s a necessity.

Universal Pacific 1031 Exchange is a reputable firm with over 32 years of experience guiding investors through the complexities of real estate transactions. We specialize in structuring compliant 1031 exchanges, ensuring that clients can legally defer capital gains taxes while maximizing their investment potential. Contact us today to start an exchange

This article explains the meaning of capital gains taxes and how to calculate them when selling a commercial property.

What Is Capital Gains Tax on Commercial Property?

Capital Gains Tax on Commercial Property

Capital gains tax is the tax charged on the profit made when you sell a commercial property for more than it cost you to buy and improve it. In commercial real estate, this profit is called a capital gain, and it counts as investment income in the eyes of the Internal Revenue Service. This tax applies to all commercial real estate investments, including office buildings, warehouses, and retail spaces

The simple formula for calculating capital gains is: Capital Gains = Net Selling Price − Adjusted Basis. Here “net selling price” means the sale price of the property minus any selling expenses, while the “adjusted basis” is the original purchase price plus the costs of improvements, minus the depreciation deductions claimed over the years. 

Subtracting this adjusted basis from the net selling price gives you the gain on the sale, and it is on this amount that capital gains tax is calculated. Part of the gain may be subject to depreciation recapture taxes, which can increase the tax liability for commercial real estate investors. 

The capital gains tax rate on commercial property depends on the taxpayer’s or investor’s income level and filing status. Additional taxes, such as the net investment income tax (NIIT) and state and local taxes (SALT) may also apply, adding to the overall tax burden. Knowing how capital gains taxes work helps real estate investors understand their tax burden and plan for the capital gains tax bill that may come with a sale.

How to Determine Short-Term vs. Long-Term Capital Gains Taxes

Short-term and long-term capital gains taxes are classified based on how long you own a capital asset before selling it. The Internal Revenue Service defines short-term capital gains as profits from selling an asset you held for one year or less, while come from assets held for more than a year

This holding period applies to many types of assets, including commercial real estate investments, stocks, and other property. Knowing whether your gain is short-term or long-term is important because it affects how the capital gains tax is calculated and what tax rate applies

Short-term capital gains are generally taxed at your ordinary income tax rate, which is significantly higher than the long-term capital gains tax. The appropriate tax rate for long-term gains is 0%, 15%, or 20%, depending on your taxable income and filing status. High earners may also pay the net investment income tax of 3.8% on top of their capital gains tax bill.

Calculating your holding period starts the day after you acquire the property and ends on the day you sell it. For example, if you purchased an investment property on November 5, 2024, and sold it on the same date in 2025, you held the property for exactly one year, classifying the gain as short-term. If you sold it on August 3, 2026, that would be over a year and would classify as a long-term gain.

What Taxes Apply When Selling Commercial Property?

When selling a commercial property, several types of taxes can apply. The most common of them is the capital gains tax, which is charged on the profit you make from the sale of the property. Another tax you might owe is the depreciation recapture tax on the depreciation claimed over the years.

Depending on the property’s location, you might also face state and local taxes, which can add to your tax burden and affect your final net proceeds. However, it is important to note that commercial and residential properties can be taxed differently when sold.

While both are subject to capital gains taxes and depreciation recapture, commercial properties often involve higher depreciation amounts, which can increase the tax liability at sale. Residential properties, especially a primary residence, may qualify for special exclusions.

Under the Internal Revenue Code, homeowners are allowed to exclude part or all of the gain from the sale of their main home from capital gains taxes. If you are married filing jointly, you can exclude up to $500,000 of capital gains from your taxable income, as long as both spouses meet the ownership and use tests set by the IRS. 

For those who are single or married filing separately, the maximum exclusion is $250,000. If your profit exceeds these limits, it will be subject to capital gains tax. Given the different taxes involved and the potential size of the capital gains tax burden, consulting an experienced tax professional or financial advisor before completing a sale is wise.

How to Calculate Tax on the Sale of Commercial Property?

How to Calculate Tax on the Sale of Commercial Property

Properly calculating your tax after a commercial property sale can be challenging for most real estate investors. The process extends beyond just knowing your sale price; it requires determining your adjusted basis, accounting for depreciation, and understanding how different taxes apply.

How Do You Calculate the Adjusted Basis?

Calculating the adjusted basis of a commercial property starts with the original purchase price, which is the amount you paid to acquire it, including certain closing costs. This figure is then increased by the cost of improvements or renovations that add value, extend the building’s life, or adapt it to a different use. 

Examples include structural upgrades, new roofs, expanded floor space, or major system replacements. Routine repairs, like fixing a leak or repainting, do not increase the basis because they are considered maintenance, not improvements. From this total, you subtract the depreciation deductions you have claimed over the years. 

Depreciation reflects how the IRS accounts for wear and tear, and while it can lower your taxable income each year, it also reduces your basis, which increases your taxable gain when you sell. In summary, the adjusted basis formula is: Adjusted Basis = Purchase Price + Improvements – Depreciation. 

For example, if you bought a warehouse for $700,000, invested $200,000 in innovations, and claimed $40,000 in depreciation, your adjusted capital gains tax basis would be $860,000. If you later sold it for $1,200,000, your gain would be $340,000. This is the figure the IRS uses to calculate both the capital gains tax and any depreciation recapture owed.

How Do You Calculate Capital Gain on Sale?

As given above, the formula for calculating capital gains is net selling price – adjusted cost basis. So, to calculate the net selling price of a commercial property, start with the sale price and subtract your selling expenses. These expenses include broker commissions, legal fees, title charges, and other costs directly tied to closing the sale. 

The result is your net proceeds, which is the actual amount you receive from the transaction. Next, subtract the property’s adjusted basis from the net proceeds. The adjusted basis is the original purchase price plus the cost of qualifying improvements, minus the depreciation deductions you have claimed over the years. The difference between your net proceeds and your adjusted basis is your taxable capital gain:

Example:

Sale price = $1,400,000

Selling expenses = $60,000

Net proceeds = $1,340,000

Adjusted basis = $950,000

Capital gain = $1,340,000 $950,000 = $390,000

In this example, the $390,000 gain is subject to federal capital gains tax, possible net investment income tax, and any applicable state or local taxes. A portion of this amount may also be taxed separately for depreciation recapture. 

What Is Depreciation Recapture and How Does It Affect Taxes?

What Is Depreciation Recapture and How Does It Affect Taxes? 

Depreciation recapture is the IRS’s way of taxing the portion of your profit that comes from claiming depreciation on a property over the years you owned it. When you own commercial real estate, you can deduct a set amount each year to account for wear and tear, which lowers your taxable income during ownership. 

However, when you sell the property for more than its depreciated value, the IRS wants to recapture some of those tax benefits, treating them as part of your taxable gain. This affects your taxes because the amount you’ve claimed as depreciation is not taxed at the long-term capital gains tax rate. 

Instead, it’s taxed as ordinary income but capped at a maximum rate of 25%. For example, if you took $80,000 in depreciation deductions over the years, that $80,000 will be taxed separately from your regular capital gains on the sale, even if your overall profit is much higher.

Are There Other Taxes on Commercial Property Sales?

Apart from federal capital gains taxes, there are also State and Local Taxes (SALT), which state and local governments often impose on the sale of commercial property. Depending on the region, these taxes can take the form of transfer taxes, recording fees, or local surtaxes on high-value commercial real estate investments. 

If you are a high earner, the Alternative Minimum Tax (AMT) also affects how your capital gains tax is calculated for commercial property sales. The AMT is a separate tax calculation meant to ensure high-income individuals and certain corporations pay at least a minimum level of tax.

While it’s less common now due to changes in tax law, certain large gains or deductions connected to the sale of commercial property can still push a seller into AMT territory, which might increase the total tax owed. 

Another potential factor is the Net Investment Income Tax, as mentioned earlier. This tax imposes a 3.8% rate on the net investment income for individuals, estates, and trusts with a Net Investment Income (NII) and Modified Adjusted Gross Income (MAGI) above certain thresholds. If your income, including the gain from the sale of a property, exceeds those limits, this tax can apply on top of regular capital gains and recapture. 

One way to defer these federal taxes is through a 1031 exchange, which allows you to reinvest the proceeds of a property sale into another qualifying property and postpone paying taxes until a future sale, as long as strict IRS rules are followed.

What Deductions Can Reduce Your Taxable Gain?

Certain deductions can significantly lower your capital gains tax bill when selling a commercial property. One of these deductions is the subtraction of common selling expenses such as real estate agent commissions, title insurance, legal fees, Qualified Intermediary fees, and marketing costs from the sale price when calculating your net proceeds.

These deductions reduce the profit amount that the IRS uses to determine your capital gains liability. Another is the SALT deduction, which was previously capped at $10,000 under the 2017 Tax Cuts and Jobs Act. However, as of July 4, 2025, under the One Big Beautiful Bill Act signed into law by President Donald Trump, this deduction rises to $40,000

It allows a $20,000 deduction if married filing separately, with gradual annual increases of 1% until 2029 before dropping back to $10,000 in 2030. However, for taxpayers in the $500,000 – $600,000 range, the deduction is reduced by 30%

Another notable deduction is the primary residence exclusion of up to $500,000, depending on your filing status. You can also get deductions for improvement expenses made specifically to prepare the property for sale, as well as depreciation deductions taken during ownership.

While depreciation recapture taxes can increase an investor’s tax burden, the original depreciation deductions help reduce taxable income during the years the property is held. In addition, if the property qualifies for certain tax credits or incentives under the Internal Revenue Code, these benefits can offset some of the capital gains tax calculated at the time of sale.

Claiming these deductions requires accurate reporting when filing your tax return. Hence, it is important to keep detailed records of every deductible expense tied to your commercial real estate investments. The deductions are generally reflected when you calculate capital gains tax using IRS forms specific to the sale of a capital asset, factoring in your adjusted cost basis. 

Best Tax Strategies When Selling Commercial Property

Best Tax Strategies When Selling Commercial Property

Selling commercial property often comes with a sizable tax bill, but certain approaches can help reduce or delay those taxes while keeping more of your profit working for you. Here are some of the most effective tax strategies:

  • 1031 Exchange (Like-Kind Exchange): This tax strategy allows you to postpone capital gains tax by reinvesting your sale proceeds into another qualifying property, keeping more capital available for future investments.
  • Installment Sale: This is done by spreading your taxable gain over several years by receiving the sale price in installments, easing the yearly tax burden and improving cash flow.
  • Opportunity Zones: This tax incentive is utilized by investing gains into a Qualified Opportunity Fund (QOF). This allows you to defer taxes until December 31, 2026, or until the investment property is sold, whichever comes first. In addition, if you hold your investment in the QOF for at least ten years (if the program extends for that long by an act of legislature), you may permanently exclude any gain from appreciation when you sell by stepping up your basis to the fair market value at that time. 
  • Maximize Deductions: You can also reduce your taxable gain by claiming allowable selling expenses such as broker commissions, legal fees, title costs, and qualified improvements before the sale.

How a 1031 Exchange Can Help Defer Capital Gains Tax

A 1031 exchange allows taxpayers to defer or postpone paying immediate capital gains when they sell a property. This is done by reinvesting the proceeds of a relinquished property into the purchase of a like-kind property. This approach keeps more money working for you, allowing your real estate portfolio to grow without the setback of an immediate tax bill. 

However, the process is bound by strict IRS timelines. The IRS rules require you to identify a replacement property within of selling your old property and finalize the purchase within . The property you buy must also meet the “like-kind” requirement, meaning it serves as an investment or commercial asset, not personal property

Because the 1031 exchange rules are detailed and deadlines unforgiving, many investors rely on experienced QI or qualified tax professionals to manage the process. Their expertise helps ensure that each step meets IRS requirements, preventing costly mistakes that could trigger taxes. With careful planning and proper guidance, a 1031 exchange can be a powerful way to defer taxes and keep your capital fully engaged in producing income for you.

How Do You Report the Sale on Your Tax Return?

When you sell investment or business property, the transaction must be reported on your tax return using various forms. For most real estate sales, capital gains and losses are reported on Schedule D (Capital Gains and Losses) and Form 8949 (Sales and Other Dispositions of Capital Assets).

If the property was used in a trade or business, you may also need Form 4797 (Sales of Business Property) to calculate gains subject to depreciation recapture. If you completed a 1031 exchange, you’ll also file Form 8824 (Like-Kind Exchanges) to detail the transaction and show that taxes were deferred rather than paid immediately. 

The IRS requires these forms to be filed with your annual tax return, generally due by April 15 (or the next business day if it falls on a weekend or holiday), unless you request an extension. It is essential to keep thorough records involved in the transactions for at least three to seven years.

Some of these documents include settlement statements, proof of improvements, depreciation schedules, and exchange agreements. Accurate reporting not only ensures compliance but also helps you avoid penalties, interest, or the IRS disallowing your tax deferral.

Ready to Defer Capital Gains on Your Sale?

Deferring capital gains on a commercial property starts with knowing how your gain is calculated. This is very important because a single miscalculation could result in extreme penalties. As discussed earlier, the formula for calculating your gain is your net selling price minus your adjusted cost basis. 

This gain is then subject to federal government capital gains tax, depreciation recapture, and possible state and local taxes. The good thing is that these taxes can be deferred using a powerful tax-deferral strategy like a 1031 exchange. However, the rules are strict and the paperwork detailed; hence, the need for professional guidance.

At , we have over 35 years of experience in helping investors facilitate successful 1031 exchanges. From calculating your gain accurately to navigating the strict IRS timelines, we ensure your exchange is structured for maximum tax savings while staying fully compliant. To get started, you can walk into any of our offices or contact us directly. 

FAQs

These are questions people are frequently asking about how to calculate tax on the sale of a commercial property, and their provided answers.

How to Calculate Capital Gains Tax on the Sale of Commercial Property?

To calculate your capital gains tax, you have to first determine your capital gains. This is done by subtracting your adjusted cost basis (purchase price plus improvements minus depreciation) from your net selling price (sale price minus selling costs). The resulting gain is subject to federal capital gains tax, depreciation recapture, and any applicable state and local.

How Much Tax Do You Pay When You Sell a Commercial Property?

The amount depends on factors like your total gain, federal capital gains rate (typically 15% or 20% for long-term gains taxes), the depreciation recapture rate (up to 25%), and any state or local taxes. High-value commercial property sales can result in substantial capital gains tax liability, sometimes exceeding 30% of your gain.

How to Avoid Paying Capital Gains Tax on the Sale of Rental Property?

While you generally cannot completely avoid capital gains tax unless you qualify for specific exemptions, you can defer paying it through a 1031 exchange by reinvesting sale proceeds in another like-kind investment property. This strategy lets you roll over your gains into a new property and postpone tax payment until you eventually sell without doing another exchange. 

What Is the Capital Gains Tax Rate on the Sale of Investment Property?

For long-term held property, the capital gains rate is 15% or 20%, depending on income, while short-term gains are taxed at an ordinary income rate. In addition, depreciation recapture is taxed at a maximum of 25%, and state or local tax rates vary.  

Do I Have to Pay Capital Gains Tax Immediately?

Yes, if you sell your property outright, capital gains taxes are due in the tax year of the sale. However, if you complete a 1031 exchange, you can defer those taxes as long as you meet the IRS’s strict deadlines and requirements.

Editorial Policy

All articles are reviewed for accuracy by licensed tax professionals and sourced from official government publications. Read our Editorial Policy →

About The Author

Michael Bergman, CPA

linkedin logoMichael Bergman is a California licensed CPA and Real Estate Broker with over 35+ years of CPA-supervised 1031 exchange experience in commercial real estate. Specializing in 1031 tax-deferred exchanges and financial oversight, his expertise is invaluable for complex real estate transactions. Michael’s unique blend of financial acumen and real estate knowledge positions him as a trusted advisor in the industry, offering sound advice and strategic insights for successful property management and investment.

Michael Bergman
Don’t let taxes hinder your property investment decisions. Connect with us today for a free, no-obligation 1031 exchange consultation. Anywhere in the United States. Let us help you navigate the process with ease, available nationwide.