City-center skyline with skyscrapers
Home  /  Insights  /  1031 Exchange
1031 Exchange

Capital Gains Tax Calculator for Property Sales

A capital-gains calculator shows what a taxable property sale really costs across four layers of tax — and what a 1031 exchange would save. This complete guide covers how it works, the inputs, worked examples, and reading the result.

By Jerry Baker · May 25, 2026 · 13 min read

The decision to exchange starts with knowing the alternative. A capital gains tax calculator estimates the full cost of a taxable property sale — across federal capital gains, depreciation recapture, the net investment income tax, and state tax — so you can see exactly what a 1031 exchange would defer. It's the "do nothing" baseline against which the exchange is measured, and the number is usually larger than investors expect. This guide explains how the calculator works, what each input means, how the four layers stack, worked examples, and how a fully structured 1031 exchange reduces the bill to zero. Baker 1031's calculators are at baker1031.com/calculators.

Estimate Your Capital Gains Tax

A capital gains tax calculator estimates the total tax you'd owe on an outright sale of investment property. It computes your gain, separates the recapture portion, and applies the federal, recapture, surtax, and state rates to produce a total — the cost of selling rather than exchanging.

This is the baseline figure that makes the case for (or against) a 1031 exchange. The larger the tax, the more an exchange defers and the more compelling it becomes. The calculator quantifies what's at stake.

It's the mirror image of a 1031 calculator: where the 1031 calculator emphasizes the deferred amount, the capital gains calculator emphasizes the cost of selling — but they compute the same underlying number.

Federal, State & Recapture Inputs

Provide your sale price, adjusted basis (purchase price plus improvements minus depreciation), accumulated depreciation, your state, and income bracket. The calculator separates the recapture portion (taxed up to 25%) from the appreciation portion (0/15/20%).

Adjusted basis is the most important input — it determines your gain. Accumulated depreciation drives the recapture layer. State and income set the state rate and whether the NIIT applies and which capital gains bracket you're in.

Pull these from your closing statements, depreciation schedules, and tax returns. As with any calculator, accurate inputs — especially basis and depreciation — produce a reliable estimate.

Long-Term Capital Gains on the Appreciation

The calculator applies the long-term capital gains rate (0%, 15%, or 20% by income) to the appreciation portion of your gain — the amount above your original cost. Most investment-property sellers with meaningful gains fall in the 15% or 20% bracket.

This is the layer everyone knows, but it's only part of the bill. The calculator computes it on the appreciation, separately from the recapture, because the two are taxed at different rates.

Property held a year or less would be taxed at higher short-term (ordinary income) rates instead, but most investment-property sales involve long-held property at long-term rates, which the calculator assumes unless told otherwise.

Including Depreciation Recapture

The calculator applies up to 25% to the depreciation-recapture portion (unrecaptured Section 1250 gain) — the part of your gain attributable to depreciation you've taken. On a long-held rental, this is often the largest single layer, because years of depreciation create a big recapture amount.

This is the layer simple calculators often miss, understating the true tax. A complete capital gains calculator separates and includes it, which is why the total can be surprisingly large for heavily depreciated property.

Entering your accumulated depreciation lets the calculator compute the recapture correctly. If you've used cost segregation or bonus depreciation, the recapture picture is more complex — confirm with your CPA.

Including the NIIT Surtax

For higher-income sellers, the calculator adds the 3.8% net investment income tax on top of capital gains and recapture — a layer many investors forget until they see the bill. It applies when modified adjusted gross income exceeds certain thresholds, which a large property gain can push you over.

The calculator determines whether the NIIT applies based on your income input. On a large gain, the surtax adds meaningfully to the total — $19,000 on a $500,000 gain.

A 1031 exchange defers the NIIT along with the other layers, so the calculator shows it as part of the total you'd avoid paying now by exchanging.

Key Takeaways
  • A capital gains calculator shows the full sale tax: capital gains + recapture + NIIT + state.
  • Recapture (up to 25%) is separated from appreciation (0/15/20%) and is often the biggest layer.
  • The total is exactly what a 1031 exchange would defer — often a large, surprising number.

Adding State Capital Gains Tax

The calculator adds your state's capital gains tax, which ranges from 0% (Texas, Florida, Nevada, Washington) to over 13% (California), with many states at 3–7%. For high-income sellers in high-tax states, this can be the largest single layer of the bill.

Enter your state (and sometimes residency) so the estimate reflects the right state rate. Some states also impose withholding on nonresident sales or clawback on deferred gain — nuances a calculator may not capture but your CPA will.

Because state tax varies so widely, it's a major driver of your total — and of how much a 1031 exchange saves. The same gain costs far more to sell in California than in Texas.

Your Estimated Tax Bill

The output is the combined federal + state + recapture + NIIT tax on the sale, often shown as a dollar amount and an effective rate. For high-basis-depreciation properties in high-tax states, this can be eye-opening — and is exactly the amount a 1031 exchange defers.

Seeing the full bill, rather than just the federal capital gains estimate, often changes how investors think about selling. A number that looked like "15% of my gain" can turn out to be 35% or more once all four layers stack.

This is the figure to weigh against the effort of an exchange. A large bill makes deferral compelling; a small one (high basis, no depreciation, no-tax state) may make a simple sale fine.

How a 1031 Reduces It to Zero

A fully structured 1031 exchange defers the entire estimated tax — reducing the current bill to zero — by reinvesting all proceeds into equal-or-greater-value like-kind property with debt replaced. Instead of paying the tax the calculator shows, you keep it all invested.

The calculator thus does double duty: it shows the cost of selling and, by implication, the benefit of exchanging. The bill it estimates is precisely what you avoid paying now by doing a 1031.

If you take some boot (cash or unreplaced debt) in a partial exchange, you'd pay tax on that portion, not the whole bill. A zero-boot exchange defers the entire estimated amount.

Limitations and Accuracy

Like any calculator, this one simplifies. It may not account for passive activity losses, suspended losses, cost-segregation effects, special state rules (withholding, clawback), or the latest rate thresholds. It assumes standard treatment and current rates.

Use it as a reliable planning estimate, not a filed-return figure. The result tells you the order of magnitude of your sale tax — and your deferral opportunity — which is what you need to decide whether to pursue an exchange.

Confirm the precise numbers with your CPA, who can refine the estimate with your actual records and model exchanging versus selling. The calculator starts the analysis; your CPA completes it.

Comparing Selling vs. Exchanging

The calculator's real value is in framing the sell-versus-exchange decision. When you sell, you pay the estimated tax and reinvest only what's left — often about two-thirds of your gain in a high-tax state. When you exchange, you keep the entire pre-tax amount invested and compounding.

Putting the numbers side by side makes the difference concrete. On a $500,000 gain with $190,000 of estimated tax, selling leaves about $310,000 of that gain invested, while exchanging keeps the full $500,000 working. Over a decade of compounding, that gap grows far larger than the original tax.

The calculator thus quantifies not just the immediate tax but the long-term cost of paying it. For an investor who intends to stay in real estate, seeing the full bill — and what keeping it invested is worth over time — usually makes the case for an exchange compelling. The estimated tax is the price of selling; the exchange is how you avoid paying it now.

Common Capital Gains Calculator Mistakes

A few input errors produce misleading estimates. The biggest is using the original purchase price instead of adjusted basis — forgetting to subtract accumulated depreciation, which understates the gain and the recapture (often the largest layer). Always use adjusted basis: cost plus improvements minus depreciation.

Other mistakes include omitting capital improvements (which raise basis and lower the tax), forgetting selling costs (which reduce net proceeds), and entering the wrong state or income (which changes the rates). Each skews the estimate.

The depreciation figure is the one most often estimated or mis-entered, yet it drives the recapture layer. Pull your accumulated depreciation and adjusted basis from your CPA's records rather than guessing — that single step makes the capital gains estimate far more reliable.

When to Use the Calculator

Run a capital gains calculator early — before you list — to understand the full cost of selling and therefore the size of your deferral opportunity. Knowing the bill up front shapes whether you sell or exchange and how you plan.

It pairs naturally with a replacement-value calculator: the capital gains calculator shows what you'd owe (and defer), and the replacement-value calculator shows how much you must reinvest to defer it. Together they cover the cost and the structure.

Share the estimate with your CPA and advisor. The number frames the decision, your CPA refines it with your actual records, and your advisor can use it to surface replacement options sized to defer the full bill. Running it early and sharing it is how the calculator best informs the decision.

Using the Result to Decide

Compare the estimated tax against the value of deferring it. If selling would cost a large amount you'd rather keep invested, and you want to stay in real estate, a 1031 exchange makes sense — and the next step is to engage a qualified intermediary before selling and start lining up replacement property.

If the bill is small (high basis, little gain), a straightforward sale may be simpler, and the exchange's effort may not be worth it. The calculator helps you make that call with a real number rather than a guess.

Either way, run the capital gains calculator early, before you list, so you understand the stakes and can plan accordingly. Pair it with a replacement-value calculator to see how much you'd need to reinvest to defer the full bill, and confirm everything with your CPA.

Frequently Asked Questions

How do I estimate capital gains tax on a property sale?

Estimate your gain (sale price minus selling costs minus adjusted basis), separate the depreciation-recapture portion, and apply federal capital gains (0/15/20%), recapture (up to 25%), the 3.8% NIIT, and your state rate. A calculator automates this from your inputs.

What taxes apply when I sell investment property?

Federal capital gains, state capital gains, depreciation recapture (up to 25%), and potentially the 3.8% net investment income tax. Together they can exceed 30% of the gain in high-tax states, all of which a 1031 exchange defers.

How does a 1031 exchange reduce the tax to zero?

A fully structured exchange defers the entire tax by reinvesting all proceeds into equal-or-greater-value like-kind property with debt replaced, so no tax is due on the sale now. The calculator's estimated bill is exactly what you avoid paying by exchanging.

What inputs does the calculator need?

Sale price, adjusted basis (purchase price plus improvements minus depreciation), accumulated depreciation, your state, and income bracket. Adjusted basis and depreciation most affect the result, so pull them from your CPA's records for accuracy.

Why is my capital gains tax higher than expected?

Because the headline capital gains rate (15–20%) is only one of four layers. Depreciation recapture (up to 25%, often the biggest on long-held property), the 3.8% NIIT, and state tax stack on top, pushing the effective rate well above the capital gains rate alone.

Does the calculator include depreciation recapture?

A complete one does — it separates the recapture portion (your accumulated depreciation, taxed up to 25%) from the appreciation (taxed at capital gains rates). Simple calculators often omit recapture, understating the true tax on a depreciated property.

How does my state affect the result?

State capital gains tax ranges from 0% to over 13%, so it's a major factor. Enter your state so the estimate reflects the right rate. High-tax states like California can make the state layer the largest single piece of the bill.

Is the calculator estimate exact?

No — it's a planning estimate. Exact figures depend on your specific basis, passive losses, cost segregation, special state rules, and current rates, so confirm with your CPA. The calculator gives a reliable order-of-magnitude figure to inform your decision.

Does the 3.8% NIIT apply to me?

It applies to higher-income taxpayers whose modified AGI exceeds certain thresholds, which a large property gain can push you over. The calculator determines this from your income input and adds the 3.8% surtax if applicable.

What's the difference between this and a 1031 calculator?

They compute the same underlying number from different angles: a capital gains calculator emphasizes the cost of selling, while a 1031 calculator emphasizes the tax you'd defer by exchanging. Both estimate the federal, recapture, NIIT, and state layers on your gain.

Can a 1031 exchange really eliminate this tax?

It defers it, not eliminates it during your lifetime — but a fully structured exchange reduces the current bill to zero by reinvesting everything into like-kind property. If you keep exchanging and hold until death, a step-up in basis can eliminate the deferred tax for your heirs entirely.

What if I want to take some cash out?

Any cash you keep (or debt you don't replace) is taxable boot, so you'd pay tax on that portion rather than the whole bill. A partial exchange defers most of the tax while you take some liquidity; a zero-boot exchange defers the entire estimated amount.

Where can I find a capital gains calculator?

Baker 1031 offers capital-gains and 1031 calculators at baker1031.com/calculators that estimate your tax from your sale price, basis, depreciation, state, and income. Treat the result as a planning estimate and confirm with your CPA.

Should I sell or exchange based on the calculator?

Use it to inform the decision: a large estimated tax favors deferring through an exchange (if you want to stay in real estate), while a small one may make a simple sale fine. Confirm with your CPA and consider whether you can find suitable replacement property.

Do improvements reduce my capital gains tax?

Yes. Capital improvements increase your adjusted basis, which reduces your taxable gain and therefore your tax. Entering your improvements in the calculator lowers the estimated bill — and keeping records of improvements over the years is worthwhile for this reason.

How does the calculator help me compare selling and exchanging?

It quantifies the cost of selling — the tax you'd pay — which is exactly what an exchange defers. Selling leaves you reinvesting only what's left after tax (often two-thirds of your gain in a high-tax state), while exchanging keeps the full amount invested and compounding. The estimate makes that difference concrete.

What's the most common capital gains calculator mistake?

Using the original purchase price instead of adjusted basis — forgetting to subtract accumulated depreciation, which understates the gain and recapture. Always use adjusted basis (cost plus improvements minus depreciation), pulled from your CPA's records.

When should I run a capital gains calculator?

Early, before you list, to understand the full cost of selling and the size of your deferral opportunity. Pair it with a replacement-value calculator (which shows how much to reinvest) and share the estimate with your CPA and advisor as you plan.

Does the calculator account for short-term gains?

Most assume long-term treatment, which applies to property held over a year (the typical case). Property held a year or less is taxed at higher short-term ordinary-income rates and isn't usually the subject of a 1031, so verify the calculator's assumption if your holding period is short.

Is the capital gains calculator the same as a 1031 calculator?

They compute the same underlying tax from different angles — a capital gains calculator emphasizes the cost of selling, a 1031 calculator the tax you'd defer by exchanging. Both estimate the federal, recapture, NIIT, and state layers on your gain. Use whichever framing helps you decide.

How do I know if I owe the 3.8% NIIT?

The calculator determines it from your income — the NIIT applies when your modified adjusted gross income exceeds certain thresholds, which a large property gain can push you over. Enter your income accurately so the calculator includes the surtax if it applies to you.

Can the calculator handle a partial exchange?

A capital gains calculator estimates the full sale tax. For a partial exchange (taking some cash), you'd pay tax only on the boot, so your actual tax would be less than the full estimate. The full bill is what a zero-boot exchange defers entirely.

Should I include selling costs?

Yes. Selling costs (commissions, closing costs) reduce your net proceeds and your gain, lowering the estimated tax. Including them produces a more accurate estimate than using the gross sale price.

Will the calculator's result match my tax return?

Not exactly — it's a planning estimate. Your filed return accounts for details the calculator simplifies (passive losses, suspended losses, cost segregation, special state rules, exact thresholds). Use the calculator to gauge the magnitude, then have your CPA compute the precise figure.

Does the calculator show the cost of selling or the benefit of exchanging?

Both, depending on framing — the estimated tax is the cost of selling, and it's exactly the amount a 1031 exchange defers. Seeing the bill makes clear what you'd avoid paying now by exchanging, plus the long-term value of keeping that capital invested and compounding.

What if my property has appreciated a lot but I haven't depreciated much?

Then most of your gain is appreciation (taxed at 15–20%) with little recapture. The calculator applies the capital gains rate to the appreciation, plus the NIIT and state tax. Even without much recapture, a large appreciation can produce a substantial tax that a 1031 defers.

Can I estimate tax on a property I inherited?

Yes, but note that inherited property usually has a stepped-up basis equal to date-of-death value, so a sale shortly after inheriting may show little gain and little tax. Enter the stepped-up basis (not the decedent's original cost) for an accurate estimate; your CPA can confirm the basis.

Does the calculator handle multiple properties?

Most estimate one property at a time. For multiple properties sold together, you can run each separately and sum the results, or have your CPA compute the combined figure. The underlying tax layers are the same for each property.

How does depreciation recapture change my estimate?

Significantly on long-held property. Recapture is taxed at up to 25% (higher than capital gains) on the depreciation you've taken, and on a property held for decades it can be the largest single layer. Entering accurate accumulated depreciation is what makes the recapture portion of the estimate correct.

Is the calculator's estimate conservative or aggressive?

It aims to be a realistic estimate using current rates applied to your inputs. It can understate the tax if you omit depreciation (lowering recapture) or overstate it if you omit improvements (raising the gain). Accurate inputs produce a balanced, reliable estimate; your CPA refines it.

Can the calculator help me decide when to sell?

It can inform the timing. Selling in a lower-income year can keep you in a lower capital gains bracket and below the NIIT threshold, which the calculator reflects when you change the income input. But the most powerful timing tool is a 1031 exchange, which defers the tax regardless of the year.

Does the result include local or city taxes?

Most calculators include state capital gains tax but may not capture local or city income taxes (which exist in some jurisdictions). If you're in an area with local income tax on gains, note that the actual bill could be slightly higher than the calculator shows; confirm with your CPA.

Should I trust the calculator for a big decision?

Use it to inform, not finalize, a big decision. It gives a reliable estimate of the magnitude of your sale tax and deferral opportunity, which is enough to decide whether to seriously pursue an exchange. For the final decision, combine it with your CPA's precise analysis and the practical realities of executing the exchange.

Glossary

Capital Gains Tax
Tax on the gain from selling an asset held for investment.
Capital Gains Calculator
A tool estimating the total tax on a property sale across all four layers.
Adjusted Basis
Purchase price plus improvements minus depreciation; subtracted from proceeds to find gain.
Depreciation Recapture
Gain from prior depreciation taxed up to 25% on sale.
Net Investment Income Tax (NIIT)
A 3.8% surtax on investment income for higher earners.
State Capital Gains Tax
State-level tax on gains, from 0% to over 13%.
Long-Term Capital Gains
Gains on property held over a year, taxed at 0/15/20% federally.
Effective Tax Rate
Total tax divided by total gain across all layers.
Boot
Taxable cash or unreplaced debt that would be taxed in a partial exchange.
Modified AGI
Adjusted gross income with add-backs, used to determine NIIT applicability.
Selling Costs
Commissions and closing costs reducing net proceeds and gain.
Capital Improvement
A cost that increases basis and reduces taxable gain.

Sources & References

Disclosures

This article is published by Baker 1031 Investments, LLC for general educational purposes for accredited investors and is not an offer to sell or a solicitation of an offer to buy any security, nor is it tax, legal, accounting, or investment advice or a recommendation. Any securities offering is made solely through a sponsor’s private placement memorandum (PPM) following a suitability determination. Securities offered through Aurora Securities, Inc. (ASI), member FINRA / SIPC; Baker 1031 Investments is independent of ASI.

Oil & gas mineral and royalty interests and DST programs are speculative, illiquid securities sold only to verified accredited investors and involve substantial risk, including possible loss of principal, commodity-price and production-decline risk, lack of control, and the risk that an intended 1031 exchange fails to qualify for tax deferral. Whether a particular interest qualifies as like-kind real property is a fact-specific legal determination that varies by state and by the terms of the instrument. Tax results depend on your individual circumstances. Consult your own CPA and attorney before acting. Past performance does not guarantee future results.

1031 & DST insights for accredited investors, in your inbox.