Tax Planning When Selling a Business and Real Estate Together
How to Sell a Business and Its Real Estate With Less Tax
For business owners who own the building their company operates from, an exit transaction is rarely just one sale. It is two distinct transactions happening at the same time: the sale of the operating business and the sale of the underlying real estate. The IRS treats them differently. The buyer often wants them structured differently. And the tax bill, if not planned carefully, can take significantly more of the sale proceeds than necessary.
The good news is that combined transactions present some of the best tax planning opportunities available to business owners. The real estate piece can often qualify for a 1031 exchange, which defers a substantial portion of the gain. The operating business piece has its own set of strategies. When the two are coordinated rather than treated as a single lump-sum exit, the result is materially better than either could achieve alone.
This page walks through how combined transactions are taxed, where the planning opportunities sit, and how to structure the deal so the tax outcome supports the rest of your exit goals.

Why Combined Business and Real Estate Sales Are Different
A typical business sale involves negotiating one purchase price and one set of terms. A combined business and real estate sale involves two valuations, two structures, and two tax treatments running in parallel. The complexity creates risk, but it also creates opportunity that pure business sales or pure real estate sales do not.
The Two Sales Have Different Tax Treatment
The operating business sale generates a mix of ordinary income, long-term capital gains, and depreciation recapture, with the specific allocation depending on the structure of the deal (asset sale vs stock sale), the type of entity (C corp, S corp, LLC, partnership), and the buyer’s tax goals. The real estate sale generates long-term capital gains and Section 1250 recapture, taxed at different rates from the business components.
Buyers Often Want Different Structures for Each
Buyers of operating businesses typically prefer asset purchases (which give them a stepped-up basis in the assets and the ability to amortize goodwill). Buyers of commercial real estate often prefer entity-level transactions or direct property purchases depending on their plans. Reconciling these preferences with the seller’s tax interests requires deliberate structuring.
The Allocation of Purchase Price Matters Enormously
When a buyer pays a single combined purchase price for the business and the real estate, the allocation between the two becomes a critical tax negotiation. Allocating more to real estate may benefit the seller (lower tax rates on Section 1250 gain), while allocating more to certain business assets may benefit the buyer (faster depreciation or amortization). The IRS requires that allocation to be consistent between the two parties on Form 8594, which means it cannot be agreed to casually.
Real Estate May Qualify for a 1031 Exchange
This is the planning opportunity that most generic business sale advice misses. The real estate portion of a combined transaction can often qualify for a 1031 exchange, deferring the gain on that portion indefinitely. Whether this is possible depends on the structure of the sale, the timing of each piece, and how the contracts are drafted, but in many combined transactions, a coordinated 1031 is the single most impactful tax strategy available.

How the Tax Bill Breaks Down
For a typical combined sale of an operating business and the real estate it occupies, the total tax exposure usually includes several distinct components:
On the Real Estate Side
- Long-term capital gains on the appreciation of the property, taxed at 0, 15, or 20 percent at the federal level
- Section 1250 recapture on the building portion’s depreciation, taxed at up to 25 percent federally
- Section 1245 recapture on equipment and personal property components (especially if cost segregation was done), taxed at ordinary income rates up to 37 percent
- Net Investment Income Tax of 3.8 percent for high earners
- State tax at standard state rates
On the Operating Business Side
- Ordinary income on the portion allocated to inventory, accounts receivable, depreciation recapture on equipment, and similar items
- Long-term capital gains on the portion allocated to goodwill, customer relationships, and the equity value above hard asset value
- Section 1245 recapture on the operating equipment’s depreciation
- Net Investment Income Tax on passive components
- State tax at standard state rates
- Potential C corporation double taxation if the entity is a C corp selling assets
The Combined Effective Tax Rate
For a typical sale of $5,000,000 (split roughly between the business and the real estate), the combined federal and state tax bill without planning can easily exceed 30 percent of the total proceeds. For larger transactions, or in high-tax states, the effective rate climbs higher. This is what makes coordinated planning so valuable.
The Core Strategies for Combined Transactions
The best combined transactions are planned 12 to 24 months before the sale closes. The strategies below work best with that runway, though some can be deployed in shorter timeframes.
Strategy 1. Split the Sale into Two Distinct Transactions
The first structural decision is whether the business and the real estate should be sold as two separate transactions to two potentially different buyers, or as a single combined sale to one buyer.
When splitting works best:
- The real estate is attractive to investors who do not want to run a business
- The business is attractive to operators who would prefer to lease rather than own
- You want to sell the business but keep the real estate as a long-term rental
- You want to do a 1031 exchange on the real estate and use other strategies on the business gain
When combining works best:
- A single buyer wants both pieces (often a strategic acquirer or private equity)
- The real estate has limited standalone value without the business operations
- Timing pressure requires a single closing
This decision shapes everything else. If you can structure two separate transactions (even to the same buyer), you preserve maximum flexibility on each side.
Strategy 2. Use a 1031 Exchange on the Real Estate Portion
If the real estate qualifies (it was held for investment or business use, not as a personal residence or inventory), a 1031 exchange can defer the entire real estate gain into a replacement investment property. The exchange runs on its own 45-day and 180-day timeline, independent of the business sale.
For business owners who want to step out of active management but stay invested in real estate, Delaware Statutory Trusts and triple-net leased properties are common 1031 replacements. Both provide passive ongoing income without requiring the property management burden the original real estate involved.
The 1031 exchange handles a substantial portion of the total tax bill. The remaining business sale gain then becomes the focus of separate planning.
Strategy 3. Negotiate the Purchase Price Allocation Carefully
When a single buyer pays one combined price, how that price is allocated between the business and the real estate (and within each, between asset categories) has major tax consequences. The IRS requires the seller and buyer to file consistent allocations on Form 8594.
Higher allocation to real estate generally benefits the seller because Section 1250 gain is taxed at a maximum of 25 percent rather than ordinary income rates. Higher allocation to goodwill generally also benefits the seller because goodwill is taxed at long-term capital gains rates rather than ordinary income rates.
The buyer’s preference is often the opposite, since they want to allocate to assets with faster depreciation or amortization recovery.
This is a negotiation worth taking seriously. A favorable allocation can shift tens of thousands of dollars (sometimes much more) from ordinary income tax brackets to capital gains brackets. Work with both your CPA and a transactional attorney before the letter of intent is signed.
Strategy 4. Use Installment Sale Treatment on Portions That Qualify
For business sales involving seller financing or earnouts, installment sale treatment under IRC Section 453 spreads the capital gain across the payment years. This applies to the goodwill and long-term capital gain components but generally not to depreciation recapture (which is owed in full in the year of sale).
Combined with a 1031 exchange on the real estate portion, installment treatment on the business portion can substantially smooth the total tax burden across multiple years.
Strategy 5. Coordinate Charitable Giving in the Year of Sale
A business sale year is almost always a high-income year, which means charitable contributions in that year carry significantly more deduction value than in a normal year. For business owners with charitable intent, the sale year is the right time to fund a donor-advised fund, structure a charitable remainder trust, or make other large coordinated gifts. See charitable giving tax strategies for more.
Strategy 6. Apply Advanced Tax Mitigation to the Remaining Gain
After the 1031 exchange on the real estate, the installment treatment on the financing portion of the business sale, and the coordinated charitable giving, the remaining tax exposure typically responds well to advanced mitigation strategies. These include strategic loss recognition, structured business deduction strategies, and depreciation acceleration on other assets acquired in the same tax year.
To see whether these strategies fit your situation, review our page on who qualifies for advanced tax mitigation.
Common Scenarios and How They Typically Play Out
Different combined transaction structures call for different planning approaches. Here is how the most common scenarios usually work:
“I am selling my business and I own the building it sits in.”
This is the classic case. The most common structure is a 1031 exchange on the real estate combined with installment treatment, charitable giving, and other strategies on the business sale gain. The real estate exchange often defers 30 to 50 percent of the total tax bill, with additional offsets applied to the rest.
“The buyer wants to buy the whole thing as a single transaction.”
A combined purchase agreement can still allow for 1031 treatment on the real estate portion if the contract is structured correctly. The key is to clearly separate the real estate from the business assets in the purchase agreement, allocate the price between them on Form 8594, and route the real estate proceeds through a Qualified Intermediary as if it were a standalone exchange. This requires advance planning and skilled drafting.
“I want to sell the business now but keep the real estate.”
This is often an excellent strategy. You sell the operating business (recognizing those gains and applying offset strategies) and convert the real estate into an investment property leased back to the new business owner. The new business owner often prefers leasing anyway, and you retain a long-term cash-flowing real estate asset.
“I want to keep the business but sell the real estate.”
This is the reverse: a sale-leaseback of the real estate while continuing to operate the business as a tenant. The real estate sale generates capital gains and recapture that can be addressed with a 1031 exchange (often into passive investment property), while the business continues to operate normally.
“My business is a C corporation and we have a buyer who wants assets, not stock.”
C corporation asset sales are particularly tax-disadvantaged because of double taxation: the corporation pays tax on the asset gain, and the shareholders then pay tax again when the proceeds are distributed. Combined transactions involving C corps benefit dramatically from careful planning, including potential conversion strategies, allocation negotiations, and timing decisions that can substantially reduce the double tax bite.
“We have multiple owners with different tax situations.”
Combined transactions with multiple sellers require coordinated planning where each seller’s individual situation drives the structure. One owner may want a 1031 exchange on their share of the real estate. Another may want installment treatment. A third may benefit from charitable strategies. Sophisticated structuring can accommodate different individual strategies within a single overall transaction, but only with deliberate planning.
Mistakes to Avoid in Combined Transactions
Combined transactions are complex enough that the costliest mistakes often happen early, before tax planning is even on the radar:
- Signing a letter of intent before tax planning is complete. The structure of the deal (asset vs stock, allocation between business and real estate, payment terms) gets locked in at the LOI stage. Renegotiating these points later is difficult and sometimes impossible. Tax planning needs to happen before the LOI, not after.
- Treating the real estate as part of the business sale automatically. Many business sellers default to bundling everything into a single transaction without considering that the real estate may qualify for substantially better tax treatment if structured separately.
- Letting the buyer drive the allocation. The buyer’s allocation preferences are usually opposite to the seller’s. A casual or uncontested allocation can cost the seller meaningfully. This is a real negotiation that deserves real preparation.
- Ignoring state tax implications. Business sales often involve complex state tax issues including apportionment, residency, and successor liability. For sellers moving to a lower-tax state, the timing of the sale relative to the residency change matters enormously.
- Forgetting about the working capital adjustment. Most business sales include a working capital target with a true-up at closing. The cash flowing through this adjustment has its own tax treatment that needs to be coordinated with the rest of the planning.
- Underestimating the time required to plan properly. A well-structured combined transaction typically requires 12 to 18 months of advance planning. Sellers who first engage tax advisors in the middle of due diligence often discover that the best options have already closed.

Frequently Asked Questions About Combined Sales
Can I do a 1031 exchange on the real estate if I am selling my business at the same time?
Yes, in most cases. The real estate portion of a combined transaction can usually be structured to qualify for a 1031 exchange even when the business is sold to the same buyer. The key is to separate the real estate from the business in the purchase agreement, allocate the purchase price properly, and route the real estate proceeds through a Qualified Intermediary. The transaction has to be structured this way from the beginning, which is why advance planning matters.
How do I decide how much of the purchase price to allocate to real estate versus the business?
The allocation should reflect the fair market value of each component. A formal appraisal of both the real estate and the business is usually appropriate for sales of any meaningful size. Within the constraint of fair market value, the seller and buyer can negotiate within reasonable ranges. The seller generally prefers higher allocation to real estate and goodwill (capital gains rates), while the buyer generally prefers higher allocation to depreciable assets (faster recovery). Both parties must file consistent allocations on IRS Form 8594.
What if my business is operated through an S corp or LLC?
S corps and LLCs are pass-through entities, which means the tax on the sale flows through to the individual owners rather than being taxed at the entity level. This generally produces better tax outcomes than C corporation sales. The strategies described on this page work well for S corp and LLC sales, with the specific implementation depending on the entity’s structure and the owners’ individual situations.
Can I use installment treatment on the real estate portion?
You can elect installment treatment on the real estate portion if the buyer pays in installments rather than all cash at closing. However, if you are doing a 1031 exchange on the real estate, you cannot also use installment treatment on the same portion. Most combined transactions use 1031 treatment on the real estate (full deferral) and installment treatment on the business portion (where payment terms allow).
What happens to the working capital adjustment from a tax standpoint?
Working capital adjustments are generally treated as additional purchase price (if the buyer pays more) or a refund of purchase price (if the seller refunds money). The tax treatment depends on the underlying asset category being adjusted. This is one of the technical areas where coordinating with your CPA and transactional attorney pays dividends.
How long does it take to plan a combined transaction properly?
The ideal runway is 12 to 24 months before the sale. This allows time to structure the entity properly, evaluate 1031 replacement property options, coordinate with the buyer on allocation, and put advanced tax mitigation strategies in place if needed. Combined transactions can be planned in shorter timeframes (6 to 12 months), but the options narrow as the closing date approaches.
Do I need both a CPA and an attorney for this?
Yes. A combined business and real estate sale involves both tax planning (CPA) and transactional structuring (attorney). Both need to be experienced with mid-market business sales and real estate transactions. The cost of advisors who do this work well is small relative to the size of the transaction and the tax savings they typically generate.

Plan the Exit Before You Sign the Term Sheet
A combined business and real estate sale is often the largest financial event of a business owner’s life. The structure of the deal (decided in the letter of intent and refined in the purchase agreement) shapes the tax outcome more than any other single factor. Once the LOI is signed, most of the meaningful planning decisions are already made.
If you are considering an exit:
- Contact our team as early as possible in your planning process, ideally 12 to 24 months before you intend to sell
- Read our tax mitigation overview for the broader toolkit available to business sellers
- Review capital gains tax strategies for real estate investors for the real estate side of the picture
- See who qualifies for advanced tax mitigation to evaluate whether your transaction supports advanced planning
The single best decision a business seller can make is to involve tax planning before involving a broker or investment banker. The structural decisions that drive the tax outcome happen long before the marketing materials are written.