Tax Loss Harvesting Calculator: Maximize Your Investment Deductions

Identify investment losses strategically and reduce your tax bill with precision calculations.

What Is Tax Loss Harvesting?

Tax loss harvesting is a sophisticated investment strategy that allows you to sell securities at a loss to offset capital gains and reduce your taxable income. Instead of letting those losses sit idle in your portfolio, you can weaponize them to lower your overall tax liability—potentially saving thousands of dollars annually.

The strategy works by realizing losses on underperforming investments, then using those losses to offset gains from other investments or up to $3,000 of ordinary income per tax year. Any unused losses carry forward indefinitely, creating a reserve of tax deductions you can use in future years. This is particularly valuable for high-income earners, active traders, and investors with significant unrealized gains.

In the UK, a similar concept exists through the Capital Gains Tax annual exemption (£3,000 for the 2024/25 tax year), though the mechanics differ slightly under HMRC regulations. However, this guide focuses on the US IRS tax system and Form 8949 reporting requirements.

How Our Tax Loss Harvesting Calculator Works

Our free tax loss harvesting calculator simplifies the complex math behind loss harvesting strategies. Rather than manually tracking gains, losses, and wash-sale rules across dozens of positions, our tool automates the calculations and provides actionable insights in seconds.

Here's what the calculator evaluates:

The calculator uses current IRS tax brackets for 2026 and adjusts for inflation-indexed thresholds. If you're married filing jointly, the standard deduction for 2026 is projected at approximately $29,200 (adjusted from $27,700 in 2025), though these figures change annually.

Tax Loss Harvesting Rules You Need to Know

Understanding IRS regulations is critical—mistakes can trigger audits or disallow your tax losses entirely. The most important rule to master is the wash-sale rule, codified under IRC Section 1091.

RuleDetailsPenalty for Violation
Wash-Sale RuleCannot repurchase substantially identical securities 30 days before or 30 days after the loss sale (61-day window total)Loss disallowed; cost basis adjusted upward on new purchase
Capital Loss LimitCan deduct up to $3,000 of net capital losses against ordinary income per tax yearExcess losses carry forward indefinitely (no time limit)
Form 8949 ReportingMust report all sales on IRS Form 8949 (Sales of Capital Assets) and Schedule DPenalties for unreported transactions; IRS receives broker statements
Holding PeriodLong-term losses (held 1+ year) are more favorable than short-term losses for ratesShort-term losses offset short-term gains first; excess offsets long-term gains
Spousal CoordinationIf married filing jointly, losses from one spouse's account can offset the other spouse's gains on the joint returnNot applicable if filing separately (generally not recommended)

The wash-sale rule doesn't prevent you from harvesting losses—it simply requires you to wait 31 days before buying substantially identical securities. Many investors purchase a similar (but not identical) ETF or fund instead. For example, you could sell your Vanguard S&P 500 ETF (VOO) at a loss and immediately buy the iShares Core S&P 500 ETF (IVV) to maintain market exposure while avoiding wash-sale complications.

Real-World Example: Tax Loss Harvesting in Action

Let's walk through a practical scenario to illustrate how tax loss harvesting works:

Scenario: Sarah is a single filer in California earning $150,000 annually. She has $25,000 in net capital gains from selling tech stocks in early 2026. She also has several underwater positions, including $8,000 in losses from a failed startup investment and $7,000 in losses from a dividend stock that declined.

Without tax loss harvesting, Sarah would owe federal income tax on the full $25,000 of gains. At her marginal tax bracket (22% federal for 2026 single filers in the $47,150–$100,525 range, though her income puts her higher—actually in the 24% bracket at $150,000), she'd owe approximately $6,000 in federal capital gains tax (assuming 15% long-term capital gains rate, which is more favorable than ordinary income rates).

But Sarah harvests her $8,000 loss by selling that underwater investment. She immediately reinvests in a similar sector fund to maintain her intended portfolio allocation. Result: She offsets $8,000 of her $25,000 gains, reducing her taxable gains to $17,000. Her federal tax liability drops to approximately $2,550, saving her $3,450. She still has $7,000 in unused losses she can harvest next year or carry forward indefinitely.

This example assumes long-term capital gains treatment. Short-term gains (held less than one year) are taxed at ordinary income rates, making them even more valuable to offset with losses.

Limitations and Important Considerations

While tax loss harvesting is powerful, it has meaningful constraints you should understand before implementing it:

Annual Loss Limitation: You can only deduct $3,000 of net capital losses against ordinary income each tax year (IRS Publication 550). If your losses exceed $3,000, the remainder carries forward to future years indefinitely. This means harvesting $15,000 in losses in 2026 requires five years of $3,000 annual deductions (assuming no gains offset them).

Wash-Sale Complexity in Retirement Accounts: The wash-sale rule applies differently if you (or your spouse) have substantially identical securities in qualified retirement accounts like 401(k)s or IRAs. If you sell at a loss in a taxable brokerage account but then purchase the same security in an IRA within the 61-day window, the wash-sale rule applies—the loss is disallowed. Married couples must coordinate across all accounts.

State and Local Taxes: Tax loss harvesting provides federal tax savings, but doesn't reduce state income taxes. California residents, for example, still owe state capital gains tax (taxed as ordinary income) on realized gains, even if federal losses offset them. Our calculator focuses on federal tax benefits, but consult a CPA for state-specific impacts.

Alternative Minimum Tax (AMT): High earners may be subject to AMT, which has different rules and phase-outs. Harvested losses might provide less benefit if you're in AMT territory. Use our free calculator to model your specific situation.

When to Use a Tax Loss Harvesting Calculator

Not every investor needs sophisticated loss-harvesting analysis—but many benefit significantly:

  1. High-Income Earners ($150,000+): The higher your income, the higher your marginal tax bracket, and the more valuable each dollar of deductions becomes. A $10,000 loss is worth $2,400 to a 24% bracket earner versus $1,200 to a 12% bracket earner.
  2. Active Traders with Frequent Gains: If you regularly realize capital gains from stock sales, options trading, or rebalancing, you'll have substantial gains to offset with losses.
  3. Concentrated Stock Positions: If you hold a large position in company stock (from an employer, inheritance, or early investment), you likely have significant unrealized gains. Tax loss harvesting on your diversified portfolio lets you offset those gains.
  4. Multi-Asset Portfolios: Investors holding stocks, bonds, REITs, and alternative investments often have winners and losers across categories. Loss harvesting optimizes the mix.
  5. Complex Tax Situations: Self-employed individuals, business owners, and those with rental income benefit from loss harvesting strategies that offset ordinary income.

Conversely, if you're a young investor with years until retirement, low income, and no significant capital gains, tax loss harvesting offers minimal benefit. Start with our calculator to quantify your potential savings—the answer might surprise you.

File your federal and state taxes online — maximum refund guaranteed

Start Filing Free →

Ad

Try TaxCalcTools Calculator →

Frequently Asked Questions

Can I deduct all my capital losses on my tax return?

No. The IRS limits deductions to $3,000 of net capital losses against ordinary income per year (IRC Section 1211). Unused losses carry forward indefinitely, so a $15,000 loss in 2026 provides deductions across five years. However, losses can fully offset unlimited capital gains in any year (losses offset gains dollar-for-dollar before the $3,000 ordinary income limit applies).

What is the wash-sale rule and how does it affect tax loss harvesting?

The wash-sale rule (IRC Section 1091) prevents you from deducting a loss if you repurchase substantially identical securities within 30 days before or 30 days after the sale (61-day window total). If you violate the rule, your loss is disallowed and your cost basis is adjusted upward on the new purchase. Most investors avoid this by waiting 31 days or purchasing a similar but not identical security (e.g., different S&P 500 ETF).

How much can I save with tax loss harvesting?

Your savings depend on your tax bracket and the amount of losses you harvest. A single filer harvesting $10,000 in losses in the 24% federal bracket saves $2,400 in federal taxes. Add state income tax (which varies by state—California's top rate is 13.3%), and your total savings could reach $3,700+. Use our calculator to estimate your personal savings based on your income and realized gains.

Does tax loss harvesting work in retirement accounts like IRAs and 401(k)s?

Not directly. Qualified retirement accounts are tax-deferred, so you don't report gains or losses annually. However, the wash-sale rule applies across all accounts you control (and your spouse's accounts if married). If you sell at a loss in a taxable account but buy substantially identical securities in an IRA within 61 days, the loss is disallowed. This coordination is important for married couples with multiple accounts.

Is tax loss harvesting legal, or is it considered tax evasion?

Tax loss harvesting is entirely legal and IRS-approved. The rules are explicitly codified in IRC Sections 1091 (wash-sale rule) and 1211 (capital loss limitations). Millions of investors and professional advisors use these strategies annually. Evasion involves hiding income or falsely claiming deductions; harvesting uses legal deduction rules exactly as Congress intended.

More from TUDITOOLS

Easy Calculators
100+ free everyday calculators
Snap It Tools
Free image tools — compress, convert, resize
LegalDraftKit
Free legal document templates & generators