Selling a Building Your Business Owns
The building and the business are separate decisions
A building your business owns can be sold outright, sold and leased back, or exchanged for another building under Section 1031. Real property used in a trade or business qualifies for an exchange the same way investment property does. What you can do, and who pays the tax, depends first on who holds title: the operating company or a separate entity that rents to it.
The business building checklist: 14 items. The first is free on this page.
Updated November 16, 2026 by Private Exchange Group. 3 minute read. Not tax or legal advice.
The short version
- Section 1031 covers real property used in a trade or business, so an owner-occupied shop, office or warehouse can be exchanged.
- The entity on the deed is the taxpayer that sells, pays the tax or exchanges, so check title before anything else.
- A sale-leaseback turns the building into cash while the business stays in place as a tenant under a lease.
- A business moving to a new building can roll the old building's equity into it if the exchange is arranged before closing.
Start with whose name is on the deed
Many business owners are not sure which entity owns their building. Sometimes the operating company holds title. Often a separate LLC or the owner personally holds it and rents it to the company. The answer decides who sells, whose return reports the gain and who can exchange. Pull the deed before you talk to a broker.
The seller is a specific taxpayer. If the company holds title, the company sells, and how the gain is taxed depends on whether it is a C corporation, an S corporation or a partnership. A domestic LLC with a single owner is by default disregarded as separate from that owner for federal tax purposes, so the owner is treated as holding the building. Your CPA can tell you which return applies.
Swipe the table sideways to see every column
Selling the building apart from the business
A building can be sold while the business carries on, and a business can be sold while the owner keeps the building and becomes its landlord. Treat them as 2 decisions. An owner nearing retirement might sell the company and keep collecting rent, or do the reverse and free the capital tied up in the walls. When both are sold together, the price has to be divided between real estate and everything else, because the tax rules for each part differ.
That division matters for an exchange. Section 1031 covers only real property. Equipment that is not part of the building, inventory and the value of the business itself are outside it, and the regulations say a license to operate a business on the property is not real property. Only the real estate portion of a combined sale can be exchanged.
Before closing or not at all
Three ways a sale stops being an exchange
Touch money. Pay tax.
If the proceeds are paid to you or to someone acting for you, the sale is taxable. The intermediary has to be in place before the closing.
Day 45 passes
You have 45 calendar days from the closing to name, in writing, the property you may buy. Weekends and holidays count.
You come out with cash
Cash you keep, or a loan you pay off and do not replace, is taxed up to the amount of your gain.
General rules, not tax or legal advice.
How a sale-leaseback works in general terms
In a sale-leaseback the business sells its building to an investor and signs a lease at the same closing, so operations never move. The company turns a fixed asset into cash for growth, debt or a buyout. In return it pays rent and gives up future appreciation and control. Some investors who buy leased buildings are completing exchanges of their own, which is worth knowing when you market the property. Whether that trade is a good one depends on the rent, the term and what the cash will earn inside the business.
The sale half is still a sale. The gain is taxed to whoever held title unless the proceeds go into an exchange for other real estate. Lease length also has tax meaning: the regulations treat a leasehold with 30 years or more to run as like kind to real estate, so a very long leaseback should be reviewed by a tax advisor before it is signed. Lease terms deserve the same care as the price.
Moving the business into a new building
A company that has outgrown its building has an option beyond selling and paying the tax. Real property used in a trade or business qualifies for a 1031 exchange, so the old building can be exchanged for the new one and the gain deferred. The firm requirement on timing is that the exchange be set up before the old building's sale closes. From that closing there are 45 days to identify the new property and no more than 180 days to receive it. If you are unsure whether your building fits, start with the qualify check.
Business moves rarely follow that order neatly. If the new building must be bought first, an IRS safe harbor allows an accommodation titleholder to hold property so the exchange can run in reverse. If the new space needs construction, work done after you take title does not count as like-kind property, so the build has to be planned inside the exchange. PEG handles both as reverse and construction exchanges.
An exchange does not fit an owner who is closing the business and wants the cash, or one who plans to rent the next location on an ordinary lease. For the owner who is relocating and buying, it keeps the equity working. The time to request a consultation is before the building goes on the market. The checklist at the end of this page starts with the title questions.
Questions people ask
Can my company sell its building and rent it back?
Yes, that arrangement is called a sale-leaseback. The company sells the building to an investor and signs a lease at closing, so it keeps operating in the same place as a tenant. The company receives cash and gives up ownership. The sale is taxable to the titleholder unless the proceeds go into a 1031 exchange for other real estate arranged before closing.
Do I pay capital gains tax if my business sells its building?
Generally yes, a sale at a gain is taxable to whoever holds title, and the depreciation the business claimed over the years is part of that gain. How it is taxed depends on whether the owner is a corporation, a pass-through entity or you personally. Your CPA can estimate it. An exchange into another building can defer the tax if it is arranged before closing.
Can I do a 1031 trade if I am selling my business and the building together?
Only the building can go into the exchange. Section 1031 applies to real property, so equipment, inventory, goodwill and business licenses sold with the company do not qualify. The contract should divide the price between the real estate and the rest. The real estate portion can then be exchanged for other business or investment real estate, with the exchange set up before closing.
My LLC owns the building and my corporation rents it. Which one does the exchange?
The LLC does, because it holds title to the building. The taxpayer that sells the old property is generally the taxpayer that must buy the replacement, so the LLC would take title to the new building and your corporation would rent it as before. If the LLC has a single owner it may be disregarded for tax purposes, so confirm the details with your CPA.


Know where you stand before you close
Tell us when the sale closes and what you own. You will hear where you stand and what has to happen first.
- Whether the property qualifies
- Your 2 deadlines on a calendar
- What your closing agent needs
Asking commits you to nothing. It keeps the option open.
Keep reading
Sources
- 26 U.S.C. 1031, Exchange of real property held for productive use or investment
- 26 CFR 1.1031(a)-1, Property held for productive use in trade or business or for investment
- 26 CFR 1.1031(a)-3, Definition of real property
- 26 CFR 1.1031(k)-1, Treatment of deferred exchanges
- 26 CFR 301.7701-3, Classification of certain business entities
- IRS: Rev. Proc. 2000-37, qualified exchange accommodation arrangements
