S Corp Sale of Business 1031 Exchange: Real Estate Carve-Out (2026) - CT Acquisitions

S Corp Sale of Business 1031 Exchange: How the Real Estate Carve-Out Actually Works

An s corp sale of business 1031 exchange does not defer tax on the whole transaction; since the Tax Cuts and Jobs Act took effect on January 1, 2018, IRC Section 1031 applies ONLY to real property, so an S-corporation selling an operating business plus its building can defer tax only on the real estate slice and must recognize gain on goodwill, equipment, working capital, and going-concern value in the year of sale. On a $10 million combined deal with $3 million of real estate, that distinction is the difference between deferring roughly $750,000 of immediate federal tax and watching it land on the seller’s K-1 in April.

Planning a Mixed S-Corp + Real Estate Sale?

The structure you choose 12 months before close determines whether you keep $750,000 or hand it to the IRS. CT Acquisitions builds the structure, runs the buyer process, and gets paid by the buyer at close.

Book a Free Consultation

What This Actually Means

The misconception that Section 1031 covers a whole business sale is one of the most expensive errors in lower-middle-market M&A. It used to be partially true. Before the Tax Cuts and Jobs Act, taxpayers could exchange “property used in trade or business” broadly, which let sellers defer gain on equipment, vehicles, and even certain intangibles by trading them for like-kind business assets. TCJA Public Law 115-97, Section 13303, rewrote IRC Section 1031(a)(1) and limited like-kind exchanges to “real property held for productive use in a trade or business or for investment.” Personal property exchanges died on December 31, 2017. The legislative history in House Report 115-466 makes the change explicit.

For an S-corp selling an operating company, the practical result is a forced bifurcation. Whatever portion of the purchase price is allocated to real estate (land, buildings, sometimes building components that have not been depreciated as personal property) can ride into a Section 1031 exchange and defer the gain. Whatever portion is allocated to goodwill, customer lists, equipment, inventory, trade names, non-compete consideration, and working capital is taxed in the year of sale under the normal rules of IRC Section 1060 residual method allocation.

The Treasury regulations confirm this: Treas. Reg. Section 1.1031(a)-3, finalized in 2020, defines “real property” for Section 1031 purposes as land, inherently permanent structures, and structural components, plus certain unsevered natural products. Goodwill and going-concern value are explicitly excluded. So is most equipment unless it qualifies as a structural component of the building (a freight elevator might qualify, a CNC machine bolted to the floor will not).

The Five Things You Need to Understand

Like-Kind Means US Real Property for US Real Property

Under Section 1031(h), real property located in the United States and real property located outside the United States are not like-kind. Within the US, the like-kind standard is broad: raw land can be exchanged for an office building, a strip center for an apartment complex, a warehouse for a triple-net retail pad. What matters is that the property is real property and is held for productive use in a trade or business or for investment. An S-corp owner selling the building that housed the operating business can exchange into almost any income-producing US real estate.

The 45-Day and 180-Day Clocks Are Non-Negotiable

Two deadlines anchor every Section 1031 exchange. The seller must identify replacement property in writing within 45 days of the sale of the relinquished property under Treas. Reg. Section 1.1031(k)-1(b). The seller must close on the replacement property within 180 days of the sale of the relinquished property, or by the due date of the tax return for the year of sale (including extensions), whichever is earlier. Miss either deadline and the entire exchange fails, with the gain falling into the year the relinquished real estate was sold. The IRS will extend these deadlines only in federally declared disaster areas under Rev. Proc. 2018-58 Section 17.

A Qualified Intermediary Is Required

The taxpayer cannot touch the cash from the sale of the relinquished property and still get Section 1031 treatment. Under Treas. Reg. Section 1.1031(k)-1(g)(4), proceeds must flow through a Qualified Intermediary (QI), an independent party that holds the cash between the sale and the replacement purchase. The QI cannot be the seller’s agent, attorney, CPA, broker, or family member in the prior two years (the “disqualified person” rule in Treas. Reg. Section 1.1031(k)-1(k)). Any actual or constructive receipt of cash by the seller blows the exchange. The QI is paid a flat fee, typically $750 to $2,500 for a straightforward exchange in 2026 per the Federation of Exchange Accommodators.

Goodwill, Equipment, and Working Capital Cannot Be Exchanged

This is where the misconception gets expensive. Goodwill is intangible personal property. Equipment is tangible personal property. Inventory is excluded from Section 1031 entirely under Section 1031(a)(2). Working capital (cash, receivables) is not even property in the exchange sense. The IRS made this position public in Rev. Rul. 89-121 well before TCJA, and TCJA codified it. Trying to wrap goodwill into a Section 1031 exchange is grounds for full disallowance and accuracy-related penalties under IRC Section 6662.

S-Corp Distributions Create a Separate Tax Event

Real estate held inside an S-corporation creates a structural problem. To do a Section 1031 exchange, the entity that owns the real estate must be the same entity that ends up owning the replacement property. The shareholders of an S-corp cannot do their own Section 1031 on a piece of property held by the corporation, and distributing the real estate out of the S-corp before the sale triggers gain recognition at the corporate level under IRC Section 311(b). That’s why the structure choice matters so much, and why the cleanest plans hold the real estate in a separate entity from inception.

The Four Structure Options for an S-Corp Real Estate Carve-Out

Option 1: Drop-and-Swap (Distribute First, Then Exchange)

The S-corp distributes the real estate to its shareholders before the sale of the operating business. The distribution is taxable to both the corporation (Section 311(b) deemed sale at fair market value) and the shareholders (to the extent the distribution exceeds basis under Section 1368). After the distribution, the shareholders own the real estate personally and can then do their own Section 1031 exchange when a third-party tenant (often the buyer of the operating business) leases the building.

The problem with drop-and-swap is that the distribution itself is the taxable event the exchange was supposed to defer. The shareholders trade certain corporate-level gain today for the ability to defer future appreciation on the replacement property. The IRS has also challenged drop-and-swap structures where the distribution and the exchange happen close together in time, applying the step-transaction doctrine to treat the whole thing as a sale by the corporation. Magneson v. Commissioner, 753 F.2d 1490 (9th Cir. 1985), and several recent state-court decisions show how thin the timing ice is. Most M&A tax practitioners recommend a 12-month or longer gap between drop and swap, which is rarely possible in a real-world deal timeline.

Option 2: Swap-and-Drop (Exchange Inside the Entity, Then Distribute)

The S-corp itself does the Section 1031 exchange, receiving replacement real estate inside the corporation. After the exchange completes, the shareholders dissolve the S-corp or distribute the replacement property out. The advantage: the exchange runs cleanly at the entity level with no Section 311(b) distribution event during the exchange window. The disadvantage: the distribution after the exchange still triggers Section 311(b) gain on the new property at its fair market value, and the basis the shareholders take in the distributed property is its fair market value, which eliminates the deferral.

Swap-and-drop is most useful when the S-corp shareholders intend to keep the replacement property inside the S-corp indefinitely, perhaps as a passive rental held alongside a new operating business. If the goal is to get the real estate into personal hands, swap-and-drop only delays the corporate-level gain, it does not avoid it.

Option 3: Separate Real Estate Entity (Hold the Building in an LLC from Day One)

This is the M&A advisor’s preferred answer, and the reason the question of an s corp sale of business 1031 exchange so often becomes a planning question rather than an execution question. The cleanest structure is to hold the real estate in a separate LLC (taxed as a disregarded entity or partnership) from the inception of the business, with the LLC leasing the building to the S-corp at fair market rent under a written lease. When the sale comes, the buyer purchases the S-corp stock or assets, and the LLC sells the real estate as a separate transaction. The LLC can then do its own Section 1031 exchange on the real estate sale, with no Section 311(b) issue and no step-transaction risk.

The downside is that this structure must be in place years before a sale. Retroactive transfers of real estate from an S-corp to a new LLC trigger the same Section 311(b) gain as a drop-and-swap. The right time to set this up is at formation or at the next major financing event, not at the LOI stage. The IRS has not successfully challenged a long-standing separate-entity structure on step-transaction grounds when the lease is at arm’s length and the entities have respected their separate forms (see Bolaris v. Commissioner, 776 F.2d 1428, 9th Cir. 1985).

Option 4: Reverse 1031 (Buy Replacement First)

A reverse exchange under Rev. Proc. 2000-37 lets the taxpayer acquire the replacement property before selling the relinquished property. An Exchange Accommodation Titleholder (EAT) takes title to either the replacement or the relinquished property during the gap. The 45-day identification and 180-day completion clocks still run, but they run forward from the EAT’s acquisition date instead of from the sale of the relinquished property. Reverse exchanges are useful when a hot replacement property hits the market before the operating business sale closes, or when the seller wants certainty on the replacement side before letting go of the existing building.

Reverse exchanges are expensive (typical QI/EAT fees are $5,000 to $15,000 for a $3M property in 2026 per the Federation of Exchange Accommodators) and require sophisticated financing. Most lenders will not finance an EAT-titled property without a parked-loan structure, which adds another layer of cost. Reverse exchanges should be used when the timing demands it, not as a default.

Worked Example: $10M S-Corp Sale With and Without Planning

Consider Acme Distributors, an S-corporation in Ohio with two equal shareholders, Pat and Jordan. The business has a $7 million operating value (goodwill, equipment, customer relationships, working capital) and a $3 million building that Acme has owned for 22 years. A strategic buyer offers $10 million for the business and the real estate combined. The shareholders have outside basis of $500,000 each in their S-corp stock and the building has an adjusted tax basis of $300,000 (mostly depreciated land improvements and a fully depreciated structure).

Scenario A: No Planning, Asset Sale Through the S-Corp. The S-corp sells everything in one transaction under IRC Section 1060 with the purchase price allocated as follows: $3 million to Class V real estate, $1 million to Class V equipment, $2 million to Class IV working capital, $4 million to Class VII goodwill. The corporate-level gain flows through to the shareholders’ personal returns under Subchapter S. Pat and Jordan each recognize roughly $4.85 million of gain (half of $9.7 million combined gain after $300K basis on the building). At a blended 25 percent federal-plus-state rate (20 percent federal LTCG, 3.8 percent NIIT on passive components, plus Ohio state tax), the cash tax bill is approximately $2.42 million combined. Roughly $750,000 of that tax is attributable to the $3 million real estate slice (25 percent of $3 million gain, since the building has near-zero basis).

Scenario B: Separate Real Estate Entity Set Up Five Years Ago. The same deal closes for $10 million combined, but the building has been held in Acme Realty LLC (a disregarded entity owned 50/50 by Pat and Jordan) under an arm’s-length lease to Acme Distributors for the past five years. At sale, the buyer purchases the S-corp assets for $7 million (operating business only) and Acme Realty LLC sells the building for $3 million. The S-corp side generates the same $7 million asset sale gain, taxed at roughly $1.75 million combined (25 percent blended). The real estate side gets a Section 1031 exchange: the $3 million proceeds flow to a Qualified Intermediary, Pat and Jordan identify a $3 million replacement triple-net retail property within 45 days, and they close within 180 days. The $750,000 of federal-plus-state tax on the real estate gain is deferred indefinitely (potentially eliminated at death through the Section 1014 basis step-up).

Net effect: Scenario B saves approximately $750,000 of immediate cash tax. The effective combined tax rate drops from 25 percent to roughly 17.5 percent on the total $10 million deal. The deferred gain rides into the replacement property and can be deferred again on a future exchange, or held until death and washed out under Section 1014. The structure cost (lease drafting, LLC formation, QI fees) is well under $25,000 over the life of the structure.

ScenarioTotal Sale PriceFederal + State TaxEffective RateCash to Sellers
No planning (asset sale through S-corp)$10,000,000$2,420,00024.2%$7,580,000
Drop-and-swap (12-month gap)$10,000,000$2,170,00021.7%$7,830,000
Swap-and-drop (RE held in S-corp)$10,000,000$2,420,00024.2%$7,580,000
Separate RE entity (5+ years)$10,000,000$1,670,00016.7%$8,330,000

The table assumes a 25 percent blended federal-plus-Ohio rate on operating-business gain and a 25 percent blended rate on real estate gain for the non-1031 scenarios. The $750,000 savings in Scenario D is exactly the deferred real estate tax. Drop-and-swap captures part of the savings but loses some to the corporate-level Section 311(b) distribution gain.

Common Mistakes That Kill the Exchange

Trying to 1031 the Goodwill

This is the most common DIY error. An owner reads about Section 1031, sees that the business sale is $10 million, and tries to roll the entire amount into replacement real estate. The IRS allocates the purchase price under Section 1060 and disallows the goodwill portion, with accuracy-related penalties under Section 6662(b)(1). The 1031 portion still works for the real estate slice, but the goodwill gain is fully recognized plus penalty plus interest.

Receiving Boot

“Boot” is any non-like-kind property received in an exchange (cash, mortgage relief net of new mortgage, personal property). Boot is taxable to the extent of gain realized, under IRC Section 1031(b). The most common boot trap is a mortgage on the relinquished property that is paid off at closing without an equal or larger mortgage on the replacement. If the seller’s old building had a $1 million mortgage and the replacement is debt-free, that $1 million of mortgage relief is boot. The fix is to either match or exceed the old debt on the replacement, or to bring cash to closing equal to the debt difference.

Missing the 45-Day Identification Deadline

The 45-day window starts the day the relinquished property closes. The identification must be in writing, signed by the taxpayer, and delivered to the QI or other party (not the seller’s own attorney) before midnight on day 45. Identification by phone call, email to the wrong party, or “we were close to identifying” arguments have all failed in Tax Court. Christensen v. Commissioner, T.C. Memo 1998-273, denied an exchange where the taxpayer identified property on day 46.

Using a Disqualified Intermediary

The QI must be truly independent. A QI who was the taxpayer’s CPA, attorney, real estate broker, employee, or relative within the two years before the exchange is “disqualified” under Treas. Reg. Section 1.1031(k)-1(k). Many sellers default to their CPA’s affiliated exchange company without checking whether the relationship crosses the line. If the QI is disqualified, constructive receipt rules apply and the whole exchange collapses.

Selling the Real Estate After the Business Sale

Sometimes the buyer wants the business but does not want the building. The seller plans to keep the building, rent it to the new owner, and sell it later. That works, as long as the sale of the building is decoupled in time from the sale of the business. But sellers who try to “wait a year” and then sell often discover that the buyer wants out of the lease, the building has been valued in the business deal, or step-transaction risk reattaches. Either set up the exchange in advance with a clear plan, or accept that the building will be sold separately on the buyer’s timeline, not the seller’s.

Letting the Lawyer Draft the Allocation Late

The Section 1060 purchase price allocation is negotiated between buyer and seller and reported on IRS Form 8594 by both parties. Sellers benefit from allocating more to capital-gain assets (real estate, goodwill) and less to ordinary-income assets (recapture, working capital). Buyers want the opposite. The allocation must be in the asset purchase agreement, not added later as an exhibit. Sellers who let this slide find the buyer’s CPA dictates an allocation that maximizes the seller’s ordinary income.

Timeline: How a Clean S-Corp + 1031 Real Estate Carve-Out Runs

The work that determines outcome happens in the 12 to 24 months before the sale, not in the 90 days before close. Here is the standard sequence for an S-corp owner who already has a separate real estate entity in place.

  1. Months minus 24 to minus 12: Structure check. Confirm the real estate is held in a separate entity (LLC, ideally disregarded or partnership-taxed). If not, set it up now and accept the upfront Section 311(b) gain rather than try to fix it during the deal.
  2. Months minus 12 to minus 6: Engage the M&A advisor. The advisor signs the engagement, builds the CIM, and starts the buyer process. The seller’s CPA and tax attorney are looped in on the structure.
  3. Months minus 6 to minus 3: Buyer outreach and LOIs. The advisor runs the process. Bids come in. The seller’s tax team models each bid under Scenario A (asset sale through S-corp) and Scenario B (separate-entity 1031). The allocation negotiation begins at the LOI stage.
  4. Months minus 3 to 0: Definitive agreement and 1031 prep. The asset purchase agreement allocates purchase price under Section 1060. The Qualified Intermediary is engaged. The seller starts identifying potential replacement properties.
  5. Closing day: Bifurcated close. The S-corp asset sale closes. The real estate sale closes in parallel, with proceeds flowing directly to the QI. The 45-day clock and 180-day clock start.
  6. Day 1 to day 45: Identification. The seller delivers a written identification of up to three replacement properties (or more under the 200 percent rule) to the QI.
  7. Day 45 to day 180: Replacement closing. The QI uses the held proceeds to purchase the identified replacement property. Title transfers directly to the seller (or to the seller’s LLC). The exchange is complete.
  8. Tax return year of sale: Form 8824 filed. The exchange is reported on IRS Form 8824. The asset sale gain on the operating business is reported separately. The deferred gain on the real estate carries into the replacement property’s basis.

Frequently Asked Questions

Can an S-corp directly do a Section 1031 exchange on real estate it owns?

Yes. The S-corp itself is the taxpayer for the exchange, and the gain (and the deferral) flows through to the shareholders on their K-1s. The catch is that if the shareholders later want the replacement property out of the S-corp, the distribution triggers Section 311(b) gain at fair market value. Most planners prefer to hold real estate in a separate entity so the S-corp never owns the building in the first place.

Does the buyer have to cooperate with the seller’s 1031 exchange?

Cooperate, yes; pay for, no. The seller’s purchase agreement should include a standard “1031 cooperation clause” stating that the buyer will execute any documents reasonably necessary to facilitate the exchange, at no cost or liability to the buyer. Most buyers sign this without objection. The QI handles the mechanics; the buyer simply closes on the real estate with the QI as the seller of record.

What happens if the deal closes and the seller cannot find a replacement property in 45 days?

The exchange fails and the gain falls into the year of the original sale. The seller gets the cash back from the QI (usually on day 181) and pays the deferred tax with the next year’s return. There is no penalty beyond the tax that would have been owed without the exchange attempt, but the QI fee is non-refundable. Smart sellers identify replacement options before the relinquished property closes, not after.

Can a 1031 exchange be combined with a Qualified Opportunity Fund investment?

Not on the same dollars. Section 1031 defers gain on real estate exchanged for like-kind real estate. A QOF under IRC Section 1400Z-2 defers gain by reinvesting eligible gain into a Qualified Opportunity Fund within 180 days. They are separate deferral tools for separate dollars. A seller can do a 1031 on the real estate slice and put the operating-business gain into a QOF (the QOF accepts gain from any source), stacking deferral across both. See the related discussion on multi-strategy stacking in the deferral structures guide.

What if the S-corp has only a small real estate component, say $300,000 on a $5M deal?

The math still works, but the QI fees and structuring cost ($2,500 to $5,000) cut into the deferral benefit. At a 25 percent rate on $300,000, the deferred tax is $75,000, which still beats the $5,000 cost by a comfortable margin. The bigger question is whether identifying and closing on a $300,000 replacement property within 180 days is realistic. Small-ticket commercial real estate is hard to source on a 45-day clock.

Does Section 1031 work for an S-corp selling to an ESOP?

Section 1031 covers the real estate portion of any sale regardless of buyer type. ESOP transactions have their own deferral tool, IRC Section 1042, which lets a C-corp owner roll proceeds into Qualified Replacement Property. S-corps must convert to C status for Section 1042 to apply, but a Section 1031 on the real estate portion runs independently of the ESOP transaction itself. The two deferrals can run in parallel. More on the ESOP side in the ESOP sale mechanics guide.

How CT Acquisitions Approaches This

CT Acquisitions runs buyer-paid sell-side processes for lower-middle-market businesses, which means the structure question gets resolved in the engagement diligence, not in the data room. When the real estate component matters (and on most $3M to $30M deals it matters), we coordinate with the seller’s tax attorney and CPA before the buyer outreach begins. The asset allocation that drives the Section 1031 carve-out gets negotiated into the LOI, not patched in at the definitive agreement.

The fee structure matters because buyers pay us, not sellers. The seller keeps every dollar of the Section 1031 deferral; the advisor fee comes out of the buyer’s side of the table. Sellers exploring an exit can review the process on the main sell-your-business page or jump into a structure conversation directly.

What to Do Next

An s corp sale of business 1031 exchange is a planning problem, not an execution problem. The biggest savings come from setting up the separate real estate entity 12 to 24 months before the sale, negotiating the Section 1060 allocation in the LOI, and engaging the Qualified Intermediary before the closing date is set. The drop-and-swap and swap-and-drop options exist for sellers who did not plan ahead, but each carries a Section 311(b) cost that the separate-entity approach avoids entirely.

For sellers within 24 months of an exit, the first conversation should focus on whether the real estate sits in the right entity, what the Section 1060 allocation should look like, and who the right Qualified Intermediary is. CT Acquisitions can coordinate the M&A side of that conversation alongside the seller’s tax team, with the goal of getting the structure right before any buyer sees the deal.

Talk Through Your S-Corp + Real Estate Structure

A 30-minute consultation will tell you whether your current structure costs you $750,000, $250,000, or nothing on the way out. No obligation, no fee to sellers.

Book a Free Consultation

Related guides: Defer tax on sale of business over 20 years | Do you pay tax when you sell a company | Who gets the money when you sell

Leave a Reply

Your email address will not be published. Required fields are marked *