1031 Exchange Explained: How Real Estate Investors Defer Capital Gains Tax
- A 1031 exchange lets real estate investors defer capital gains tax when they sell a rental and buy another property
A 1031 exchange is the tool that lets real estate investors sell a rental property, roll every dollar of profit into a new one, and push the tax bill down the road instead of paying it this year. It comes from Section 1031 of the tax code, so investors just call it “doing a 1031.” If you have ever sold a rental and watched a big chunk of your gain disappear to the IRS, this is the strategy that stops that from happening again.
Here is the short version. Sell an investment property, buy another investment property of equal or greater value, and use a neutral third party to hold the money in between. Do it correctly, on time, and you owe nothing in capital gains tax on that sale. Miss a deadline or touch the cash yourself, though, and the whole exchange collapses and the tax bill lands anyway.
Quick Facts: 1031 Exchange
- What it does: Defers capital gains tax and depreciation recapture on investment property
- Deadline 1: Identify replacement property within 45 days of closing the sale
- Deadline 2: Close on the replacement within 180 days of closing the sale
- Who holds the money: A qualified intermediary, not you
- Property type: Must be held for investment or business use, not a personal residence
- Cost: Usually $600 to $1,200 in intermediary fees for a simple exchange
What Is a 1031 Exchange?
A 1031 exchange lets you swap one investment property for another without triggering a taxable sale in the eyes of the IRS. Instead of selling and cashing out, you are treated as if you simply exchanged one asset for a similar one. Since the transaction is not a cash-out sale, the tax code does not force you to recognize the gain right now.
That does not mean the tax disappears forever. It means the tax basis from your old property carries over to the new one, so the gain is deferred, not erased. Investors who keep exchanging property after property, though, can defer that tax for decades, and if a property eventually passes to heirs, the basis often resets and the deferred gain can vanish entirely under current estate tax rules. That is why real estate investors call it "swap until you drop." The IRS lays out the full rules in its own like-kind exchange guidance, and every exchange gets reported on IRS Form 8824.
This only works for property held for investment or use in a trade or business, so a rental, a commercial building, raw land held for appreciation, or a duplex you lease out all qualify. A primary residence does not, since the tax code already gives homeowners a separate capital gains exclusion for that.
How a 1031 Exchange Actually Works, Step by Step
Most investors run what is called a delayed exchange, since it is the version that fits how real people actually buy and sell property. Here is how it plays out from start to finish.
- You list and sell your investment property like normal, but before closing, you sign an agreement with a qualified intermediary (QI).
- At closing, the sale proceeds go directly to the QI, not to you. This step matters more than any other, because if the money touches your bank account, the exchange is dead and the sale becomes fully taxable.
- You have 45 days from the closing date to formally identify up to three replacement properties in writing.
- You then have 180 days total from the original closing (not 180 days after identification) to close on one of the identified properties.
- The QI wires the funds to close on the replacement property, and the exchange is complete.
The 45-Day Identification Window
The clock starts the day your original property closes, not the day you decide to start looking. Most investors use the "three property rule," where you can name up to three potential replacement properties regardless of value. There is also a "200% rule" that lets you list more than three, as long as their combined value does not exceed 200% of what you sold. Miss the 45-day window and the exchange fails, full stop, no extensions.
The 180-Day Closing Deadline
You must close on the replacement property within 180 days of the original sale, and this window runs alongside the 45 days rather than starting after it. If your tax return is due before the 180 days are up, you may need to file an extension to preserve the full window. Investors who wait until day 170 to start shopping almost always end up rushing into a weaker deal just to hit the deadline, so the smart move is identifying and negotiating early.
What Counts as Like-Kind Property
"Like-kind" sounds strict, but the IRS actually defines it broadly for real estate. You can sell a single-family rental and buy an apartment building, sell raw land and buy a strip mall, or sell a duplex and buy shares in certain real estate investment structures. As long as both properties are held for investment or business use, they generally qualify as like-kind to each other.
What does not qualify is anything held primarily for personal use, and property outside the United States cannot be exchanged for property inside the United States. You also cannot exchange real estate for a different asset class, since a rule change in 2018 limited Section 1031 to real property only. Before that, some investors used it for equipment and vehicles too, but that door is closed now.

The Real Numbers: A 1031 Exchange Example
Numbers make this concrete faster than definitions do, so here is a realistic scenario worked out in full.
Say you bought a rental property years ago for $150,000. Over time you claimed $40,000 in depreciation deductions against your income, which lowered your tax bill every year you owned it. Now you sell the property for $300,000, and after a 6% agent commission and closing costs of $18,000, you walk away with $282,000 in sale proceeds.
Your adjusted basis is the original price minus depreciation, or $110,000. Subtract that from your $282,000 in net proceeds and your total taxable gain is $172,000. Of that, $40,000 gets taxed separately as depreciation recapture at up to 25%, and the remaining $132,000 is taxed as a long-term capital gain, typically at 15% for most investors.
| Scenario | Sell and Cash Out | 1031 Exchange |
|---|---|---|
| Sale price | $300,000 | $300,000 |
| Net proceeds after selling costs | $282,000 | $282,000 |
| Depreciation recapture tax (25%) | $10,000 | $0 (deferred) |
| Long-term capital gains tax (15%) | $19,800 | $0 (deferred) |
| Cash available to reinvest | $252,200 | $282,000 |
| Extra buying power | — | $29,800 more |
That $29,800 difference is not a rounding error. It is real money that stays invested and keeps compounding instead of leaving your pocket, and it does not even include state capital gains tax or the 3.8% net investment income tax that can apply on top of federal numbers depending on your income and state. The higher your gain and the longer you have owned the property, the bigger that gap tends to get.
How Depreciation Works After a 1031 Exchange
One detail that trips people up: your depreciation schedule does not reset to zero on the new property the way it would with a normal purchase. Instead, the remaining basis from your old property carries over and keeps depreciating on whatever was left of its original schedule, while any additional amount you paid for the new property (beyond what you exchanged) gets its own fresh 27.5 or 39 year schedule, depending on whether it is residential or commercial.
In practice, this means your annual depreciation deduction on the replacement property is usually smaller than it would be if you had simply bought that same property with cash. It is a tradeoff worth knowing about before the exchange, not after. Investors who want to maximize depreciation on the new property sometimes pair a 1031 exchange with a follow-up cost segregation study, since that can carve out shorter-life components and speed up some of the deductions again.
Types of 1031 Exchanges
Most investors only ever need a delayed exchange, but a few other structures exist for specific situations.
- Delayed exchange: Sell first, then identify and close on the replacement within the 45 and 180 day windows. This covers the large majority of exchanges.
- Reverse exchange: Buy the replacement property before selling the old one. This requires more cash or financing up front since a QI holds title to one property while the sale of the other is arranged, but it protects you if you find a great deal before your current property is sold.
- Build-to-suit exchange: Use exchange funds to build or improve a replacement property before taking title, useful when the ideal replacement does not exist yet in finished form.
What a 1031 Exchange Costs
A qualified intermediary typically charges $600 to $1,200 for a straightforward exchange, and reverse or build-to-suit exchanges cost more because of the added legal and title work. You will also still pay normal transaction costs on both properties, including agent commissions, title insurance, and closing fees, the same as any purchase or sale.
The Real Estate Deal Analyzer lets you plug in rent, expenses, mortgage, and vacancy, and instantly shows cap rate, cash-on-cash return, and 10-year projections.
Compared to a tax bill in the tens of thousands, the intermediary fee is small. Still, it only makes sense if you were planning to keep investing in real estate anyway. Paying a QI to defer tax on a property you never intend to replace with another investment is not worth it.
When you pick a qualified intermediary, look for one that carries fidelity bond coverage and errors and omissions insurance, and ask where they hold client funds while an exchange is in progress. Segregated accounts at an FDIC-insured bank are the standard, not a QI's general operating account. Since the QI physically holds your sale proceeds for weeks at a time, this is not a place to shop on price alone. Ask your real estate attorney or CPA for a referral first, then compare fees among a short list of intermediaries who already have a track record.
Mistakes That Blow Up a 1031 Exchange
The IRS does not give partial credit here. A single misstep can turn a tax-deferred exchange into a fully taxable sale.
- Touching the money. If sale proceeds land in your account, even briefly, the exchange is disqualified. The funds must go straight to the qualified intermediary.
- Missing the 45-day identification deadline. There is no grace period, and weekends and holidays still count toward the 45 days.
- Buying down in value. If your replacement property is worth less than what you sold, you owe tax on the difference, known as "boot."
- Using an unqualified intermediary. Your CPA, attorney, or real estate agent generally cannot serve as your QI if they have represented you in another capacity within the past two years.
- Skipping the financing conversation early. If you need a loan on the replacement property, get pre-approved before you are deep into the 45-day window, not after.
When a 1031 Exchange Is Not Worth It
A 1031 exchange is not automatically the right move just because it is available. If your gain is small, the intermediary fee and the hassle of hitting two hard deadlines may cost more than the tax savings are worth. If you are ready to exit real estate entirely and want the cash, paying the tax and walking away with liquidity might matter more to you than deferral. And if you cannot find a replacement property you actually want within 180 days, forcing a mediocre purchase just to save on taxes usually backfires over the long run.
Before you commit to an exchange, run the numbers on both properties the same way you would analyze any rental property deal. A 1031 exchange only pays off if the replacement property is genuinely a better asset, not just a tax shelter.
🏠 Recommended for Real Estate Investors
- Buildium: The #1 property management platform for landlords. Track rent, maintenance, leases, and finances across every property you exchange into. Try it free →
1031 Exchange FAQ
Can I do a 1031 exchange on my primary residence?
No. A 1031 exchange only applies to property held for investment or business use. Your primary home has its own capital gains exclusion instead, up to $250,000 for single filers and $500,000 for married couples filing jointly, under different rules entirely.
Do I have to buy a property worth exactly the same amount?
No, but to defer 100% of your tax, the replacement property needs to be equal to or greater in value than what you sold, and you need to reinvest all of your net equity. Buy something cheaper and you owe tax on the difference.
How many times can I do a 1031 exchange?
There is no limit. Investors can chain exchanges together for decades, which is where the phrase "swap until you drop" comes from.
Does a 1031 exchange work with a DSCR loan on the replacement property?
Yes. Plenty of investors pair a 1031 exchange with DSCR financing on the new purchase, since DSCR loans are underwritten on the property's rental income rather than your personal tax returns.
Where This Fits in Your Real Estate Strategy
A 1031 exchange is not a beginner move, but it becomes relevant fast once you own even one appreciated rental. If you are still building your first deal, start with the fundamentals in real estate investing for beginners. If you already have a property with equity and are weighing whether to exchange, refinance, or sell outright, compare it against how much cash reserve you actually need before you move, and against strategies like cost segregation, which can also shrink your tax bill without forcing a sale at all.
Investors who would rather stay hands off can compare the tradeoffs in REITs vs rental properties vs crowdfunding, since none of those passive options qualify for a 1031 exchange the way direct ownership does. That is one more reason direct ownership still has a real edge for investors focused on long-term tax efficiency.
Run Your Numbers Before You Exchange
Know exactly what your replacement property needs to earn
The Real Estate Deal Analyzer runs cap rate, cash-on-cash return, and the 1% rule on any property so you can compare your 1031 replacement against your old property before you commit.
Analyze A Deal: $37Enter your email and get instant access to the free 5-step guide, the exact system to start building wealth this week, even with $100.
- ✅ The simple 3-fund ETF framework many long-term investors use
- ✅ Your 30-day wealth action plan
- ✅ The 5 money mistakes that can quietly slow long-term wealth
🔒 Free forever. No spam. Unsubscribe anytime.
Drop a comment and tell me: are you sitting on a rental with a big gain right now, and would a 1031 exchange actually make sense for where you want your portfolio to go next?
Bobby Cowart built Hunter of Money for everyday people who need practical tools, not just theory. He covers real estate strategy in depth in his book, Real Estate Investing for Beginners. Founder, Hunter of Money • Published Author.
This post is for educational purposes only and does not provide personalized financial, legal, or tax advice. A 1031 exchange involves strict IRS deadlines and requirements. Talk to a qualified intermediary and a tax professional before starting one, since results depend on your own numbers, timing, and situation. Disclosure: This post contains affiliate links. We may earn a commission at no extra cost to you.
You finished: 1031 Exchange Explained: How Real Estate Investors Defer Capital Gains Tax
- A 1031 exchange lets real estate investors defer capital gains tax when they sell a rental and buy another property.
