The 1031 Exchange: Deferring Taxes When You Sell an Apartment Building
- 7 days ago
- 7 min read
Selling an apartment building can create a large tax bill, even when you plan to reinvest the money into another property. A 1031 exchange may allow you to defer recognition of that gain by moving from one qualifying investment property into another.

For apartment owners, this can be a useful way to keep more capital working in real estate instead of paying taxes immediately. But the rules are strict, the deadlines matter, and a 1031 exchange is not something to set up after closing. You need to plan before the sale.
What Is a 1031 Exchange?
A 1031 exchange, named after Section 1031 of the Internal Revenue Code, allows an owner to defer recognizing gain when exchanging qualifying real property held for investment or business use for other qualifying real property. The American Bar Association's overview of Section 1031 exchanges provides additional background on how these transactions are structured.
The important word is defer. A 1031 exchange generally does not make the gain disappear. Instead, the tax on the gain may be postponed as the investment moves into replacement property.
For example, an apartment owner might sell one rental building and acquire another apartment property. If the transaction meets the applicable requirements, the gain from the first property may not have to be recognized immediately.
Real estate generally has broad like-kind treatment. An apartment building does not necessarily have to be exchanged for another apartment building. Qualifying real property can include different types of investment or business real estate, subject to the rules.
The IRS explains that real properties are generally considered like-kind even when they differ in grade or quality.
How Does a 1031 Exchange Work?
A typical transaction involves selling the property you currently own, identifying replacement property, and acquiring that replacement property within specific time limits.
The process usually looks like this:
Plan before selling. Talk with your tax adviser and other professionals before the sale closes.
Set up the exchange properly. A qualified intermediary is commonly used in a deferred exchange to handle the exchange funds and help structure the transaction.
Sell the existing property. The apartment building is transferred according to the sale agreement.
Identify replacement property. You generally have 45 days after transferring the old property to identify potential replacement property in writing.
Acquire the replacement property. Generally, the replacement property must be received within 180 days, or by the due date of the tax return for the year of the transfer, including extensions, if earlier.
Report the transaction. A qualifying exchange is generally reported to the IRS using Form 8824.
These deadlines are not suggestions. Missing them can prevent the transaction from receiving 1031 treatment.
Can You Defer Taxes When You Sell an Apartment Building?
Yes. A properly structured 1031 exchange may allow an apartment owner to defer recognition of gain when selling qualifying investment or business real property and acquiring qualifying like-kind replacement real property.
However, the tax is generally deferred rather than permanently eliminated. The replacement property's tax basis generally reflects the tax treatment of the property given up, so the deferred gain can remain part of the investment until a later taxable disposition.
You also cannot simply sell the apartment, receive the money, and decide later to buy another building. That can create a taxable sale rather than a properly structured deferred exchange.
This is why planning before the transaction is so important.
What Property Qualifies for a 1031 Exchange?
Section 1031 applies to qualifying real property held for investment or productive use in a trade or business. It does not generally apply to property held primarily for sale.
That distinction matters for real estate businesses that regularly buy, renovate, and resell properties.
An apartment building held as a rental investment may qualify. Property held primarily as inventory for resale may not.
The IRS also notes that Section 1031 now applies to real property rather than the broader range of personal and intangible property that could qualify under older rules.
Examples of potentially qualifying real property can include:
Apartment buildings
Rental properties
Commercial buildings
Land held for investment
Other qualifying business or investment real estate
The specific facts of the transaction matter, so owners should have a tax professional confirm whether both the property being sold and the replacement property qualify.
What Are the 45-Day and 180-Day Rules?
The 45-day identification period and 180-day exchange period are two of the most important 1031 exchange deadlines.
The 45-Day Identification Rule
After transferring the property you are selling, you generally have 45 days to identify replacement property.
The identification must follow the applicable IRS rules. You cannot simply keep searching indefinitely while hoping the right building appears.
For an apartment owner, this means replacement-property research should begin before the sale whenever possible.
The 180-Day Exchange Rule
Generally, the replacement property must be received within 180 days after transferring the old property. There is also an important tax-return due-date limitation that can shorten the practical period if the applicable return is due earlier and an extension is not used.
That makes timing critical.
Financing delays, inspections, title problems, environmental issues, or a failed purchase can create serious problems when the exchange clock is already running.
What Is a Qualified Intermediary?
A qualified intermediary, often called a QI, is a third party used in many deferred 1031 exchanges to facilitate the transaction.
One major reason for using a QI is that the seller generally cannot simply receive the sale proceeds and maintain unrestricted control of the money while still expecting the transaction to qualify as a deferred exchange.
The intermediary can hold and transfer the exchange funds according to the structure of the transaction.
The IRS recognizes the role of a qualified intermediary in deferred exchanges and describes how an intermediary can facilitate the process without the taxpayer receiving the proceeds directly.
Choosing the right professionals before closing is therefore an important part of planning.
What Happens If You Receive Cash?
A 1031 exchange does not necessarily mean every dollar of the transaction is tax-deferred.
If you receive cash or other non-like-kind property, you may have taxable gain to the extent of what you received, subject to the applicable rules. This is sometimes referred to as receiving boot, although the tax rules behind that term are more complicated than the nickname suggests.
For example, if you sell an apartment building and replace it with a less expensive property while taking cash out, some gain may become taxable.
Debt can also affect the tax analysis. The treatment of liabilities in a 1031 exchange can be complicated, particularly when mortgages are paid off, assumed, or replaced.
Because of this, do not treat a simple purchase-price comparison as a complete tax analysis.
How a 1031 Exchange Can Affect Your Insurance
Taxes are only one part of selling and replacing an apartment building.
When you purchase the replacement property, your insurance needs may change with it. A larger building, older electrical systems, different construction, higher rents, a swimming pool, elevators, or other property features can affect the coverage you need and how an insurer evaluates the risk.
Before closing on the replacement property, review:
Building replacement cost
Property limits
Ordinance or law exposure
Equipment and building systems
Flood or other location-specific risks
Deductibles
Existing loss history
Tenant-related exposures
Do not assume the insurance program for your old apartment building automatically fits the new one.
At Wexford Insurance, we have seen how a property transaction can change an owner's insurance needs. A building that looks similar on a listing sheet can have very different construction, occupancy, age, location, or loss characteristics once you dig into the details.
Insurance should be part of your replacement-property due diligence, not an item left for the final week before closing.
Common 1031 Exchange Mistakes Apartment Owners Make
A 1031 exchange can be valuable, but avoidable mistakes can create unnecessary tax and financial problems.
Common issues include:
Waiting until after closing to explore a 1031 exchange
Missing the 45-day identification deadline
Missing the 180-day acquisition deadline
Taking possession of sale proceeds improperly
Assuming every type of property qualifies
Treating a property held primarily for resale as an investment property
Failing to account for debt and other transaction details
Choosing replacement property based only on tax considerations
Forgetting to review insurance before purchasing the replacement building
The tax benefit should never be the only reason to buy a property. A bad investment does not become a good one simply because the tax timing is attractive.
Planning a 1031 Exchange Before Selling
The strongest approach is to start planning well before the apartment building goes on the market.
Build a team that may include:
A licensed insurance agent
A tax professional
A qualified intermediary
A real estate attorney when appropriate
Your lender or financial adviser
Your tax professional can evaluate the potential gain and tax consequences. Your QI can help with the exchange structure and required process. Your insurance agent can review the replacement property's risks and coverage needs.
This teamwork matters because the deadlines and financial decisions overlap.
You should also review the replacement property's insurance information early. Getting a quote before closing can help you understand the property's insurance requirements and avoid unpleasant surprises during the purchase process.
The IRS provides additional information about reporting a 1031 exchange and Form 8824 in its official guidance.
FAQ About 1031 Exchanges for Apartment Buildings
Can I use a 1031 exchange to sell an apartment building and buy another one?
Generally, yes, if both properties meet the applicable requirements for qualifying business or investment real property and the exchange follows Section 1031 rules.
Do I have to buy another apartment building?
No. Qualifying real estate generally has broad like-kind treatment. For example, an apartment building may potentially be exchanged for another type of qualifying investment or business real estate. The properties must still meet the applicable Section 1031 requirements.
How long do I have to find replacement property?
Generally, you have 45 days after transferring the property you sold to identify replacement property. You generally have 180 days to receive the replacement property, subject to the tax-return due-date rule.
Does a 1031 exchange eliminate taxes?
No. A 1031 exchange generally defers recognition of qualifying gain rather than eliminating the tax permanently. Other taxable events can also occur if you receive cash or other non-like-kind property.
Should I talk to an insurance agent during a 1031 exchange?
Yes. Your replacement property may have different construction, occupancy, location, replacement cost, liability exposures, or other risks. A licensed insurance agent can review the property and help you evaluate appropriate coverage before closing.
Protect Your Next Apartment Investment With Wexford Insurance
A 1031 exchange involves tax rules, deadlines, financing, and investment decisions. Insurance is another important part of the transaction, especially when the replacement property has different risks than the building you're selling.
Wexford Insurance helps business owners evaluate commercial insurance needs for their properties and operations. If you're preparing to sell an apartment building and purchase a replacement property, request a free insurance quote from Wexford Insurance and review your coverage needs with a licensed agent before closing.




