Skip to main content
1031 ExchangeTaxesCapital GainsDepreciation

1031 Exchange for Rental Property: Defer Taxes When You Sell

Learn how a 1031 exchange lets you defer capital gains and depreciation recapture when you sell a rental, plus the 45-day and 180-day rules and like-kind requirements.

By Laura Bennett, Real Estate Tax Writer · Last reviewed: July 26, 2026 · 9 min read

Run the numbers while you read

Open the matching calculator and test each assumption against your own deal.

Rental Property Calculator

What a 1031 Exchange Is

A 1031 exchange, named after Section 1031 of the tax code, lets you sell an investment property and reinvest the proceeds into another investment property while deferring the taxes you would normally owe. Instead of paying capital gains tax and depreciation recapture at sale, you roll your entire gain into the next property.

The tax is deferred, not erased. Your original cost basis carries forward into the replacement property, so the gain is still there on paper. But deferral is powerful: it lets you keep the money that would have gone to taxes working for you in a larger property, and investors can repeat the process for years.

What Taxes You Defer

  • Federal capital gains tax on the appreciation of the property you sell.
  • Depreciation recapture, which is otherwise taxed at up to 25%.
  • The 3.8% net investment income tax that can apply to high-income sellers.
  • State capital gains tax in most states that recognize the exchange.

The Like-Kind Requirement

Both the property you sell and the property you buy must be held for investment or business use, and they must be like-kind. For real estate, like-kind is interpreted broadly: you can exchange a single-family rental for an apartment building, raw land for a retail strip, or a duplex for a warehouse.

What does not qualify is a primary residence, a second home used personally, or property held mainly to flip and resell quickly. The rule is about intent and use, not the physical type of property, so keep records that show the property was a genuine investment.

The 45-Day and 180-Day Rules

Identify within 45 days, close within 180 days

The timeline is strict and starts the day your sale closes. You have 45 calendar days to formally identify potential replacement properties in writing, and 180 calendar days to close on the purchase. There are no extensions for weekends or holidays.

Most investors identify replacements under the three-property rule, which lets you name up to three candidates regardless of value. Missing either deadline disqualifies the exchange and makes the full gain taxable, so many investors line up backup properties before they ever sell.

The Role of a Qualified Intermediary

You cannot touch the sale proceeds at any point. If the money passes through your hands, the exchange fails and the gain becomes taxable. Instead, a qualified intermediary holds the funds between the sale and the purchase and handles the required paperwork.

You must set up the intermediary before closing on the sale, not after. Choosing an experienced, bonded intermediary matters because they control the money and the documentation that keeps the exchange valid.

Avoiding a Taxable "Boot"

To fully defer taxes, you generally need to buy a replacement property of equal or greater value and reinvest all of the equity. Any cash you pull out, or any reduction in mortgage debt that is not replaced, is called boot and is taxable.

For example, if you sell for $500,000 and buy for $450,000, that $50,000 difference is boot and triggers tax. Investors who want a fully tax-deferred exchange trade up in both price and loan balance so no equity or debt relief is left on the table.

When a 1031 Exchange Makes Sense

  • You have significant gain and depreciation recapture that would create a large tax bill at sale.
  • You want to trade up into a larger or better-located property without losing equity to taxes.
  • You are consolidating several small rentals into one larger asset, or diversifying one into several.
  • You plan to keep investing in real estate rather than cash out of the market.

Frequently Asked Questions

How does a 1031 exchange defer taxes?

When you sell an investment property and reinvest the proceeds into a like-kind investment property through a qualified intermediary, Section 1031 lets you defer the capital gains tax and depreciation recapture. Your original cost basis carries into the new property, so the tax is postponed rather than eliminated.

What are the 45-day and 180-day rules?

After your sale closes, you have 45 calendar days to identify replacement properties in writing and 180 calendar days to close on the purchase. Both deadlines are firm, with no extensions for weekends or holidays, and missing either one makes the gain taxable.

Can I keep some of the cash from the sale?

You can, but any cash you take out, called boot, is taxable. To fully defer taxes you generally must buy a replacement property of equal or greater value and reinvest all of your equity while carrying at least as much debt.

Do I ever pay the deferred tax?

You pay it when you eventually sell without doing another exchange. Some investors defer indefinitely by exchanging repeatedly, and heirs may receive a stepped-up basis at death, though tax rules change and this should be reviewed with a tax professional.

Can I do a 1031 exchange on my primary home?

No. A 1031 exchange only applies to property held for investment or business use. A primary residence does not qualify, though it may be eligible for a separate capital gains exclusion under different rules.

LB

Laura Bennett · Real Estate Tax Writer, Phoenix, AZ

Laura writes about the tax side of rental property investing, including depreciation, cost basis, and how deductions shape after-tax returns. She focuses on making IRS rules understandable without replacing a qualified tax advisor.

Educational Disclaimer

All calculations are estimates for educational and planning purposes only. PropertyFlowTools.com does not provide financial, tax, legal, lending, or investment advice. Verify calculations and consult qualified professionals before making property or financing decisions.