Guide

THE TOOLBOX / INVESTING & TAXES

Capital gains tax,
short-term vs. long-term clarity.

Estimate 2026 federal capital gains tax (0% / 15% / 20%), 3.8% NIIT surtax, tax-loss harvesting offsets, state tax, and net proceeds—and see what holding over 1 year saves.

Sale, Tax-Loss & Income Details

Quick State Tax Presets

Estimated Total Capital Gains Tax

$9,900
Kept (80%) Federal State
Taxable Capital Gain$49,500
Effective Tax on Gain20%
Federal Tax$7,425
3.8% NIIT Surtax$0
State Tax (5%)$2,475
After-Tax Net Proceeds$109,600
Holding over 1 year saves you $4,241 in federal taxes compared to selling short-term.

2026 FEDERAL LTCG BRACKETS

Long-term capital gains tax thresholds by filing status.

LTCG RateSingleMarried Filing JointlyHead of Household
0%Up to $49,450Up to $98,900Up to $66,200
15%$49,451 – $545,500$98,901 – $613,700$66,201 – $579,600
20%Over $545,500Over $613,700Over $579,600

1. Stack Gains Above Ordinary Income

Capital gains don't start from $0—they sit on top of your wages and salary. Entering your other taxable income shows how much of your gain lands in the 0%, 15%, or 20% tier.

2. Model Tax-Loss Harvesting

Plug in realized losing positions to offset gains dollar for dollar, or see your $3,000 annual ordinary income deduction and loss carryforward.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains tax?

Assets held for 1 year or less are taxed as short-term gains at ordinary federal income rates (10% to 37%). Assets held longer than 1 year qualify for lower long-term rates of 0%, 15%, or 20%.

When does the 3.8% Net Investment Income Tax (NIIT) apply?

The 3.8% NIIT surtax applies to the lesser of your net investment gain or the amount by which your Modified Adjusted Gross Income (MAGI) exceeds $200,000 (Single / Head of Household) or $250,000 (Married Filing Jointly).

How does tax-loss harvesting offset my capital gains?

Realized capital losses offset capital gains dollar for dollar. If your harvested losses exceed your gains, you can deduct up to $3,000 against ordinary income each year and carry remaining losses forward indefinitely.

How does my ordinary income affect my capital gains tax bracket?

Capital gains stack on top of your ordinary taxable income. For example, if a single filer has $40,000 in ordinary taxable income and a $20,000 long-term gain, the first $9,450 of gain is taxed at 0% and the remaining $10,550 is taxed at 15%.

Does this calculator work for stocks, ETFs, crypto, and investment property?

Yes. Stocks, index funds, Bitcoin/crypto, and investment real estate all follow the same short-term vs. long-term federal capital gains framework (note: primary residences may also qualify for the $250k/$500k Section 121 exclusion).

Do brokerage commissions and selling fees reduce my taxable capital gain?

Yes. Selling expenses, closing costs, and brokerage commissions reduce your net proceeds, lowering your taxable capital gain dollar for dollar.

Which US states have 0% capital gains tax?

Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, and Wyoming levy 0% state capital gains tax. California taxes gains up to 13.3% and New York up to 10.9% plus NYC local tax.

Is my financial or portfolio data uploaded to a server?

No. All bracket stacking, NIIT math, and CSV exports execute 100% locally inside your browser.