Tax-loss harvesting is selling investments at a loss to offset capital gains and up to $3,000 of ordinary income per year. Losses beyond $3,000 carry forward indefinitely. Watch out for the wash-sale rule: you cannot repurchase the same or substantially identical security within 30 days before or after the sale or the loss is disallowed.
$3,000Annual Income Offset
IndefiniteLoss Carryforward
30 DaysWash-Sale Window
No LimitGain Offset

What Is Tax-Loss Harvesting

Tax-loss harvesting is a tax strategy that involves selling securities at a capital loss to offset capital gains realized from other investments. By intentionally realizing losses, you reduce your taxable capital gains — and if your losses exceed your gains, you can deduct up to $3,000 per year from your ordinary income ($1,500 if married filing separately).

This strategy is most commonly used by investors with taxable brokerage accounts who hold positions that have declined in value. Rather than simply holding a losing position and waiting for it to recover, you sell it, lock in the loss for tax purposes, and then reinvest the proceeds — potentially into a similar (but not substantially identical) investment to maintain market exposure.

Tax-loss harvesting does not eliminate the economic reality of a loss, but it reduces the after-tax cost of that loss by generating a tax benefit. For example, a $5,000 realized loss might save you $1,100 in taxes if you're in the 22% bracket and offsetting ordinary income, or even more if offsetting short-term capital gains taxed at higher rates.

Why Harvest at All?

Without tax-loss harvesting, a $5,000 unrealized loss sitting in your portfolio provides zero tax benefit. By realizing the loss, you convert it into a tax asset that can save you money this year, next year, or decades from now — carryforward losses never expire. This is why tax-loss harvesting is one of the most universally recommended tax strategies for taxable investment accounts.

How Tax-Loss Harvesting Works

The mechanics are straightforward, but the execution requires attention to the wash-sale rule (covered in detail below). Here is a step-by-step example that illustrates how tax-loss harvesting reduces your tax bill.

Worked Example

Imagine you have two investments in your taxable brokerage account:

  • Stock A: Bought for $10,000, now worth $7,000 (unrealized loss of $3,000)
  • Stock B: Bought for $15,000, now worth $20,000 (unrealized gain of $5,000)

Without harvesting: If you sell Stock B only, you realize a $5,000 gain. Assuming a 15% long-term capital gains rate, you owe $750 in tax. The $3,000 loss on Stock A remains unrealized and provides no benefit.

With harvesting: You sell both Stock B (realizing the gain) and Stock A (realizing the loss). Your net capital gain is now $5,000 - $3,000 = $2,000. At 15%, you owe only $300. The tax-loss harvesting saved you $450. Plus, you can reinvest the $7,000 from Stock A into a similar (but not identical) fund to stay in the market.

Losses Offset Gains Dollar-for-Dollar

Capital losses offset capital gains on a dollar-for-dollar basis. Short-term losses offset short-term gains first, then long-term gains. Long-term losses offset long-term gains first, then short-term gains. This ordering matters because short-term gains are taxed at higher ordinary income rates (up to 37%), so offsetting them first maximizes your tax savings.

See how capital gains taxes affect your bottom line with our complete capital gains tax rates guide.

Offset Gains First, Then Income

When you have both capital gains and capital losses in the same tax year, the tax code requires you to apply losses in a specific order. Understanding this hierarchy is essential for maximizing your tax benefit.

The Netting Process

  1. Net short-term gains and losses — Combine all your short-term gains and short-term losses. If the result is a net short-term gain, it moves forward. If a net short-term loss, it carries over to step 3.
  2. Net long-term gains and losses — Combine all your long-term gains and long-term losses. If the result is a net long-term gain, it moves forward. If a net long-term loss, it carries over.
  3. Combine the results — If you have a net short-term gain and a net long-term loss (or vice versa), they offset each other. If both are gains, they are taxed separately (short-term at ordinary rates, long-term at preferential rates). If both are losses, you have a net capital loss.
  4. Apply to ordinary income — If your net capital loss exceeds zero, you can deduct up to $3,000 ($1,500 if MFS) against ordinary income. The remainder carries forward.

Why this order matters: Short-term capital gains are taxed at your marginal ordinary income rate (10%–37%). Long-term gains are taxed at preferential rates (0%, 15%, or 20%). Because the tax code prioritizes offsetting short-term gains with short-term losses first, harvested losses are most valuable when they offset short-term gains — potentially saving you up to 37% vs 20% on the same dollar amount.

The $3,000 Ordinary Income Limit

One of the most attractive features of tax-loss harvesting is the ability to deduct net capital losses against ordinary income — wages, salary, self-employment income, interest, and rental income. This deduction is capped at $3,000 per year ($1,500 for married filing separately).

This deduction is particularly valuable because ordinary income is taxed at higher rates than capital gains. If you are in the 24% federal bracket, a $3,000 deduction saves you $720 in federal taxes. Add state income tax (say 5%), and the total savings approach $870 — all from realizing losses you were already holding.

How the Limit Works

  • If your net capital loss for the year is exactly $3,000, you deduct the full amount against ordinary income. No carryforward.
  • If your net capital loss is $8,000, you deduct $3,000 this year and carry forward the remaining $5,000 to next year.
  • If your net capital loss is $1,500, you deduct the full $1,500 (below the cap — you can deduct up to the cap, not exactly the cap).
Stack Losses Over Multiple Years

If you have a large unrealized loss, you do not need to realize it all at once. You can strategically harvest losses each year to hit the $3,000 cap annually, spreading the tax benefit across many years. For a $30,000 loss harvested in chunks of $3,000 per year, you'd get a deduction for a full decade.

Wash-Sale Rule Explained

The wash-sale rule (IRS Section 1091) is the single most important restriction to understand when implementing tax-loss harvesting. Violating it can invalidate your entire loss — turning a planned tax benefit into no benefit at all.

What Is a Wash Sale?

A wash sale occurs when you sell a security at a loss and repurchase the same or substantially identical security within 30 days before or after the sale — a 61-day window total (30 days before, the day of sale, 30 days after).

When a wash sale occurs, the loss is disallowed for tax purposes. The disallowed loss is added to the cost basis of the replacement shares, effectively deferring (not eliminating) the loss. You will eventually realize the loss when you sell the replacement shares outside the wash-sale window.

What Counts as "Substantially Identical"?

The IRS has not provided a bright-line definition, but the general guidance includes:

  • Same stock: Selling Apple (AAPL) and buying Apple back within 30 days = wash sale.
  • Same ETF: Selling VOO (S&P 500 ETF) and buying VOO back = wash sale.
  • Different class of same security: Selling one share class and buying another of the same company may be substantially identical.
  • Options and derivatives: Selling stock and buying call options on the same stock within the window can trigger the rule.
  • NOT a wash sale: Selling VOO (S&P 500) and buying VTI (total market) or IVV (different S&P 500 ETF issuer) is generally not considered substantially identical.

The IRA Trap

Buying substantially identical securities in an IRA (including a Roth IRA) within the wash-sale window will also trigger a wash sale — and the consequence is worse. Since IRAs do not allow losses to be deducted, the disallowed loss from your taxable account is permanently lost. Never buy the same security you sold at a loss in an IRA within 30 days.

ScenarioWash Sale?Tax Consequence
Sell AAPL at loss, buy AAPL in taxable account 10 days laterYesLoss disallowed, added to basis of new shares
Sell AAPL at loss, buy AAPL in Roth IRA 5 days laterYesLoss disallowed permanently
Sell AAPL at loss, buy MSFT (different stock) next dayNoLoss allowed
Sell VOO at loss, buy VTI next dayGenerally NoLoss allowed (different index)
Sell AAPL at loss, buy AAPL 31 days laterNoLoss allowed

Tax-loss harvesting must account for the wash sale rule, which disallows losses if you buy a substantially identical security within 30 days before or after the sale.

Tax-Loss Harvesting vs Tax-Gain Harvesting

While tax-loss harvesting is the more common strategy, tax-gain harvesting is its opposite — and it can be equally valuable in the right circumstances.

Tax-Gain Harvesting

Tax-gain harvesting means intentionally realizing capital gains in years when your income is low enough to fall into the 0% long-term capital gains bracket. For 2026, the 0% bracket applies to single filers with taxable income up to approximately $47,000 and married couples up to approximately $94,000.

By realizing gains in low-income years, you increase your cost basis on the replacement shares — meaning less future gain (or a larger future loss) when you eventually sell. This strategy is most useful for:

  • Investors who are between jobs or in a low-income year
  • Retirees living off savings with limited other income
  • Students or part-time workers with low taxable income

Which Strategy Should You Use?

StrategyBest ForWhen to Use
Tax-Loss HarvestingOffsetting gains & reducing ordinary incomeAny year with unrealized losses
Tax-Gain HarvestingFilling the 0% capital gains bracketLow-income years only
BothWash-sale aware — offset gains with lossesPortfolios with both winners and losers

Need to estimate your taxable income? Use our tax refund calculator to determine your marginal rate and see how harvesting fits into your overall tax picture.

When to Harvest Losses (Year-End Strategy)

Tax-loss harvesting can be done at any time during the year, but most investors focus on the fourth quarter (October through December) for several practical reasons.

Why Year-End Is Prime Time

  • Full picture available: By late in the year, you know your year-to-date realized gains and can calculate exactly how much loss you need to offset them.
  • Mutual fund distributions: Many mutual funds distribute capital gains in November and December. Harvesting losses before these distributions can offset the tax impact.
  • Market volatility: Year-end market movements often create loss-harvesting opportunities in sectors that underperformed.
  • Tax planning window: Year-end is when most investors review their portfolio and make adjustments before the January 1 reset.

The 30-Day Calendar Trap

If you harvest a loss on December 15, the wash-sale rule means you cannot buy back the same security until January 14 or later. This is fine since you are simply waiting the required 31 days into the new year. However, if you harvest on December 1 and buy back on December 20 (only 19 days later), that is a wash sale — the loss is disallowed even though you did it all in the same calendar year.

Year-Round Harvesting

Some investors practice continuous tax-loss harvesting, scanning their portfolios monthly or quarterly for loss positions. This approach captures losses before they potentially rebound, and it smooths out the tax benefit over multiple years. Automated robo-advisors (discussed below) make this approach much more practical for the average investor.

Cryptocurrency Tax-Loss Harvesting

The IRS treats cryptocurrency as property, not currency, for tax purposes. This means every crypto trade, sale, or disposal is a taxable event — and losses are fully eligible for tax-loss harvesting.

Key Crypto Harvesting Rules

  • Same rules apply: Crypto losses offset capital gains and up to $3,000 of ordinary income, just like stock losses. Unused losses carry forward indefinitely.
  • Wash-sale rules do apply to crypto: As of 2026, the wash-sale rule applies to cryptocurrency. You cannot sell Bitcoin at a loss and buy Bitcoin back within 30 days. Prior to 2025, crypto had a wash-sale loophole — that has been closed by the One Big Beautiful Bill Act.
  • Crypto-to-crypto trades: Trading Bitcoin for Ethereum is a taxable event. If Bitcoin is worth less than your cost basis at the time of the trade, you realize a loss.
  • Cost basis method: For crypto, you can use specific identification (spec ID) to choose which lots to sell, maximizing your harvested losses. This is critical for tax efficiency.

Crypto-Specific Considerations

Cryptocurrency volatility creates abundant tax-loss harvesting opportunities. A coin that drops 70% may later recover — but if you harvested the loss during the downturn, you locked in a tax benefit. Just remember: harvesting a loss on a coin you believe in means you must wait 31 days to repurchase it, or buy a different cryptocurrency instead to maintain exposure.

Track Every Transaction

Cryptocurrency tax-loss harvesting requires meticulous record-keeping. Each trade, transfer, and sale generates a tax lot. Without a crypto tax software or detailed spreadsheet, tracking cost basis across multiple exchanges and wallets is extremely difficult. The IRS has ramped up enforcement of crypto reporting, so accuracy is essential. See our complete crypto tax guide for more details.

Automated Robo-Advisor Harvesting

Many modern robo-advisors (Wealthfront, Betterment, and others) offer automated tax-loss harvesting as a feature. This technology continuously scans your portfolio for loss positions, executes harvests automatically, and reinvests the proceeds into similar ETFs to maintain your target asset allocation.

How Automated Harvesting Works

Robo-advisors use direct indexing or ETF pair trading to create tax-loss harvesting opportunities. With ETF pair trading, the robo-advisor holds a primary ETF (e.g., VOO for US large-cap) and a secondary ETF (e.g., IVV or SPY) that tracks a similar index. When VOO drops, the robo sells VOO at a loss and buys IVV — maintaining market exposure while realizing the loss.

Pros and Cons

ProsCons
No manual effort requiredManagement fees (typically 0.25%–0.50% of AUM)
Harvests continuously, not just at year-endLess control over which lots are sold
Automatic wash-sale avoidance via ETF pairsOnly available on the robo's selected ETFs
Tax-loss harvesting can boost after-tax returns by 0.5%–1.5% annuallyTax-loss harvesting benefits may decrease over time as losses accumulate

For investors who prefer a hands-off approach and have account balances above the robo-advisor minimums (typically $500–$5,000), automated tax-loss harvesting can be a worthwhile feature — especially if the robo-advisor also handles rebalancing and dividend reinvestment.

Tracking Carryforward Losses

Capital losses that exceed your capital gains plus the $3,000 ordinary income deduction do not disappear. They carry forward indefinitely until fully used. However, you must track these carryforward losses carefully — the IRS does not do it for you.

How Carryforward Works

When you file your tax return, you report your capital gains and losses on Schedule D and Form 8949. If your net capital loss exceeds the $3,000 deduction limit, the remaining loss carries forward to the next tax year. The carryforward retains its character:

  • Short-term carryforward: Must first offset short-term gains in the next year
  • Long-term carryforward: Must first offset long-term gains

Practical Tracking Tips

  • Keep your prior-year tax return: The carryforward amount is listed on Schedule D, Line 16 and Line 21.
  • Use a spreadsheet: Track your cumulative carryforward by year, noting whether it is short-term or long-term.
  • Check your brokerage: Many brokerages now track carryforward losses in their tax center, but always verify against your own records.
  • No expiration: Unlike some tax attributes (such as charitable contribution carryforwards which have a 5-year limit), capital loss carryforwards never expire.
Carryforward Example

In 2026, you realize a net capital loss of $15,000. You deduct $3,000 against ordinary income on your 2026 return. The remaining $12,000 carries forward to 2027. In 2027, you have $4,000 in capital gains — you use $4,000 of the carryforward to offset them entirely, leaving $8,000. You can then deduct another $3,000 against 2027 ordinary income, leaving $5,000 to carry forward to 2028. Repeat until the loss is exhausted.

Frequently Asked Questions

Tax-loss harvesting is the practice of selling investments that have declined in value to realize a capital loss. This realized loss can then be used to offset capital gains from other investments and up to $3,000 of ordinary income per year. Any unused losses carry forward indefinitely to future tax years. It is a widely recommended strategy for taxable brokerage accounts but does not apply to tax-advantaged accounts like IRAs or 401(k)s.
Tax-loss harvesting reduces your tax bill by using realized capital losses to cancel out realized capital gains. If your losses exceed your gains, you can also deduct up to $3,000 per year against ordinary income (wages, salary, self-employment income). Losses beyond $3,000 carry forward to future years. For example, if you have $10,000 in capital gains and $8,000 in losses, you only pay tax on $2,000 of net gains. At the 15% long-term capital gains rate, that saves you $1,200 in taxes.
The wash-sale rule (IRS Section 1091) disallows a capital loss if you repurchase the same or substantially identical security within 30 days before or after the sale. The disallowed loss is added to the cost basis of the new shares. This rule applies across all accounts you control, including IRAs. To avoid a wash sale, wait at least 31 days before buying back the same security, or purchase a similar but not substantially identical fund instead. The rule applies to stocks, ETFs, mutual funds, options, and cryptocurrency.
You can deduct up to $3,000 per year ($1,500 if married filing separately) of net capital losses against ordinary income. There is no limit on how much you can use to offset capital gains — losses offset gains dollar-for-dollar with no cap. Losses beyond the $3,000 annual limit carry forward indefinitely to future tax years, maintaining their character as short-term or long-term. If you have $50,000 in net losses, you can offset unlimited gains and deduct $3,000 per year against income until fully used.
Yes, capital losses that exceed your capital gains plus the $3,000 annual ordinary income deduction carry forward indefinitely to future tax years. The carryforward losses retain their character — short-term losses remain short-term and long-term losses remain long-term. You must track these carryforward amounts on Schedule D and Form 1040 each year until fully utilized. There is no expiration date for capital loss carryforwards, unlike many other tax attributes which expire after a set number of years.
Yes, tax-loss harvesting applies to cryptocurrency just like any other capital asset. Crypto is treated as property by the IRS, so realized losses on crypto sales can offset capital gains and up to $3,000 of ordinary income. The wash-sale rule now applies to crypto — you cannot repurchase the same cryptocurrency within 30 days before or after the sale if you want to claim the loss. Note that crypto-to-crypto trades are also taxable events that trigger gain or loss. Because crypto is highly volatile, it can offer significant tax-loss harvesting opportunities during market downturns.
The most common time to harvest tax losses is during the fourth quarter of the year (October through December) when you can assess your year-to-date gains and losses. However, tax-loss harvesting can be done at any time throughout the year whenever a position is in the loss. Many investors focus on year-end because they have a clearer picture of their overall tax situation. If you harvest losses before year-end, be mindful of the 30-day wash-sale window extending into January. Continuous harvesting (monthly or quarterly) is also an effective strategy and is automated by many robo-advisors.
No, you cannot harvest tax losses in tax-advantaged retirement accounts such as 401(k)s, traditional IRAs, or Roth IRAs. Losses realized inside these accounts do not generate a tax deduction because the accounts themselves are tax-sheltered. However, losses in a taxable brokerage account are eligible. Be aware that buying substantially identical securities in your IRA within the wash-sale window can trigger a wash sale that disallows losses in your taxable account — this is a common trap for investors who manage both taxable and retirement accounts. This is sometimes called the "IRA wash-sale trap."
Reviewed by Krishn
K

As a tax content specialist, I base this tax-loss harvesting guide on IRS Sections 1211 (limitation on capital losses) and 1212 (capital loss carryback and carryforward), Section 1091 (wash sales), and IRS Publication 550 (Investment Income and Expenses). Tax-loss harvesting is one of the most straightforward yet underutilized tax strategies available to individual investors. The key is understanding the wash-sale rule and the ordering of loss application — those two concepts account for 90% of the mistakes I see in practice. I update this guide for each tax year as inflation adjustments and legislation change the relevant limits.

KrishnLead Tax Content Strategist, TaxCalcHQ

Disclaimer: The tax-loss harvesting information on this page is based on IRS Sections 1211, 1212, and 1091 as in effect for the 2026 tax year, and is informed by IRS Publication 550. Actual tax treatment of capital losses depends on your specific circumstances including holding periods, wash-sale activity, and your overall tax situation. This content is for informational purposes only and does not constitute investment or tax advice. Consult a qualified tax professional or CPA for advice specific to your situation. Past market performance does not guarantee future results. TaxCalcHQ is not affiliated with the IRS or any government agency.