Notary pen lying on a testament

Answers · Business sales

If I sell a business with its building, can I exchange only the real estate?

Yes. Only the land, building and other real property can be exchanged; equipment, inventory and goodwill are taxed in the sale year, split by a binding allocation.

By Breakwater Exchange · Reviewed by our 1031 advisory team · Last reviewed

The short answer

Yes, and that is the only way it works: the real estate share of the price can go through a 1031 exchange, while equipment, inventory, receivables, licenses and goodwill are sold in a taxable sale in the same closing. Both sides allocate the price across seven asset classes under section 1060, and when you and the buyer agree on that split in writing, the agreement binds you both. Route only the real estate proceeds to your qualified intermediary, report the rest on Form 8594, and reinvest the real estate share in replacement real property.

At a glance

ExchangeableLand, buildings, structural components and other real property under Reg. section 1.1031(a)-3
Taxed nowEquipment, inventory, receivables, business licenses, goodwill and going concern value
Allocation methodResidual method, seven classes, goodwill last
Written allocationBinding on buyer and seller unless the IRS finds it inappropriate
ReportingForm 8594 for the assets outside section 1031; Form 8824 for the real estate
Equipment gainOrdinary income up to the depreciation taken, under section 1245
Clock45 and 180 days run from the day the real estate transfers

Section 1031 reaches only the real property inside the business

Since 2018, section 1031(a)(1) applies only to real property held for use in a trade or business or for investment. Reg. section 1.1031(a)-3 defines that as land, inherently permanent structures and their structural components, plus some intangibles such as leaseholds and easements. Machinery integrated into a building can count; Example 5 treats a 12-ton printer installed during construction as a structural component.

The same regulation draws the line on business rights. Example 12 holds that a license to operate a business in a building 'is not real property or an interest in real property', even when it cannot leave that building. Stock and partnership interests are excluded outright, so selling the shares of the company that owns the building is not an exchange of real estate at all.

One caution on classification: the regulation's definition applies 'only for purposes of section 1031'. An item that is real property for the exchange can still be section 1245 property whose depreciation is recaptured as ordinary income.

The price is split by the residual method, and a written allocation binds both sides

Section 1060 requires the buyer and seller of a group of assets that makes up a trade or business to allocate the consideration among the assets the way section 338(b)(5) does. The Form 8594 instructions list the classes: cash in Class I, securities in II, receivables in III, inventory in IV, then Class V, which generally holds furniture, fixtures, buildings, land, vehicles and equipment, then Class VI intangibles, and finally goodwill and going concern value in Class VII. Each class up to VI is capped at fair market value; goodwill takes the residue.

Section 1060(a) adds that if the parties 'agree in writing as to the allocation of any consideration, or as to the fair market value of any of the assets, such agreement shall be binding on both' unless the IRS determines it is not appropriate. The buyer usually prefers more on equipment for faster depreciation; you prefer more on the real estate you will exchange. Settle it in the purchase agreement, not at tax time.

The exchange and the allocation fit together by design. The instructions say Form 8594 is not filed for assets exchanged under section 1031, but 'if section 1031 does not apply to all the assets transferred, however, Form 8594 is required for the part of the group of assets to which section 1031 does not apply', citing Reg. section 1.1060-1(b)(8).

Worked example: a $3,000,000 sale where $1,800,000 is real estate

Hypothetical, round figures, no debt, state tax ignored; run your own numbers with your CPA. The agreed allocation is $1,800,000 to land and building with an adjusted basis of $700,000, $300,000 to equipment with an adjusted basis of $50,000 after $450,000 of depreciation, $100,000 to inventory at its cost, and the $800,000 residue to goodwill you built yourself with no basis.

The real estate carries $1,100,000 of gain. If the full $1,800,000 goes to the intermediary and buys replacement real property of at least that value, that gain is deferred and reported on Form 8824.

Everything else is taxed in the year of sale. Under the rule in Publication 544, equipment gain is ordinary income up to the lesser of the depreciation taken or the gain, so all $250,000 is ordinary. Inventory sold at cost produces no gain, and goodwill produces $800,000 of gain. Roughly $1,050,000 is recognized now and $1,100,000 is deferred.

  • Real estate: $1,800,000 price, $700,000 basis, $1,100,000 gain deferred through the exchange.
  • Equipment: $300,000 price, $50,000 basis, $250,000 ordinary income under section 1245.
  • Inventory: $100,000 price at cost, no gain.
  • Goodwill: $800,000 residual, zero basis, $800,000 gain.

Close both pieces together and keep the money streams apart

A single purchase agreement can cover the whole business if it allocates the price and assigns only the real estate portion to the intermediary; two coordinated contracts, one for the real estate and one for the business assets, make the separation clearer. Either way, the settlement statement should show the real estate proceeds wired to the intermediary and the business proceeds paid to you.

The 45-day and 180-day periods run from the date the real estate transfers. If the business assets close first and the building later, for example after a lease period, your exchange clock starts with the building, not the business.

Watch the seller who owns the building personally and runs the business through a company. The taxpayer who held the real estate is the one who must exchange it, which matters for title on the replacement; see the same-taxpayer rule.

Where the real estate proceeds can go once you stop operating

The deferred share can buy any real property held for business or investment, including a single-tenant building, land, or interests in a Delaware statutory trust of the kind Rev. Rul. 2004-86 treats as eligible replacement property. Owners leaving day-to-day operations often look at these; the planning is in from business owner to passive investor and exchanging an owner-occupied building.

The taxable share cannot be sheltered by the exchange. Capital gain within it can, however, be invested in a qualified opportunity fund within 180 days under section 1400Z-2; see opportunity zone funds.

Related questions

Can I exchange the business equipment for new equipment?

Not under section 1031 for exchanges completed after 2017; the statute now covers real property only. Equipment sold with the business is a taxable sale.

What if the buyer wants to allocate more of the price to equipment?

That is a negotiation. Each class except goodwill is capped at fair market value, and a written allocation binds both of you, so agree on it in the contract with appraisals if the numbers are large.

Does the business license transfer as part of the real estate?

No. Reg. section 1.1031(a)-3 says a license to operate a business on real property is not real property, regardless of state law.

Can I sell the company's stock instead and still exchange the building?

No. Stock and partnership interests are excluded from real property, so the building would have to be sold by its owner as real estate.

Is fixed equipment that is bolted to the floor real property?

Possibly. The regulation weighs how it is affixed, whether it is designed to be removed, damage from removal and the time and cost of moving it; see what does not qualify.

Sources

Checked against these publications on September 30, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.

  1. 26 U.S.C. Section 1031 (Cornell LII)
  2. Treas. Reg. Section 1.1031(a)-3, definition of real property (Cornell LII)
  3. 26 U.S.C. Section 1060, allocation in applicable asset acquisitions (Cornell LII)
  4. Treas. Reg. Section 1.1060-1 (Cornell LII)
  5. IRS Instructions for Form 8594
  6. IRS Publication 544, Sales and Other Dispositions of Assets
  7. Rev. Rul. 2004-86, Internal Revenue Bulletin 2004-33
  8. 26 U.S.C. Section 1400Z-2 (Cornell LII)

Selling the business and the building together?

Share the proposed allocation and we will show how much of the price can be reinvested through the exchange and which replacement options fit an owner who is stepping back.

Free 1031 proposal

Access Investment Offerings Other Brokers Can’t Provide

Breakwater Exchange’s expert guidance helps you maximize returns while minimizing tax exposure, so you can invest with clarity and confidence.

years of experience
20+
in DST transactions
$1B+
states licensed
50
vetted national sponsors
8

Tell us about your exchange

Share the basics and an advisor will reach out with next steps.

Are you an accredited investor?

Generally, net worth over $1 million excluding your primary residence, or income over $200,000 ($300,000 with a spouse) in each of the last two years.

No obligation. A Breakwater Exchange advisor reviews every request personally.

Get My Free ProposalFree ProposalBook a Free ConsultationFree Consultation