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.
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:
- 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.
- 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
- Unrecaptured § 1250 gain: The portion of your gain attributable to prior straight-line depreciation deductions. Taxed at a maximum federal rate of 25% — not the standard 20% LTCG rate, and not the full 37% ordinary income rate. This is the "unrecaptured § 1250 gain" category.
- Remaining long-term capital gain: The appreciation above your original cost basis (less accumulated depreciation). Taxed at standard LTCG rates: 20% federal for most business owners (plus 3.8% NIIT if applicable).2
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:
- 45-day identification window: From the date you close on the relinquished property (the building you're selling), you have 45 days to identify replacement property in writing to your Qualified Intermediary. Miss this deadline and the exchange fails — all gain is taxable in the year of sale.
- 180-day exchange window: You must close on the replacement property within 180 days of selling the relinquished property (or your tax return due date, whichever is earlier — file an extension if needed).
- Qualified Intermediary (QI) required: You cannot touch the sale proceeds. The QI holds the funds between closing on the relinquished property and closing on the replacement property. Using the funds yourself — even briefly — disqualifies the exchange.
- Equal or greater value: To defer all gain, the replacement property must be worth at least as much as the net proceeds from the relinquished property, and you must use all net equity (no cash-out "boot"). Any proceeds you don't roll over are taxable boot — good for partial exits, bad for full deferral goals.
- Like-kind for real estate: All US real property is like-kind to all other US real property. Commercial building → rental residential, → land, → retail strip center — all qualify. Foreign real property does not exchange with domestic property.
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:
- You sell the building to a net-lease investor (typically an individual investor, family office, or REIT-adjacent fund).
- 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.
- 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.
- 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.
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:
- Capital gain deferred for up to 5 years by investing in a Qualified Opportunity Fund (QOF) within 180 days of the sale
- 10% step-up in basis at the 5-year mark (30% for rural QROF investments)
- New zones designated July 1, 2026; prior zones sunset under a rolling schedule
- Gain on QOF appreciation held 10+ years is permanently excluded (up to the full amount of QOF appreciation)
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:
- Is the real estate inside your QSBS corporation? If so, separating it before the sale — or at least modeling the QSBS risk — is a priority.
- Do you want real estate exposure going forward? A 1031 exchange keeps you in real estate; QOZ or taxable sale lets you diversify. Your post-sale financial plan (income needs, estate goals, risk tolerance) drives this.
- Is the business buyer likely to want the real estate? Most don't. Find out early — it simplifies deal structure if you can resolve the real estate separately.
- What is your state of residence? A California seller faces 13.3% state tax on real estate gain (no QSBS benefit, no preferential LTCG rate). A 1031 exchange with California real estate is complicated — California does not honor federal 1031 treatment if the replacement property is out-of-state (it tracks the clawback under CA Rev. & Tax. Code § 18031). Texas, Florida, Nevada sellers have no state capital gains tax at all.
- What's your timeline? A 1031 exchange requires identifying replacement property within 45 days of closing — a compressed timeline when you're simultaneously managing a business transition. Sale-leaseback, structured well in advance, avoids this crunch.
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.
- How to Reduce Taxes When Selling a Business: 7 Strategies
- Capital Gains Tax on Selling a Business: 2026 Rates and Real Math
- QSBS Section 1202: Qualification, Stacking, and 2026 OBBBA Changes
- Opportunity Zone Business Sale Strategy
- Asset Sale vs. Stock Sale: Complete Tax Guide
- Estate Planning Before a Business Sale
- Business Exit Planning Timeline: What to Do 1–5 Years Before You Sell
Sources
- 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.
- 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.
- 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.
- 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.
- 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.