No investor enjoys watching a position fall in value. But a losing investment can still do useful work for your portfolio. Tax-loss harvesting is a strategy that uses realized losses to offset taxable gains, potentially lowering your tax bill while keeping your long-term plan on track. Here’s how it works, the rules you must follow, and the mistakes that can erase the benefit.
What Is Tax-Loss Harvesting?
Tax-loss harvesting means selling an investment that has dropped below what you paid for it, realizing the capital loss, and using that loss to reduce taxes on other gains. To stay invested, you typically reinvest the proceeds in a similar, but not identical, investment.
The strategy only works in taxable brokerage accounts. Losses inside IRAs, 401(k)s, and other tax-advantaged accounts don’t produce deductible capital losses, because those accounts aren’t taxed year to year.
How Tax-Loss Harvesting Works
Under U.S. tax rules, capital losses first offset capital gains. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income each year ($1,500 if married filing separately). Any remaining loss carries forward to future years with no expiration date.
A Simple Example
Say you sold a stock this year for a $10,000 long-term gain. You also hold a fund that’s down $7,000. If you sell the fund before year-end, the $7,000 loss offsets most of the gain, so you’re taxed on only $3,000. If you then buy a comparable fund, your market exposure stays roughly the same.
Short-Term vs. Long-Term Losses
Losses are matched by type first. Short-term losses (assets held one year or less) offset short-term gains, and long-term losses offset long-term gains. Leftover losses can then offset the other category. Because short-term gains are taxed at ordinary income rates, harvesting losses against them can be especially valuable. For a refresher on how gains are taxed, see our capital gains tax guide.
The Wash-Sale Rule: The Biggest Trap
The wash-sale rule stops investors from selling at a loss and immediately buying back the same investment just to claim the deduction. A wash sale occurs if you buy a “substantially identical” security within 30 days before or after the sale, a 61-day window in total.
If you trigger a wash sale, the loss is disallowed for now and added to the cost basis of the replacement shares. Keep these points in mind:
- The rule applies across all your accounts, including your spouse’s accounts and your IRA.
- Buying the replacement inside an IRA can wipe out the loss permanently, because the basis adjustment doesn’t help in a retirement account.
- Automatic dividend reinvestment can accidentally trigger a wash sale on a small number of shares.
- Swapping between two funds that track the exact same index is risky, so many investors pick funds that follow different indexes.
The IRS explains these rules in detail in Publication 550, Investment Income and Expenses.
Smart Tax-Loss Harvesting Strategies
1. Harvest Throughout the Year
Many investors wait until December, but market dips can happen any time. Reviewing your portfolio after a sharp decline lets you capture losses that might disappear by year-end.
2. Swap Into a Similar Investment
Replace an S&P 500 fund with a total market fund, or swap a single large-cap tech stock for a sector ETF. You keep similar exposure without buying a substantially identical security.
3. Pair Harvesting With Rebalancing
If your allocation has drifted, selling losing positions can help you rebalance and capture tax benefits at the same time.
4. Use Specific Lot Identification
If you bought shares at different prices, sell the lots with the highest cost basis. This maximizes the realized loss.
5. Bank Losses for the Future
Even in a year with no gains, harvested losses carry forward. They can offset gains later, when you sell an appreciated asset such as a business interest or investment property.
Benefits and Limitations
Benefits
- Reduces current-year taxes on realized gains
- Offsets up to $3,000 of ordinary income each year
- Unused losses carry forward indefinitely
- Helps keep portfolios rebalanced and diversified
Limitations
- It lowers your cost basis, which can mean larger gains later, so it often defers taxes rather than eliminating them
- It adds complexity and record-keeping
- It offers little benefit if you’re in a low bracket or the 0% long-term capital gains bracket
- Frequent swaps can create trading costs or small tracking differences
Who Should Consider Tax-Loss Harvesting?
The strategy tends to deliver the most value for:
- Investors in higher federal and state tax brackets
- People with significant short-term capital gains
- Anyone who sold a large appreciated asset this year
- Investors with sizable taxable brokerage accounts
Many robo-advisors and brokerages now offer automated tax-loss harvesting, which scans portfolios daily and executes swaps when losses appear. Automation is convenient, but you still need to watch for wash sales caused by activity in accounts the software can’t see, such as a spouse’s IRA or a workplace plan.
Frequently Asked Questions
What is the deadline for tax-loss harvesting?
The sale generally must take place by the last trading day of the calendar year to count for that tax year.
Can harvested losses offset dividend income?
Not directly. Capital losses offset capital gains first, but any net loss can reduce ordinary income, which includes non-qualified dividends, up to the $3,000 annual limit.
Does tax-loss harvesting work in a Roth IRA?
No. Retirement accounts don’t generate deductible capital losses.
Final Thoughts
Tax-loss harvesting is one of the few ways investors can benefit from a market downturn. Used carefully, with close attention to the wash-sale rule, it can lower your tax bill and improve after-tax returns over time. Tax situations vary widely, so consider talking with a tax professional or financial advisor before making trades.
