Tax Loss Harvesting Helper

Identify harvestable losses and track wash sale timing

Educational purposes only. This calculator is for informational purposes and should not be considered financial, tax, or legal advice. Consult a qualified professional for personalized guidance.

Try an example:

Examples use hypothetical values. Actual returns and market conditions will vary.

Tax Situation

$
%

Positions to Analyze

Position 1
Harvestable Losses
$0.00
0 position(s)
Offset Gains
$0.00
of $0.00 gains
Offset Income
$0.00
$3,000 annual limit
Tax Savings
$0.00
at 24.0% rate

Position Analysis

SymbolSharesCostValueGain/LossHoldingWash SaleAction

Educational purposes only. Tax loss harvesting involves complex rules including wash sale regulations that apply across all accounts (including IRAs). This calculator provides estimates only. Consult a tax professional before implementing any tax strategy.

How This Tool Works

Tax Loss Harvesting Helper

Strategic Realization of Investment Losses

Investment losses are never pleasant, but they carry hidden value that disciplined investors can capture through tax loss harvesting. By intentionally selling positions that have declined below their cost basis, you realize losses that offset capital gains elsewhere in your portfolio, directly reducing your tax bill. The tax loss harvesting helper identifies positions with harvestable losses, tracks wash sale restrictions, and calculates the actual tax savings your losses can generate.

Unlike many tax strategies that require complex structures or significant capital, tax loss harvesting is accessible to any investor with a taxable brokerage account containing positions below cost basis. The strategy is particularly valuable during market downturns when many positions show losses simultaneously, turning a difficult market environment into a tax optimization opportunity.

Every realized loss is a tax asset waiting to be deployed against gains.

How Tax Loss Harvesting Works

The mechanics are straightforward. You sell a position at a loss, realizing the loss for tax purposes. That realized loss then offsets capital gains dollar for dollar. If you have $10,000 in capital gains and harvest $10,000 in losses, your net capital gain is zero, eliminating the tax liability on those gains.

Losses first offset gains of the same character: short-term losses offset short-term gains, and long-term losses offset long-term gains. Excess losses then cross over to offset gains of the opposite character. Short-term gains are taxed at higher ordinary income rates, so short-term losses offsetting short-term gains provide the greatest per-dollar tax benefit.

If your total capital losses exceed total gains, up to $3,000 of net capital loss can offset ordinary income annually. At a 32% marginal tax rate, this $3,000 deduction saves $960 in taxes. Any remaining losses carry forward indefinitely to future tax years, creating a persistent tax asset.

The helper calculates how your harvested losses flow through this offset hierarchy, showing exactly how much tax you save.

The Wash Sale Rule Explained

The IRS limits loss harvesting through the wash sale rule. If you sell a security at a loss and purchase a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. This creates a 61-day window (30 days before, the sale day, and 30 days after) during which you cannot own substantially identical securities.

Substantially identical is not precisely defined, but clear cases include the same stock or bond, options on the same stock, and contracts to acquire the same security. Importantly, purchases in retirement accounts like IRAs and 401(k)s also trigger wash sales if you buy the same security within the window.

What is not substantially identical offers planning flexibility. Different companies in the same sector, different ETFs tracking similar but not identical indexes, and different fund families' versions of similar strategies are generally considered not substantially identical. Selling an S&P 500 ETF and immediately buying a total market ETF maintains similar market exposure while avoiding wash sale problems.

The helper tracks your sale dates and alerts you when wash sale windows are active, preventing inadvertent disallowance of your losses.

Identifying Harvestable Positions

Not all losing positions warrant harvesting. The helper analyzes your portfolio to identify optimal candidates based on several factors that affect the strategy's net benefit.

Loss magnitude matters because larger losses provide greater tax savings. A position down 30% offers more harvesting value than one down 5%, all else equal.

Holding period affects future treatment. Harvesting a long-term loss to offset short-term gains provides maximum benefit because short-term gains face higher rates. Conversely, harvesting short-term losses may be worthwhile even if you only have long-term gains to offset.

Position size determines total loss available. A small position with large percentage loss might offer less total harvesting value than a large position with modest percentage loss.

Conviction about the security matters for replacement planning. If you want to maintain exposure to a particular stock or sector, you need a substantially different replacement security or must wait 31 days to repurchase.

The helper displays all positions with unrealized losses, sorted by harvesting priority based on these factors.

Replacement Security Strategies

After selling a position, you have several options to maintain market exposure while respecting wash sale rules.

Immediate replacement with a similar but not identical security is the most common approach. Sell your S&P 500 ETF and buy a total market ETF the same day. Sell individual stock and buy a competitor or sector ETF. This maintains your market exposure with minimal disruption.

Wait 31 days and repurchase the original security if you specifically want that security back. Your money can sit in a money market fund or bonds during the waiting period, though you bear the risk that the security rises during your exclusion.

Permanent replacement might make sense if you wanted to exit the position anyway. Harvesting provides a tax benefit while implementing a portfolio change you would have made regardless.

Double up before selling is sometimes used. Buy additional shares 31 days before you plan to harvest, then sell only the original shares. This maintains continuous exposure but requires additional capital.

Quantifying Tax Savings

The helper calculates your actual tax savings based on your marginal tax rate and the gains you have to offset. Tax savings equals loss amount multiplied by the applicable tax rate.

For losses offsetting short-term gains, use your ordinary income tax rate (up to 37% federally). A $10,000 loss offsetting short-term gains at 35% marginal rate saves $3,500 in federal tax.

For losses offsetting long-term gains, the savings depend on your long-term capital gains rate (0%, 15%, or 20% plus potentially 3.8% NIIT). A $10,000 loss offsetting long-term gains at 15% saves $1,500.

For losses exceeding gains, the $3,000 ordinary income offset uses your marginal ordinary income rate, with excess carrying forward to future years.

The helper shows your projected savings based on your specific tax situation and available gains to offset.

Timing and Frequency Considerations

Many investors wait until year-end to consider tax loss harvesting, but ongoing monitoring throughout the year offers advantages. Market volatility creates harvesting opportunities that may disappear if you wait. Positions that show losses in March might recover by December, eliminating the opportunity.

Systematic harvesting involves checking for opportunities monthly or quarterly, capturing losses as they arise rather than hoping they persist until year-end. The helper facilitates this approach by continuously tracking your positions and alerting you to significant harvestable losses.

Year-end harvesting remains important for final optimization. Review all positions before December 31 to capture any remaining losses and ensure you have offset all gains realized during the year.

Record Keeping and Documentation

Accurate records are essential for tax loss harvesting. Document each sale including date, shares sold, cost basis, and sale proceeds. Track the purchase date of replacement securities to monitor wash sale windows.

Maintain your own records even though brokerages report this information. Brokerage cost basis reporting can contain errors, especially for securities transferred between brokerages or held for many years.

For complex situations involving multiple lots purchased at different prices, specific identification of which lots you are selling allows optimization. Sell the highest-cost-basis lots first to maximize realized losses.

Common Mistakes to Avoid

Triggering wash sales through retirement account purchases is a frequent error. Buying a security in your IRA within 30 days of selling it at a loss in your taxable account disallows the loss even though the accounts are separate.

Forgetting about dividend reinvestment can trigger wash sales. If you sell a stock at a loss but have automatic dividend reinvestment active, the next dividend reinvestment within 30 days triggers a wash sale.

Harvesting losses on positions you would not otherwise sell may not make sense if transaction costs or the hassle of finding replacement securities outweighs the tax benefit, particularly for small losses.

Ignoring state taxes in the analysis leads to incomplete savings estimates. Most states follow federal wash sale rules and allow the same loss deductions.


Investment losses are inevitable, but their tax value should not go unclaimed. Tax loss harvesting transforms paper losses into real tax savings by strategically realizing losses that offset gains. The helper identifies your best harvesting candidates, tracks wash sale windows to prevent disallowance, and calculates the actual tax benefit you can capture from positions that have declined. Disciplined harvesting turns market setbacks into lasting tax advantages.