Capital Gains Tax Calculator (2026)
Estimate federal tax on capital gains in 2026 and compare short-term vs long-term treatment. Useful for pre-sale planning and “what-if” testing.
Capital Gains Tax Calculator (2026)
Estimate capital gains tax for 2026. Enter your gain amount and whether it’s short-term or long-term. For a better estimate, include your other taxable income.
Last updated: February 2026
Calculator
These are estimates for planning. Always confirm with official IRS guidance for your filing situation.
Related Guides
Methodology
- Collect gain amount and holding period (short vs long).
- Use a user-entered rate to estimate the tax (gain × rate).
- Show total income context (other income + gain) as a planning signal.
- Direct users to the guide for official tier thresholds and special-case rules.
How this calculator works
Quick promise: we’re not doing “mystery math.” The calculator follows the same logic you’d use manually — it just does the repetitive parts fast so you can test scenarios.
- Determine whether the gain is short-term or long-term based on holding period (simple planning assumption).
- Short-term: treat gain as ordinary taxable income and apply ordinary bracket logic.
- Long-term: apply long-term capital gains rate-band logic using a stacking approach on top of other taxable income.
- Return an estimated tax on the gain and an effective tax rate on the gain for quick comparison.
What this tool does not include
Real-life tax situations can include extra layers. We keep the core estimate clean and explain what’s excluded so you don’t over-trust the number.
- State capital gains taxes.
- NIIT (Net Investment Income Tax) unless explicitly included on the page.
- Special asset rules (collectibles, certain real estate exceptions) unless stated.
- Wash sale rules and cost-basis reporting nuances (you must input the correct gain).
Examples
These examples show the *kind* of output you should expect. Your exact result depends on your taxable income, filing status, and assumptions.
Example 1: Small long-term gain with moderate income
If your ordinary taxable income is moderate, a long-term gain may fall partly or fully into lower LTCG bands. The calculator shows how the gain is taxed based on your income stack.
Example 2: Short-term gain after a quick trade
Short-term gains are treated like ordinary income. If you’re already in a higher bracket, the tax on the short-term gain can be much higher than long-term treatment.
Example 3: Comparing “sell now” vs “wait for long-term”
Run the same gain as short-term and long-term. The difference gives you a rough idea of the tax incentive to hold longer (assuming the holding period flips).
Common mistakes
- Using long-term rates for an asset held 1 year or less.
- Forgetting cost basis (gain ≠ sale price).
- Assuming the whole gain is taxed at one rate.
- Ignoring the role of other taxable income (stacking matters).
Next steps (learn + verify)
Short-term vs long-term (why the holding period matters)
Capital gains tax is really two different systems: short-term gains are generally taxed like ordinary income, while long-term gains generally use a separate federal rate table. That’s why the same $10,000 profit can create very different tax outcomes depending on how long you held the asset.
Stacking explained in 30 seconds
For long-term gains, the rate you pay depends on where your gain sits on top of your other taxable income. Think of your ordinary taxable income as the “base.” Your long-term gain gets stacked on top of it, and each slice of that stacked gain can fall into different long-term rate bands.
This is the single biggest reason people mis-estimate capital gains tax. The full explanation (with rate table + examples) is here: Capital Gains Tax Rates 2026.
What to gather before you run this calculator
- Cost basis (what you paid, adjusted for splits/fees if applicable)
- Sale price and transaction fees
- Holding period estimate (short vs long)
- Other taxable income estimate for 2026
Most “surprise taxes” come from one thing: people only look at the gain, but the tax depends on how the gain stacks on total income. That’s why we ask for other income — it changes the rate band.
Sell planning: three quick questions
- Is the gain short-term or long-term? If you’re close to the 1-year mark, the difference can be material.
- What is your other taxable income? Higher income can push long-term gains into higher LTCG bands.
- Can you control timing? Sometimes spreading sales across tax years changes the rate-band outcome.
This tool gives an estimate, then the guide explains the rate table and stacking logic in detail: Capital Gains Tax Rates 2026.
Quick terminology (so you don’t mix things up)
- Proceeds: what you sold the asset for (before/after fees depending on your accounting).
- Basis: what you paid (often adjusted). This is the anchor for your gain.
- Gain: proceeds − basis.
- Realized vs unrealized: unrealized gains are “paper” gains; tax usually applies when you sell (realize).
If you keep that list straight, 90% of capital gains confusion disappears. The remaining confusion is usually stacking and holding period — which is exactly what this calculator and guide focus on.
Timing strategies (high-level)
Capital gains planning is often about timing. If you can choose when to sell, you can sometimes control which tax year the gain falls into and how it stacks with other income. This calculator helps you estimate outcomes, but the “right” timing depends on your goals, risk tolerance, and portfolio strategy — not just tax.
FAQ
Do you include state capital gains tax?
No. This is a federal estimate unless explicitly stated otherwise.
Why does my other income change the gain tax?
Because gains can stack on top of ordinary taxable income, changing the rate band used.
Does this include NIIT?
Not by default. This calculator focuses on core federal capital gains logic.