FreeCalculators

Business & Tax

1031 Exchange: Defer Capital Gains Tax on Investment Properties (2026)

Discover how a 1031 exchange allows you to defer capital gains tax when selling and buying investment properties. Optimize your real estate investments.

By FreeCalculators Editorial · Published 2026-09-01 · Updated 2026-09-01 · 9 min read · 2099 words

A Section 1031 exchange does not eliminate capital gains tax. It moves the tax to a later date, and it only does that if you clear three hurdles: you never take control of the money, you identify a replacement inside 45 days, and you close inside 180. Miss any one of them and the sale becomes a normal taxable sale — often discovered the following April, when the cash is already spent on the replacement property.

What Section 1031 actually requires

Section 1031 of the Internal Revenue Code lets you defer gain when you exchange real property held for productive use in a trade or business, or held for investment, for other real property of like kind. Since the Tax Cuts and Jobs Act took effect in 2018, only real property qualifies — machinery, vehicles, equipment and other personal property were removed from the provision.

Four conditions decide whether your transaction qualifies. Failing any one of them makes the whole thing taxable.

  • Both properties are real property held for business or investment. Your primary residence does not qualify. Neither does property bought purely to flip.
  • Like-kind is broad for real property. A warehouse can be exchanged for an apartment building, raw land for a retail unit. The test is the nature of the property, not its quality or location.
  • You do not take actual or constructive receipt of the proceeds. The money must go from the closing agent to a qualified intermediary, never through your hands or your bank account.
  • You follow the timing rules exactly. 45 days to identify, 180 days to close, measured from the closing of the relinquished property.

The two deadlines that kill most exchanges

Both clocks start on the day the relinquished property closes — not the day you list it, not the day you accept an offer. The IRS does not grant extensions for market conditions, financing falling through, or a seller changing their mind. The deadline is statutory.

Section 1031 deadlines, measured from the closing of the relinquished property
DeadlineWindowWhat must happenExtendable?
Identification 45 calendar days Deliver a written, signed identification of potential replacement property to your qualified intermediary No
Completion 180 calendar days Close on the identified replacement property No
Tax-return cap Earlier of 180 days or the due date of the return If your return is due before day 180, the exchange period ends on the return due date Only by filing an extension

Why you can never touch the money

The single most common way an exchange is disqualified is constructive receipt. If the proceeds are wired to your account, even for a day, even with the intention of forwarding them, the IRS treats you as having received them. The exchange is over and the gain is taxable.

That is why a qualified intermediary — sometimes called an accommodator or exchange facilitator — must be engaged before the relinquished property closes. The QI takes assignment of the sale contract, receives the proceeds, and holds them until they are used to acquire the replacement. Your attorney or your real estate agent cannot serve as QI; they are your agents and have a disqualifying relationship. Engage the QI at contract stage, not at closing.

Boot: the part of the gain you still pay tax on

Any value you pull out of the exchange is boot, and boot is taxable up to the amount of your realized gain. Cash boot is the obvious form: taking $50,000 of the proceeds. Mortgage boot is the one people miss — if you retire a $300,000 loan and take on a $200,000 loan, you have relieved yourself of $100,000 of debt and that difference is boot.

To fully defer, you must reinvest all equity and replace the debt. If you want to reduce leverage, you can add outside cash to make up the difference. You can also take boot deliberately — paying tax on part of the gain is sometimes the right commercial decision — but you should know the number before you close, not after.

Worked example: duplex sold in 2025, fully exchanged

                Purchase price (2019)                       $400,000
  Land $100,000 / building $300,000
Depreciation taken (building / 27.5 yrs x 6)  $65,000
Adjusted basis ($400,000 - $65,000)          $335,000

Sale price                                 $650,000
Less selling costs (commission, title, fees) ($40,000)
Net sale proceeds                          $610,000

Realized gain ($610,000 - $335,000)         $275,000

If sold outright — federal tax:
  Unrecaptured Section 1250 gain  $65,000 x 25%  = $16,250
  Remaining long-term gain       $210,000 x 20%  = $42,000
  Net investment income tax      $275,000 x 3.8% = $10,450
  Federal tax due                                 = $68,700

In a qualifying exchange with no boot:
  Federal tax due now                             = $0
  Basis carried into replacement property         = $335,000
              

State tax is additional and varies widely — some states conform to Section 1031, some do not, and a handful impose a clawback on later sales of exchanged property. Confirm your state's treatment before closing.

Identification rules: three tests, you pick one

Your 45-day identification must be in writing, signed by you, delivered to the QI or another party to the exchange, and unambiguous. You can identify more than one property, but only within one of three limits:

  • Three-property rule. Identify up to three properties regardless of value. This is the most common route and the safest.
  • 200% rule. Identify any number of properties, provided their total fair market value does not exceed 200% of the relinquished property's value.
  • 95% rule. If you exceed both limits above, the exchange only qualifies if you actually acquire 95% of the value you identified.

You can revoke and re-identify within the 45 days. After day 45 the list is locked. A common hedge is to name two properties you intend to buy and a Delaware Statutory Trust interest as a backup — a DST is a fractional, passive real-property interest that satisfies the like-kind requirement and can absorb leftover proceeds so nothing has to come back to you as boot.

What the deferral is actually worth

Deferral is not forgiveness. The gain still exists and the basis carries forward, so when you eventually sell without exchanging, the whole accumulated gain is taxed at once. The value of an exchange is the use of the deferred tax as working capital in the meantime.

Sell outright versus fully exchanged, using the worked example above
ItemSell outrightSection 1031 exchange
Gain realized $275,000 $275,000 (deferred, not erased)
Depreciation recapture at 25% $16,250 $0
Long-term capital gains at 20% $42,000 $0
Net investment income tax at 3.8% $10,450 $0
Federal tax due at closing $68,700 $0
Basis in replacement property $610,000 $335,000
Capital left working $541,300 $610,000

Mistakes that void an exchange

  1. Taking the proceeds. Even briefly. Even into a separate account. This is the most common failure and it is unrecoverable.
  2. Engaging the QI too late. The QI must be in place before the relinquished property closes. Signing up afterwards is not possible.
  3. Missing the 45-day identification. No extensions, no exceptions. A verbal identification is not sufficient.
  4. Under-identifying. Naming one property that then falls through leaves you with no replacement and a taxable sale.
  5. Forgetting the debt replacement. Retiring a larger loan than you take on creates mortgage boot.
  6. Exchanging a property held for resale. Property held primarily for sale does not qualify. Holding period and intent both matter, and there is no fixed minimum holding period in the statute.
  7. Ignoring related-party rules. Exchanges with related parties are subject to a two-year holding requirement and can be unwound retroactively.

Where people go wrong on the exit

Because basis carries forward, a long chain of exchanges produces a very large deferred gain and a very low basis. If you eventually sell without exchanging, that accumulated gain is taxed in a single year — and a large gain can push you into higher capital gains and net investment income tax brackets, so the effective rate on the final sale is often worse than on the first one. Model the exit before you start the chain, not after.

Bottom line

A 1031 exchange is a procedural rule with a financial payoff, and the procedure is unforgiving. Engage the qualified intermediary before the sale closes, identify within 45 days with at least one backup, close within 180 days and before your return is due, and replace both the equity and the debt. Get those four things right and the gain is deferred. Get one wrong and you have an ordinary taxable sale with a deadline you cannot appeal. Report the exchange on IRS Form 8824 with your return; the instructions for that form walk through each step of the calculation used above.

Frequently asked questions

Can I do a 1031 exchange on my primary home?
No. Section 1031 applies only to property held for productive use in a trade or business or held for investment. Your primary residence is excluded, and the exclusion for it is Section 121 instead, which lets a qualifying seller exclude up to $250,000 of gain ($500,000 on a joint return). You can convert a former residence into a rental, but the conversion needs to be genuine and documented, and the Section 121 exclusion may be reduced or lost by the non-qualified-use rules.
What exactly happens on day 46 if I have not identified anything?
The exchange fails. There is no extension and no late-identification relief. The sale is treated as an ordinary taxable disposition in the year the relinquished property closed, and the deferred gain becomes taxable then. The qualified intermediary releases the funds to you and reports the transaction. This is why identifying a backup property, or a Delaware Statutory Trust interest, is standard practice rather than caution.
Do I have to replace the debt as well as the equity?
To defer the entire gain, yes. If you retire a $300,000 mortgage and take on only a $200,000 mortgage on the replacement property, you have $100,000 of mortgage boot, and that amount is taxable up to the size of your realized gain. You can neutralise it by adding outside cash, or by taking on a larger loan on the replacement. You can also accept the boot deliberately and pay tax on that portion.
What happens to the deferred tax if I hold the property until I die?
Under current law, heirs receive the property at a stepped-up basis equal to its fair market value at your death, under Section 1014, which eliminates the deferred gain and the deferred depreciation. That is the mechanism behind the phrase swap till you drop. It is a feature of current tax law rather than a contractual right, so it is exposed to legislative change and should be modelled as a possibility rather than a certainty.
Can I exchange into a property I already own?
No. The replacement property must be acquired as part of the exchange. Buying a property from a related party, or acquiring something you already hold, does not qualify. Exchanges involving related parties are also subject to a two-year holding requirement, and a subsequent disposition within that window can unwind the deferral retroactively.
Is there a minimum holding period for the relinquished property?
The statute does not set a fixed number of days. The test is intent: the property must have been held for productive use in a trade or business or for investment. Property held primarily for sale does not qualify. In practice, a short holding period invites scrutiny, and most advisers look for at least a full tax year with genuine rental or business use and evidence to support it.

Calculators in this guide

  • Capital Gains Tax Calculator

    Calculate your potential tax from selling investments with our capital gains tax calculator. Understand long-term and short-term tax implications.

  • Rental Property Calculator

    Calculate gross and net rental yield easily. Assess your investment's potential and make informed decisions with our user-friendly tool.

  • 1031 Exchange Calculator

    Discover the tax deferral benefits of a 1031 exchange with our easy-to-use calculator for your investment properties.

  • 1031 Exchange Boot Calculator

    Trade up without triggering the tax bill — or find out exactly how much boot you pulled and what it costs: equity, gain, taxable boot and deferred tax computed end to end.

Related guides