Capital Gains Tax Calculator 2026

Estimate tax on investment gains, including short-term/long-term treatment and NIIT exposure.

Last Updated: February 2026

$
$
$

Used to estimate whether your gain falls in the 0%, 15%, or 20% long-term bracket and whether NIIT applies.

Capital Gain

$0.00

Estimated Tax Rate

0.00%

Capital Gains Tax

$0.00

NIIT (3.8%)

$0.00

Total Tax

$0.00

Net Profit After Tax

$0.00

Gain Distribution

Important Disclaimer

This calculator provides estimates for informational purposes only and does not constitute tax, legal, or financial advice. Tax laws are complex and change frequently. Consult a qualified tax professional for advice specific to your situation. CalculatorWallah is not responsible for any decisions made based on calculator results.

How This Calculator Works

The calculator measures gain as sale price minus purchase price, then applies different tax logic based on holding period. Short-term gains are estimated through ordinary-rate impact. Long-term gains are allocated across 0%, 15%, and 20% federal tiers based on your filing status and ordinary income.

It then estimates Net Investment Income Tax (NIIT) where income exceeds threshold levels, combines tax layers, and returns after-tax profit so you can compare strategies.

This structure makes it easier to test sell-timing scenarios before executing a taxable sale.

What You Need to Know

Why holding period is the biggest lever

For many investors, crossing from short-term to long-term treatment is the single most important tax lever. Short-term gains can be taxed at materially higher rates than long- term gains. A small timing change can create a noticeable difference in after-tax return.

That does not mean you should always delay selling. Portfolio risk, concentration, and cash-flow needs can justify immediate action. The goal is to understand tax cost clearly before deciding.

NIIT and high-income planning

High-income taxpayers may face NIIT on top of regular capital gains tax. NIIT is often overlooked in simple gain calculators, which can understate final liability. If your income is near threshold levels, modeling NIIT explicitly is important.

Coordinating salary timing, bonus expectations, and investment sale timing can sometimes reduce overlap in peak-income years.

Loss harvesting and offset strategy

Tax-loss harvesting can offset gains and improve after-tax outcomes, but rules such as wash-sale restrictions require careful execution. Good records and transaction-level tracking are essential.

A practical process is to estimate potential gains first, then evaluate whether realized losses or carryforwards can soften tax impact before year-end.

Planning beyond federal tax

State tax treatment varies widely. Some states tax gains as ordinary income, while others have no broad income tax. If you are considering relocation or large one-time sales, multi-state planning can materially change net proceeds.

Use this federal estimate as step one, then layer in state-specific tax analysis before final decision-making.

Frequently Asked Questions

Short-term gains (held one year or less) are generally taxed at ordinary income-tax rates. Long-term gains usually receive preferential 0%, 15%, or 20% federal rates.

NIIT is the 3.8% Net Investment Income Tax that can apply when modified adjusted gross income exceeds statutory thresholds.

Yes. Your ordinary income can use up lower long-term gain brackets, pushing part of your gain into a higher long-term rate tier.

This page focuses on federal capital gains tax and NIIT. State capital gains treatment can differ and should be modeled separately.

Yes, investment losses can offset gains and in some cases offset a limited amount of ordinary income subject to IRS rules.

This simplified model uses purchase price as cost basis. Actual basis may include adjustments such as commissions, wash sales, and corporate actions.

Holding-period classification in this tool is a user input for planning. Official determination depends on IRS holding-period rules and transaction dates.

Use it for scenario planning only. Confirm final numbers through tax software, broker forms, and a qualified professional if needed.

Related Calculators

Sources & References

  1. 1.IRS - Capital Gains and Losses (Topic No. 409)(Accessed February 2026)
  2. 2.IRS - Net Investment Income Tax(Accessed February 2026)
  3. 3.IRS Rev. Proc. 2025-32 (2026 inflation-adjusted §1(h) amounts)(Accessed February 2026)
  4. 4.IRS Publication 550 - Investment Income and Expenses(Accessed February 2026)