Calculateus

Capital Gains Tax Calculator

Estimate federal tax owed on short-term or long-term capital gains.

Holding Period

Result

Estimated Tax on Gain
$3,000.00
Long-Term Capital Gains Rate
15%

2025 long-term rates are 0%, 15%, or 20% depending on total taxable income.

Net Gain After Tax: $17KTax: $3KTotal$20K
  • Net Gain After Tax - $17K
  • Tax - $3K

About the Capital Gains Tax Calculator

Selling an investment for more than you paid triggers capital gains tax - but how much you owe depends heavily on one factor: how long you held it. Our Capital Gains Tax Calculator estimates federal tax on both short-term and long-term gains, using your total income to find the correct rate.

How It Works

Short-term gains (assets held one year or less) are taxed as ordinary income at your marginal tax rate, so the calculator finds the tax on your income with and without the gain and takes the difference. Long-term gains (held over a year) get preferential rates of 0%, 15%, or 20% depending on your total taxable income - for 2025, single filers pay 0% up to $48,350, 15% up to $533,400, and 20% above that (roughly double those thresholds for married filing jointly).

Short-term: tax = federalTax(income + gain) − federalTax(income) Long-term: tax = gain × rate, where rate ∈ {0%, 15%, 20%} based on total income

Formula & Methodology

Short-term gains get no special treatment at all - the IRS simply adds the gain to your ordinary income and taxes the whole stack through the regular progressive brackets, which is why the calculator computes tax with and without the gain and reports the difference. Long-term gains instead sit on their own separate rate schedule with just three tiers (0%, 15%, 20%), and which tier applies is still determined by your total income - the gain effectively 'stacks on top' of your ordinary income to see which long-term bracket it falls into, even though it's taxed at the long-term rate rather than your ordinary marginal rate.

Step-by-Step: Calculating It By Hand

  1. 1Determine whether the asset was held for one year or less (short-term) or more than one year (long-term).
  2. 2For short-term gains: calculate tax on your ordinary income alone, then calculate tax on ordinary income plus the gain, and subtract to isolate the tax attributable to the gain.
  3. 3For long-term gains: add the gain to your other taxable income to find which long-term bracket (0%, 15%, or 20%) it falls into.
  4. 4Multiply the gain by that bracket's rate to get long-term capital gains tax owed.

Examples

Long-term gain, middle income

$20,000 long-term gain with $80,000 other income (single) → total income of $100,000 falls in the 15% bracket, so tax owed is about $3,000.

Short-term gain

The same $20,000 gain held less than a year is taxed at your ordinary marginal rate instead - often costing meaningfully more than the long-term rate would.

Advantages

  • Clearly separates short-term (ordinary rate) from long-term (preferential rate) treatment
  • Uses your full income picture to find the correct long-term bracket
  • Shows the effective rate on just the gain, not your whole income
  • Makes the tax benefit of holding an investment past one year concrete

Common Mistakes

  • Selling a winning investment one day before the one-year mark and losing the long-term rate
  • Forgetting that capital gains stack on top of ordinary income when determining your bracket
  • Not accounting for state capital gains tax, which many states charge as ordinary income
  • Ignoring the Net Investment Income Tax (an extra 3.8% for high earners) that isn't included here

Edge Cases to Watch For

  • Capital losses can offset capital gains dollar-for-dollar, and up to $3,000 of net losses can offset ordinary income each year, with any excess carried forward to future years.
  • High earners may also owe the 3.8% Net Investment Income Tax on top of regular capital gains tax once modified adjusted gross income crosses IRS thresholds.
  • Collectibles (art, precious metals, some cryptocurrencies) and certain small business stock can have different long-term rates than the standard 0/15/20% schedule.
  • Many states tax capital gains as ordinary income with no preferential long-term rate, so the total tax bill is often higher than the federal estimate alone suggests.

Common Use Cases

  • Deciding whether to sell an investment now or wait for long-term treatment
  • Estimating tax owed before filing after selling stock, crypto, or property
  • Comparing the tax cost of short-term trading versus long-term investing
  • Tax-planning around large one-time gains
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Why does holding period matter so much?

Assets held over a year qualify for long-term capital gains rates (0/15/20%), typically much lower than ordinary income tax rates that apply to short-term gains - this is one of the biggest tax planning levers for investors.

Conclusion

The one-year holding period is one of the most valuable thresholds in the entire tax code - crossing it can cut your tax rate on a gain by more than half. Run your numbers here before deciding when to sell, and pair this with our Effective Tax Rate Calculator to see how a large gain shifts your overall tax picture.