Latest Headlines

1031 Exchange Tax Calculation: Deferred Gains, Basis, and Depreciation

How to calculate the tax benefits of a 1031 exchange — deferred capital gains, carryover basis, depreciation recapture treatment, mortgage assumption rules, and the tax savings with worked examples

By Ebonie CaldwellReal Estate & Mortgage Strategist | Real Estate Investor & EducatorNovember 8, 202614 min read
1031 Exchanges educational article illustration

The financial power of a 1031 exchange lies in the math. When an investor sells a property at a gain and reinvests the proceeds through a like-kind exchange, the capital gains tax, depreciation recapture, and net investment income tax are all deferred — not eliminated, but postponed. The deferred gain is embedded in the replacement property through a reduced (carryover) basis, and the tax will eventually come due when the replacement property is sold without another exchange. But the time value of that deferral — the compounding of the deferred tax dollars over years or decades of continued investment — can generate hundreds of thousands of dollars in additional wealth that would not exist if the investor had paid the tax upfront. Understanding the calculations behind this deferral is essential for any real estate investor considering a 1031 exchange.

The key calculations in a 1031 exchange are: the realized gain on the relinquished property (the total economic gain from the sale), the deferred gain (the portion of the realized gain that is postponed), the recognized gain (the portion that is taxable, typically from "boot"), the carryover basis of the replacement property (the new basis that embeds the deferred gain), the depreciation recapture treatment (how prior depreciation affects the exchange), and the mortgage and debt replacement calculations (how debt payoff and new debt affect the tax result). Each of these calculations follows specific rules under IRC §1031 and the Treasury Regulations, and each has practical implications for the investor's tax position and cash flow.

The starting point for all 1031 exchange tax calculations is the realized gain on the relinquished property. This is the economic gain from the sale — the sale price minus the adjusted basis (original cost plus capital improvements minus depreciation taken) minus selling costs. The realized gain includes both the capital gain (appreciation in the property's value) and the depreciation recapture (the tax benefit the investor received through depreciation deductions over the holding period, which must be "recaptured" at sale). In a fully tax-deferred 1031 exchange, the entire realized gain — capital gain plus depreciation recapture plus any net investment income tax — is deferred. In a partially deferred exchange (where the investor receives "boot"), a portion of the gain is recognized (taxed) and the remainder is deferred. The calculations that follow show exactly how each component is determined. For a complete overview of 1031 exchange rules, see our 1031 exchange complete guide.

This guide provides detailed, step-by-step tax calculations for 1031 exchanges. We will cover the realized gain calculation, deferred and recognized gain, carryover basis, depreciation recapture treatment, mortgage and debt replacement rules, boot (cash boot and mortgage boot), and three worked examples ranging from simple to complex. We will also compare the financial outcome of exchanging versus selling and paying the tax, and we will examine what happens to the basis when multiple exchanges are chained together over time. For the procedural rules that govern exchanges (deadlines, QI, identification), see our 1031 exchange timeline guide and our qualified intermediary and 1031 process guide. For the risks and mistakes that can derail an exchange, see our 1031 exchange risks and mistakes guide. This article is for educational purposes only and does not constitute legal or tax advice — every 1031 exchange should be reviewed by a qualified tax advisor.

Calculating the Realized Gain on the Relinquished Property

The realized gain is the total economic gain from the sale of the relinquished property, calculated before considering whether the gain is deferred or recognized. The formula is straightforward: realized gain equals the amount realized (sale price minus selling costs) minus the adjusted basis (original purchase price plus capital improvements minus depreciation taken). The "amount realized" is the net amount the investor receives from the sale — the contract sale price minus selling costs such as real estate commissions, title insurance, escrow fees, transfer taxes, and other closing costs. The "adjusted basis" is the investor's tax cost in the property — the original purchase price plus any capital improvements (renovations, additions, major repairs that extend the property's life) minus any depreciation deductions taken over the holding period.

To illustrate with a concrete example: suppose an investor purchased a rental property 12 years ago for $300,000. Over the holding period, the investor made $50,000 in capital improvements (a new roof and kitchen renovation) and took $87,273 in depreciation deductions (residential rental property is depreciated over 27.5 years; if 80% of the $300,000 purchase price is allocated to the building, that is $240,000 / 27.5 = $8,727 per year × 12 years = $104,727 on the building alone, but let us use $87,273 as a simplified figure including partial-year conventions). The adjusted basis is $300,000 + $50,000 - $87,273 = $262,727. The investor sells the property for $750,000 with $52,000 in selling costs (7% commission plus title and escrow fees). The amount realized is $750,000 - $52,000 = $698,000. The realized gain is $698,000 - $262,727 = $435,273.

The realized gain has two components for tax purposes: depreciation recapture and capital gain. The depreciation recapture is the amount of depreciation taken over the holding period ($87,273 in this example), which is taxed at a maximum federal rate of 25% under Section 1250 (for residential rental property). The capital gain is the remaining gain ($435,273 - $87,273 = $348,000), which is taxed at long-term capital gains rates (0%, 15%, or 20% depending on income, plus the 3.8% net investment income tax for high-income earners). In a taxable sale (no exchange), both components are taxed in the year of sale. In a 1031 exchange, both components are deferred — the depreciation recapture and the capital gain are embedded in the carryover basis of the replacement property. Understanding the composition of the realized gain is important because it affects the tax calculation if any portion is recognized (through boot) and because the depreciation recapture has a different tax rate than the capital gain.

Calculation StepAmountNotes
Original purchase price$300,000Cost basis at acquisition
Plus: Capital improvements$50,000New roof, kitchen renovation
Minus: Depreciation taken($87,273)12 years of rental depreciation
Adjusted basis$262,727Purchase + improvements - depreciation
Sale price$750,000Contract sale price
Minus: Selling costs($52,000)Commission, title, escrow, transfer tax
Amount realized$698,000Sale price - selling costs
Realized gain$435,273Amount realized - adjusted basis
— Depreciation recapture portion$87,273Taxed at max 25% (§1250)
— Capital gain portion$348,000Taxed at 15%/20% + 3.8% NIIT

The realized gain is the starting point for all 1031 exchange calculations. It is the total economic gain from the sale, composed of capital gain (appreciation) and depreciation recapture (prior tax benefits from depreciation). In a fully tax-deferled exchange, the entire realized gain is deferred. In a partially deferred exchange (with boot), the recognized gain is taxed and the remainder is deferred. Always calculate the realized gain first — it determines the maximum deferral and the potential tax liability if the exchange fails.

Deferred Gain and Recognized Gain

In a 1031 exchange, the realized gain is split into two parts: deferred gain (postponed) and recognized gain (taxed in the current year). In a fully tax-deferred exchange — where the investor reinvests all net proceeds, acquires replacement property of equal or greater value, and replaces all debt — the entire realized gain is deferred, and the recognized gain is $0. The investor pays no tax on the sale in the current year; the entire gain is embedded in the carryover basis of the replacement property. This is the ideal outcome and the primary goal of a 1031 exchange.

However, if the investor does not fully reinvest the proceeds or does not fully replace the debt, a portion of the gain is "recognized" (taxed). The recognized gain is the lesser of the realized gain or the "boot" received. Boot is any value the investor receives that is not reinvested in like-kind property — it can be cash boot (exchange proceeds not reinvested) or mortgage boot (debt relief, where the old mortgage paid off at sale exceeds the new mortgage on the replacement property). The recognized gain is taxed in the year of the exchange at the applicable rates (capital gains rate for the capital gain portion, 25% for the depreciation recapture portion, plus NIIT if applicable). The remaining gain (realized gain minus recognized gain) is deferred.

The formula for recognized gain is: recognized gain = lesser of (realized gain, boot received). If the boot exceeds the realized gain, the recognized gain is capped at the realized gain (you cannot recognize more gain than you realized). For example, if the realized gain is $435,273 and the investor receives $50,000 in cash boot (by reinvesting $50,000 less than the net proceeds), the recognized gain is $50,000 and the deferred gain is $385,273. The $50,000 recognized gain is taxed in the current year; the $385,273 is deferred into the replacement property. The investor's carryover basis is adjusted to account for the recognized gain. This is why it is so important to fully reinvest all proceeds and replace all debt — even a small amount of boot triggers a tax liability that reduces the benefit of the exchange.

ScenarioBoot ReceivedRecognized GainDeferred Gain
Full reinvestment, full debt replacement$0$0$435,273 (full deferral)
$50,000 cash not reinvested$50,000$50,000$385,273
$100,000 cash not reinvested$100,000$100,000$335,273
$50,000 cash + $75,000 debt relief$125,000$125,000$310,273
Boot exceeds realized gain$500,000$435,273 (capped)$0 (no deferral)

Carryover Basis: Calculating the New Basis in the Replacement Property

The carryover basis is the investor's tax basis in the replacement property after a 1031 exchange. Under IRC §1031(d), the basis of the replacement property is the same as the basis of the relinquished property, with adjustments. The formula is: carryover basis = adjusted basis of relinquished property + additional cash invested by the taxpayer + gain recognized (from boot) - cash received (boot) - loss recognized. In a fully tax-deferred exchange (no boot), the formula simplifies to: carryover basis = adjusted basis of relinquished property + additional cash invested.

Using our running example: the relinquished property had an adjusted basis of $262,727. The investor sold it for $750,000 with $52,000 in selling costs, yielding net proceeds of $698,000. The realized gain is $435,273. If the investor acquires a replacement property for $800,000 (reinvesting the full $698,000 in net proceeds plus $102,000 in additional cash), and assumes a new mortgage of $200,000 (replacing the $200,000 mortgage that was paid off at sale — wait, let us assume the relinquished property had no mortgage for this simple example), the carryover basis is $262,727 + $102,000 = $364,727. The replacement property cost $800,000, but the investor's basis is only $364,727 — the difference ($800,000 - $364,727 = $435,273) is the deferred gain embedded in the property.

The carryover basis has two important implications. First, it means the investor's depreciation deductions on the replacement property will be lower than if the property had been purchased outright (because the depreciable basis is lower). The depreciation on the carryover basis portion continues the schedule of the relinquished property (same method, same remaining recovery period), while the "excess basis" (the additional cash invested over the carryover basis) is depreciated as new property starting from the acquisition date. Second, it means that when the replacement property is eventually sold without another exchange, the taxable gain will be larger (because the basis is lower) — but if the investor exchanges again, the deferral continues. The carryover basis is the mechanism by which the tax deferral is tracked across exchanges. For IRS guidance on basis calculations, see IRS Publication 551 (Basis of Assets).

Basis ComponentAmountSource
Adjusted basis of relinquished property$262,727Original cost + improvements - depreciation
Additional cash invested$102,000Cash paid beyond exchange proceeds
Carryover basis of replacement property$364,727Sum of above (§1031(d), no boot)
Actual purchase price of replacement$800,000What the investor actually paid
Deferred gain embedded in property$435,273Purchase price - carryover basis

The carryover basis is always lower than the actual purchase price of the replacement property (in a gain-deferral exchange) because the deferred gain is embedded in the property. This means your depreciation deductions will be lower than if you had purchased the property outright, and your future gain will be larger when you eventually sell. But the trade-off is overwhelmingly positive: you have the full pre-tax proceeds working for you instead of the reduced after-tax proceeds. The compounding of the deferred tax dollars over the holding period far exceeds the cost of the lower depreciation deductions. For most investors, the exchange is financially superior to paying the tax, even with the lower basis.

Depreciation Recapture Treatment in a 1031 Exchange

Depreciation recapture is one of the most misunderstood aspects of 1031 exchanges. When a rental property is sold, the depreciation deductions taken over the holding period must be "recaptured" — meaning the tax benefit the investor received through those deductions is partially clawed back at sale. For residential rental property, depreciation recapture is governed by Section 1250, which taxes the recaptured depreciation at a maximum federal rate of 25% (compared to the 15% or 20% long-term capital gains rate). In a taxable sale, the investor pays the 25% recapture tax on all depreciation taken, plus the capital gains rate on the remaining gain, plus the 3.8% NIIT on the total gain.

In a 1031 exchange, the depreciation recapture is deferred along with the capital gain. The total realized gain (including the recapture portion) is embedded in the carryover basis of the replacement property. The investor does not pay the 25% recapture tax in the year of the exchange — it is postponed until the replacement property is sold without another exchange. This is a significant benefit, because the recapture tax can be substantial: in our example, the $87,273 in depreciation taken would trigger a recapture tax of $21,818 (at 25%) in a taxable sale. In a 1031 exchange, that $21,818 is deferred along with the rest of the gain.

The depreciation treatment on the replacement property is bifurcated. The carryover basis portion (equal to the adjusted basis of the relinquished property) continues the depreciation schedule of the relinquished property — same method (straight-line for residential), same recovery period (remaining years on the original 27.5-year schedule), same convention. The "excess basis" portion (the additional cash invested over the carryover basis) is treated as new property and depreciated over a new 27.5-year schedule (for residential rental) starting from the acquisition date. This bifurcation means the investor continues to receive depreciation deductions on the replacement property, but the deductions are calculated on a lower basis than the actual purchase price. For example, if the carryover basis is $364,727 (of which $262,727 is the carryover portion with 15.5 years remaining on the original 27.5-year schedule) and the excess basis is $102,000 (new 27.5-year schedule), the annual depreciation would be approximately $8,475 on the carryover portion (with declining years remaining) plus $3,709 on the excess basis — total approximately $12,184 per year, compared to $23,273 per year if the full $800,000 purchase price were depreciable at the standard 27.5-year rate (assuming 80% building ratio). For a deeper discussion of depreciation and tax strategies, see our real estate tax strategies overview.

Tax ComponentTaxable Sale1031 ExchangeTax Saved (Deferred)
Depreciation recapture (25%)$87,273 × 25% = $21,818$0 (deferred)$21,818
Capital gains (15%)$348,000 × 15% = $52,200$0 (deferred)$52,200
Net investment income tax (3.8%)$435,273 × 3.8% = $16,540$0 (deferred)$16,540
Total federal tax$90,558$0$90,558

Mortgage and Debt Replacement Rules

When the relinquished property has a mortgage, the mortgage is paid off at closing from the sale proceeds. This debt payoff creates a potential tax issue: the investor is receiving "debt relief" — the extinguishment of a liability — which the IRS treats as a form of value received, similar to receiving cash. Under the 1031 exchange rules, debt relief is treated as "mortgage boot" (also called "debt relief boot") and is taxable to the extent of the realized gain, unless the investor acquires replacement property with new debt equal to or greater than the old debt (or makes up the difference with additional cash).

The rule for full tax deferral with mortgages is: the investor must (1) reinvest all net proceeds from the sale (net of selling costs), AND (2) acquire replacement property with total debt equal to or greater than the debt paid off on the relinquished property. If both conditions are met, the exchange is fully tax-deferred. If the new debt is less than the old debt, the difference is mortgage boot and is taxable. The investor can offset mortgage boot by investing additional cash — for example, if the old mortgage was $300,000 and the new mortgage is $200,000, the investor has $100,000 in debt relief boot, but if the investor invests an additional $100,000 in cash (beyond the exchange proceeds), the debt is effectively replaced and the boot is offset.

The calculation works as follows. Total "proceeds" from the relinquished property sale = net cash proceeds + debt paid off. Total "reinvestment" in the replacement property = cash invested + new debt assumed. For full deferral, total reinvestment must equal or exceed total proceeds. If total reinvestment is less than total proceeds, the difference is boot and is taxable to the extent of the realized gain. For example: relinquished property sells for $750,000 with a $200,000 mortgage. Selling costs are $52,000. Net cash proceeds = $750,000 - $52,000 - $200,000 = $498,000. Total proceeds = $498,000 cash + $200,000 debt = $698,000. If the replacement property costs $750,000 with a $250,000 new mortgage, the investor invests $500,000 cash (from the $498,000 exchange proceeds plus $2,000 additional) + $250,000 new debt = $750,000 total reinvestment, which exceeds $698,000 total proceeds. Full deferral — no boot. But if the replacement costs $600,000 with a $150,000 mortgage, the investor invests $450,000 cash + $150,000 debt = $600,000, which is $98,000 less than $698,000. The investor has $98,000 in boot ($48,000 cash boot + $50,000 mortgage boot), taxable to the extent of the $435,273 realized gain. Financing the replacement property to meet debt replacement requirements can be challenging; tools like MortgageStrategist can help evaluate lender options and ensure the new mortgage satisfies the exchange rules.

ComponentRelinquished PropertyReplacement PropertyBoot?
Sale/purchase price$750,000$750,000—
Selling costs$52,000——
Mortgage paid off / new mortgage$200,000 paid off$250,000 new debtNo boot (new > old)
Net cash proceeds / cash invested$498,000$500,000 investedNo cash boot
Total proceeds / total reinvestment$698,000$750,000Full deferral ✓

Debt relief is the most commonly overlooked source of boot in a 1031 exchange. If your relinquished property has a mortgage that is paid off at sale, you must acquire replacement property with new debt equal to or greater than the old mortgage — or make up the difference with additional cash. If your new mortgage is less than the old mortgage, the difference is mortgage boot and is taxable. Always calculate the total proceeds (cash + debt) and total reinvestment (cash + new debt) before closing the replacement property to ensure full deferral. Financing is often the most challenging part of a 1031 exchange — plan your replacement property financing early and verify that the new mortgage meets the debt replacement requirement.

Boot: Cash Boot, Mortgage Boot, and How Boot Is Taxed

Boot is any value the investor receives in a 1031 exchange that is not like-kind property. Boot triggers "recognized gain" — the portion of the realized gain that is taxed in the current year. There are two main types of boot in a real property exchange: cash boot and mortgage boot (debt relief boot). Cash boot occurs when the investor does not reinvest all of the exchange proceeds — the un-reinvested cash is boot. Mortgage boot occurs when the old debt paid off exceeds the new debt assumed — the debt relief is boot. Other forms of boot (less common in real property exchanges after the TCJA) include personal property received and net liability relief.

The recognized gain from boot is calculated as the lesser of the realized gain or the total boot received. If the boot is less than the realized gain, only the boot amount is recognized (taxed), and the remainder is deferred. If the boot exceeds the realized gain, the recognized gain is capped at the realized gain (you cannot recognize more gain than you realized). The recognized gain is taxed at the applicable rates: the depreciation recapture portion (up to 25%) is taxed first, then the capital gain portion (15% or 20% plus 3.8% NIIT). This means that if the investor has significant depreciation recapture, even a small amount of boot can trigger a disproportionately high tax bill (because the boot is applied to the recapture first, at 25%).

To avoid boot, the investor should: (1) reinvest all net proceeds from the sale (do not hold back any cash), (2) acquire replacement property with new debt equal to or greater than the old debt (or make up the difference with cash), and (3) ensure the total reinvestment (cash + new debt) equals or exceeds the total proceeds (cash + old debt). If boot is unavoidable (for example, the investor cannot find a replacement property expensive enough to absorb all the proceeds), the investor should consult a tax advisor to calculate the recognized gain and plan for the tax payment. The QI will release the boot (un-reinvested cash) to the investor after the replacement property closing, and the investor must pay the tax on the recognized gain with their tax return for the year of the exchange.

Boot TypeCauseTax ConsequenceHow to Avoid
Cash bootNot all exchange proceeds reinvestedRecognized gain = lesser of boot or realized gainReinvest 100% of net proceeds
Mortgage boot (debt relief)New debt < old debt paid offRecognized gain on the debt differenceNew debt ≥ old debt, or add cash
Personal property bootPersonal property received in exchangeRecognized gain on FMV of personal propertySeparate personal property from exchange
Net liability reliefLiabilities assumed < liabilities relievedRecognized gain on the net differenceEqual or greater new liabilities

Worked Example 1: Simple Exchange with Full Deferral

Let us work through a simple, fully tax-deferred exchange. An investor sells a relinquished property for $500,000. The property was purchased for $200,000, with $50,000 in capital improvements and $45,000 in depreciation taken. The adjusted basis is $200,000 + $50,000 - $45,000 = $205,000. Selling costs are $35,000. The amount realized is $500,000 - $35,000 = $465,000. The realized gain is $465,000 - $205,000 = $260,000 (composed of $45,000 depreciation recapture and $215,000 capital gain). The property has no mortgage.

The investor acquires a replacement property for $550,000, reinvesting the full $465,000 in net exchange proceeds plus $85,000 in additional cash. There is no mortgage on either property, so there is no debt replacement issue. Total reinvestment ($550,000) exceeds total proceeds ($465,000), so there is no boot. The entire $260,000 realized gain is deferred. The recognized gain is $0.

The carryover basis of the replacement property is calculated as: adjusted basis of relinquished property ($205,000) + additional cash invested ($85,000) = $290,000. The replacement property cost $550,000, but the investor's basis is only $290,000 — the $260,000 difference is the deferred gain. If the investor eventually sells the replacement property for $600,000 without another exchange, the taxable gain would be $600,000 - $290,000 = $310,000 (the original $260,000 deferred gain plus $50,000 of new appreciation, minus any additional depreciation taken on the replacement property). The investor deferred $260,000 in taxes by exchanging — at a 15% capital gains rate plus 3.8% NIIT plus 25% recapture on the $45,000, the immediate tax savings would be approximately $215,000 × 18.8% + $45,000 × 25% = $40,420 + $11,250 = $51,670 in federal taxes deferred.

MetricAmountNotes
Sale price$500,000Relinquished property
Adjusted basis$205,000Cost + improvements - depreciation
Realized gain$260,000$465,000 amount realized - $205,000 basis
Boot received$0Full reinvestment, no debt
Recognized gain (taxed now)$0Full deferral
Deferred gain$260,000Embedded in replacement property
Replacement purchase price$550,000Exceeds relinquished sale price
Additional cash invested$85,000$550,000 - $465,000 proceeds
Carryover basis$290,000$205,000 + $85,000
Federal tax deferred~$51,67018.8% on capital gain + 25% on recapture

Worked Example 2: Complex Exchange with Mortgage and Partial Boot

Now let us work through a more complex exchange involving a mortgage, debt replacement, and partial boot. An investor sells a relinquished property for $900,000. The property was purchased for $350,000, with $80,000 in capital improvements and $120,000 in depreciation taken. The adjusted basis is $350,000 + $80,000 - $120,000 = $310,000. Selling costs are $63,000. The amount realized is $900,000 - $63,000 = $837,000. The realized gain is $837,000 - $310,000 = $527,000 (composed of $120,000 depreciation recapture and $407,000 capital gain). The property has a $250,000 mortgage that is paid off at closing. Net cash proceeds = $837,000 - $250,000 = $587,000. Total proceeds = $587,000 cash + $250,000 debt = $837,000.

The investor acquires a replacement property for $750,000 with a new mortgage of $200,000. The investor invests $550,000 in cash (from the $587,000 exchange proceeds) plus $200,000 in new debt = $750,000 total reinvestment. Comparing total proceeds ($837,000) to total reinvestment ($750,000): the reinvestment is $87,000 less than the proceeds. The investor has $37,000 in cash boot ($587,000 proceeds - $550,000 reinvested) and $50,000 in mortgage boot ($250,000 old debt - $200,000 new debt) — total boot of $87,000. The recognized gain is the lesser of the realized gain ($527,000) or the boot ($87,000) = $87,000. The deferred gain is $527,000 - $87,000 = $440,000.

The recognized gain of $87,000 is taxed in the current year. The depreciation recapture portion is taxed first: the $87,000 recognized gain is applied against the $120,000 depreciation recapture, so $87,000 is taxed at 25% = $21,750. No capital gains tax or NIIT is due on the recognized gain (because all of the recognized gain is absorbed by the recapture). The deferred gain of $440,000 ($33,000 remaining recapture + $407,000 capital gain) is embedded in the carryover basis. The carryover basis is: adjusted basis of relinquished ($310,000) + additional cash invested ($0 — the investor actually invested $37,000 less than the proceeds) + recognized gain ($87,000) - cash boot ($37,000) - mortgage boot ($50,000) = $310,000 + $87,000 - $37,000 - $50,000 = $310,000. Wait — let us recalculate using the simpler formula: carryover basis = adjusted basis of relinquished + additional cash invested + recognized gain. Additional cash = $550,000 invested - $587,000 proceeds = -$37,000 (the investor took out $37,000). Carryover basis = $310,000 + (-$37,000) + $87,000 = $360,000. The replacement property cost $750,000; the carryover basis is $360,000; the deferred gain embedded is $750,000 - $360,000 = $390,000 (which should equal the deferred gain of $440,000 minus adjustments — the exact reconciliation depends on the full §1031(d) calculation, which a tax advisor should verify).

MetricAmountNotes
Sale price$900,000Relinquished property
Adjusted basis$310,000Cost + improvements - depreciation
Realized gain$527,000$837,000 - $310,000
Old mortgage paid off$250,000Paid at closing from proceeds
Net cash proceeds$587,000$837,000 - $250,000
Replacement purchase price$750,000Less than relinquished price
New mortgage$200,000Less than old mortgage
Cash invested from proceeds$550,000$37,000 held back (cash boot)
Total reinvestment$750,000$550,000 cash + $200,000 debt
Total boot$87,000$37,000 cash + $50,000 mortgage
Recognized gain (taxed now)$87,000Lesser of boot or realized gain
Tax on recognized gain$21,750$87,000 × 25% (recapture)
Deferred gain$440,000$527,000 - $87,000

In this example, the investor received $87,000 in boot ($37,000 cash + $50,000 mortgage relief) and recognized $87,000 in gain — all of which was taxed as depreciation recapture at 25% ($21,750 in federal tax). This illustrates why boot is so costly: the recognized gain is applied to the depreciation recapture FIRST (at 25%), before the lower capital gains rate (15%) applies. Even a relatively small amount of boot can trigger a significant tax bill. To avoid this, always reinvest 100% of net proceeds and ensure new debt ≥ old debt. If boot is unavoidable, calculate the tax liability in advance and set aside funds to cover it.

Worked Example 3: Selling and Paying Tax vs. Exchanging and Deferring

To quantify the financial impact of a 1031 exchange, let us compare two scenarios side by side using the property from Example 2. Scenario A: the investor sells the property for $900,000, pays the tax, and reinvests the after-tax proceeds. Scenario B: the investor completes a 1031 exchange, defers the tax, and reinvests the full pre-tax proceeds. We will project the outcomes over a 10-year holding period at an 8% annual return.

Scenario A — Taxable sale. Realized gain: $527,000. Depreciation recapture tax: $120,000 × 25% = $30,000. Capital gains tax: $407,000 × 15% = $61,050. Net investment income tax: $527,000 × 3.8% = $20,026. Total federal tax: $30,000 + $61,050 + $20,026 = $111,076. (State taxes may add $30,000–$50,000 depending on the state.) After-tax proceeds to reinvest: $587,000 (net cash proceeds) - $111,076 (federal tax) = $475,924. Over 10 years at 8% annual return, $475,924 grows to approximately $1,026,640.

Scenario B — 1031 exchange (full deferral). The investor reinvests the full $587,000 in net proceeds (plus acquires replacement property with $250,000 in new debt to replace the old debt — total replacement property value $837,000, fully deferred). Tax paid in year of exchange: $0. Amount invested: $587,000 (equity). Over 10 years at 8% annual return, $587,000 grows to approximately $1,266,550. The difference between Scenario B and Scenario A is $1,266,550 - $1,026,640 = $239,910 in additional wealth from the exchange — purely from deferring the $111,076 in taxes and allowing that money to compound over 10 years. And this does not account for the additional leverage from the $250,000 mortgage, which would amplify the return further if the replacement property appreciates. The 1031 exchange generates approximately $240,000 more wealth over 10 years — a 23% increase over the taxable sale scenario — simply from the time value of the deferred taxes.

MetricScenario A: Taxable SaleScenario B: 1031 Exchange
Net cash proceeds$587,000$587,000
Federal tax paid$111,076$0 (deferred)
Amount reinvested$475,924$587,000
10-year value at 8% return$1,026,640$1,266,550
Wealth difference—+$239,910 (23% more)
Deferred tax liability$0$111,076 (embedded in basis)

The 1031 exchange generates approximately $240,000 more wealth over 10 years than a taxable sale — purely from the compounding of deferred tax dollars. The $111,076 in deferred taxes continues to earn returns alongside the investor's own capital, creating a 23% wealth advantage. This is the financial power of tax deferral: not a tax savings per se (the tax is still owed eventually), but a time-value benefit that compounds dramatically over the holding period. And if the investor exchanges again at the end of the 10 years, the deferral continues — potentially until death, when the stepped-up basis can permanently eliminate the deferred gain.

Basis Adjustment Over Multiple Exchanges and Form 8824 Reporting

One of the most powerful strategies in real estate investing is the "chain" of 1031 exchanges — exchanging property after property, deferring gains at each step, and allowing the deferred tax liability to compound over decades. Each time the investor exchanges, the deferred gain from the prior exchange (plus any new gain) is embedded in the next replacement property through a reduced carryover basis. Over multiple exchanges, the carryover basis can become very low relative to the property's market value — meaning the deferred gain becomes very large. This is not a problem as long as the investor continues to exchange, but it means the eventual tax liability (if the investor sells without exchanging) grows with each exchange.

For example, consider an investor who starts with a $200,000 property and executes three successive exchanges over 20 years: Exchange 1: sells for $500,000, deferred gain $260,000, carryover basis $290,000 (from Example 1). Exchange 2: 7 years later, sells for $800,000. Adjusted basis (after additional depreciation) is approximately $215,000. Realized gain = $800,000 - $215,000 = $585,000 ($260,000 prior deferred gain + $325,000 new gain). Deferred, new carryover basis = $215,000 + additional cash invested. Exchange 3: 7 years later, sells for $1,200,000. The total deferred gain from all three exchanges may exceed $900,000 — all embedded in the final replacement property's carryover basis. If the investor dies holding the final property, the stepped-up basis to fair market value ($1,200,000) permanently eliminates the entire $900,000+ deferred gain. This is the "swap till you drop" strategy, and it is one of the most powerful estate planning tools in real estate.

Every 1031 exchange must be reported on Form 8824 (Like-Kind Exchanges), filed with the taxpayer's tax return for the year in which the relinquished property was transferred. Form 8824 reports: the description of the relinquished and replacement properties, the date the relinquished property was transferred, the date the replacement property was identified (must be within 45 days), the date the replacement property was received (must be within 180 days), the fair market value of the properties, the adjusted basis of the relinquished property, the realized gain, the recognized gain (if any), the deferred gain, and the basis of the replacement property. The QI provides a final settlement statement and exchange summary that the taxpayer's tax preparer uses to complete Form 8824. Accurate reporting is essential — errors on Form 8824 can trigger IRS scrutiny and potential disqualification of the exchange. For investors managing multiple exchanges and tracking carryover basis across properties, REIVaultPro provides portfolio management tools that help maintain accurate basis records and exchange documentation. For alternative tax strategies, including opportunity zones, see our opportunity zone fund basics guide.

ExchangeSale PriceApprox. Adjusted BasisDeferred GainNew Carryover Basis
Exchange 1 (Year 0)$500,000$205,000$260,000$290,000
Exchange 2 (Year 7)$800,000~$215,000~$585,000~$215,000 + cash
Exchange 3 (Year 14)$1,200,000~$280,000~$920,000+~$280,000 + cash
Death (Year 20)FMV: ~$1,500,000Stepped-up to FMVDeferred gain eliminated$1,500,000

Hypothetical: An investor who chains three 1031 exchanges over 20 years, starting with a $200,000 property, could accumulate over $900,000 in deferred gains — all embedded in the final replacement property's carryover basis. If the investor dies holding the final property, IRC §1014 provides a stepped-up basis to fair market value, permanently eliminating the entire $900,000+ deferred gain. The heirs can sell the property at fair market value with no capital gains tax on the lifetime of appreciation and deferred gains. This "swap till you drop" strategy is why 1031 exchanges are considered one of the most powerful estate planning tools in real estate — combining tax deferral during life with tax elimination at death.

Conclusion

The tax calculations behind a 1031 exchange are the foundation of its value. By deferring the capital gains tax, depreciation recapture, and net investment income tax, the investor maintains a larger invested capital base that compounds over the holding period — generating tens or hundreds of thousands of dollars in additional wealth that would not exist if the tax were paid upfront. In our worked examples, a single exchange deferred over $111,000 in federal taxes and generated approximately $240,000 in additional wealth over 10 years — a 23% increase over the taxable sale scenario. When exchanges are chained together over decades, the compounding effect is even more dramatic, and the stepped-up basis at death can permanently eliminate the accumulated deferred gains.

The key calculations — realized gain, deferred and recognized gain, carryover basis, depreciation recapture treatment, and mortgage and debt replacement — are governed by specific rules under IRC §1031 and the Treasury Regulations. The realized gain is the starting point: sale price minus selling costs minus adjusted basis. In a fully deferred exchange, the entire realized gain is deferred and embedded in the replacement property through a reduced carryover basis. Boot (cash boot or mortgage boot) triggers recognized gain, which is taxed in the current year — and because the recognized gain is applied to depreciation recapture first (at 25%), even a small amount of boot can generate a significant tax bill. To achieve full deferral, reinvest all net proceeds and ensure new debt equals or exceeds old debt.

For investors pursuing 1031 exchanges, the math overwhelmingly favors the exchange over the taxable sale — but only if the exchange is executed correctly. The deadlines, the QI, the identification rules, and the debt replacement requirements must all be satisfied, or the exchange fails and the full tax becomes due. Work with a qualified tax advisor to calculate the realized gain, deferred gain, and carryover basis before the exchange begins, and use Form 8824 to report the exchange accurately. For the procedural rules, see our 1031 exchange timeline guide and our qualified intermediary and 1031 process guide. For the risks and mistakes, see our 1031 exchange risks and mistakes guide. For the complete overview, see our 1031 exchange complete guide. Tools like REIVaultPro can help track carryover basis across multiple exchanges, while MortgageStrategist can assist with replacement property financing to meet debt replacement requirements. This article is for educational purposes only and does not constitute legal or tax advice — every 1031 exchange should be reviewed by a qualified tax advisor.

Frequently Asked Questions

How is the realized gain calculated in a 1031 exchange?

The realized gain is the total economic gain from the sale of the relinquished property, calculated as: amount realized (sale price minus selling costs) minus adjusted basis (original purchase price plus capital improvements minus depreciation taken). For example, if you sell for $750,000 with $52,000 in selling costs, your amount realized is $698,000. If your adjusted basis is $262,727 (original cost of $300,000 + $50,000 improvements - $87,273 depreciation), your realized gain is $698,000 - $262,727 = $435,273. This gain has two components: depreciation recapture ($87,273, taxed at max 25%) and capital gain ($348,000, taxed at 15%/20% plus 3.8% NIIT). In a fully deferred 1031 exchange, the entire $435,273 is deferred. The realized gain is the starting point for all other 1031 calculations.

What is carryover basis and how is it calculated?

Carryover basis is your tax basis in the replacement property after a 1031 exchange. Under IRC §1031(d), it equals the adjusted basis of the relinquished property plus any additional cash you invested plus any gain recognized (from boot) minus any cash received (boot). In a fully deferred exchange with no boot, the formula simplifies to: carryover basis = adjusted basis of relinquished property + additional cash invested. For example, if your relinquished property had an adjusted basis of $262,727 and you invested $102,000 in additional cash, your carryover basis is $364,727 — even though the replacement property cost $800,000. The $435,273 difference ($800,000 - $364,727) is the deferred gain embedded in the property. The carryover basis is always lower than the actual purchase price because the deferred gain reduces it. Your depreciation on the replacement property is calculated on the carryover basis (continuing the old schedule) plus the excess basis (new schedule).

How is depreciation recapture handled in a 1031 exchange?

In a taxable sale, depreciation recapture is taxed at a maximum federal rate of 25% under Section 1250 (for residential rental property). In a 1031 exchange, the depreciation recapture is deferred along with the capital gain — you do not pay the 25% recapture tax in the year of the exchange. The total realized gain (including the recapture portion) is embedded in the carryover basis of the replacement property. The recapture tax is postponed until you sell the replacement property without another exchange. On the replacement property, depreciation is bifurcated: the carryover basis portion continues the depreciation schedule of the relinquished property (same method, same remaining recovery period), while the excess basis (additional cash invested) is depreciated on a new 27.5-year schedule. This means your depreciation deductions on the replacement property will be lower than if you had purchased it outright, but the tax deferral far outweighs the reduced depreciation benefit.

What is boot in a 1031 exchange and how is it taxed?

Boot is any value you receive in a 1031 exchange that is not like-kind property. The two main types are cash boot (exchange proceeds not reinvested) and mortgage boot (debt relief — when the old mortgage paid off exceeds the new mortgage on the replacement property). Boot triggers "recognized gain" — the portion of the realized gain that is taxed in the current year. The recognized gain equals the lesser of the realized gain or the total boot received. Importantly, the recognized gain is applied to depreciation recapture first (at 25%), then to capital gain (at 15%/20% plus 3.8% NIIT). This means even a small amount of boot can generate a significant tax bill if you have substantial depreciation recapture. To avoid boot, reinvest 100% of net proceeds and ensure new debt equals or exceeds old debt (or make up the difference with additional cash).

How much money can I save by doing a 1031 exchange instead of selling?

The savings depend on the size of your gain and your tax bracket. In a representative example: an investor with a $527,000 realized gain would pay approximately $111,076 in federal taxes on a taxable sale (depreciation recapture at 25%, capital gains at 15%, and NIIT at 3.8%). With a 1031 exchange, the entire $111,076 is deferred. Over a 10-year hold at 8% annual return, the additional $111,076 of invested capital generates approximately $240,000 in additional wealth — a 23% increase over the taxable sale scenario. The savings are not from tax elimination (the tax is still owed eventually) but from the time value of the deferred tax dollars, which compound over the holding period. If you chain multiple exchanges and hold until death, the stepped-up basis can permanently eliminate the deferred gain — making the savings permanent.

Do I have to replace the mortgage on my relinquished property to get full tax deferral?

Yes. When your relinquished property has a mortgage that is paid off at closing, the debt payoff is treated as "debt relief" — a form of boot called mortgage boot. To achieve full tax deferral, you must acquire replacement property with new debt equal to or greater than the old debt, OR make up the difference with additional cash. The rule is: total reinvestment (cash invested + new debt) must equal or exceed total proceeds (net cash + old debt). For example, if your old mortgage was $250,000 and your new mortgage is $200,000, you have $50,000 in mortgage boot — taxable to the extent of your realized gain. You can offset this by investing an additional $50,000 in cash. Always calculate total proceeds and total reinvestment before closing the replacement property to ensure you meet the debt replacement requirement and avoid boot.

Learn with Ebonie Caldwell

Keep building your investing knowledge

This guide is part of Ebonie Caldwell's real estate investing education series. Explore the contributor profile for more practical lessons, tools, and courses.

Explore Ebonie's education

Real Estate Investing Software & Education

Explore Real Estate Investment Tools

Visit REIVaultPro.com for professional services and resources.

Visit Site

This is a promotional link to an affiliated business of the publisher, separate from the magazine's editorial content.

Editorial Disclosure: This article is for educational purposes only and does not constitute investment, tax, or legal advice. All financial examples are hypothetical illustrations and do not represent guaranteed returns. Real estate investments involve risk, including the potential loss of principal. Consult with qualified professionals before making investment decisions. Cross-marketing links to affiliated businesses are separate from editorial content.

Ebonie Caldwell

Ebonie Caldwell

Real Estate & Mortgage Strategist | Real Estate Investor & Educator

Ebonie Caldwell has 25+ years of real estate and mortgage industry experience, including real estate investing, mortgage underwriting, real estate education, financing, and investment strategies. She has provided real estate investing education to more than 14,000 students.

More in 1031 Exchanges

Affiliated resource

REI Invest Capital — Property Selling & Investment Resources

Explore off-market real estate, property selling options, investor financing information, and real estate partnership opportunities.

Visit REI Invest Capital

REI Invest Capital is an affiliated business resource of the publisher. Availability, terms, and outcomes are not guaranteed. Review information independently before making a property or financing decision.