2026 Capital Gains Tax, NIIT & Tax-Loss Harvesting Calculator
Estimate 2026 federal tax on short- and long-term capital gains, the 3.8% NIIT, your Schedule D loss carryover, and room to harvest gains at 0%.
Key takeaways
- Long-term gains and qualified dividends fill the 0%, 15% and 20% brackets after taxable ordinary income. For 2026, the 0% bracket ends at $49,450 for single filers and $98,900 for joint filers.
- NIIT adds 3.8% to the smaller of net investment income and MAGI above your filing threshold.
- A net capital loss can offset up to $3,000 of other income ($1,500 if married filing separately). Unused losses can carry forward.
Calculate your 2026 estimate
Use U.S. dollars. Enter gains and losses as positive amounts. Include prior-year carryovers in losses by holding period and enter only deductible losses.
Your estimate
- Remaining 0% LTCG headroom
- —
- Additional gain with no modeled federal tax increase
- —
- Estimated regular federal income tax + NIIT
- —
- 3.8% NIIT
- —
Headroom includes added gains that available losses and deductions can absorb. The separate tax estimate checks how much of that headroom you can use without increasing modeled federal tax. Results are rounded to cents for display.
Show tax and Schedule D breakdown
- Deduction applied
- —
- Taxable income
- —
- Taxable ordinary income
- —
- Short-term balance before cross-netting
- —
- Long-term balance before cross-netting
- —
- Schedule D combined net gain or loss
- —
- Net short-term gain after netting
- —
- Net long-term gain after netting
- —
- Ordinary tax attributable to short-term gain
- —
- LTCG and qualified dividends at 0%
- —
- LTCG and qualified dividends at 15%
- —
- LTCG and qualified dividends at 20%
- —
- Tax at preferential rates before ordinary-tax comparison
- —
- Unused 0% taxable-income band
- —
- Capital loss deduction on Schedule D
- —
- Loss treated as used for carryover
- —
- Short-term capital loss carryover
- —
- Long-term capital loss carryover
- —
- Total capital loss carryover
- —
- Estimated NIIT MAGI
- —
- Estimated net investment income
- —
- Income subject to NIIT
- —
For planning ordinary investments. The regular tax estimate uses the lower of the preferential-rate calculation and the all-ordinary rate calculation. It uses rate schedules and excludes IRS tax-table rounding, credits, AMT, state taxes, special 25% and 28% gain categories, and investment interest elections.
Official 2026 federal thresholds
| Filing status | Basic standard deduction | 0% LTCG through | 15% LTCG through | NIIT MAGI threshold | Capital loss limit |
|---|---|---|---|---|---|
| Single | $16,100 | $49,450 | $545,500 | $200,000 | $3,000 |
| Married filing jointly | $32,200 | $98,900 | $613,700 | $250,000 | $3,000 |
| Head of household | $24,150 | $66,200 | $579,600 | $200,000 | $3,000 |
| Married filing separately | $16,100 | $49,450 | $306,850 | $125,000 | $1,500 |
The 15% band starts above the 0% cutoff. The 20% band starts above the 15% cutoff. NIIT thresholds are set by statute and receive no inflation adjustment.
IRS Rev. Proc. 2025-32 · Schedule D instructions · Form 8960 instructions · IRS Publication 550
Loss aversion and the 61-day wash-sale window
Here is a way to test whether loss aversion is driving your decision. If you held the proceeds in cash today, would you buy the same investment at today’s price? Weigh the estimated tax benefit against transaction costs, portfolio exposure and the potential cost of missing a rebound.
Review all purchases of substantially identical securities from 30 days before through 30 days after a loss sale, including the sale day. Automatic reinvestments, purchases by a spouse, and IRA purchases can trigger the rule.
Capital gains tax FAQ
How do the 2026 long-term capital gains rates work?
Taxable ordinary income fills the brackets first. Eligible net gains on assets held more than one year and qualified dividends are stacked above it and generally taxed at 0%, 15%, or 20%. Net short-term gains generally use ordinary tax rates. The cutoffs depend on filing status.
When does the 3.8% net investment income tax apply?
NIIT is 3.8% of the smaller of positive net investment income and the amount by which modified adjusted gross income exceeds the filing threshold. The threshold is $200,000 for single and head of household, $250,000 for joint filers, and $125,000 for separate filers. Where both rates apply to the same dollar of gain, the 20% rate and NIIT combine to 23.8%.
How does the $3,000 capital loss deduction work?
Net gains and losses within each holding period first, then offset opposite short- and long-term balances. An overall loss can produce a deduction of up to $3,000 ($1,500 if married filing separately). Unused individual losses carry forward until used. The Schedule D worksheet can preserve additional losses when deductions exceed income, and it applies the loss used to short-term losses first.
How much long-term gain can I harvest at 0%?
The additional gain estimate accounts for unused deductions, qualified dividends, and losses that can absorb gains. A sale can still increase ordinary tax by reducing your capital loss deduction or freeing short-term gains that losses previously offset. NIIT, state taxes, credits, and income-based benefits can also change. The separate federal tax estimate checks the modeled ordinary tax and NIIT before and after harvesting.
What is the wash-sale window when harvesting a loss?
Buying substantially identical stock or securities within 30 days before or after selling at a loss can disallow the loss. The sale date is also within the 61-day window. Review purchases across accounts, including IRA transactions, a spouse’s purchases, and automatic dividend reinvestments.
Related calculators
2026 United States Tax & Financial Calculators
Explore official 2026 statutory planning tools for United States: