1031 Exchange: Defer Capital Gains Tax When Selling Investment Property

Sell a rental property for a $500K profit and the IRS wants $100K+ in capital gains tax. But with a 1031 exchange, you reinvest all $500K into a new property and defer the tax indefinitely.

A 1031 exchange, named after Section 1031 of the Internal Revenue Code, allows you to defer capital gains tax when you sell investment or business property and reinvest the proceeds into a like-kind replacement property. The tax is deferred, not eliminated — the original gain carries over to the new property's cost basis. However, if you hold the replacement property until death, your heirs receive a stepped-up basis, permanently eliminating the deferred gain. This tax deferral is one of the most powerful wealth-building tools in real estate, enabling investors to trade up to larger properties and compound growth without the drag of annual tax payments. Learn the basics of real estate investing →

Real-world example: You bought a rental property for $200,000. You sell it for $700,000. Your gain is $500,000. Capital gains tax (20% federal + 3.8% NIIT + state tax at 5%) = approximately $144,000. With a 1031 exchange, you identify a replacement property worth $700,000 or more within 45 days. You close on the new property within 180 days. All $700,000 in proceeds is reinvested. Tax deferred. You now own a larger, more expensive commercial property with a deferred tax liability that can be passed to heirs tax-free. Compare 1031 exchange to holding rental property long-term →

Key Requirements of a 1031 Exchange

Like-Kind Property

"Like-kind" is broadly defined for real estate. Any real property held for investment or business use can be exchanged for any other real property held for investment or business use. You can exchange a rental house for an apartment building, raw land for a retail strip mall, or a warehouse for a office building. The properties do not need to be the same type or quality. Personal residences do not qualify. The key requirement is that both properties are held for productive use in a trade, business, or investment — not personal use. Vacation homes may qualify under specific circumstances if they are primarily rental properties with limited personal use.

Timeline Requirements

The 1031 exchange has two strict deadlines. First, you have 45 days from the closing date of your sold property to identify potential replacement properties. Identification must be in writing, signed, and delivered to the Qualified Intermediary (QI). You can identify up to three properties regardless of value, or more than three as long as their combined value does not exceed 200% of the sale price of the relinquished property. Second, you must close on the replacement property within 180 days from the sale of your original property, or by your tax return due date (whichever comes first). These deadlines are firm — no extensions are granted for any reason.

Qualified Intermediary (QI)

A Qualified Intermediary is a third party that holds the proceeds from the sale of your property so you never have constructive receipt of the funds. If you touch the money — even for one day — the exchange is invalid. The QI prepares the exchange documents, holds the proceeds in a separate account, and disburses the funds to purchase the replacement property. Choosing a reputable QI is critical; there have been cases where QIs went bankrupt or committed fraud, resulting in total loss of funds. Look for QIs with errors and omissions insurance, a corporate surety bond, and a long track record in 1031 exchanges. Learn about tax-loss harvesting for stocks →

Equal or Greater Value

To defer all capital gains tax, you must reinvest all proceeds from the sale and acquire a replacement property of equal or greater value. If you buy a cheaper property, the difference (boot) is taxable. Additionally, the debt on the replacement property must equal or exceed the debt on the relinquished property. If you pay down debt, the reduction is considered boot and is taxable. Any cash leftover after the purchase is also taxable. The goal is to roll over the entire equity into a new property to maximize tax deferral.

Types of 1031 Exchanges

Delayed Exchange (Most Common)

You sell your property first, then use the proceeds to buy a replacement property within 180 days. This is the most common type of 1031 exchange. The QI holds the funds between the sale and the purchase. This gives you time to find the right replacement property while your equity is safely held in escrow. Most real estate investors use a delayed exchange when they want to trade up to a larger property or move to a different market.

Reverse Exchange

You buy the replacement property first, then sell your original property within 180 days. This is more complex because you need an Exchange Accommodation Titleholder (EAT) to hold title to the replacement property while you sell your original property. Reverse exchanges are useful when you find the perfect replacement property but have not yet sold your current one. They require more capital because you must finance or pay for the replacement property before receiving proceeds from the sale. Reverse exchanges are less common but increasingly popular in hot markets where good deals disappear quickly.

Build-to-Suit Exchange

You buy raw land or an existing structure and construct improvements on it within 180 days of selling your original property. The QI holds the proceeds and disburses them for construction costs. This type of exchange is ideal for investors who want to build a custom property tailored to their investment goals, such as developing a multi-tenant retail center or converting a property to a different use. The replacement property must be substantially complete within 180 days — the full period from sale to replacement property close. Compare direct property ownership with REIT investing →

Can I do a 1031 exchange on my primary residence?

No, a 1031 exchange cannot be used for a primary residence. Section 1031 requires the property to be held for investment or business use. However, you may be eligible for the Section 121 exclusion, which allows single filers to exclude up to $250,000 of capital gains ($500,000 for married couples filing jointly) on the sale of a primary residence if you have lived in it for at least 2 of the last 5 years. If you convert a primary residence to a rental property, you may eventually be able to do a 1031 exchange on it after a sufficient period of rental use (typically 12 to 24 months of bona fide rental). The IRS looks at the facts and circumstances to determine intent.

What happens if I don't use all the sale proceeds?

Any proceeds not reinvested in the replacement property are called "boot" and are taxable as capital gains. This includes cash left over after the purchase and any reduction in debt. For example, if you sell a property for $500,000 with a $300,000 mortgage and buy a replacement for $400,000 with a $200,000 mortgage, you have $100,000 in cash boot and $100,000 in debt boot — both taxable. To avoid boot, you must reinvest all net proceeds and take on equal or greater debt on the replacement property. Many investors finance the replacement property to the maximum to ensure debt boot does not occur.

Can I do a 1031 exchange on raw land?

Yes, raw land held for investment qualifies for a 1031 exchange. You can exchange raw land for improved property (apartments, commercial buildings, rental houses) or vice versa, as long as both are held for investment or business purposes. The like-kind definition is broad enough to include raw land. A common strategy is to exchange raw land (which generates no income) for income-producing rental property, allowing you to defer the gain and start generating cash flow simultaneously. The IRS may scrutinize exchanges involving raw land to ensure it is truly held for investment and not for personal use or development as inventory (dealer property).

How many times can I do a 1031 exchange?

There is no limit on the number of 1031 exchanges you can do. Real estate investors have used serial 1031 exchanges to trade up from a small rental house to a multi-million dollar commercial portfolio over decades. Each exchange defers the accumulated gain to the next property. The ultimate benefit comes if you hold the final property until death — your heirs receive a stepped-up basis to fair market value, permanently eliminating all deferred capital gains tax. This is sometimes called the "swap 'til you drop" strategy. The Tax Cuts and Jobs Act of 2017 limited 1031 exchanges to real property only (eliminating personal property exchanges like aircraft, equipment, and artwork), but real estate remains fully eligible.

Related Resources

Subscribe to the Weekly Digest → Start Here: First Investment Guide →