Guides / Investment Strategies
Swap Tactic Lets You Defer Capital Gains Tax
Most investment gains are taxable the moment you cash out, but real estate has a notable exception. A Section 1031 like-kind exchange can let you roll gains from one investment property into another, deferring the tax bill for years, or indefinitely.
In this guide
The basic idea behind Section 1031
Ordinarily, when you sell an investment and it's worth more than you paid, you owe capital gains tax on the difference, whether you cash out or reinvest the proceeds elsewhere. Real estate held for investment is an exception. Named for Section 1031 of the tax code, a like-kind exchange lets you swap one investment property for another without triggering capital gains tax at the time of the trade, as long as you follow the rules.
The properties involved don't need to be similar in type. You can exchange an apartment building for a shopping center, raw undeveloped land for an office building, or a rental home for a parking lot. What matters is that both properties are held for investment or business use, not personal use.
There's no cap on how many times you can use a 1031 exchange. In principle, you can keep rolling gains from one investment property into the next for years, deferring tax the entire time, until you eventually sell for cash rather than exchange. At that point the deferred gain comes due. The tax is postponed, not eliminated, and you'll need to track your basis in each new property carefully so the eventual gain calculation is accurate.
Section 1031 is specifically for real property. It doesn't apply to stocks, bonds, other securities, or most personal property, though there are narrow exceptions such as certain artwork.
Trading properties of unequal value
A straight one-for-one swap of equally valued properties is the simplest version of a 1031 exchange, but real-world deals rarely line up that neatly. If you're trading up to a more expensive property, you'll typically need to pay cash or take on additional mortgage debt to cover the difference. That difference is referred to as "boot" in tax terminology, and whoever receives boot generally owes capital gains tax on that portion of the deal, even though the rest of the exchange remains tax-deferred.
Most modern exchanges route through an intermediary, often called an escrow agent or qualified intermediary, rather than relying on a literal two-party swap. Instead of you and one other property owner trading directly, the transaction becomes a three-way arrangement: you sell your property, the proceeds go into escrow, and the escrow agent uses those funds to acquire your replacement property, then transfers title to you. This structure means you don't need to find someone who happens to want your exact property in exchange for theirs; you can sell to one party and acquire from an entirely different one, as long as the timing and intermediary rules are followed.
Under this structure, you don't even need an equal-value trade. You can sell a property at a gain, use the proceeds to buy a more expensive replacement, and defer the tax on that gain indefinitely, provided the exchange is structured correctly.
Mortgage and other debt on the properties
Debt matters just as much as cash in a 1031 exchange. If your existing property carries a $200,000 mortgage and the replacement property you're acquiring only carries a $150,000 mortgage, your total liability has decreased by $50,000, even if no cash actually changed hands in the transaction. The IRS treats that $50,000 reduction in debt as boot, meaning it's taxable as gain, the same as if you'd received cash.
This is one of the more counterintuitive parts of a 1031 exchange: you can structure a deal that feels like a clean swap and still owe tax, simply because your mortgage balance dropped. Working through the debt math with your accountant before you commit to a replacement property avoids an unpleasant surprise at tax time.
The strict timeline you have to hit
A 1031 exchange requires real advance planning, not just good intentions. You must identify your replacement property within 45 days of selling the original property, and you must close on that replacement within 180 days. Neither deadline has a grace period, and there's no exception for bad timing, a storm, a financing delay, or any other unforeseen circumstance that pushes your closing past the deadline sends you straight back to a fully taxable sale.
Line up a qualified intermediary who specializes in these transactions and loop in your accountant early, ideally before you list the property you're selling, so the paperwork and timeline are set up correctly from the start. A common and costly mistake is selling a property, taking the cash personally, and assuming you can still complete the exchange as long as you find a new property within 45 days. Once you have direct access to the sale proceeds, or the paperwork isn't structured correctly from the outset, the opportunity to use Section 1031 is gone.
Personal residences and vacation homes
Section 1031 doesn't apply to a personal residence, but separate rules already let most homeowners sell their principal residence tax-free on gains up to $250,000 for individuals, or $500,000 for married couples filing jointly.
Vacation homes occupy a trickier middle ground. Say you stop using your ski condo personally and instead rent it to a genuine tenant for a full 12 months; at that point you've effectively converted it into investment property, which can then qualify for a 1031 exchange. If you want your replacement property to also serve as a vacation home, you'll need to follow a 2008 IRS safe harbor: in each 12-month period following the exchange, you must rent the property to someone else for at least 14 consecutive days, and you can't personally use it for more than the greater of 14 days or 10% of the days it's actually rented at fair market rent.
Related guide
If you're weighing a 1031 exchange as part of a broader home sale or purchase, our guide on Buying & Selling a Home covers the transaction side in more depth.
A completed 1031 exchange gets reported to the IRS on Form 8824, Like-Kind Exchanges, filed with your tax return for the year the exchange occurred. Get any part of the rules wrong, and you can end up liable for taxes, penalties, and interest well after the fact. These exchanges look simple on paper but carry enough restrictions and timing pitfalls that they're worth working through with your accountant before you commit to one, not after.
Frequently asked questions
Can I use a Section 1031 exchange for stocks or other securities?
No. Section 1031 applies only to real property held for investment or business use. Stocks, bonds, and most other securities don't qualify, regardless of how long you've held them.
What happens if I miss the 45-day identification deadline?
There's no grace period. Missing either the 45-day identification window or the 180-day closing window disqualifies the transaction from 1031 treatment, and the original sale becomes fully taxable as if no exchange had occurred.
Does a 1031 exchange eliminate my capital gains tax entirely?
No, it defers the tax rather than eliminating it. The gain carries forward into your basis in the replacement property, and the tax typically comes due when you eventually sell without doing another exchange, though some investors defer indefinitely by continuing to exchange until death, at which point heirs may receive a stepped-up basis.
Can I do a 1031 exchange on my primary residence?
No, but you likely don't need to. A separate provision already allows most homeowners to exclude up to $250,000 of gain ($500,000 if married filing jointly) on the sale of a primary residence without any exchange required.
What is "boot" and why does it matter?
Boot is any cash or reduction in debt you receive as part of the exchange that isn't offset by an equivalent property value. It's taxable as gain even within an otherwise tax-deferred exchange, which is why matching both property value and debt levels closely matters.
Considering a 1031 exchange?
The timeline is unforgiving and the debt math is easy to get wrong. Let's map it out together before you sell.
Schedule a consultationThis guide is for general informational purposes only and is not tax, legal, financial, or investment advice. It does not cover every situation or exception that may apply to you. Consult a licensed professional before making decisions based on this information.