Keep more

How a 1031 exchange works, step by step

Sell a rental, buy another, owe no tax now. The 45 and 180 day rules, what you give up, and why the real payoff only comes at the end.

Updated October 2026 · 7 min read

A set of house keys resting on a moving box
New keys. Old cost. The tax rides along. · Pixabay

The short answer

A 1031 exchange lets you sell investment real estate and buy more without paying tax on the gain now. You must name the new property within 45 days and close within 180 days, and the cash has to sit with a middleman, never with you. The tax isn't erased. It moves into the new property.

  • Only real estate held for business or investment counts. Not your home.
  • Your old cost carries into the new property.
  • If you hold until death, your heirs' cost resets, and the deferred tax goes away.

Most articles stop at the deadlines. The deadlines matter, but they aren't the point. The point is what happens to the tax you didn't pay.

What a sale would cost

Worked example

A rental bought for $300,000, sold for $600,000

Sale price$600,000
Purchase price$300,000
Depreciation taken over the years$80,000
Gain ($600,000 − $220,000 cost left)$380,000
Tax on the $80,000 depreciation (up to 25%)$20,000
Tax on the other $300,000 (15%)$45,000
Federal tax before the 3.8% and state$65,000
Above $200,000 of income single or $250,000 married, add 3.8% on the gain too. Most states add their own tax. Sales costs would lower the gain a little.

With an exchange, that $65,000 or more stays in the next property, working for you.

The rules, in order

  1. 01Before you close the sale, hire a qualified intermediary. If the cash touches your account, the exchange is over.
  2. 02Within 45 days of the sale, name the replacement property in writing. Most people name up to three.
  3. 03Close on one of them within 180 days of the sale, or by your tax return due date if sooner. File an extension if that date comes first.
  4. 04Buy at least as much as you sold, and replace the debt you paid off. Cash you keep, or debt you don't replace, is taxed.
  5. 05Report it on Form 8824 with that year's return.

The part nobody explains: swap till you drop

Every exchange carries your old cost into the new property. Do it three times over 30 years and the gain keeps growing, and so does the depreciation you'll pay back. If you ever sell for cash, it all comes due in one year.

But when you die, your heirs get the property at its value on that day. The old cost is gone. The deferred gain and the depreciation bill are gone with it. That reset is what turns a 1031 from "pay later" into "never pay."

So the real question is "do I plan to hold real estate for the rest of my life?", more than "should I do a 1031?" If yes, exchanges compound. If you plan to cash out at 70, you're mostly moving the bill, though a delay can still be worth a lot.

Where people get caught

  • Your home doesn't count. Neither does a vacation home you use a lot. A second home can count if you rent it most of the year and use it very little.
  • Fix-and-flips don't count. The property has to be held for investment, not for sale.
  • Buying from a relative has extra rules. Ask first.
  • Missing day 45 or day 180 by one day ends the exchange. There are almost no extensions.
  • Some states, including California, track the deferred gain if you buy a property in another state.

This one needs a pro

An exchange needs a middleman to hold the cash, and usually a real estate lawyer. Our part is the return: the rentals you own, the depreciation, and the gain math when you do sell.

Your rentals, on the return.

We build Schedule E for your rentals today. Form 8824 for an exchange: we don't do this yet. Free for a W-2. $99 with a business, rental, investment sale or K-1.

Start my return →