Disclosure: Some links on this page are affiliate links. If you sign up through them, The Wealth Repo may earn a commission at no extra cost to you. This is general education, not personalized financial advice.
Tax-loss harvesting lets you sell losing investments to offset gains and up to $3,000 of ordinary income each year, with unused losses carrying forward indefinitely. Here's how the wash-sale rule actually works and where most people mess it up.
Tax-loss harvesting means selling an investment that's lost value, booking the loss on your tax return, and then putting that money back to work somewhere similar. The loss offsets capital gains dollar for dollar, and if your losses exceed your gains, you can use up to $3,000 per year against your regular income, with the rest carried forward to future years indefinitely. Say you have $8,000 in gains from selling a winning stock and you harvest $10,000 in losses elsewhere — you wipe out the gain entirely, apply $2,000 toward ordinary income, and still have nothing left to carry forward. Do this every year and you're effectively getting the government to subsidize part of your losses.
The rule that trips people up is the wash sale rule: if you buy a substantially identical security within 30 days before or after the sale, the loss gets disallowed. Sell a Vanguard S&P 500 fund at a loss and buy another S&P 500 fund from a different company the next day, and you're almost certainly fine. Buy back the exact same fund 10 days later, and the IRS disallows the loss and adds it to your new cost basis instead. The 30-day window counts both directions, so even buying the same stock 20 days before you sell your losing shares can trigger it — people assume the clock only runs forward.
💡 Every dollar you keep from taxes is a dollar that can be invested. Robinhood lets you buy stocks and ETFs commission-free, with no account minimum. Open a Robinhood account →
The biggest mistake isn't breaking the wash sale rule, it's ignoring the strategy entirely during a down year because 'the loss doesn't feel real until I sell.' A loss on paper is worth nothing on your tax return. Someone holding a stock down 40% who refuses to sell because they're convinced it'll bounce back is leaving a tax deduction on the table they could claim and then buy right back into a near-identical position. Robo-advisors like Wealthfront and Betterment automate this daily, harvesting small losses across hundreds of positions — a service that used to be reserved for people with six-figure portfolios and a dedicated advisor.
Timing matters too: you don't need to wait until December. Harvesting works any time during the year, and doing it after a sharp dip rather than waiting for year-end gives you more flexibility to reinvest before a rebound. One real constraint: this only works in taxable brokerage accounts, not IRAs or 401(k)s, since those don't generate taxable capital gains or losses in the first place. If your portfolio is entirely in retirement accounts, this strategy doesn't apply to you at all.
Key Takeaways
- ✅ Losses offset gains dollar-for-dollar, then up to $3,000/year against income
- ✅ Extra losses carry forward to future tax years with no expiration
- ✅ Wash sale rule: no repurchasing the same security within 30 days either direction
- ✅ Swap into a similar (not identical) fund to stay invested and keep the deduction
- ✅ Only works in taxable brokerage accounts — IRAs and 401(k)s don't qualify
- ✅ Robo-advisors now automate this daily instead of once a year in December