Your account was flagged as a duplicate of an existing one. If you think this is a mistake please reach to support through our messaging system on the website or email support@lofty.ai

Click here to complete verification and unlock investing, deposits, and withdrawals. →

InvestAboutLearnLendingList Property
Log InSign Up
←All calculators

Defer capital gains tax

1031 Exchange Calculator

See what you would owe on an outright sale and what a 1031 exchange may defer. Includes federal capital gains, depreciation recapture (up to 25%), NIIT (3.8%), state tax, boot, and the reinvestable cash difference.

Your numbers

Sale
Cost basis
Tax rates

Your estimate

Updates as you type

Estimated tax savings via 1031

$56,352

Significant

Federal capital gains + depreciation recapture + NIIT + state tax that a fully qualifying 1031 may defer (state portion only when the state conforms).

1031 reinvestment cash

$245,250

Cash after tax (outright sale)

$188,898

Tax as % of gain

30.4%

Estimated results

Side-by-side estimate

Outright sale vs. 1031 exchange

Federal capital gains, depreciation recapture, NIIT, and state tax estimated on a fully qualifying 1031.

Outright sale

Sell now and pay the tax

Net sale proceeds
$245,250
Federal long-term gains
−$25,050
Depreciation recapture
−$15,000
NIIT (3.8%)
−$7,040
State capital gains
−$9,263
Cash after tax
$188,898

1031 exchange

Roll the proceeds into replacement property

Net sale proceeds
$245,250
Federal tax due now
$0
State tax due nowState treatment varies
$0
Tax deferred (carries into new basis)
$56,352
Cash to reinvest
$245,250

Cash uplift from 1031

$56,352(30% more reinvestable capital)

Realized gain of $185,250 on adjusted basis of $210,000. A qualifying 1031 keeps that tax invested in replacement real estate instead of paying it now. If you keep cash from the sale (cash boot) or take on less debt, that boot is taxable in the year of the exchange.

Overview

What is a 1031 exchange calculator?

A 1031 exchange calculator estimates federal capital gains, depreciation recapture, NIIT, and state tax on the sale of an investment property, and shows the side-by-side difference between an outright sale and a like-kind exchange. The federal tax bill is generally deferred by a valid 1031, while state treatment varies.

What your scenario is telling you

Significant 1031 savings opportunity

A fully qualifying 1031 could defer roughly $56,352 of federal and state tax on this sale, keeping that capital invested in replacement real estate.

Tax takes 30%+ of the gain

Combined federal, recapture, NIIT, and state tax is 30% of the realized gain. A qualifying 1031 can keep more capital invested in replacement real estate.

How investors usually read these numbers

MetricOften strongWatch outWhy it matters
Outright-sale tax billBelow 20% of realized gainAbove 35% of realized gainCombined federal, recapture, NIIT, and state tax can take 25-40% of the gain on a long-held rental.
Depreciation recapture taxManageable share of total taxLargest single tax lineRecapture is taxed at up to 25% federal. On 10+ year holds it often exceeds the capital gains tax.
Estimated 1031 tax savingsHigh enough to justify QI fees + replacement-property workLow, suggesting flexibility may matter moreThe larger the tax bill, the more valuable it can be to keep that capital invested instead of paying tax now.
1031 reinvestment cashEqual to net sale proceedsReduced by any cash you keep (cash boot)Any cash kept out of the exchange or debt not replaced becomes taxable boot in the year of sale.

How to run a 1031 exchange analysis

  1. 1

    Enter the sale details

    Add the expected sale price, selling costs (typically 6% to 8%), and the outstanding mortgage balance to be paid off at closing.

  2. 2

    Add your cost basis

    Enter the original purchase price, capital improvements that added to basis, and cumulative depreciation taken. Your tax preparer can pull cumulative depreciation from prior Schedule E and Form 4562 filings.

  3. 3

    Set tax rates that apply to you

    Pick a federal long-term capital gains rate (0%, 15%, or 20% based on 2026 brackets), keep recapture at 25% unless your ordinary rate is lower, set NIIT to 3.8% if your MAGI is above $200K single / $250K MFJ, and add your state rate.

  4. 4

    Compare outright sale vs 1031 exchange

    The side-by-side panel shows federal capital gains, depreciation recapture, NIIT, and state tax separately for an outright sale, and how much of that bill a qualifying 1031 exchange may defer.

  5. 5

    Check the 45/180-day exchange timeline

    A calculator can estimate tax savings, but the exchange still needs written replacement-property identification within 45 days and closing within 180 days of the relinquished sale.

The math behind the result

Core formulas

  • Net sale proceeds = sale price - selling costs - mortgage payoff.
  • Adjusted cost basis = original purchase price + capital improvements - total depreciation taken.
  • Realized gain = (sale price - selling costs) - adjusted cost basis.
  • Depreciation recapture portion = min(total depreciation taken, realized gain), taxed at the recapture rate (up to 25% federal under Section 1250).
  • Long-term capital gain portion = realized gain - depreciation recapture portion, taxed at the federal LTCG rate.
  • NIIT = realized gain x NIIT rate (when MAGI is above the threshold).
  • State tax = realized gain x state rate (most states tax the full gain at the same rate as ordinary income).
  • Total tax bill on outright sale = recapture tax + federal LTCG + NIIT + state tax.
  • Estimated 1031 tax savings = federal capital gains + federal depreciation recapture + NIIT, plus state tax only when the state conforms to federal 1031 deferral.

Expert takeaways

  • Top 1031 calculators (IPX1031, Realized, Anchor1031) use the same approach: model recapture at up to 25%, the remainder at the LTCG rate, then add NIIT and state. This calculator follows that convention.
  • Depreciation recapture is often the single largest tax line on a long-held rental and surprises sellers who only budgeted for capital gains.
  • If you keep cash from the sale (cash boot) or take on less debt on the replacement property (mortgage boot), that boot is taxable in the year of the exchange even when the rest of the deal qualifies.
  • The tax math is only one part of a 1031. You still need to identify replacement property within 45 days and close within 180 days for the exchange to qualify.
  • State 1031 treatment varies. Some states track deferred gains and may tax them later if you change residency or eventually sell without exchanging.
  • Engage a qualified intermediary (QI) before the relinquished property closes. QI fees typically run roughly $600-$2,500 per exchange.
  • Reverse 1031 (buy the replacement first) and improvement 1031 (use proceeds for construction) are valid variants but require an Exchange Accommodation Titleholder under Rev. Proc. 2000-37.

Key terms in plain English

1031 exchange
Like-kind exchange that defers federal tax on investment property.
A 1031 exchange (named for Section 1031 of the U.S. tax code) lets an investor sell investment real estate and reinvest the proceeds into one or more like-kind investment properties, deferring federal capital gains tax and depreciation recapture. Strict deadlines apply: 45 days to identify replacements and 180 days to close.
Adjusted cost basis
Purchase price + improvements - depreciation taken.
Adjusted cost basis is what the IRS treats as your "investment" in the property when calculating gain at sale. It starts with what you paid, increases with capital improvements, and decreases with cumulative depreciation. The lower the adjusted basis, the larger the taxable gain.
Depreciation recapture
Tax on the depreciation deductions reclaimed at sale.
When a depreciated rental is sold, the IRS reclaims the tax benefit of prior depreciation by taxing it at up to 25% federal (unrecaptured Section 1250 gain). Components reclassified to Section 1245 by a cost segregation study can be taxed at ordinary income rates instead, with no 25% cap.
NIIT
3.8% Net Investment Income Tax on high earners.
NIIT is an additional 3.8% federal tax on net investment income (including capital gains on investment property) for taxpayers with modified adjusted gross income above $200,000 single or $250,000 married filing jointly. The thresholds are not inflation-indexed.
Boot
Non-like-kind value received in a 1031 exchange.
Boot is any cash kept (cash boot), debt relief (mortgage boot), or non-like-kind property received during a 1031 exchange. Recognized gain is the lesser of realized gain or net boot, and that recognized gain is taxable in the year of the exchange.

People also ask

How is the tax on a rental sale calculated?
Take the net sale proceeds (sale price minus selling costs) and subtract the adjusted cost basis (original purchase price plus improvements minus depreciation taken). The resulting gain is split: depreciation recapture is taxed at up to 25% federal under Section 1250, and the remainder is taxed at the long-term capital gains rate. NIIT and state tax stack on top.
What does a 1031 exchange actually defer?
A 1031 generally defers federal capital gains tax and federal depreciation recapture that would otherwise be due in the tax year of the sale. The deferred amount carries into the basis of the replacement property. State treatment varies, and some states require ongoing tracking of deferred gains.
How long do you have to complete a 1031 exchange?
You generally have 45 calendar days after the relinquished property closes to identify replacement property in writing and 180 calendar days total to close on the replacement property. Both clocks start on the sale date, and missing either deadline can make the sale taxable.
Can you do a 1031 exchange on a primary residence?
A primary residence generally does not qualify for a 1031 exchange because Section 1031 applies to property held for investment or business use. Some mixed-use or converted properties may have both personal-residence and investment-property facts, but those situations need CPA and qualified-intermediary review before closing.
What is "boot" and how is it calculated?
Boot is any non-like-kind value you receive in the exchange — most commonly cash you keep (cash boot) or a smaller mortgage on the replacement property (mortgage boot). The recognized (taxable) gain on a partial exchange is the lesser of your realized gain or the net boot received. The rest of the gain is still deferred.
Why is the depreciation recapture tax so high?
Unrecaptured Section 1250 gain is taxed at a maximum federal rate of 25%, higher than the 0%, 15%, or 20% long-term capital gains rate. Cost segregation can reclassify some components as Section 1245 personal property, which is taxed at ordinary income rates with no 25% cap.
Do I really owe recapture if I never claimed depreciation?
Yes. The IRS calculates recapture based on depreciation that was "allowed or allowable" — meaning you generally owe recapture tax even if you never deducted it. Owners who skipped depreciation should ask a CPA whether a Form 3115 accounting-method change is appropriate.
How accurate is this calculator?
It uses the same straight-line approach as IPX1031, Realized Holdings, and Anchor1031: split realized gain into recapture (up to 25%) and LTCG, then add NIIT and state tax. It does not model passive activity loss carryforwards, AMT, K-1 partnership allocations, cost-segregation Section 1245 components, installment sales, or estate planning. For an exact figure, work with a CPA or 1031 specialist before closing.
Can I 1031 into Lofty fractional properties?
Lofty is not currently structured as a Delaware Statutory Trust (DST) or Tenant-in-Common (TIC) replacement property. Investors searching for "1031 exchange into partial ownership" typically work with a DST sponsor, TIC sponsor, qualified intermediary, and tax advisor.
What about reverse or improvement exchanges?
A reverse 1031 lets you acquire the replacement property before selling the old one. An improvement (build-to-suit) 1031 lets you spend exchange proceeds on construction. Both rely on an Exchange Accommodation Titleholder under IRS Rev. Proc. 2000-37 and follow the same 45-day and 180-day clocks.

Next steps

Understand the rules before you sell

This calculator is a planning estimate. A 1031 exchange still needs a qualified intermediary, replacement-property identification, and tax advice before the sale closes.

Read the 1031 guideBrowse marketplace

Related real estate calculators

Hold-period returns

Real Estate Investment Calculator

Project investment property profit, annualized ROI, equity multiple, and IRR-style returns over a hold period.

Cash flow and ROI

Rental Property Calculator

Estimate rental property cash flow, ROI, cap rate, cash-on-cash return, DSCR, and 30-year projections for a long-term rental.

Monthly payment estimate

Mortgage Calculator

Estimate principal, interest, taxes, insurance, HOA, PMI, and a year-by-year amortization schedule.

Browse all free real estate calculators or read our latest real estate investing guides.

Lofty

Buy and own real estate shares. Earn daily rent. Sell anytime.

Start investing→

Follow us

Invest

  • Invest
  • Lending
  • List your property

Company

  • About us
  • Reviews
  • Compare

Resources

  • Investing guides
  • Calculators
  • Blog
  • Help center
  • Refer a friend
  • Store
  • Contact us

Legal

  • Privacy Policy
  • Terms of Service

Disclosures

This site is operated by Lofty AI, Inc., which is not a registered broker-dealer or investment advisor. Lofty AI, Inc. does not provide investment advice, endorsement or recommendations with respect to any properties listed on this site. Nothing on this website should be construed as an offer to sell, solicitation of an offer to buy or a recommendation in respect of a security. You are solely responsible for determining whether any investment, investment strategy or related transaction is appropriate for you based on your personal investment objectives, financial circumstances and risk tolerance. You should consult with licensed legal professionals and investment advisors for any legal, tax, insurance or investment advice. Lofty AI, Inc. does not guarantee any investment performance, outcome or return of capital for any investment opportunity posted on this site. By accessing this site and any pages thereof, you agree to be bound by the Terms of Service and Privacy Policy.

All investments involve risk and may result in partial or total loss. By accessing this site, investors understand and acknowledge 1) that investing in real estate, like investing in other fields, is risky and unpredictable; 2) that the real estate industry has its ups and downs; 3) that the real property you invest in might not result in a positive cash flow or perform as you expected; and 4) that the value of any real property you invest in may decline at any time and the future property value is unpredictable. Before making an investment decision, prospective investors are advised to review all available information and consult with their tax and legal advisors. Lofty AI does not provide investment advice or recommendations regarding any offering posted on this website.

Any investment-related information contained herein has been secured from sources that Lofty AI believes to be reliable, but we make no representations or warranties as to the accuracy or completeness of such information and accept no liability therefore. Hyperlinks to third-party sites, or reproduction of third-party articles, do not constitute an approval or endorsement by Lofty AI of the linked or reproduced content.

Lofty Marketplace trades are completed using USD Coin (USDC cryptocurrency) and smart contracts on a blockchain. If you use a payment method other than USDC to submit a buy order for a traded property, then you agree to purchase an equivalent quantity of USDC at the then current exchange rate. That is, you agree that your currency will be converted to USDC, and your buy order will be executed using USDC. USDC is a 1:1 representation of the US dollar on the blockchain that may fluctuate in value. In the event that your order is cancelled or expires, any unspent USDC will be returned to your Lofty Wallet. If you later submit a sell order for your property shares, and your sell order is filled, you will receive payment in USDC which can be converted to USD via third party cryptocurrency exchanges.

© 2026 Lofty AI, Inc.·Privacy·Terms

Version: dev

LOFTY