US Capital Gains Tax & Tax-Loss Harvesting Calculator 2026
Tax-loss harvesting uses realized investment losses to offset capital gains and, within a federal limit, other income.
Estimated federal tax saved
$1,500.00
Example using the values below
Calculation breakdown
| Item | Amount |
|---|---|
| Federal tax including NIIT before added losses | $11,687.50 |
| Federal tax including NIIT after added losses | $10,187.50 |
| Regular federal income tax after harvest | $10,187.50 |
| Remaining net short-term gain | $0.00 |
| Remaining net long-term gain | $40,000.00 |
| Taxable ordinary income after harvest | $43,900.00 |
| Taxable long-term gain in 0% band | $5,550.00 |
| Taxable long-term gain in 15% band | $34,450.00 |
| Taxable long-term gain in 20% band | $0.00 |
| Regular federal tax on long-term gains | $5,167.50 |
| NIIT base after harvest | $0.00 |
| 3.8% NIIT after harvest | $0.00 |
| Schedule D ordinary loss deduction | $0.00 |
| Short-term loss to carry forward | $0.00 |
| Long-term loss to carry forward | $0.00 |
| Total loss to carry forward | $0.00 |
How the estimate works
Planning estimate for US individuals using the 2026 standard deduction and regular capital gains rates. It excludes qualified dividends, credits, AMT, state tax, special 25% or 28% gains, and NIIT-specific exclusions or carryover adjustments. Enter prior allowable losses in the relevant baseline term. Amounts are rounded to cents under published rate schedules. This is a tax planning estimate, with no filing or trading recommendation.
Short-term gains use ordinary rates. Taxable ordinary income fills the long-term brackets first, then taxable long-term gains fill the remaining 0%, 15% and 20% bands. The model also applies the ordinary-rate ceiling from the IRS tax worksheet. The two scenarios include all entered ordinary income so the difference captures changes to ordinary federal tax as well as gains tax and NIIT.
NIIT equals 3.8% of the smaller of positive net investment income and MAGI above the filing threshold. The MAGI inputs and other investment income should exclude the entered transactions so the calculator can add each scenario’s net gain or allowable current-year loss.
For stock and securities, the wash sale rule generally disallows a loss if you acquire substantially identical stock or securities within 30 days before or after the sale. Only model deductible losses.
| Filing status | 0% cap | 15% cap | NIIT MAGI |
|---|---|---|---|
| Single | $49,450 | $545,500 | $200,000 |
| Married filing jointly | $98,900 | $613,700 | $250,000 |
| Head of household | $66,200 | $579,600 | $200,000 |
| Married filing separately | $49,450 | $306,850 | $125,000 |
Official sources
Frequently asked questions
Can unused capital losses carry forward?
Generally yes, without a fixed expiration during the taxpayer’s lifetime. A net loss can offset up to $3,000 of other income ($1,500 married filing separately). A low taxable income can leave some of the reported loss deduction unused and available to carry forward.
How does ordinary income affect my long-term rate?
Taxable ordinary income and taxable short-term gains use up the lower long-term bracket room before the remaining long-term gain is stacked above them. The standard deduction can also shelter part of a long-term gain.
What starts the NIIT calculation?
NIIT applies above $200,000 MAGI for Single or Head of household, $250,000 for a joint return, or $125,000 for married filing separately, and is capped by positive net investment income.
2026 United States Tax & Financial Calculators
Explore official 2026 statutory planning tools for United States: