Tax Loss Harvesting Calculator
Calculate how much tax you can save by offsetting capital gains against unrealized investment losses.
Tax Loss Harvesting Calculator: See Your Real Tax Savings Before You Sell
Selling an investment at a loss feels like a setback until that loss is put to work against a gain sitting somewhere else in the same portfolio. Rather than treating that loss as pure downside, it can become an active part of year-end tax planning once its real dollar value against current gains is understood. A Tax Loss Harvesting Calculator takes short-term gains, long-term gains, and unrealized losses and works out exactly how much tax liability disappears once those losses are applied, along with how much loss is left over to carry forward. This guide walks through what tax loss harvesting actually does in practice, how the offsetting math works step by step, and answers the questions investors ask most before using a loss to reduce a tax bill rather than just watching it sit on paper.
About the Tax Loss Harvesting Calculator
Tax loss harvesting is the practice of deliberately realizing a loss on an investment, by selling it, specifically to offset a taxable gain elsewhere in the same portfolio, reducing the total tax owed on investment income for the year. The strategy only works because tax authorities generally allow capital losses to offset capital gains before calculating what's actually taxable, and in many jurisdictions, unused losses can be carried forward into future tax years rather than being wasted. A Tax Loss Harvesting Calculator exists because figuring out exactly how much tax benefit a given loss produces isn't as simple as subtracting one number from another; short-term and long-term gains are frequently taxed at different rates, and the order in which losses are applied against each type of gain changes the final tax savings.
Without a calculator, most investors either underestimate the benefit of harvesting a loss, and skip a worthwhile trade, or overestimate it, and end up surprised by the actual reduction in their tax bill once the return is filed. Seeing the real number ahead of time, rather than a rough mental estimate, is what makes the difference between harvesting losses as a deliberate year-end strategy versus stumbling into a tax outcome without ever having planned for it.
Tax loss harvesting is sometimes described as a way to "make lemonade" out of a poorly performing investment, and that framing is useful, but it can also oversell the strategy if taken too literally. A harvested loss doesn't erase the fact that an investment underperformed; it simply softens the tax consequences of gains earned elsewhere in the same portfolio. Treating the tax savings as a bonus on top of an otherwise sound investment strategy, rather than a reason to hold onto consistently underperforming assets, keeps the strategy in proper perspective rather than letting the tax benefit drive investment decisions on its own.
How Tax Loss Harvesting Works in Real Life
In practice, tax loss harvesting usually starts with a portfolio review, typically toward the end of a tax year, where an investor looks across all holdings to identify positions currently sitting below their original purchase price. Rather than leaving those unrealized losses untouched, the investor sells enough of the losing position to generate a realized loss large enough to meaningfully offset a gain elsewhere, whether that gain came from selling a profitable stock earlier in the year or from a fund distribution.
A key detail that trips up first-time harvesters is the wash-sale restriction that exists in many tax systems, which disallows the loss for tax purposes if a substantially identical security is repurchased within a short window before or after the sale. This means real-life tax loss harvesting isn't simply "sell low, buy back immediately"; investors who still want exposure to that market segment typically either wait out the restricted window or shift temporarily into a similar, but not identical, investment to avoid disqualifying the loss they just realized. Financial advisors managing this process for clients often run it multiple times throughout the year rather than only in December, since prices fluctuate constantly and a loss worth harvesting in March might not still exist by year-end.
A typical real-life harvesting cycle tends to follow the same general sequence regardless of who's executing it:
- Scan the portfolio for unrealized losses: Comparing current market value against original purchase price across every holding to flag positions currently underwater.
- Check for offsetting gains: Reviewing realized gains from earlier trades, distributions, or planned future sales that a harvested loss could reduce the tax impact of.
- Sell the losing position: Realizing the loss by executing the sale, which converts the paper loss into one that's usable for tax purposes.
- Reinvest thoughtfully: Either waiting out the repurchase restriction window before buying the original investment back, or temporarily shifting into a similar but not substantially identical holding to maintain market exposure.
- Track the result: Recording the realized loss, which gain category it offset, and any carryforward amount for accurate tax filing later.
This is also where the practice differs most from a purely theoretical tax calculation: real markets move every day, and a loss that looks attractive to harvest on a Tuesday might shrink or disappear entirely by Friday if the underlying investment recovers some value. Investors who treat harvesting as an ongoing, opportunistic process rather than a single once-a-year event tend to capture more usable losses over time than those who only check their portfolio in the final weeks of December.
How the Tax Loss Harvesting Calculator Works
Rather than treating all gains and losses as one pooled number, the calculator applies the same offsetting order tax rules typically require, matching losses against the gain category where they produce the most benefit first.
- Enter short-term and long-term capital gains: Gains are entered separately since they're usually taxed at different rates.
- Enter harvestable losses: The total unrealized loss available to be realized and applied against those gains.
- Enter applicable tax rates: Separate short-term and long-term rates are entered, since offsetting a short-term gain and a long-term gain by the same dollar amount produces different actual tax savings.
- Automatic offset calculation: The calculator applies the loss against short-term gains first, since they're typically taxed at a higher rate, then applies any remaining loss against long-term gains, and finally reports any unused loss as a carryforward.
- Side-by-side comparison: The original tax liability without harvesting and the new liability after harvesting are both shown, making the actual dollar savings immediately clear.
Presenting both the "before harvesting" and "after harvesting" figures side by side matters more than it might initially seem, because the raw tax savings number on its own doesn't tell an investor whether harvesting was actually worthwhile relative to the loss realized. Comparing the two totals directly shows the return on the harvesting decision itself, which is a more useful way to evaluate the strategy than looking at the savings figure in isolation.
The Formula Behind the Calculation
The underlying logic follows this sequence: tax saved = (loss applied to STCG × short-term rate) + (loss applied to LTCG × long-term rate), where the loss is allocated to short-term gains first up to the available short-term gain amount, with any remainder then applied to long-term gains up to the available long-term gain amount, and anything still left over reported as a loss carryforward rather than wasted. This ordering matters because a dollar of loss applied against a short-term gain, which is often taxed at a materially higher rate than a long-term gain, produces more tax savings than the same dollar applied against a long-term gain instead. A calculator that pools all gains together and applies a single blended rate misses this distinction entirely and tends to understate the real benefit of harvesting losses against short-term gains specifically.
Advanced Features Worth Having
| Feature | Why It Helps |
|---|---|
| Separate short-term and long-term handling | Reflects the different tax rates each gain type is typically subject to, rather than applying one blended rate. |
| Correct offset ordering | Applies losses to the higher-taxed gain category first, matching how most tax systems require losses to be allocated. |
| Loss carryforward reporting | Shows exactly how much unused loss remains after offsetting current-year gains, useful for planning future tax years. |
| Multi-currency support | Useful for investors comparing tax outcomes across different markets or reporting in a non-default currency. |
Worked Examples
Numbers make the offset ordering easier to follow than a purely abstract explanation, so it helps to walk through two scenarios side by side: one where the available loss is smaller than total gains, and one where it's large enough to fully offset both gain categories with room to spare.
A straightforward example helps show how the offset ordering changes the result. Consider an investor with $10,000 in short-term capital gains taxed at 30%, $25,000 in long-term capital gains taxed at 15%, and $12,000 in harvestable losses available. Without any harvesting, the original tax liability comes to $3,000 on the short-term gain plus $3,750 on the long-term gain, for a combined $6,750. Applying the loss against the short-term gain first fully offsets that $10,000 short-term gain using $10,000 of the available loss, eliminating the entire $3,000 short-term tax bill. The remaining $2,000 of loss is then applied against the long-term gain, reducing it from $25,000 to $23,000 and cutting that portion of the tax bill by $300. The new total tax liability comes to $3,450, meaning the harvested losses saved $3,300 compared to doing nothing, a result this kind of offset calculator returns instantly rather than requiring three separate manual calculations.
A second example shows what happens when losses exceed both gain categories combined. Suppose the same investor instead had $40,000 in harvestable losses available against the same $10,000 short-term and $25,000 long-term gains. The full $10,000 short-term gain gets offset first, followed by the full $25,000 long-term gain, using $35,000 of the total loss and eliminating the entire original $6,750 tax liability. The remaining $5,000 of unused loss doesn't disappear; it's reported as a carryforward that can typically be applied against gains in a future tax year, which is exactly the kind of detail a proper calculator surfaces automatically instead of leaving an investor to track it manually across tax years.
Common Situations Where This Calculator Is Useful
Investors reviewing their portfolio near the end of a tax year use this kind of offset calculator to decide which specific losing positions are worth realizing before the year closes, based on the actual dollar tax benefit rather than a rough impression of "some savings." Financial advisors managing client portfolios rely on the same calculation to explain concretely, in dollar terms, why harvesting a particular loss now is worth the trade, especially when a client is hesitant to sell a position even though it's currently underwater. Self-directed investors managing their own brokerage accounts without professional advice also use this kind of calculator to avoid either under-harvesting available losses or misjudging how much of a carryforward they're left with heading into the next tax year.
Common Mistakes When Harvesting Losses Manually
The most frequent mistake is applying a blended average tax rate across all gains instead of separating short-term and long-term gains before calculating the offset. Because these two categories are often taxed at meaningfully different rates, a blended estimate tends to either overstate or understate the real tax benefit depending on which type of gain the loss actually gets applied against first. The second common mistake is ignoring the offset order entirely, applying losses evenly across both gain categories rather than exhausting the higher-taxed short-term gains first, which leaves real tax savings on the table even when the total loss amount used is identical.
A third mistake, and one of the most consequential, is overlooking the repurchase restriction window and buying back a substantially identical investment too soon after realizing the loss. This doesn't just reduce the tax benefit; in many tax systems it disqualifies the loss entirely for that tax year, meaning the investor sold at a loss, potentially missed out on a market rebound, and still didn't receive the tax benefit that was the entire point of the trade. Finally, some investors forget to track carryforward amounts accurately across multiple tax years, effectively losing access to unused losses simply because the figure wasn't recorded and carried into the following year's filing.
Frequently Asked Questions
Is a Tax Loss Harvesting Calculator free to use?
Yes, browser-based tax calculators built for this purpose are typically free, with no account or software installation required.
Does the order of offsetting losses against gains actually matter?
Yes, applying losses against short-term gains first generally produces greater tax savings than applying the same loss amount against long-term gains, since short-term gains are usually taxed at a higher rate.
What happens to a loss that's larger than my total gains?
Any loss amount left over after fully offsetting both short-term and long-term gains is typically reported as a carryforward, which can usually be applied against gains in a future tax year rather than being lost.
Can I harvest a loss and immediately buy the same investment back?
Generally no; many tax systems disallow the loss if a substantially identical security is repurchased within a short window before or after the sale, so timing the repurchase correctly matters as much as the sale itself.
Does this work on mobile phones?
Yes, this browser-based offset calculator works on any modern mobile browser, letting you check potential tax savings directly from your phone before making a trade.
Does tax loss harvesting make sense for a small portfolio, or only larger ones?
The strategy works at any portfolio size in principle, but the actual dollar benefit scales with the size of the gains being offset, so it's worth checking the projected savings before deciding if the effort of tracking a harvested trade is worthwhile relative to the amount involved.
Can harvested losses offset regular income as well as capital gains?
In many tax systems, a limited amount of net capital loss beyond what's needed to offset capital gains can also be applied against other taxable income up to a set annual cap, with anything beyond that cap carried forward, though the exact rule depends on the specific tax jurisdiction.
Turning an unrealized loss into a concrete tax benefit is exactly what a Tax Loss Harvesting Calculator is built for, replacing a rough guess about potential savings with an exact figure based on real gain amounts, real tax rates, and the correct offsetting order.