Home › Calculators › 1031 Exchange Calculator

1031 Exchange Calculator

See how much tax a like-kind exchange of investment real estate could defer. Enter the sale price, your original cost, improvements and depreciation, the replacement property's price and both mortgages, and the calculator shows your realized gain, any cash or mortgage boot, the taxable and deferred gain, the tax due now and the basis of the new property.

Last updated:

Property you are selling
$
$

Commissions, closing costs and qualified intermediary fees.

$
$
$
$
Replacement property
$
$
$
Tax rates
%

Unrecaptured §1250 gain is taxed at your ordinary rate, capped at 25%.

%

Applies above $200,000 MAGI (single) or $250,000 (married filing jointly).

Enter your values to see the result.
Advertisement
Advertisement

How to use the 1031 Exchange Calculator

  1. Enter the sale price and selling costs of the property you are giving up.
  2. Enter your original price, improvements and depreciation to get the adjusted basis.
  3. Enter the mortgage paid off at the sale.
  4. Enter the replacement price, closing costs and new mortgage.
  5. Choose your tax rates and press Calculate deferred gain to see boot, taxable gain, deferred gain and new basis.

How the 1031 exchange math works

  1. Amount realized = sale price − selling and exchange costs
  2. Adjusted basis = original price + capital improvements − depreciation
  3. Realized gain = amount realized − adjusted basis
  4. Cash boot = exchange equity not used to buy the replacement
  5. Mortgage boot = debt paid off − new debt − extra cash you add (not below 0)
  6. Recognized (taxable) gain = the smaller of realized gain and total boot; the rest is deferred
  7. Replacement basis = replacement cost − deferred gain

Example with the default numbers: selling for $650,000 with $39,000 of costs gives an amount realized of $611,000. The adjusted basis is $380,000 + $40,000 − $95,000 = $325,000, so the realized gain is $286,000. Buying a $750,000 replacement with a $360,000 loan uses all $391,000 of equity (plus $11,000 of your own cash) and more than replaces the $220,000 of debt, so there is no boot and the full $286,000 is deferred. In a regular sale at 25% recapture, 15% capital gains and 5% state, the tax would be about $23,750 + $28,650 + $14,300 = $66,700.

Exchange checklist

RuleWhat it means
Like-kind real propertyInvestment or business real estate for other investment or business real estate (e.g. rental house for a small apartment building or land)
Qualified intermediaryThe sale proceeds go to a qualified intermediary, never to you
45-day identificationName replacement properties in writing within 45 days of the sale
180-day closingAcquire the replacement within 180 days of the sale (or by the tax return due date, if earlier)
Same taxpayerThe taxpayer who sells must be the one who buys
Equal or greater valueBuy at least the net sale price and reinvest all equity to avoid boot

Exchanges are reported on IRS Form 8824. Selling your own home instead? Use the home sale capital gains calculator for the Section 121 exclusion.

Frequently asked questions

What is a 1031 exchange?

Section 1031 of the Internal Revenue Code lets you defer capital gains and depreciation recapture tax when you sell real property held for investment or business use and reinvest the proceeds in other like-kind real property. Since 2018 it applies only to real estate, not personal property, and not to your main home.

What is boot in a 1031 exchange?

Boot is anything you receive that is not like-kind property. Cash boot is exchange money you keep instead of reinvesting. Mortgage boot (debt relief) happens when the debt on the replacement property is lower than the debt paid off on the property you sold, unless you make up the difference with extra cash. Your taxable gain is the smaller of your realized gain and the boot.

How do I defer all of the gain?

Buy replacement property of equal or greater value than the net sale price, reinvest all of the exchange equity, and take on at least as much debt as you paid off (or add your own cash to make up any shortfall). The money must be held by a qualified intermediary; touching the proceeds yourself can disqualify the exchange.

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

You must identify potential replacement properties in writing within 45 days of selling the relinquished property, and close on the replacement within 180 days of the sale (or by your tax return due date including extensions, if earlier). Missing either deadline generally makes the whole gain taxable.

Does a 1031 exchange avoid depreciation recapture?

It defers it. Depreciation recapture on real property (unrecaptured Section 1250 gain, taxed at up to 25%) is deferred along with the capital gain and carries into the replacement property through its lower basis. If boot is received, the recognized gain is treated as recapture first.

What is the basis of the replacement property?

In general it is the cost of the replacement property minus the deferred gain. A lower basis means smaller depreciation deductions and a larger gain when you eventually sell without another exchange.

Is this calculator tax advice?

No. It applies the standard boot and basis rules to estimate the outcome. Real exchanges involve details such as allocating basis between land and building, related-party rules, partial exchanges and state rules. Work with a qualified intermediary and a tax professional before you sell.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Home Sale Capital Gains Tax CalculatorTaxable gain and tax on selling your home after the $250,000 / $500,000 exclusion.Capital Gains CalculatorGain or loss on a sale, short- or long-term tax at your rates, net proceeds and return.Depreciation CalculatorStraight-line, declining balance, double declining and sum-of-years depreciation schedules.Rental Property Cash Flow CalculatorMonthly cash flow, NOI, cap rate, cash-on-cash return and the 1% rule for a rental property.180 Days From TodayFind the date 180 days from today or any date, with weekday, business days and a calendar.Tip CalculatorWork out the tip and split the bill between any number of people.Discount CalculatorSale price, percent off, stacked discounts and sales tax.Budget CalculatorMonthly budget planner with the 50/30/20 rule and a donut chart.Emergency Fund CalculatorFind how big your emergency fund should be and how long it takes to save it, with interest.Wedding Budget PlannerSplit a wedding budget by category, then track estimated, actual and paid costs with a chart.Split Bill CalculatorSplit a bill with tax and tip equally, by shares, or by what each person ordered.50/30/20 Budget CalculatorSplit take-home pay into needs, wants and savings with the 50/30/20 rule or your own split.TikTok Money CalculatorEstimate TikTok sponsored post rates and Creator Rewards earnings from your views.Rent Split CalculatorSplit rent fairly between up to 6 roommates by room size, income or equally.Grocery Budget CalculatorRecommended weekly or monthly grocery budget and cost per meal for your household.Latte Factor CalculatorSee what a small daily habit costs per year and what it could grow to if invested.Money CounterCount cash by bill and coin: subtotals, grand total, piece count and a printable count sheet.Savings Rate CalculatorFind your savings rate on net or gross pay and estimate years to financial independence.Sinking Fund CalculatorPlan monthly and biweekly savings for several goals with due dates and progress bars.Subscription Cost CalculatorTotal your subscriptions per month, year and decade, and see what the money could grow to.CBM CalculatorCarton cubic meters and cubic feet, 20ft/40ft/40HC container fit and sea/air chargeable weight.Cost of Living CalculatorCompare living costs in two US cities and find the salary you need after a move.52 Week Savings ChallengePlan a 52-week money challenge, tick off each deposit and print the savings chart as a PDF.Income Percentile CalculatorSee where your household or individual income ranks in the US, with an age-group option.Life Insurance CalculatorEstimate how much life insurance you need with the DIME method: debts, income, mortgage, education.Baby Cost CalculatorFirst-year baby budget: diapers, formula, childcare, gear and healthcare, monthly and yearly.Bank Statement AnalyzerUpload a bank CSV to sort spending into categories, see monthly charts and your top merchants.Change CalculatorEnter the amount due and cash paid to get the change owed and the bills and coins to give back.Christmas Budget CalculatorPlan holiday spending: gift list, decor, food and travel vs your budget and income.Couple Expense Split CalculatorSplit shared household bills between partners by income, 50/50, equal leftover or custom %.Weighted Decision MatrixScore options against weighted criteria to get a ranked total, a score heatmap and a CSV.Financial Ratio AnalyzerEnter an income statement and balance sheet once and get 30 liquidity, leverage and profit ratios.Freight Class CalculatorEstimate LTL freight class from density (lb per cubic foot) for one or many pallets.FSA CalculatorFlexible spending account tax savings, use-it-or-lose-it risk and the best amount to elect.FTE CalculatorConvert part-time hours into full-time equivalents, FTE into headcount, plus an ACA FTE count.Global Income Percentile CalculatorSee how your income per person compares with the whole world, adjusted for PPP.Coinsurance CalculatorWhat you pay on a medical bill after deductible, copay, coinsurance and out-of-pocket max.Health Insurance Plan Comparison CalculatorCompare health plans' total yearly cost at low, medium and high medical use, with break-even points.Pivot Point CalculatorClassic, Fibonacci, Camarilla, Woodie and DeMark pivots with support and resistance levels.PPC Budget CalculatorAd budget and daily spend to hit a conversion or revenue goal from CPC and conversion rate.Project Budget CalculatorLine-item project budget: labor hours × rates, materials, overhead and contingency by phase.Repeat Purchase Rate CalculatorRepeat customer rate, purchase frequency and average days between purchases from your orders.Student Aid Index (SAI) EstimatorSimplified FAFSA Student Aid Index from income, assets and family size, with a Pell Grant hint.Utility Bill SplitterSplit electric, gas, water and internet bills among roommates by days, room size or shares.Absenteeism Rate CalculatorAbsence rate from days lost vs scheduled, cost of absenteeism and Bradford factor.Bank Reconciliation ToolMatch book and bank transactions, list outstanding checks and deposits, reconcile the balance.Pareto Analysis Tool (80/20)Paste categories and values to get a sorted Pareto chart, cumulative %, and the vital few.Expense TrackerLog expenses by category and date, see monthly totals and charts, import or export CSV.Financial Health Score CalculatorScore your finances out of 100 and get a prioritized to-do list for savings, debt and more.Incoterms Responsibility ChartPick an Incoterm (EXW to DDP) to see seller vs buyer costs, risk transfer and who pays duties.RACI Chart MakerBuild a RACI matrix of tasks × roles, check one Accountable per task, export PNG or CSV.Remote Work Savings CalculatorMoney and time you save working from home: commute, gas, lunch and more, minus home costs.Recurring Charges FinderOpen a bank CSV to find recurring subscriptions by merchant and interval, with annual costs.T-Account & Journal Entry GeneratorEnter debit and credit journal entries to get T-accounts and a balanced trial balance.Warehouse Space CalculatorSquare footage and rent for your pallets from rack levels, aisle %, staging and office space.100 Envelope ChallengeTrack the 100 envelope savings challenge ($5,050), pick random envelopes and print the chart.Pallet CalculatorFind how many boxes fit on a pallet: boxes per layer, layers, total, height and weight.Pet Cost CalculatorMonthly, yearly and lifetime cost of a dog or cat: food, vet, insurance, grooming and more.Twitch Earnings CalculatorEstimate a streamer's monthly and yearly Twitch income from subs, bits, ads and sponsors.Zero-Based Budget CalculatorGive every dollar a job: assign income to categories until zero is left, with % and chart.Kids Allowance CalculatorKids weekly allowance by age, chore bonus and Save / Spend / Give jar split.Altman Z-Score CalculatorBankruptcy-risk Z-score for public, private and non-manufacturing companies, with zones.Budget Variance CalculatorBudget vs. actual by line: dollar and percent variance with favorable or unfavorable flags.Cohort Retention Table GeneratorTurn signup and activity data or cohort counts into a cohort retention heatmap and export it.Cost Basis CalculatorEnter buy and sell lots to get cost basis and realized gains by FIFO, LIFO, HIFO, average or specific ID.CSAT Score CalculatorCustomer satisfaction % from 1–5 rating counts or scores, plus CES average.Disability Insurance CalculatorMonthly income replacement need, existing coverage after tax and your disability benefit gap.Earned Value CalculatorProject EVM metrics: CV, SV, CPI, SPI, EAC, ETC, VAC and TCPI from BAC, PV, EV and AC.
See all 70 Personal Finance & Budget Calculators →