Capital Gains Tax Calculator

Estimate the tax on an investment sale, compare short-term against long-term treatment, and see the value of holding past one year.

Ad slot (configure NEXT_PUBLIC_ADSENSE_CLIENT)

Your numbers

Ad slot (configure NEXT_PUBLIC_ADSENSE_CLIENT)
Tax if held over 1 year
$9,000
Net proceeds: $76,000
Breakdown
You keep$76,000
Long-term tax$9,000
Extra tax if short-term$4,050
Tax if held under 1 year
$13,050
Saving from long-term treatment
$4,050
Taxable capital gain
$45,000
Capital losses applied
$0
Effective tax rate on the gain
20.0%
Net cash after long-term tax
$76,000
Ad slot (configure NEXT_PUBLIC_ADSENSE_CLIENT)

The one-year line

Long-term capital gains — assets held more than a year — are taxed at preferential rates, currently 0%, 15% or 20% federally depending on taxable income. Short-term gains are taxed as ordinary income, which for many investors is 22% to 37%. On a $45,000 gain, crossing that line can be worth more than $4,000. If a sale is close to the anniversary, waiting is often the highest-return decision available.

Basis is where mistakes happen

Your cost basis is what you paid plus commissions, adjusted for reinvested dividends, stock splits and return-of-capital distributions. Reinvested dividends are the most commonly missed adjustment — forgetting them means paying tax twice on the same money. Brokers report basis for most securities acquired after 2011, but older holdings and transferred accounts frequently carry gaps you must reconstruct.

Tax-loss harvesting

Selling losing positions to realise losses that offset gains is one of the few genuinely free improvements in investing. Watch the wash sale rule: repurchasing the same or a substantially identical security within 30 days either side disallows the loss. Buying a different fund tracking a different index is the standard workaround.

Other rates that can apply

  • Net investment income tax of 3.8% applies above certain modified AGI thresholds.
  • Collectibles are taxed at up to 28%.
  • Depreciation recapture on real estate is taxed at up to 25%.
  • State tax varies from zero to over 13%, and most states offer no preferential rate for long-term gains.

Ways to defer or avoid

Holding assets in tax-advantaged accounts removes the issue entirely. Donating appreciated securities to charity avoids the gain and may generate a deduction at full market value. The primary residence exclusion shelters a substantial gain on a home you lived in for two of the last five years. And assets held until death currently receive a stepped-up basis.

Estimates only. Capital gains rules are detailed and change — consult a tax professional before acting.

Ad slot (configure NEXT_PUBLIC_ADSENSE_CLIENT)

Frequently asked questions

What counts as long term?

More than one year of holding. The clock starts the day after purchase and ends on the sale date. One day short and the entire gain is taxed as ordinary income.

Can losses offset gains?

Yes. Capital losses offset capital gains without limit, and up to $3,000 of net loss can be deducted against ordinary income per year, with the remainder carried forward indefinitely.

What is the wash sale rule?

If you sell at a loss and buy the same or a substantially identical security within 30 days before or after, the loss is disallowed and added to the basis of the new position. It applies across your accounts, including an IRA.

Embed this calculator on your site

Free to use on any website, personal or commercial. No attribution required beyond the link in the snippet, and no registration. Copy the code below.

<iframe src="https://www.payoffdesk.com/embed/capital-gains-tax-calculator" width="100%" height="720" style="border:1px solid #e2e8f0;border-radius:16px;max-width:760px" title="Capital Gains Tax Calculator" loading="lazy"></iframe>
<p style="font-size:12px;color:#64748b">Calculator by <a href="https://www.payoffdesk.com/capital-gains-tax-calculator" target="_blank" rel="noopener">PayoffDesk</a></p>

The embed is a static page — it loads no cookies and no tracking scripts, and all calculations run in the visitor’s browser.

Related calculators

Disclaimer: results are estimates for general information only and do not constitute financial, tax or legal advice. Actual figures depend on your lender, credit profile and jurisdiction. Verify any number with a qualified professional before acting on it.