Capital Loss Carryforward & Tax-Loss Harvesting Calculator
Introduction: Capital Loss Carryforwards and Tax-Loss Harvesting
Capital loss carryforwards turn realized investment losses into tax relief that can be used now or saved for later. In federal tax planning, realized capital losses first cancel realized capital gains, and any remaining net loss can offset up to $3,000 of ordinary income each year. That rule is what makes tax-loss harvesting useful: a sale at a loss can create a deduction while you keep your portfolio exposure with a replacement holding.
The details matter because capital loss carryforward calculations are not just about the size of the loss. Wash sale rules can defer a harvested loss if you buy back the same or a substantially identical security too soon, and the balance between long-term and short-term gains changes the tax rate applied to the current-year result. A trade that looks helpful on paper can lose most of its value if the repurchase window or account location is wrong.
This calculator shows the immediate tax effect of the losses you already realized, the extra benefit from harvesting additional losses, and the way unused losses may be absorbed over later tax years. Use it as a planning tool when you are deciding whether to realize a loss now or save the position for another year.
Capital Loss Deduction Rules: How Loss Carryforwards Offset Gains
The capital loss carryforward rules determine where your realized losses go first. In a given tax year, capital losses offset capital gains dollar for dollar; once gains are gone, only up to $3,000 of the remaining net loss can be used against ordinary income such as wages, salary, interest, or dividends. Anything above that annual cap carries into later years until it is absorbed.
If losses are larger than gains, the calculator treats the difference as the amount available for the annual ordinary-income offset:
Any amount above that deduction limit becomes a carryforward for the next return:
Example: An investor realizes $50,000 in capital gains and $70,000 in capital losses in the same year. The net loss is $20,000. Of this amount, $3,000 can reduce ordinary income, and the remaining $17,000 carries forward to the next tax year.
Tax-Loss Harvesting Strategy: Avoiding Wash Sales While Staying Invested
Tax-loss harvesting is the capital loss carryforward strategy that creates a deductible loss without forcing you out of the market for long. You sell a position that is below your cost basis, recognize the loss for tax purposes, and replace it with an investment that keeps roughly the same exposure while avoiding the wash sale rules.
The Wash Sale Rule: The wash sale rule is the main trap in a tax-loss harvesting plan. If you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for now and added to the basis of the replacement holding. That defers the tax benefit instead of eliminating it, which can still be useful if you know where the basis adjustment landed.
Example: You sell Apple shares at a $5,000 loss on December 15 and repurchase the same shares on December 20. The loss is disallowed under the wash sale rule, and the replacement shares carry a $5,000 higher basis. If those replacement shares later rise, the deferred loss lowers the gain you report at that time.
Strategies to Avoid Wash Sales While Harvesting:
- Buy a Similar But Not Identical Asset: If you want to keep tech exposure, move from one holding to a different fund or stock that is not substantially identical.
- Wait 31 Days: A full wash sale window gives the loss room to clear before you buy back the original security.
- Harvest Losses in Different Accounts: Be careful across taxable, IRA, spouse's, or trust accounts because related purchases can still create wash sale problems.
- Use Related Positions: If the position you want to harvest is a single stock, a broader fund or sector substitute may keep your allocation close enough for planning.
Worked Example: Multi-Year Capital Loss Carryforward Strategy
To see capital loss carryforward planning in practice, consider Jordan, an investor who already has gains on the books and several positions trading below cost:
Current Year (2024):
- Realized capital gains: $50,000
- Realized capital losses: $15,000
- Unrealized losses (positions down but not sold): $25,000
- Ordinary income: $120,000 (single filer, 24% marginal rate)
Step 1: Estimate 2024 tax impact without harvesting
- Net capital gain: $50,000 - $15,000 = $35,000
- Long-term capital gains tax (assuming all long-term): 15% × $35,000 = $5,250
- No ordinary income offset (gains exceed losses)
Step 2: Add tax-loss harvesting to the year Jordan realizes the additional $25,000 in losses, bringing total losses to $40,000.
- Net capital loss: $40,000 - $50,000 gains = -$10,000 (losses exceed gains)
- Deductible against ordinary income: $3,000
- Loss carryforward to 2025: $7,000
- Tax savings from $3,000 deduction: $3,000 × 24% (marginal rate) = $720
- Capital gains tax: $0 (all gains offset by losses)
- Total 2024 tax savings from harvesting: $5,250 (gains tax eliminated) + $720 (ordinary income deduction) = $5,970
Step 3: Carryforward to 2025 Jordan enters 2025 with a $7,000 loss carryforward. If she realizes $30,000 in gains and $2,000 in losses:
- Capital loss available: $7,000 (carryforward) + $2,000 (current) = $9,000
- Net capital gain: $30,000 - $9,000 = $21,000
- Capital gains tax: 15% × $21,000 = $3,150
- Benefit of carryforward: $7,000 × 15% = $1,050 in taxes saved
Result: By harvesting the extra losses in 2024, Jordan cuts the current year's federal tax bill and carries part of the benefit into 2025. Over several filing years, that pattern can smooth out the tax hit from repeated portfolio gains.
Long-Term vs. Short-Term Capital Losses in Carryforward Planning
Capital loss carryforward planning also depends on whether the loss is long-term or short-term. The IRS applies losses to gains in a specific order, and that ordering can change the tax result when your short-term income is taxed differently from your long-term gains.
| Loss Type | Holding Period | Tax Impact | Offset Priority |
|---|---|---|---|
| Short-Term Loss | ≤ 1 year | Offsets short-term gains first (at ordinary income rates) | First (against STCG) |
| Long-Term Loss | > 1 year | Offsets long-term gains (at preferential rates) | Second (against LTCG, then against STCG) |
| Net Capital Loss | Excess of total losses | Up to $3,000/year deductible against ordinary income | Can be long-term or short-term carryforward |
The IRS applies losses to gains in a specific order: short-term losses offset short-term gains; long-term losses offset long-term gains; any remaining losses offset the other type. If both losses and gains exist in both categories, the matching order can affect the final tax outcome, especially when your ordinary-income bracket differs from your long-term capital gains rate.
State Tax Implications for Capital Loss Carryforwards
Capital loss carryforward results can look different once state tax rules enter the picture. This calculator models federal treatment only, but states can follow the federal offset rules closely, ignore them in part, or apply their own capital gains treatment.
- No State Income Tax (TX, FL, WA, NV, AK, SD, WY, TN): There is no state-level income tax benefit from capital loss deductions in these states.
- State Capital Gains Tax (CA, WA, IL): Some states apply separate capital gains rules, so the value of a harvested loss can differ from the federal result.
- Surtaxes (NY, NJ): Higher-income earners in some states pay additional surtaxes, which can change the payoff from realizing a loss.
For this calculator, the state impact is not modeled; consult state tax authorities or a tax professional for your specific situation.
Limitations and Important Assumptions for Capital Loss Carryforward Estimates
Capital loss carryforward calculations are useful, but the calculator intentionally simplifies several parts of a real tax return.
- Federal Taxes Only: State income tax and state-specific capital loss rules are not included.
- Wash Sale Assumption: The calculator does not detect wash sale violations for you; if you repurchase the same or a substantially identical security too soon, the harvested loss can be deferred.
- Net Investment Income Tax (NIIT): High-income taxpayers (>$200,000 single) may owe an additional 3.8% federal tax on investment income; it is not modeled here.
- Alternative Minimum Tax (AMT): Some taxpayers face AMT, which can change the value of deductions and capital loss planning; it is not considered in this calculator.
- Charitable Deductions and Limitations: The calculator assumes no other deductions are changing the benefit of the capital loss deduction.
- Realized vs. Unrealized Gains/Losses: Only realized gains and losses affect the tax result; unrealized moves do not count until you sell.
- Holding Period Assumption: This calculator assumes the gain and loss treatment reflected in the inputs; verify holding periods for a real return.
- Tax Rate Stability: The projection keeps tax rates steady from year to year, even though future law changes would alter the result.
- Professional Consultation Recommended: Tax planning is complex, so a CPA or tax attorney can check wash sale exposure, account coordination, and state rules.
Conclusion: Capital Loss Carryforward Takeaways
Capital loss carryforward planning can make a down year work harder for you. When tax-loss harvesting is done carefully, realized losses can offset current gains, reduce ordinary income up to the annual limit, and follow you into later years if there is more loss than this year's return can absorb. This calculator helps you compare a no-harvest baseline with a harvesting plan so you can see whether the tax savings are worth the trading, timing, and wash sale risk. Use the result as a planning checkpoint, then confirm the details with a tax professional before you place the trade.
How to use this capital loss carryforward calculator
- Enter Realized capital gains this year (USD) so the calculator can measure how much of your loss can be used right away.
- Enter Capital losses realized this year (USD) using only losses that have already been sold and recognized for tax purposes.
- Enter Ordinary income (wages, salary, etc.), then set your filing status and marginal tax rate so the deduction side of the calculation matches your situation.
- Compare the baseline result with the harvesting scenario before you act, and decide whether the extra loss is worth the wash sale risk and trade timing.
Formula: how this capital loss carryforward estimate is built
The calculator first nets realized gains against current-year losses to see whether you end up with a taxable gain or a loss to carry forward. It then adds any prior-year carryforward and any additional losses you choose to harvest, applies the $3,000 ordinary-income cap to the remaining loss, and projects how future gains and losses may use up that balance over the years you select. Filing status and ordinary income determine which long-term capital gains rate the current-year estimate uses, so the output reflects both the loss side and the tax-rate side of the planning problem.
Arcade Mini-Game: Capital Loss Carryforward Practice Run
Use this quick arcade run to separate useful tax-loss harvesting clues from wash sale mistakes, mismatched accounts, and other assumptions that can distort a capital loss carryforward plan.
Start the game, then use your pointer or arrow keys to catch helpful harvesting clues and avoid bad assumptions that would weaken the tax result.
