Selling a Rental Property: The 1031 Exchange Basics
TL;DR: A 1031 exchange (named for IRC Section 1031) lets a landlord sell a rental property and roll the proceeds into another investment property without paying capital gains tax at the time of sale. The tax isn't erased, it's deferred, and the rules around timing, "like-kind" property, and how the money is held are strict enough that most owners use a qualified intermediary rather than try it alone. Miss a deadline or touch the sale proceeds directly, and the whole exchange can collapse into a fully taxable sale.
_Last reviewed: August 2026 Β· 8 min read_
You've owned the rental for years, the equity has built up, and selling now would trigger a capital gains bill that eats a real chunk of your proceeds. A 1031 exchange is the tool most landlords reach for to avoid writing that check right away β but it only works if you follow the rules closely, not loosely.
Okoniq Property Hub keeps a record of your property's purchase price, improvements, and depreciation history in one place, which is exactly the paperwork a qualified intermediary or CPA will ask for when you start an exchange.
What is a 1031 exchange and why would a landlord use one?
A 1031 exchange lets you defer capital gains tax on the sale of a rental property by reinvesting the proceeds into another qualifying property. You don't avoid the tax permanently β you push it into the future, sometimes for the rest of your life if you keep exchanging until death, at which point your heirs may get a stepped-up basis instead.
The appeal is simple: if you sold a $400,000 rental outright, a meaningful share of that gain could go to federal and state capital gains tax before you ever reinvest a dollar. An exchange keeps that capital working. Landlords use it to trade a management-heavy duplex for a lower-maintenance single-family rental, to move markets, or to consolidate several small properties into one larger one. For a broader walkthrough of eligibility and mechanics, see 1031 Exchanges β A Landlord's Introduction.
The tradeoff is flexibility. Once you close the sale, the clock starts, and there's very little room to change your mind about doing an exchange after the fact.
What are the deadlines and rules you must follow?
The two things that kill more 1031 exchanges than anything else are timing and control of the funds. The exchange runs on two separate deadlines measured in days from the closing date of the property you sold β one to identify replacement property, and a second, longer window to close on it. The exact day counts are set by statute and worth confirming directly on IRS.gov or with your CPA before you rely on them, since getting this wrong is not something you can fix after the fact.
The other non-negotiable rule: you cannot touch the sale proceeds. The money has to pass through a qualified intermediary (QI) β a neutral third party who holds the funds between the sale and the purchase. If the cash lands in your bank account, even briefly, the IRS treats the transaction as a regular taxable sale, not an exchange. Most landlords set up the QI arrangement before the sale even closes, not after.
What counts as "like-kind" property, and can you exchange across state lines?
"Like-kind" for real estate is broader than most people assume β it means any real property held for investment or business use, not property that's physically identical. A rental duplex can be exchanged for raw land, a commercial strip mall, or a single-family rental, as long as both sides of the trade are held for investment or business purposes rather than personal use.
Geography isn't a barrier either. You can sell a rental in one state and buy the replacement in a different state entirely β the exchange rules don't require staying within the same jurisdiction. That said, some states have their own reporting quirks when property crosses state lines, which is worth reading through if that's your situation: Can You 1031 Exchange Into a Property in Another State? Yes.
| Question | Answer | |---|---| | Must the replacement be the "same type" of property? | No β any real property held for investment/business qualifies | | Can you exchange across state lines? | Yes, with some state-level reporting differences | | Can you exchange into a property you'll live in? | Only under specific conditions, and not right away | | Does the exchange erase the tax? | No β it defers it |
What is boot, and how does depreciation recapture factor in?
Boot is the part of the exchange that doesn't get the tax-deferred treatment, and it's taxable in the year of the exchange even though the rest of the transaction is deferred. Boot shows up when you receive cash back, when your new mortgage is smaller than the one you paid off, or when you swap in non-like-kind property as part of the deal. The full mechanics β and how to avoid triggering boot unintentionally β are covered in Boot in a 1031 Exchange β The Part You Still Pay Tax On.
Depreciation recapture is the other piece landlords underestimate. Every year you depreciated the rental reduced your taxable income at the time, and that deferred tax doesn't disappear just because you're exchanging instead of selling outright β it carries forward into the replacement property's basis. If you used cost segregation or claimed 100% bonus depreciation on components of the property acquired after January 19, 2025 under current law, that accelerated depreciation is part of what's being carried forward, not forgiven. Whether you claimed every dollar of depreciation you were entitled to also affects your basis calculation β see Depreciation Allowed or Allowable if you suspect you missed some.
What happens if you want to move into the replacement property later?
You can eventually convert a 1031 replacement property into your primary residence, but doing it too soon or too casually can undo the exchange's tax benefits. The IRS looks at how long you held the property as a rental and how genuinely it functioned as an investment before you moved in. There's no shortcut version of this β it takes documented rental use over a real stretch of time, not a token gesture. The three most common traps landlords hit are laid out in Converting a 1031 Replacement Property Into Your Home: 3 Traps.
FAQ
Can I do a 1031 exchange on a property I've lived in part-time?
Only the portion used for investment or business purposes generally qualifies, and mixed-use properties require careful allocation between personal and rental use. Talk to a CPA before assuming a vacation rental or a house-hack property qualifies in full.
Do I need a qualified intermediary for every 1031 exchange?
Yes, in nearly every practical case, because the rules require the sale proceeds to be held by a neutral third party rather than passing through your hands. Choosing an intermediary is one of the first steps to line up before you list the property for sale.
What happens if I miss the identification or closing deadline?
The exchange fails and the transaction is treated as a fully taxable sale, with capital gains tax due for the year of the sale. There is generally no extension available just because you ran out of time to find a replacement property.
Does a 1031 exchange work for a property I inherited?
It can, but your basis in an inherited property is calculated differently than one you purchased, which changes your gain calculation going into the exchange. See How to Calculate Cost Basis on an Inherited House before running the numbers.
Is a 1031 exchange the only way to defer tax on a rental sale?
No β it's the most common tool, but depending on your situation a cost segregation study, an installment sale, or timing the sale around other deductions might also change your tax picture. A CPA who works with rental property owners can compare the options against your specific numbers.
<div class="glass rounded-2xl p-5 mt-7 max-w-4xl border border-red-400/30 bg-red-500/5"> <div class="flex items-start gap-3"> <span class="text-2xl flex-shrink-0">β οΈ</span> <div class="flex-1 min-w-0"> <p class="text-red-200 text-sm font-bold">Not tax advice</p> <p class="text-slate-300 text-xs mt-1 leading-relaxed"> This post assumes a standard rental property held for investment, and describes 1031 exchange mechanics in general terms without stating specific day-count deadlines, which you should confirm directly on IRS.gov before relying on them. It does not account for your state's tax treatment, your entity structure, prior depreciation elections, or legislation after July 2026. Tax rules change and depend on your specific situation. Talk to a licensed CPA before acting on anything here, and confirm current figures on IRS.gov. </p> </div> </div> </div>
A snapshot, not a living document
This article reflects the rules as we understood them on the review date shown above. We do not revise posts after publishing them. Tax law changes every year β thresholds, percentages, and deadlines here may since have been superseded, even though this page still comes up in search. Check the current figure on IRS.gov.
Keep reading
Get tax-season tips by email
Deduction checklists and filing-deadline guides for homeowners and landlords. No schedule, no spam β unsubscribe anytime.
Prefer to dive in? Get started free β