Pentriva
HomeTaxesTax-Loss Harvesting: How to Turn Losses Into Tax Savings

Tax-Loss Harvesting: How to Turn Losses Into Tax Savings

Offset capital gains with investment losses, carry forward unused losses, and avoid the wash-sale rule. A practical guide to harvesting losses without derailing your long-term investment plan.

By James Okafor|Investing & Markets Editor|Reviewed by Maria Torres, CPA|2026-09-09Updated 2026-09-246 min read
SharePostLinkedInFacebook

Key Takeaways

  • Tax-loss harvesting means selling losing investments to realize losses that offset your capital gains.
  • Net losses beyond your gains can offset up to a set amount of ordinary income each year, with the rest carried forward.
  • The wash-sale rule disallows the loss if you rebuy the same or a substantially identical security within 30 days.
  • Harvesting works best in taxable accounts and should never override your long-term investment strategy.

What Tax-Loss Harvesting Is

Tax-loss harvesting is the practice of intentionally selling an investment that has dropped below your purchase price to realize a capital loss. That loss then offsets capital gains elsewhere in your portfolio, reducing the tax you owe. In effect, you convert a paper loss into a real tax benefit while keeping your overall investment plan intact by reinvesting the proceeds into a similar (but not identical) holding. It is one of the few strategies that turns market downturns into a tangible advantage, which is why disciplined investors watch for harvesting opportunities especially during volatile periods.

How Losses Offset Gains and Income

The tax benefit works in a specific order. First, your capital losses offset your capital gains of the same type dollar for dollar — short-term losses against short-term gains, long-term against long-term, then across types if any remain. If your total losses exceed your total gains, you can use up to a set annual amount of the net loss to reduce ordinary income like wages. Any loss beyond that limit is not wasted: it carries forward to future years indefinitely, offsetting future gains or income until it is used up. This makes even a large loss valuable over time.

The Wash-Sale Rule You Must Respect

The most important rule in harvesting is the wash-sale rule. If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the IRS disallows the loss for that year — it is added to the cost basis of the replacement shares instead. To harvest cleanly, either wait at least 31 days to repurchase, or immediately reinvest the proceeds into a similar but not identical investment, such as a different fund tracking a comparable index. This keeps you invested and maintains your market exposure while preserving the deductible loss.

When and Where Harvesting Makes Sense

Tax-loss harvesting only applies in taxable brokerage accounts — losses in tax-advantaged accounts like IRAs and 401(k)s have no tax effect because those accounts are already sheltered. Harvesting is most valuable when you have realized gains to offset, when markets have declined and losses are available, and toward year-end when you can size your gains and losses deliberately. Some investors harvest opportunistically throughout the year during dips. The strategy adds the most value for those in higher tax brackets with meaningful taxable investments and regular capital gains to offset.

Avoiding Common Pitfalls

A few mistakes undercut the strategy. The biggest is letting the tax tail wag the investment dog — never sell a holding you want to keep purely for a tax break if it damages your long-term plan. Watch the wash-sale rule carefully, including in your other accounts and your spouse's, since repurchasing anywhere can trigger it. Remember that harvesting defers rather than eliminates tax in some cases, because reinvesting at a lower basis means larger gains later. Used thoughtfully as a complement to a sound investment plan — not a replacement for one — tax-loss harvesting is a reliable way to improve after-tax returns.

Editorial Note: This article has been reviewed by Maria Torres, CPA for accuracy. Pentriva maintains strict editorial independence — advertiser relationships do not influence our recommendations. See our full disclosures.

Frequently Asked Questions

Related Guides