Capital Loss Carryforward & Tax-Loss Harvesting Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

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.

Tax-Year Net Loss = Capital Losses Capital Gains

If losses are larger than gains, the calculator treats the difference as the amount available for the annual ordinary-income offset:

Deductible Against Ordinary Income = min ( Net Loss , $3,000 )

Any amount above that deduction limit becomes a carryforward for the next return:

Loss Carryforward = Net Loss Deductible Amount

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:

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):

Step 1: Estimate 2024 tax impact without harvesting

Step 2: Add tax-loss harvesting to the year Jordan realizes the additional $25,000 in losses, bringing total losses to $40,000.

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:

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.

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.

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

  1. Enter Realized capital gains this year (USD) so the calculator can measure how much of your loss can be used right away.
  2. Enter Capital losses realized this year (USD) using only losses that have already been sold and recognized for tax purposes.
  3. 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.
  4. 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.

Current Year Information Total long-term + short-term gains realized year-to-date. Include only losses already realized by selling the position. Used to estimate the ordinary-income offset and the current-year gain bracket. Used for the $3,000 ordinary-income deduction value in the comparison.
Capital Loss Carryforward History Unused losses from earlier years that remain available to offset gains now. Unrealized losses you're considering realizing as part of a tax-loss harvest. If you plan to buy back the same or a substantially identical holding within the wash-sale window, the loss may be deferred.
Multi-Year Projection Average gains used to estimate how quickly a carryforward may be absorbed. Average future losses used in the carryforward projection.

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.

Score: 0 Timer: 30s Best: 0

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.

Status messages will appear here.