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:
- Capital Gains Analysis: Input your realized or unrealized gains across all holdings to identify how much loss harvesting you need
- Loss Position Identification: Determine which underperforming securities offer the most valuable tax losses
- Tax Bracket Impact: Calculate how losses affect your effective tax rate and filing status (single, married filing jointly, head of household)
- Wash-Sale Rule Compliance: Receive alerts if you're planning to repurchase substantially identical securities within 30 days before or 30 days after the sale
- Carryforward Projections: See how unused losses roll forward to future tax years when gains exceed losses
- Tax Savings Estimates: Get a clear dollar amount of potential tax savings based on your 2026 federal tax bracket
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.
| Rule | Details | Penalty for Violation |
|---|---|---|
| Wash-Sale Rule | Cannot 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 Limit | Can deduct up to $3,000 of net capital losses against ordinary income per tax year | Excess losses carry forward indefinitely (no time limit) |
| Form 8949 Reporting | Must report all sales on IRS Form 8949 (Sales of Capital Assets) and Schedule D | Penalties for unreported transactions; IRS receives broker statements |
| Holding Period | Long-term losses (held 1+ year) are more favorable than short-term losses for rates | Short-term losses offset short-term gains first; excess offsets long-term gains |
| Spousal Coordination | If married filing jointly, losses from one spouse's account can offset the other spouse's gains on the joint return | Not 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:
- 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.
- 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.
- 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.
- Multi-Asset Portfolios: Investors holding stocks, bonds, REITs, and alternative investments often have winners and losers across categories. Loss harvesting optimizes the mix.
- 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.