Back to Glossary

1031 Exchange

Reviewed and updated November 25, 2026 by DealCalcPro. Sources are listed at the end of this entry. How we write and review

The question it answers

Can this sale's taxable gain be deferred by buying another investment property?

What 1031 Exchange means

A 1031 exchange is named for Section 1031 of the Internal Revenue Code. When real property held for business or investment is exchanged for other like-kind real property, the owner does not have to recognize the gain at the time of the exchange. The gain is deferred into the replacement property and can still be taxed later.

Since 2018 the rule applies only to real property. Equipment, vehicles and other personal property no longer qualify. Both the property sold and the property bought must be held for business use or investment, so a personal home does not fit, and a house bought mainly to resell quickly may not either. A CPA can confirm whether a property qualifies.

Most exchanges are delayed exchanges. The statute gives 45 days after the sale to identify replacement property and requires the replacement to be received within 180 days of the sale or by the tax return due date for that year (with extensions), whichever comes first. Any cash or other non-like-kind property received is called boot, and gain is taxable up to the amount of boot. The exchange is reported on IRS Form 8824.

How it changes a decision

A 1031 exchange changes the sell decision more than the buy decision. An owner sitting on a large gain may hold a weak property because selling would trigger tax. An exchange can make it practical to trade a tired single-family rental for a stronger property without losing a share of the equity to tax. It also commits the investor to buying again within a short window, and buying under pressure can mean overpaying. If the investor wants to keep some cash, that cash is taxable boot.

Worked example

Hypothetical: trading a fourplex held for many years

A hypothetical owner sells a fourplex and closes on a larger apartment building through a qualified intermediary. The owner keeps $30,000 of the proceeds for personal use instead of reinvesting it. All figures are illustrative.

Inputs

Original purchase price
$520,000
Capital improvements
$40,000
Accumulated depreciation
$110,000
Sale price
$880,000
Selling costs
$52,800
Cash kept out of the exchange
$30,000

Steps

  1. Adjusted basis: $450,000Formula: = purchase price + improvements − depreciation
  2. Net sale price: $827,200Formula: = sale price − selling costs
  3. Realized gain: $377,200Formula: = greater of (net sale price − adjusted basis, 0)
  4. Depreciation portion: $110,000Formula: = lower of (depreciation, realized gain)
  5. Remaining gain: $267,200Formula: = greater of (realized gain − depreciation portion, 0)
  6. Recognized gain: $30,000Formula: = lower of (realized gain, cash boot)
  7. Gain still deferred: $347,200Formula: = realized gain − recognized gain

Result: Realized gain is $377,200. The $30,000 taken out is recognized now. The other $347,200 of gain is deferred into the replacement property.

The depreciation taken, $110,000, is part of the gain and is deferred along with it. The deferred gain stays with the replacement property and can come due when that property is later sold in a taxable sale. This simple example looks only at cash taken out; how loan payoffs and new debt are treated should be reviewed with a CPA.

Common mistakes

  • Receiving the sale proceeds directly before the replacement property closes. The exchange structure, usually with a qualified intermediary, has to be in place before the sale closes.
  • Missing the 45-day identification or 180-day closing deadline. The statute does not extend these for convenience.
  • Assuming any reinvestment defers all tax. Cash or other property taken out of the exchange is taxable boot.
  • Trying to exchange a primary residence, which is not held for business or investment.

Limitations

  • Deferral is not elimination. The deferred gain follows the replacement property.
  • The tight timeline can push an investor into a weaker replacement property.
  • State tax treatment can differ from federal treatment.

How it differs from related terms

Capital Gains Tax
Capital gains tax is what a normal sale triggers. A 1031 exchange postpones recognizing that gain.
Depreciation Recapture
Recapture applies to the depreciation part of the gain on a taxable sale. In a full exchange it is deferred too.
Rules vary by locationFederal rules set the like-kind requirements and deadlines. State income tax treatment of exchanges varies, and the rules for intermediaries and transfer taxes depend on the state and county. Work with a CPA or tax attorney and a qualified intermediary before the sale closes.

Run the numbers

Related terms

Sources

  1. Legal Information Institute, Cornell Law School, 26 U.S. Code § 1031 - Exchange of real property held for productive use or investment. Supports: Like-kind real property held for business or investment, the 45-day identification and 180-day receipt deadlines, and gain recognized up to cash or other property received
  2. Internal Revenue Service, Like-Kind Exchanges - Real Estate Tax Tips. Supports: Section 1031 limited to real property since 2018, no gain recognized in a like-kind exchange except up to other property or money received, Form 8824 reporting

Examples are hypothetical and for education only. This page is not legal, tax, lending or investment advice; rules change, so check current sources or a licensed professional before relying on them.