Tax Loss Harvesting: The Legal Way to Turn Losses Into Wealth

Tax planning

Nobody likes paying taxes. But most individual investors overlook one of the most reliable ways to legally reduce what they owe: tax loss harvesting. It's not a loophole or a scheme—it's explicitly encouraged by the tax code as a way to prevent double taxation of investments. The concept is simple: when you have investments that have declined in value, you can sell them to realize the loss, which offsets capital gains you've earned elsewhere, reducing your tax bill. Meanwhile, you replace the sold investment with a similar one, maintaining your market exposure.

I started tax loss harvesting seriously after calculating how much I'd overpaid in taxes over five years. In 2020 alone, I saved roughly $3,400 I would have otherwise paid in capital gains taxes. Over a 30-year investment career, with compound growth and regular harvesting, the difference can easily be six figures. This isn't about cheating the system—it's about understanding the rules and playing by them completely.

How It Works Step by Step

Imagine you own shares of an S&P 500 ETF that you bought at $400 per share. The market has declined, and those shares are now worth $320. You've lost $80 per share in unrealized losses. If you sell, you realize an $80-per-share capital loss. That loss can offset capital gains you've realized elsewhere—winnings from selling a profitable stock, for instance. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income annually, carrying forward any excess losses to future years.

After selling, you immediately buy a similar investment—one that tracks the same index, for instance. This maintains your market exposure while the wash sale rule prevents you from claiming the loss if you buy the same or substantially identical security within 30 days before or after the sale. The nuance matters: you need to buy a similar but not identical investment to avoid the wash sale rule.

The Wash Sale Rule Explained

The IRS wash sale rule prevents taxpayers from claiming artificial losses by selling a security and immediately buying a "substantially identical" one. If you sell an S&P 500 ETF and buy another S&P 500 ETF within 30 days, the loss is disallowed. The practical solution is to sell an S&P 500 ETF and buy a total market ETF, or sell one ETF and buy a Treasury bond fund temporarily, then rebalance later. The key is that the replacement investment must not be substantially identical.

When Tax Loss Harvesting Makes Sense

Harvesting makes the most sense in years when you've had significant gains elsewhere, you're in a high tax bracket, or you're holding taxable accounts (not IRAs or 401ks, where harvesting has no benefit since those accounts grow tax-deferred). For most people, the effort involved is worth it primarily if you're paying 24% federal income tax or higher. At lower tax brackets, the benefit is smaller.