Business Exit Advisor Match

Selling Business Real Estate: 1031 Exchange, Sale-Leaseback, and Tax Strategy

Many business owners treat the real estate as an afterthought in an exit — the building comes along with the business, the buyer takes it, and that's that. That approach leaves substantial money on the table. If your company owns its building, the real estate decision is separate from the business sale decision, it involves different tax rules, and getting it right can save hundreds of thousands of dollars or more. Here's the full picture.

The core issue: Business sale proceeds are typically taxed at long-term capital gains rates (20% federal + 3.8% NIIT). Real estate has an additional wrinkle: prior depreciation is recaptured at a maximum 25% federal rate — more expensive than standard LTCG but still far cheaper than ordinary income. On a $2M building with a decade of depreciation, the 25% recapture can add $60–$100K of tax that sellers often don't model. A 1031 exchange defers both the recapture and the LTCG entirely — but only if structured correctly.

Why buyers and sellers often diverge on real estate

Most business buyers — especially private equity groups, strategic acquirers, and search fund operators — want the operating business, not a real estate investment. They've modeled EBITDA multiples on the business. They haven't modeled capitalization rates on a building. Including real estate in the deal can complicate their financing, reduce their return on equity, and add a management obligation they didn't underwrite. Many buyers will either exclude the real estate from the acquisition or heavily discount it.

This divergence is actually useful for the seller. You often have more flexibility to dispose of the real estate on your terms if you separate it from the business transaction. Two common approaches:

  1. Sell the business, 1031 exchange the real estate separately. You close the business sale for the operating company, then separately sell the building and roll proceeds into replacement property — deferring all capital gains and depreciation recapture indefinitely.
  2. Sale-leaseback before or at closing. You sell the building to a real estate investor (either concurrent with or prior to the business sale), sign a long-term NNN lease as tenant, and continue operating from the same location. The buyer of the business gets a clean operating company; you get sale proceeds to invest and a lease obligation to manage.

The depreciation recapture math: the 25% rate sellers miss

When you sell commercial real estate you've depreciated, the IRS separates your gain into two buckets:1

For nonresidential commercial property placed in service after 1986 and depreciated on 39-year straight-line, all prior depreciation falls into the unrecaptured § 1250 bucket. There's no ordinary income recapture in this case — that's reserved for personal property (equipment, vehicles) under § 1245.

Item Example
Building purchased (2010) $1,000,000
Depreciation taken (16 yrs × $25,641 / yr) ($410,256)
Adjusted basis at sale $589,744
Sale price $2,000,000
Total gain $1,410,256
Unrecaptured § 1250 gain (25% tax rate) $410,256
Remaining LTCG (20% tax rate) $1,000,000
Federal tax: $410,256 × 25% + $1,000,000 × 20% $302,564
California state tax (13.3% on full $1,410,256) $187,564
Total tax — sell and cash out (CA) $490,128
Total tax — 1031 exchange $0 (deferred)

Simplified illustration. Assumes no NIIT (material participation), no land value allocation, no state conformity issues. Land is not depreciable and not subject to § 1250 recapture. Actual depreciation schedule depends on property classification, improvements, and cost segregation study results.

The 1031 exchange: how to defer everything

Under IRC § 1031, if you exchange business or investment real property for like-kind real property of equal or greater value, you defer all capital gains tax and depreciation recapture — indefinitely, and potentially forever (the basis steps up at death under current law).3

Key mechanics:

1031 exchange and the business sale timing problem: If you're selling the business and the real estate to the same buyer at the same closing, structuring a 1031 exchange can be complicated — you need the real estate to close as a separate transaction with a QI in place. This requires advance planning and coordination with your transaction counsel. Last-minute attempts to carve out the real estate after an LOI is signed often fail or require renegotiation.

Sale-leaseback: sell the building, stay in it

A sale-leaseback lets you convert building equity to investment capital while continuing to operate from the same location under a long-term lease. For business sellers, it has additional utility: it separates the real estate from the operating company before the business transaction, giving the business buyer a clean deal and you more flexibility on the real estate exit.

How it works:

  1. You sell the building to a net-lease investor (typically an individual investor, family office, or REIT-adjacent fund).
  2. At closing, you sign a long-term NNN (triple-net) lease — typically 10–20 years — as tenant. Under NNN terms, you pay base rent plus property taxes, insurance, and maintenance.
  3. Proceeds from the sale (minus tax, unless 1031 exchanged) go to you. You can invest them in a diversified portfolio, pay off debt, or fund the post-sale plan described below.
  4. When you later sell the business, the acquirer buys the operating company (and assumes or negotiates the lease). No real estate involved.

Typical sale-leaseback pricing for 2026: Cap rates in the 5–7% range for single-tenant NNN commercial properties in secondary markets; 4–6% in primary markets with strong credit tenants. A $2M building at a 6% cap rate implies $120,000 annual rent — model this against your post-sale cash flow before committing. The rent obligation doesn't go away when the business does; if the new owner struggles, you may be on the hook for lease obligations.

Tax treatment of sale-leaseback proceeds: The sale is taxed exactly as described above — § 1250 recapture at 25%, LTCG on appreciation. You can 1031 exchange a sale-leaseback into replacement real estate and defer all of it. If you take cash, the tax is owed in the year of sale regardless of the leaseback arrangement.

Real estate entity structure and QSBS — a critical interaction

If your operating company is a C-corporation and you're planning to claim QSBS exclusion under IRC § 1202, where you hold the real estate matters enormously.4

Under § 1202(e)(1)(A), a qualified small business must use at least 80% of its assets in the "active conduct" of a qualified trade or business. Real estate owned inside the C-corp — particularly a building that's the corporation's primary business address — can satisfy this test if the real estate is integral to the operation. But as the business grows and the building appreciates, real estate can come to represent a disproportionate share of total corporate assets, potentially threatening the 80% active-use test.

More specifically, § 1202(e)(7) disqualifies stock in any corporation engaged in "the business of renting real estate." A company that rents space to its own subsidiary or related party likely isn't a rental business. But a holding structure where a C-corp owns the real estate and leases it externally could fail.

Best practice: Keep real estate in a separate entity — typically a single-member LLC or family LP — that is not the C-corp issuing the QSBS stock. The operating C-corp leases the building from the separate LLC at arm's length. The operating company's QSBS qualification is protected from the real estate asset value. The LLC can be sold, 1031 exchanged, or retained as a standalone investment independent of the business exit.

If your real estate is currently inside the operating C-corp: Separating it requires a careful tax analysis. A transfer of appreciated property from the C-corp to an LLC is typically a taxable distribution — the C-corp recognizes the built-in gain. The right time to restructure is early, before the business appreciates significantly. This is a multi-year planning issue, not a deal-table fix.

Opportunity Zone reinvestment: an alternative to 1031

Since the OBBBA (July 2025) made the Qualified Opportunity Zone program permanent and reset the deferral mechanics, QOZ investment is a viable alternative to a 1031 exchange for sellers who want to defer real estate gain but also want more flexibility in deployment.5

Under the OBBBA QOZ rules:

QOZ is not like-kind restricted — you can sell a commercial building in Ohio and invest QOZ proceeds in a multifamily development in Texas. The constraint is that you're investing in a designated opportunity zone, which may or may not match your target investment strategy. Unlike a 1031 exchange, the underlying gain is only deferred (not eliminated) until the fund exits or you sell the QOF interest — though the QOF appreciation itself is permanently excluded if held long enough.

Full guide: Opportunity Zone strategy after a business sale

Integrating the real estate decision with the business exit

The optimal strategy depends on your answers to a few questions:

When to bring in the advisor — and who

The real estate exit decision intersects with the business exit decision, the estate plan, and the post-sale portfolio in ways that your M&A attorney, your CPA, and your commercial real estate broker each see only partially. A fee-only financial advisor who specializes in business exits can model the full picture: combined after-tax proceeds under each scenario, the income implications of a leaseback obligation, the 1031 exchange opportunity cost against alternative investment returns, and how the real estate decision affects your overall wealth plan.

The decisions that matter most — separating real estate from the operating company, choosing a 1031 exchange vs. taxable sale vs. QOZ — need to be made before the LOI stage. Once a buyer is in exclusivity, the deal structure is largely fixed. Real estate restructuring inside the operating company requires even more lead time.

The second-best time to start thinking about this is now.

Get matched with a specialist

If your business owns real estate, the exit involves two separate decisions with different tax rules. We match you with a fee-only advisor who understands both — no commissions, no obligation.

Fee-only · No commissions · Free match · No obligation


More on this topic


Sources

  1. IRS Publication 544, Sales and Other Dispositions of Assets. Unrecaptured § 1250 gain taxed at maximum 25% rate per IRC § 1(h)(1)(D); § 1250 applies to depreciable real property; straight-line depreciation on nonresidential real property held long-term produces no ordinary income recapture — only unrecaptured § 1250 gain. Depreciation rate: $1M / 39 years = $25,641/yr per IRS Rev. Proc. 87-56, asset class 00.3.
  2. 2026 long-term capital gains brackets per IRS Rev. Proc. 2025-32: 0% ≤$49,450 (single)/$98,900 (MFJ); 15% to $545,500/$613,700; 20% above. NIIT: 3.8% on net investment income when MAGI exceeds $200,000 (single)/$250,000 (MFJ); thresholds not inflation-adjusted; IRC § 1411. IRS Topic No. 559 — Net Investment Income Tax.
  3. IRC § 1031 like-kind exchange requirements: 45-day identification period, 180-day exchange period, qualified intermediary, like-kind real property (US-to-US only; foreign property not like-kind to US property per TCJA 2017). IRS Like-Kind Exchanges — Real Estate Tax Tips. OBBBA (July 2025) made no changes to § 1031 for real property; the new § 1062 farmland provision is separate.
  4. IRC § 1202(e)(1)(A): 80% asset test — qualified corporation must use at least 80% of assets in active conduct of qualified trades or businesses. IRC § 1202(e)(7): stock in a corporation engaged in the business of renting real estate does not qualify. IRS Form 8949 instructions (§ 1202 reporting). QSBS post-OBBBA: exclusion cap $15M (greater of $15M or 10× basis); tiered 50%/75%/100% at 3/4/5-year hold.
  5. Qualified Opportunity Zone program made permanent by OBBBA (July 2025); rolling 5-year deferral period replacing the fixed December 31, 2026 deadline; 10% basis step-up at 5 years (30% for rural QROF); new zones designated July 1, 2026. IRC § 1400Z-2. IRS Opportunity Zones.

Tax values verified against 2026 IRS guidance (Rev. Proc. 2025-32) and OBBBA amendments (July 2025). California real estate exchange rules per CA Rev. & Tax. Code § 18031. Consult a qualified tax advisor before structuring any real estate transaction in connection with a business exit.