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

Financial

Paycheck Calculator

Estimate paycheck deductions and net pay by frequency and state.

Open tool
Financial

Net Pay Calculator

Estimate take-home pay after tax rate, optional deductions, and bonus inputs.

Open tool
Financial

Net Salary Calculator

Estimate monthly or yearly take-home salary after tax and payroll deduction inputs.

Open tool
Financial

Payroll Calculator

Estimate employee take-home pay and employer payroll cost with dual-view results.

Open tool
Financial

Payroll Deductions Calculator

Estimate salary deductions and net pay with payroll tax and contribution inputs.

Open tool
Financial

Salary Deduction Calculator

Estimate salary deductions and remaining take-home pay with tax and contribution inputs.

Open tool
Financial

Salary Tax Breakdown Tool

Break down salary taxes into federal, state, payroll contributions, and net take-home pay.

Open tool
Financial

Payslip Calculator

Generate printable payslips with salary, deduction, and net-pay breakdown.

Open tool
Tax

South Carolina Income Tax Calculator

Estimate South Carolina state tax with bracket-level detail.

Open tool
Financial

Compound Interest Calculator

Project investment growth with recurring monthly contributions.

Open tool
Financial

Mortgage Calculator

Estimate monthly mortgage payments and long-term loan costs.

Open tool
Tax

Self Employment Tax Calculator

Calculate self-employment tax, federal tax, and quarterly estimates.

Open tool
Health

BMI Calculator

Calculate BMI category and a healthy weight range estimate.

Open tool
Health

Calorie Calculator

Estimate daily calories, goal targets, and macro ranges.

Open tool
Health

Body Fat Calculator

Estimate body-fat percentage, fat mass, and lean mass from measurements.

Open tool
Health

BMR Calculator

Estimate basal metabolic rate, maintenance calories, and daily targets.

Open tool
Health

Bra & Bust Size + Fit Calculator

Estimate bra size, convert regional sizing, and troubleshoot common fit problems.

Open tool
Statistics

Sample Size & Statistical Power Suite

Estimate sample size, achieved power, and adjusted recruitment across common study designs.

Open tool
Engineering

Electrical Cable/Wire Size and Voltage Drop Calculator

Estimate conductor size, voltage drop, and approximate ampacity checks for AC/DC cable runs.

Open tool
Engineering

Conduit and Wire Fill Calculator

Estimate conduit fill percentage, minimum conduit size, and educational derating implications for raceway planning.

Open tool
Engineering

Duct Size / Ductulator and CFM Calculator

Estimate HVAC duct size, velocity, pressure-drop behavior, and round/rectangular conversion options.

Open tool
Engineering

Pipe / Tank Volume and Dimensions Calculator

Calculate total and partial volume for tanks, pipes, and pools with missing-dimension solving and conversion tables.

Open tool
Measurement

Room / Plot / Lot Area & Size Calculator

Calculate room and lot area, perimeter, volume, and cross-unit land conversions using shape-based inputs.

Open tool
Automotive

Tire Size, Gear Ratio & Speed/Odometer Calculator

Compare stock/new tire dimensions, speedometer error, and effective gearing or RPM changes with fitment context.

Open tool
Tax

Tax Refund Calculator 2026

Project how withholding, payments, and credits affect your year-end federal settlement.

Open tool

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)