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
Related Calculators
Paycheck Calculator
Estimate paycheck deductions and net pay by frequency and state.
Open toolSouth Carolina Income Tax Calculator
Estimate South Carolina state tax with bracket-level detail.
Open toolCompound Interest Calculator
Project investment growth with recurring monthly contributions.
Open toolMortgage Calculator
Estimate monthly mortgage payments and long-term loan costs.
Open toolSelf Employment Tax Calculator
Calculate self-employment tax, federal tax, and quarterly estimates.
Open toolBMI Calculator
Calculate BMI category and a healthy weight range estimate.
Open toolCalorie Calculator
Estimate daily calories, goal targets, and macro ranges.
Open toolBody Fat Calculator
Estimate body-fat percentage, fat mass, and lean mass from measurements.
Open toolBMR Calculator
Estimate basal metabolic rate, maintenance calories, and daily targets.
Open toolTax Refund Calculator 2026
Project how withholding, payments, and credits affect your year-end federal settlement.
Open toolSources & References
- 1.IRS - Capital Gains and Losses (Topic No. 409)(Accessed February 2026)
- 2.IRS - Net Investment Income Tax(Accessed February 2026)
- 3.IRS Rev. Proc. 2025-32 (2026 inflation-adjusted §1(h) amounts)(Accessed February 2026)
- 4.IRS Publication 550 - Investment Income and Expenses(Accessed February 2026)