Tax-Efficient Harvesting Calculator

If your portfolio has unrealized losses and you're weighing whether to lock them in, this Tax-Efficient Harvesting Calculator runs the numbers first. Enter your original purchase price, current market value, purchase date, annual income, and any capital gains you want to offset, then click Calculate to see your federal tax savings, state tax savings, total tax savings, and a breakdown of how the loss applies to short-term gains, long-term gains, and ordinary income. The market cap growth calculator shows your projected investment value alongside market capitalization growth, year by year.

Tax-Loss Harvesting Tool

Enter your investment details and tax information to calculate the potential tax savings from harvesting investment losses.

Investment Information

Name or description of the investment
$
Total cost basis of the investment
$
Current value of the investment
Date when you purchased the investment

Tax Settings

Year for tax calculation purposes
%
Your current federal income tax bracket
%
Your long-term capital gains tax rate
%
Additional tax on investment income for high earners

100% Free • No signup required • Instant results

Tax Harvesting Analysis Results

XYZ Corp — Long-Term Loss Harvest

Harvesting a $2,500.00 long-term loss from XYZ Corp generates an estimated $675.00 in total tax savings at a 22% federal rate and 5% state rate.

Investment Loss

Cost Basis:
$10,000.00
Current Value:
$7,500.00
Realized Loss:
$2,500.00
Loss Type:
Long-Term
Holding Period:
365 days
Harvest

Tax Savings

Federal Tax Savings:
$550.00
State Tax Savings:
$125.00
NIIT Savings:
$0.00

Total Tax Savings:
$675.00
Net Benefit:
$675.00 27.0%

Loss Utilization

Loss Application Breakdown
Loss Application Amount Tax Savings
Short-Term Gains Offset $0.00 $0.00
Long-Term Gains Offset $0.00 $0.00
Ordinary Income Offset $0.00 $0.00
Loss Carryforward $0.00 $0.00
Strategic Recommendations

Important Tax Considerations

Wash Sale Rule

To ensure your loss is tax-deductible, avoid purchasing "substantially identical" securities:

  • 30-Day Window: Don't buy the same or substantially identical security within 30 days before or after the sale.
  • Alternative Investments: Consider similar but not identical ETFs or funds to maintain market exposure.
  • Spousal & IRA Accounts: Purchases in these accounts can also trigger wash sale rules.
Loss Harvesting Strategy

Maximize the efficiency of your tax-loss harvesting:

  • Short-Term vs. Long-Term: Short-term losses are generally more valuable as they offset income taxed at higher ordinary rates.
  • Year-End Planning: Consider tax-loss harvesting at year-end to offset gains realized during the year.
  • Carryforward Strategy: Losses that exceed the annual limit can be carried forward to future tax years.
Important: This calculator provides estimates only. Tax laws are complex and change frequently. Consult with a qualified tax professional for advice specific to your situation.
Analysis Disclosure

This analysis is based on the information provided and current tax rates. The calculator assumes proper execution of tax-loss harvesting strategies while avoiding wash sale rules. The actual tax savings may vary based on your complete tax situation, future tax law changes, and market conditions. This calculator is provided for educational purposes only and should not be construed as tax or investment advice.

Understanding Tax-Loss Harvesting

Our calculator helps you analyze all aspects of tax-loss harvesting and its impact on your tax liability

Tax Savings Calculations

Instantly calculate potential tax savings from harvesting investment losses based on your tax bracket and specific situation.

Loss Utilization Strategy

Analyze how to optimally apply your losses to maximize tax benefits, with smart allocation across different types of gains and income.

Wash Sale Compliance

Get recommendations for avoiding wash sale rule violations and maintaining market exposure with alternative investments.

Capital Loss Carryforward

Understand the tax implications of carrying forward losses that exceed the annual limit and how they can benefit you in future tax years.

Federal & State Tax Integration

Calculate potential savings across both federal and state taxes, with support for different filing statuses and income levels.

Privacy Focused

All calculations are performed in your browser. Your financial data never leaves your device, ensuring complete security and privacy.

Tax-Loss Harvesting Insights

Understanding the mechanics and implications of tax-loss harvesting

What Is Tax-Loss Harvesting?

Tax-loss harvesting is a strategy that involves selling investments that have declined in value to offset capital gains taxes on other investments that have appreciated. This technique can reduce your overall tax liability while maintaining your portfolio's asset allocation and expected returns. For income investors, the dividend reinvestment calculator quantifies how reinvested dividends accelerate recovery after a drawdown.

Tax Scenario Without Harvesting With Harvesting Potential Savings
Short-Term Gains Taxed at ordinary income rates (up to 37%) Reduced or eliminated by losses Up to 37%
Long-Term Gains Taxed at 0%, 15%, or 20% Reduced or eliminated by losses Up to 20%
No Capital Gains No immediate tax benefit from losses Up to $3,000 can offset ordinary income Varies by tax bracket
Losses > $3,000 Limited annual deduction Excess carried forward to future years Deferred tax benefits

When To Consider Tax-Loss Harvesting

Tax-loss harvesting can be particularly beneficial in certain situations: The free stock valuation calculator also shows the probability of loss and the probability of a 25%-plus gain.

Market Downturns

During significant market corrections or bear markets when investments may be temporarily down

High-Income Years

When you're in a higher tax bracket due to unusually high income or significant capital gains

Year-End Tax Planning

As part of December tax planning to offset realized gains from earlier in the year

Portfolio Rebalancing

When you need to rebalance your portfolio anyway, creating an opportunity to harvest losses

Transitioning Investments

When moving from one investment strategy to another or changing advisors

Frequently Asked Questions

Everything you need to know about tax-loss harvesting and our calculator

The wash sale rule is an IRS regulation that prevents investors from claiming a tax deduction for a security sold at a loss if a "substantially identical" security is purchased within 30 days before or after the sale date.

This rule is important because:

  • It prevents investors from selling securities at a loss solely to claim a tax benefit while maintaining an economically identical position
  • Violations result in the disallowance of the tax loss
  • The disallowed loss gets added to the cost basis of the replacement shares

To avoid triggering the wash sale rule while maintaining market exposure, investors typically purchase similar but not "substantially identical" securities. For example, selling an S&P 500 ETF from one provider and buying a different S&P 500 ETF from another provider, or replacing it with a total market ETF.

The IRS limits how much capital loss you can use to offset ordinary income:

  • Capital losses must first be used to offset capital gains of the same type (short-term losses against short-term gains; long-term losses against long-term gains)
  • Any additional net capital loss can offset the opposite type of capital gain
  • If you still have net capital losses, you can deduct up to $3,000 ($1,500 if married filing separately) against ordinary income per year
  • Any remaining losses above the $3,000 limit can be carried forward to future tax years indefinitely

This means that even if you have a large investment loss, your ability to use it to offset ordinary income (like wages) is limited to $3,000 per year. However, there's no limit on using capital losses to offset capital gains in the current tax year.

The value of tax-loss harvesting for small portfolios depends on several factors:

  • Tax Bracket: Higher tax brackets increase the benefit of harvesting losses
  • Transaction Costs: Trading fees and bid-ask spreads can reduce or eliminate benefits for very small trades
  • Asset Location: Only applicable in taxable accounts, not IRAs or 401(k)s
  • Time Horizon: The longer you can defer taxes, the more valuable harvesting becomes

For small portfolios, tax-loss harvesting may still be worthwhile if:

  • You use a brokerage with zero trading commissions
  • You focus on harvesting larger losses (typically $500+)
  • You're in a 22% or higher tax bracket
  • You have capital gains to offset

Our calculator can help determine if the potential tax savings outweigh any transaction costs for your specific situation.

Tax-loss harvesting affects your cost basis in several ways:

  • Original Investment: When you sell an investment at a loss, that establishes your realized loss for tax purposes
  • Replacement Investment: The purchase price of your replacement investment becomes your new cost basis
  • Wash Sale Adjustments: If you trigger a wash sale, the disallowed loss is added to the cost basis of the replacement shares

It's important to understand that tax-loss harvesting doesn't eliminate taxes permanently—it defers them:

  • The replacement investment typically has a lower cost basis than your original investment
  • If the replacement investment appreciates and is eventually sold, you may owe more in capital gains taxes than if you had never harvested the loss
  • The benefit comes from the time value of money and potential for lower future tax rates

Good record-keeping is essential for tracking cost basis adjustments across multiple tax-loss harvesting transactions, especially when they involve wash sales.

No, tax-loss harvesting is not applicable in tax-advantaged retirement accounts such as:

  • Traditional IRAs
  • Roth IRAs
  • 401(k) plans
  • 403(b) plans
  • Other qualified retirement accounts

This is because:

  • These accounts already have tax advantages (tax-deferred growth or tax-free withdrawals)
  • Transactions within these accounts are not reportable tax events
  • Losses in retirement accounts cannot be deducted on your tax return

Tax-loss harvesting should be focused exclusively on investments held in taxable brokerage accounts. However, be aware that purchases in retirement accounts can still trigger the wash sale rule for sales at a loss in your taxable accounts.

Our calculator includes state tax considerations in the following ways:

  • Customizable State Rate: You can enter your specific state income tax rate (or an average effective rate)
  • State-Specific Treatment: The calculator assumes that your state follows federal treatment of capital gains and losses
  • Combined Analysis: Tax savings calculations include both federal and state tax benefits

Important considerations regarding state taxes:

  • Some states have different rules for capital gains/losses than the federal government
  • A few states don't tax income at all (e.g., Alaska, Florida, Nevada, South Dakota, Texas, Washington, and Wyoming)
  • Some states have flat income tax rates, while others have progressive brackets

For the most accurate state tax calculations, you should verify your state's specific treatment of capital losses. The calculator provides a reasonable approximation for most states, but the exact rules vary by jurisdiction.