Yes. If you sell an investment or business property at a profit, you can defer the federal capital gains tax by rolling the proceeds into another property through a 1031 exchange, named for the section of the Internal Revenue Code that authorizes it.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The rule does not apply to a home you live in. For a primary residence, a separate provision lets you exclude up to $250,000 of gain outright, or $500,000 if you are married filing jointly, without reinvesting anything.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Which rule applies depends entirely on how the property was used.
What Property Qualifies
A 1031 exchange only works for real property held for investment or for productive use in a trade or business.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The “like-kind” requirement is broader than it sounds. It refers to the nature of the asset, not the type. You can trade an apartment building for raw land, a strip retail center for farmland, or a warehouse for a single-family rental, provided both sides are held for investment or business purposes.
Several categories are shut out:
- A personal residence you live in and never rent.
- Property held primarily for resale, such as homes a developer builds to flip.
- Anything other than real estate. Since the Tax Cuts and Jobs Act of 2017, stocks, bonds, partnership interests, and business equipment no longer qualify.
- Property located outside the United States, which is not treated as like-kind to U.S. real estate.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment
A leasehold with 30 years or more remaining can also qualify. Intent matters. The property has to be held for investment or business use, not personal enjoyment or quick resale.
The Deadlines That Make or Break the Exchange
Rolling gains forward is not a same-day swap. In a typical deferred exchange, you sell first and buy later, and two clocks start the day you transfer the property you sold.
Before the sale closes, you have to engage a Qualified Intermediary. This is a neutral third party who holds the sale proceeds in a restricted account until you close on the replacement.3Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 If you personally take possession of the funds at any point, even briefly, the IRS can treat the whole transaction as a taxable sale. Your own agent, attorney, or anyone who has worked for you in the previous two years cannot serve in that role.
Once the sale of the old property closes, two deadlines apply:
- Within 45 days, you must give the intermediary a written, signed list of potential replacement properties, identified by street address or legal description.3Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031
- Within 180 days, you must close on the replacement property, or by the due date (with extensions) of your federal income tax return for the year of the sale, whichever comes first.3Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031
The tax-return deadline can shorten the 180-day window. A sale in November followed by an April filing without an extension leaves less than 180 days. Filing an extension is a common safeguard. Miss either deadline and the deferral is gone. The full gain becomes taxable in the year of the sale.
How to Identify Replacement Properties
Most investors use the three-property rule. You can name up to three potential replacements regardless of their combined value.3Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 If you want to identify more than three, the 200-percent rule lets you list any number as long as their total fair market value does not exceed twice the value of the property you sold. You only have to close on one.
When Part of the Gain Is Still Taxable
Even a valid 1031 exchange can produce a tax bill on part of the gain if you receive “boot,” meaning anything of value that is not like-kind replacement property. Boot usually shows up in two ways.
Cash boot happens when the replacement costs less than the property you sold and the intermediary returns the leftover cash to you. That cash is taxable. Mortgage boot happens when you take on a smaller loan on the replacement than you had on the old property. The reduction in debt is treated as boot and taxed.
To defer the entire gain, the replacement property has to be worth at least as much as the one you sold, and all of the net proceeds have to be reinvested. Any shortfall is taxable, but only up to the amount of boot received. The rest of the exchange still qualifies for deferral.3Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031
Deferral Is Not Forgiveness
A 1031 exchange defers your capital gains tax. It does not erase it. Your tax basis in the old property carries over to the replacement, adjusted for any boot paid or received. Buy a rental for $200,000, exchange into a $350,000 property, and your basis does not reset to $350,000. When you eventually sell without doing another exchange, that lower carryover basis means a much larger taxable gain.
Depreciation recapture rides along too. Any depreciation you claimed on the property gets “recaptured” when you finally sell, taxed at a maximum federal rate of 25 percent, separate from and in addition to the long-term capital gains rate on the rest of the profit.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses Each successive exchange rolls that accumulated depreciation forward, growing the eventual bill. Some investors keep exchanging indefinitely and plan for heirs to inherit the property with a stepped-up basis at death, which wipes out the deferred gain.
The Tax Rates You Are Deferring
The reason to roll gains forward is the tax you would otherwise owe on the sale. Long-term capital gains, on property held more than a year, fall into brackets of 0, 15, or 20 percent based on taxable income and filing status. Most investors pay 15 percent; those with the highest incomes pay 20 percent.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Higher-income taxpayers also owe a 3.8 percent Net Investment Income Tax when modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). The IRS has confirmed this surtax applies to gains from the sale of investment real estate.5Internal Revenue Service. Questions and Answers on the Net Investment Income Tax For a high-income seller, the combined federal hit can reach 23.8 percent on the capital gain plus up to 25 percent on depreciation recapture. That is what a successful exchange keeps invested rather than sending to the Treasury.
Reporting the Exchange
Every 1031 exchange has to be reported on Form 8824, Like-Kind Exchanges, filed with your federal income tax return for the year the exchange began.6Internal Revenue Service. Instructions for Form 8824 The form asks for descriptions of both properties, the identification and transfer dates, the realized gain, the deferred gain, and any taxable portion from boot. Failing to file it can trigger penalties or disqualify the deferral entirely. Keep the identification letter, all correspondence with the intermediary, closing documents, and your basis calculations. The IRS uses Form 8824 to track the carryover basis into future years.
If the Property Is Your Home Instead
If you are selling a home you actually live in, a 1031 exchange is not the tool. Section 121 lets you exclude up to $250,000 of gain from the sale of a principal residence, or up to $500,000 if you are married filing jointly, with no requirement to reinvest.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The excluded gain is permanently tax-free.
To qualify, you must have owned and used the home as your primary residence for at least two of the five years before the sale. The two years do not have to be consecutive, and the exclusion is available once every two years.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Anything above the cap is taxed at the long-term capital gains rates. Partial exclusions are available for early sales tied to certain qualifying events, such as a job change, health reasons, divorce, or the death of a spouse.7Internal Revenue Service. Publication 523, Selling Your Home
Trying to combine the two strategies has one important limit. If you acquired a property through a 1031 exchange and later move in, you cannot use the Section 121 exclusion when you sell until at least five years after you acquired it.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence You still have to satisfy the standard two-year ownership and use test during that time.
Vacation Homes and Part-Time Rentals
A second home you sometimes rent out sits between investment and personal use. Revenue Procedure 2008-16 provides a safe harbor that spells out when a dwelling unit will qualify for a 1031 exchange.8Internal Revenue Service. Revenue Procedure 2008-16 For the property you are selling, both of the following must be true for each of the two 12-month periods immediately before the exchange:
- You rented it to others at a fair market rate for at least 14 days.
- Your personal use did not exceed the greater of 14 days or 10 percent of the total days it was rented at fair market value.8Internal Revenue Service. Revenue Procedure 2008-16
You also must have owned the property for at least 24 months before the exchange. The same rental-and-personal-use test applies to the replacement property for the two 12-month periods after. Meeting the safe harbor does not guarantee approval on every issue; it simply means the IRS will not challenge the exchange solely on whether the dwelling was held for investment.
Watch for State Clawbacks
Most states follow the federal treatment and defer state tax on a 1031 exchange right along with the federal tax. A handful, including California, Oregon, Montana, and Massachusetts, have clawback provisions. These states expect you to pay state tax on the portion of the gain that accrued while the property was in their state, even after you exchange into a property somewhere else. If you are exchanging across state lines, look at the rules of the state where the property you sold is located before you assume the deferral is complete.