1031 Exchange Calculator

Calculate how much capital gains tax you can defer with a 1031 like-kind exchange. See the tax savings when you sell an investment property and reinvest in a replacement property.

Advertisement
⚠️ Important Disclaimer:

This calculator provides estimates for informational purposes only. Tax laws are complex and subject to change. Consult a qualified tax professional or CPA before making any real estate investment decisions or completing a 1031 exchange transaction.

📋 Property & Tax Information

What you originally paid for the property
Total depreciation deducted over ownership period
The price at which you sold (or will sell) the property
Commissions, closing costs, legal fees, etc.
Price of the new property you intend to acquire
Your tax filing status for the year of the exchange
The tax year for the exchange
Your total taxable income including the capital gain
Your state's capital gains tax rate (0% if no state tax)

📊 Your 1031 Exchange Results

Capital Gain Realized$0
Depreciation Recapture Tax (25%)$0
Long-Term Capital Gains Tax$0
Net Investment Income Tax (NIIT)$0
State Capital Gains Tax$0
Total Tax Deferred$0
Tax Savings Percentage0%
Remaining Basis in Replacement Property$0

🔍 Step-by-Step Breakdown

Adjusted Basis (Purchase Price + Capital Improvements − Depreciation)$0
Amount Realized (Sale Price − Selling Costs)$0
Capital Gain Realized (Amount Realized − Adjusted Basis)$0
LTCG Tax Rate Applied0%
Total Tax Deferred if 1031 Exchange Completed$0
Boot/Cash Received (if replacement price < sale price)$0

📌 Scenario 1: Full Tax Deferral — Upgrading to a More Expensive Property

An investor purchased a rental property for $400,000, took $80,000 in depreciation, and sold it for $700,000 with $42,000 in selling costs. They reinvested in a replacement property for $850,000 (higher value). Filing as Single with $180,000 taxable income. State tax rate: 4.5%.

Purchase Price:$400,000
Depreciation Taken:$80,000
Sale Price:$700,000
Selling Costs:$42,000
Replacement Price:$850,000
Capital Gain Realized:$338,000
Depreciation Recapture Tax (25%):$20,000
LTCG Tax (15%):$38,700
NIIT (3.8%):$7,144
State Tax (4.5%):$15,210
Total Tax Deferred:$81,054
Tax Savings %:~24.0%
Remaining Basis in Replacement:$512,000
Boot:$0 (replacement price > sale price)

📌 Scenario 2: Partial Deferral — Downsizing with Boot

An investor purchased a commercial property for $1,200,000, took $180,000 in depreciation, and sold for $1,800,000 with $90,000 in selling costs. They reinvested in a smaller property for $1,500,000. Filing as Married Filing Jointly with $300,000 taxable income. State tax rate: 6%.

Purchase Price:$1,200,000
Depreciation Taken:$180,000
Sale Price:$1,800,000
Selling Costs:$90,000
Replacement Price:$1,500,000
Capital Gain Realized:$690,000
Depreciation Recapture Tax (25%):$45,000
LTCG Tax (15%):$88,500
NIIT (3.8%):$16,720
State Tax (6%):$41,400
Total Tax Deferred (partial):$137,620
Tax Savings %:~19.9%
Remaining Basis in Replacement:$810,000
Boot (Taxable):$300,000
Tax Due on Boot:$59,740 (proportion of total tax)

📐 Formulas Used

Adjusted Basis

Adjusted Basis = Original Purchase Price − Accumulated Depreciation

The adjusted basis represents your cost basis in the property after accounting for depreciation deductions taken over the ownership period. Capital improvements increase the basis, while depreciation reduces it.

Amount Realized

Amount Realized = Sale Price − Selling Costs

The net proceeds from the sale after deducting commissions, closing costs, legal fees, and other selling expenses.

Capital Gain Realized

Capital Gain = Amount Realized − Adjusted Basis

This is the total gain that would be taxable if you did not complete a 1031 exchange. The gain consists of two components: depreciation recapture (taxed at 25%) and the remaining capital gain (taxed at LTCG rates).

Depreciation Recapture Tax

Depreciation Recapture Tax = Depreciation Taken × 25%

Depreciation recapture is taxed at a flat 25% rate (Section 1250 recapture). This portion of the gain is attributable to the depreciation deductions you previously claimed.

Long-Term Capital Gains Tax

LTCG Tax = (Capital Gain − Depreciation) × LTCG Rate

The remaining gain (after removing depreciation recapture) is taxed at long-term capital gains rates based on your taxable income and filing status.

Net Investment Income Tax (NIIT)

NIIT = 3.8% × Capital Gain (if MAGI > $200K Single / $250K MFJ)

The Affordable Care Act's 3.8% surtax applies to the lesser of net investment income or the excess of MAGI over the threshold.

Total Tax Deferred

Total Tax Deferred = Depreciation Recapture + LTCG Tax + NIIT + State Tax

This is the total tax you would have owed if you sold without a 1031 exchange. By completing the exchange, all of this tax is deferred.

Remaining Basis in Replacement Property

Remaining Basis = Replacement Price − Capital Gain Deferred

The replacement property's basis carries over from the relinquished property. The deferred gain reduces the basis, meaning you'll have a larger gain when you eventually sell the replacement property (unless you do another 1031 exchange or hold until death).

Boot

Boot = Sale Price − Replacement Price (if positive)

If you receive cash or other property (boot) — i.e., the replacement property costs less than what you sold — the boot is taxable. It reduces the amount of gain deferred.

📖 1031 Exchange Guide

What is a 1031 Exchange?

A 1031 exchange, named after Section 1031 of the Internal Revenue Code, allows real estate investors to defer capital gains taxes when selling an investment property and reinvesting the proceeds into a "like-kind" replacement property. It is one of the most powerful wealth-building tools available to real estate investors.

Key Requirements

  • Like-Kind Property: Both properties must be held for investment or business use. Virtually any real estate qualifies as "like-kind" with any other real estate in the U.S.
  • 45-Day Identification Period: You have 45 days from the sale of your relinquished property to identify up to three potential replacement properties in writing to a Qualified Intermediary (QI).
  • 180-Day Exchange Period: You must close on the replacement property within 180 days of the sale of the relinquished property (or by your tax return due date, whichever is earlier).
  • Qualified Intermediary (QI): You cannot touch the sale proceeds. A QI must hold the funds and facilitate the exchange.
  • Equal or Greater Value: To fully defer all taxes, the replacement property must be of equal or greater value than the relinquished property, and all net proceeds must be reinvested.

2025/2026 Long-Term Capital Gains Tax Brackets

  • Single: 0% up to $47,025 | 15% from $47,026 to $518,900 | 20% over $518,900
  • Married Filing Jointly: 0% up to $94,050 | 15% from $94,051 to $583,750 | 20% over $583,750
  • NIIT: Additional 3.8% if MAGI exceeds $200,000 (Single) or $250,000 (MFJ)

What Happens if You Don't Reinvest All Proceeds (Boot)?

If you receive cash or other property (boot) as part of the exchange, it is taxable to the extent of the gain realized. Common types of boot include cash received, mortgage relief (when your replacement property has less debt than the relinquished), and non-like-kind property received. The boot is taxed first as depreciation recapture (up to 25%) and then as capital gain.

Benefits of a 1031 Exchange

  • Tax Deferral: Defer 100% of capital gains and depreciation recapture taxes.
  • Compound Growth: Reinvest the full sale proceeds (not reduced by taxes) into a larger or better property.
  • Portfolio Upgrade: Trade up to more valuable properties, better locations, or different property types.
  • Estate Planning: Heirs receive a step-up in basis at death, potentially eliminating the deferred gain entirely.
  • Infinite Deferral: There is no limit on how many 1031 exchanges you can do in a lifetime.

❓ Frequently Asked Questions

What are the strict timelines for a 1031 exchange?
A 1031 exchange has two critical deadlines: (1) The 45-day identification period — you must identify potential replacement properties in writing to your Qualified Intermediary within 45 calendar days of closing the sale of your relinquished property. (2) The 180-day exchange period — you must close on the replacement property within 180 calendar days or by the due date of your tax return (including extensions), whichever is earlier. These deadlines are strict and cannot be extended, even for weekends or holidays.
What qualifies as "like-kind" property?
For real estate held for investment or business use, "like-kind" has a very broad definition. Any type of real property can be exchanged for any other type of real property within the United States. For example, you can exchange a single-family rental for an apartment building, raw land for a commercial office, or a warehouse for a retail strip mall. The key requirement is that both properties must be held for investment, business, or productive use in a trade or business — personal residences do not qualify.
Do I need a Qualified Intermediary (QI)?
Yes, a Qualified Intermediary (QI) is required for a valid 1031 exchange. You cannot take constructive receipt of the sale proceeds — meaning the cash cannot pass through your hands or bank account. The QI holds the funds from the sale and uses them to acquire the replacement property on your behalf. The QI also prepares the necessary exchange documentation. Choosing a reputable, experienced QI is critical to ensuring your exchange complies with IRS requirements.
What is "boot" and how is it taxed?
"Boot" refers to any non-like-kind property or cash received as part of the exchange. Common examples include: (a) cash proceeds not reinvested, (b) mortgage relief when the replacement property has less debt than the relinquished property, or (c) personal property received. Boot is taxable to the extent of the realized gain. The tax on boot is calculated as: first, any depreciation recapture (up to 25% of boot), and second, capital gains tax on any remaining boot. To achieve full tax deferral, you must acquire a replacement property of equal or greater value and reinvest all net proceeds.
Can I do a 1031 exchange on a primary residence?
No, a 1031 exchange cannot be used for a primary residence. Section 1031 applies only to property held for investment or business use. However, there is the Section 121 exclusion ($250,000 for singles, $500,000 for married couples) that allows you to exclude capital gains on the sale of a primary residence if you've lived in it for at least 2 of the last 5 years. You can also convert a rental property into a primary residence and use both Section 1031 and Section 121 in certain cases, but strict rules apply regarding holding periods.
Can I do a reverse 1031 exchange (buy first, sell later)?
Yes, a reverse 1031 exchange is allowed under IRS Revenue Procedure 2000-37. In a reverse exchange, you acquire the replacement property before selling the relinquished property. This is more complex because the replacement property or the relinquished property must be held by an Exchange Accommodation Titleholder (EAT) — a special entity that holds the property until the exchange is complete. You have 45 days to identify the relinquished property to be sold and 180 days total to complete the sale. Reverse exchanges are more expensive due to the EAT and additional financing complexity.