What tax loss harvesting actually means
Tax loss harvesting is the practice of selling an investment at a loss so you can use that loss to reduce the taxes you owe on investment gains elsewhere. You sell a security that has dropped in value, lock in the loss, and then use it to offset gains from other investments or up to $3,000 of ordinary income in a single tax year. Any unused losses carry forward to future years.
The goal is not to avoid losses — losses happen in any portfolio. The goal is to make those losses work for you by reducing your tax bill instead of just sitting on the loss and paying full tax on your gains. You end up with the same overall portfolio value, but a smaller tax liability.
Key Takeaways
- You sell a losing investment, record the loss, and use it to offset capital gains from winning investments or up to $3,000 of ordinary income per year.
- Unused losses roll forward to future tax years, so a large loss in one year does not go to waste.
- The wash-sale rule prevents you from buying back the same or substantially identical security within 30 days before or after the sale, or the loss is disallowed.
- You need to track your cost basis (what you paid) and sale price for each position, and report the transactions on Schedule D when you file taxes.
- Tax loss harvesting works best when you have significant capital gains in the same year or when you want to offset ordinary income over multiple years.
Identifying which positions to harvest
Start by reviewing your investment account and listing every position that is currently underwater — meaning the current market value is lower than what you paid for it. Your brokerage statement or portfolio tracker will show your cost basis and current value side by side.
Prioritize positions with the largest losses first, because those will offset the most tax. However, also consider which positions you actually want to sell. If a stock has dropped 15 percent but you believe it will recover, you may decide the tax benefit is not worth giving up the upside. Tax loss harvesting is optional; you only harvest losses that make sense for your overall strategy.
Look at the time you have held each position too. Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains (held one year or less). If you have a choice between harvesting a short-term loss or a long-term loss, the short-term loss is often more valuable because it offsets short-term gains, which would otherwise be taxed at your ordinary income rate.
Executing the sale
Once you have identified a position to harvest, place a sell order in your brokerage account just as you would for any other sale. Sell the full position or a portion of it — you control how much to harvest. The sale settles in the normal timeframe, usually one to two business days.
Record the sale details: the security name, the number of shares sold, the date of sale, your cost basis per share, and the sale price per share. Your brokerage will send you a confirmation, and this information will appear on your year-end tax documents. Keep these records; you will need them when you file your tax return.
The cash from the sale sits in your account. You now have a realized loss that you can use to offset gains. Do not rush to redeploy the money when ready — if you buy back the same security within 30 days, the wash-sale rule kicks in and disallows your loss.
Understanding the wash-sale rule
The wash-sale rule is the main constraint on tax loss harvesting. It says that if you sell a security at a loss, you cannot buy back that same security or a substantially identical one within 30 days before the sale or 30 days after the sale. If you do, the IRS disallows the loss and adds it to your cost basis in the new purchase instead.
The 30-day window runs from 30 days before the sale through 30 days after. So if you sell on day 15, you cannot buy back until day 46. This rule applies to the same security and to substantially identical securities — which typically means the same stock, the same fund, or a fund tracking the same index.
To avoid triggering the wash-sale rule, replace the harvested position with a different security in the same asset class. If you sold a U.S. large-cap stock fund at a loss, buy a different U.S. large-cap fund. If you sold an individual stock, buy a different stock in the same sector or a broad index fund. After 30 days, you can move back to your original holding if you want.
Tracking gains and losses for tax time
Throughout the year, keep a running tally of your realized gains and losses. Every time you sell an investment, note whether it was a gain or a loss and whether it was short-term (held one year or less) or long-term (held over one year). Your brokerage provides this information on your monthly or quarterly statements.
At year-end, your brokerage will send you a Form 1099-B, which reports all your sales and their proceeds. You will also receive a Form 8949 (Sales of Capital Assets) from your brokerage if you have significant activity. These forms feed into Schedule D (Capital Gains and Losses), which is where you report your net gain or loss for the year.
If your total losses exceed your total gains, you can deduct up to $3,000 of the excess loss against ordinary income (wages, interest, etc.) in that tax year. Any loss beyond $3,000 carries forward to the next year, where you can use it to offset gains or deduct another $3,000 against ordinary income. This carryforward continues indefinitely until the loss is fully used.
When tax loss harvesting makes the most sense
Tax loss harvesting is most valuable when you have significant capital gains in the same year. If you sold a winning stock or fund and owe tax on the gain, harvesting losses from other positions can reduce or eliminate that tax bill. The math is straightforward: a $10,000 loss offsets a $10,000 gain, and you owe no tax on that portion.
It also makes sense if you are in a high tax bracket. The higher your marginal tax rate, the more valuable each dollar of loss is. Someone in the 37 percent federal bracket saves $370 in federal tax for every $1,000 of loss harvested; someone in the 12 percent bracket saves $120.
Tax loss harvesting can also be useful even without gains in the current year. If you have a large loss, you can deduct $3,000 against ordinary income this year and carry the remaining loss forward. Over time, you chip away at the loss and reduce your tax bill across multiple years. This is especially valuable if you expect to have gains in future years.
Common mistakes to avoid
The most common mistake is buying back the same security too quickly and triggering the wash-sale rule. Set a calendar reminder for 31 days after you sell, or use your brokerage's tools to flag substantially identical securities. Some brokerages have wash-sale alerts built in.
Another mistake is harvesting losses without a clear tax strategy. If you have no gains to offset and you are in a low tax bracket, the $3,000 deduction against ordinary income may not be worth the effort and the risk of wash-sale violations. Harvesting makes the most sense when you have a specific tax liability to reduce.
Do not assume all losses are equal. A short-term loss is more valuable than a long-term loss because it offsets short-term gains, which are taxed at ordinary income rates. A long-term loss offsets long-term gains, which are taxed at preferential rates (0, 15, or 20 percent depending on income). Prioritize harvesting short-term losses first.
Frequently Asked Questions
Can I harvest losses in a retirement account like an IRA or 401(k)?
No. Retirement accounts are tax-deferred, so you do not pay tax on gains or losses inside the account. The IRS does not allow you to harvest losses in these accounts because there is no tax benefit to claim. Tax loss harvesting only works in taxable brokerage accounts.
What happens if I have more losses than gains in a year?
You can deduct up to $3,000 of net losses against ordinary income (like wages or interest) in that tax year. Any losses beyond $3,000 carry forward to future years indefinitely. You can use them to offset future gains or deduct another $3,000 against ordinary income each year until the loss is exhausted.
Does the wash-sale rule explore if I buy a similar fund instead of the exact same one?
It depends on how similar. If you sell a fund tracking the S&P 500 and buy a different S&P 500 fund within 30 days, the IRS may consider them substantially identical and disallow the loss. If you buy a fund tracking a different index (like the Russell 2000), you are likely safe. When in doubt, wait the full 30 days or consult a tax professional.
Do I need to report tax loss harvesting on my tax return?
Yes. Your brokerage reports all sales on Form 1099-B, which the IRS receives. You report your gains and losses on Schedule D. If you harvested losses to offset gains, the net result appears on your return. The IRS matches your reported numbers to the 1099-B, so accuracy matters.
Can I harvest losses if I am down overall but some positions are up?
Yes. You can sell losing positions to harvest losses and keep winning positions. The loss offsets the gain from the winners, reducing your overall tax bill. You end up with a smaller portfolio (because you sold the losers), but a lower tax liability on the gains you kept.