Tax-Loss Harvesting: Reduce Your Tax Bill While Investing
Tax-loss harvesting lets you turn investment losses into real tax savings without disrupting your long-term strategy. This guide explains how it works, the wash-sale rule, when it makes sense, and how to implement it in your portfolio.
Every investor dreads portfolio losses. But there is one silver lining to investments that have declined in value: the IRS allows you to use those losses to offset taxable gains elsewhere in your portfolio — and in some cases, even reduce your ordinary income. This strategy is called tax-loss harvesting, and for investors in higher tax brackets with significant taxable accounts, it can save thousands of dollars per year without meaningfully changing the long-term composition of their portfolio.
Tax-loss harvesting is one of the few investment strategies where the benefit is guaranteed: you are converting paper losses into a real, quantifiable tax reduction. Understanding how it works, how to avoid the wash-sale rule that can invalidate the tax benefit, and when it makes the most financial sense turns a passive portfolio management task into a meaningful wealth-building tool.
Table of Contents
- What Is Tax-Loss Harvesting?
- How the Strategy Works Step by Step
- The Wash-Sale Rule: The Critical Constraint
- How Much Can You Actually Save?
- When Tax-Loss Harvesting Makes the Most Sense
- How to Implement It in Your Portfolio
- Limitations and Risks
- Automated Tax-Loss Harvesting
What Is Tax-Loss Harvesting?
Tax-loss harvesting (TLH) is the practice of selling investments that have declined below their purchase price to realize a capital loss, then using that loss to offset capital gains or reduce taxable income. The key insight is that a realized loss is a genuine tax asset — it reduces the amount of capital gains you owe taxes on in the current year.
The beauty of TLH is that it does not require you to abandon your investment strategy. After selling the losing position, you immediately reinvest the proceeds in a similar but not identical investment that maintains your target portfolio allocation. You harvest the tax benefit without significantly changing your market exposure.
A simple example: You own $10,000 worth of an S&P 500 ETF that has fallen to $8,000 — a $2,000 unrealized loss. You sell it, immediately buy a different S&P 500 ETF with the proceeds, and claim a $2,000 capital loss on your tax return. If you also have $2,000 of capital gains elsewhere that year, those gains are now offset to zero. In the 15% long-term capital gains bracket, that is a $300 tax saving from a 20-minute transaction.
How the Strategy Works Step by Step
Step 1 — Identify positions with unrealized losses. Review your taxable brokerage account (not IRAs or 401ks — losses in tax-advantaged accounts have no direct tax benefit) for positions trading below your cost basis. Modern brokerage platforms display your cost basis alongside current value, making this straightforward. Focus on positions with meaningful losses — the administrative effort of harvesting a $50 loss is rarely worthwhile.
Step 2 — Sell the losing position. Execute a sale of the underperforming position, realizing the capital loss. Note the specific tax lots involved if you have multiple purchases of the same security at different prices — using specific identification ("specific lot" accounting) allows you to choose which lots to sell, maximizing the loss you harvest. The default FIFO (first-in, first-out) method often does not maximize tax-loss harvesting efficiency.
Step 3 — Immediately reinvest in a similar investment. To maintain your market exposure and avoid missing a potential recovery, immediately invest the proceeds in a different fund that tracks the same or a similar index. For example, if you sold Vanguard S&P 500 ETF (VOO), you might reinvest in iShares Core S&P 500 ETF (IVV) — a different ETF tracking the same index. The IRS requires the replacement investment to be "not substantially identical" to the sold position (the wash-sale rule, covered below).
Step 4 — Report the loss on your taxes. Your brokerage will issue a Form 1099-B documenting the sale. Capital losses are reported on Schedule D of your federal tax return. Losses first offset capital gains of the same type (short-term losses against short-term gains, long-term against long-term), then can offset gains of the other type, then up to $3,000 of ordinary income per year. Excess losses carry forward to future tax years indefinitely.
The Wash-Sale Rule: The Critical Constraint
The IRS does not allow investors to sell a security to capture a loss and then immediately buy back the same security — that would be gaming the system without any economic change in position. The wash-sale rule (IRS Section 1091) disallows the tax loss if you buy a "substantially identical" security within 30 days before or after the sale. The disallowed loss is not permanently lost — it is added to the cost basis of the replacement security — but the timing benefit is eliminated.
What counts as substantially identical? The IRS has not defined this precisely for mutual funds and ETFs, which creates some gray area. Clear violations include selling VOO and buying VOO back within 30 days. Generally safe replacements include selling one S&P 500 ETF and buying a different S&P 500 ETF from a different fund family (VOO → IVV), since they technically track different indexes and are managed by different companies. Similarly, selling a total market fund and buying an S&P 500 fund maintains similar exposure while clearly avoiding the substantially identical test — they hold different numbers of stocks and have different weights.
The wash-sale window is 61 days total: 30 days before the sale through 30 days after. Plan accordingly. If you sold VOO on December 15, you cannot buy VOO back before January 15 — which may matter if you want to reconstitute your original position in the new year. Using a replacement ETF for the full 31-day period and then switching back is a common approach.
Watch across accounts: The wash-sale rule applies across all your accounts, including IRAs. If you harvest a loss in your taxable account and buy the same security in your IRA within the wash-sale window, the loss is disallowed. This is a commonly overlooked trap — especially for investors who use automatic reinvestment of dividends in multiple accounts holding similar funds.
How Much Can You Actually Save?
The value of harvested losses depends on your marginal tax rates and the types of gains being offset.
Offsetting long-term capital gains: Long-term capital gains (assets held over 12 months) are taxed at 0%, 15%, or 20% depending on income. For a married couple filing jointly with taxable income between $94,050 and $583,750 in 2024, the rate is 15%. Each $10,000 in harvested losses that offsets long-term gains saves $1,500 in taxes.
Offsetting short-term capital gains: Short-term gains (assets held 12 months or less) are taxed at ordinary income rates — potentially as high as 37%. A $10,000 loss offsetting short-term gains for a top-bracket investor saves $3,700. Short-term losses first offset short-term gains, where the tax rate is highest.
Offsetting ordinary income: If capital losses exceed capital gains in a year, up to $3,000 can offset ordinary income. In the 32% bracket, that $3,000 deduction saves $960 in taxes — and the excess carries forward to future years.
Loss carryforwards: Unused capital losses do not expire — they carry forward indefinitely. An investor who harvests $50,000 in losses during a market crash can use those losses to offset gains over many subsequent years, providing tax-free gain recognition for years after the original harvest event. This is why aggressive tax-loss harvesting during major bear markets (2008, 2020, 2022) creates enormous long-term tax value.
When Tax-Loss Harvesting Makes the Most Sense
TLH is most valuable in specific circumstances:
High tax bracket investors: The higher your marginal tax rate, the more valuable each dollar of harvested loss. Investors in the 10–12% bracket may find TLH not worth the administrative effort; investors in the 32–37% bracket should be harvesting aggressively.
Market downturns: Broad market declines create widespread harvesting opportunities across many positions simultaneously. The 2022 bear market (S&P 500 fell ~19%, NASDAQ fell ~33%) was an exceptional TLH opportunity. Investors who harvested losses during the decline locked in meaningful tax assets while maintaining market exposure through replacement funds.
When you have capital gains to offset: If you have sold appreciated assets (investment property, business interests, appreciated stocks) and have large capital gains to report, harvesting losses to offset those gains provides immediate, guaranteed savings. The value of TLH is highest when you have specific gains you need to offset in the current tax year.
Year-end tax planning: December is the traditional TLH window — you have visibility into your full-year gain/loss picture, and selling before December 31 captures the loss for the current tax year. Many investors do a portfolio review in November or early December specifically for this purpose.
When it makes less sense: TLH has limited benefit in tax-advantaged accounts (IRAs, 401ks) since gains and losses within these accounts have no current tax consequence. It also has less benefit if you are in the 0% long-term capital gains bracket (income below approximately $47,025 for singles in 2024). And TLH should never drive you to hold a bad investment that you would otherwise sell — the tax tail should not wag the investment dog.
How to Implement It in Your Portfolio
A systematic approach to tax-loss harvesting requires maintaining a list of replacement securities for each position you hold. Before any loss-harvesting opportunity arises, identify what you would buy to replace each fund in your portfolio while maintaining similar market exposure without triggering the wash-sale rule:
- U.S. large-cap / S&P 500: VOO ↔ IVV ↔ SCHB (Schwab U.S. Broad Market ETF) ↔ SPY
- U.S. total market: VTI ↔ ITOT (iShares Core S&P Total Market) ↔ SPTM (SPDR Portfolio S&P 1500)
- International developed: VEA ↔ EFA ↔ SCHF (Schwab International Equity)
- Emerging markets: VWO ↔ EEM ↔ IEMG (iShares Core MSCI Emerging Markets)
- Total bond market: BND ↔ AGG (iShares Core U.S. Aggregate Bond) ↔ SCHZ (Schwab U.S. Aggregate Bond)
When you identify a harvesting opportunity (typically when a position has declined 5–10% from cost basis, though there is no required threshold), sell the losing fund and immediately reinvest in the designated replacement. Hold the replacement for at least 31 days to safely clear the wash-sale window, then decide whether to switch back to your original fund or continue holding the replacement.
Some investors prefer to simply hold the replacement fund permanently — the two S&P 500 ETFs from different providers will perform virtually identically over time, and the additional transaction of switching back generates another potential taxable event. The key is to maintain your desired asset allocation exposure throughout the process.
Limitations and Risks
Deferral, not elimination: Tax-loss harvesting primarily defers taxes rather than eliminating them permanently. When you sell the replacement fund at a gain in the future, you will owe capital gains taxes on the gain — and your cost basis is lower (since you replaced a losing position with one acquired at a lower price). The benefit is the time value of the deferred tax: the taxes you would pay today compound in your portfolio for years before coming due.
Step-up in basis at death eliminates deferred gains: Assets held until death receive a step-up in cost basis to the market value at the date of death, eliminating all unrealized gains for the estate's beneficiaries. For investors who plan to hold assets until death and leave them to heirs, tax-loss harvested positions that are eventually stepped-up create permanent (not just deferred) tax savings — making TLH even more valuable for this group.
State taxes: Most states conform to federal capital gains treatment, but a few do not. In California, capital gains are taxed as ordinary income — up to 13.3% — making TLH especially valuable for California residents. Some states have no income tax, in which case TLH only saves federal taxes.
Alternative Minimum Tax (AMT): High-income investors subject to AMT should check how capital gains and losses interact with AMT in their specific situation — this can affect the net value of harvested losses in certain edge cases.
Automated Tax-Loss Harvesting
Managing tax-loss harvesting manually requires regular portfolio monitoring and disciplined execution. Automated solutions have made daily harvesting accessible to a broader range of investors:
Robo-advisors with TLH: Services like Betterment and Wealthfront offer daily automated tax-loss harvesting as part of their standard managed portfolios. Their algorithms continuously monitor each holding for harvesting opportunities and execute trades automatically while tracking wash-sale compliance. This approach is particularly effective during periods of high market volatility when opportunities arise and disappear quickly. Both platforms charge advisory fees (typically 0.25% of AUM annually) that must be weighed against the tax benefits generated.
Direct indexing: Higher-net-worth investors ($100,000+) can access direct indexing — owning individual stocks comprising an index rather than a fund — which provides the richest tax-loss harvesting opportunities since individual stocks generate many more harvesting events than a single ETF position. Fidelity, Vanguard, and Schwab all offer direct indexing services, typically with minimum investment thresholds and advisory fees.
Manual harvesting with brokerage tools: Most major brokerages (Fidelity, Schwab, TD Ameritrade) provide tax lot tracking, unrealized gain/loss reporting, and cost basis tools that make manual harvesting feasible for attentive investors. Annual or semi-annual reviews, combined with alerts during significant market declines, capture most available TLH benefits without daily monitoring.
Tax-loss harvesting is not a magic bullet — it does not change your investment returns, and it requires attention and discipline to execute correctly. But for investors in higher tax brackets with meaningful taxable accounts, the systematic harvesting of available losses represents one of the clearest high-return activities in personal finance: a guaranteed tax reduction requiring no prediction of market direction, no fundamental investment insight, and no acceptance of additional portfolio risk.
Frequently Asked Questions
Does tax-loss harvesting work in an IRA or 401(k)?
No. Tax-loss harvesting is only effective in taxable brokerage accounts. In IRAs, 401(k)s, and other tax-advantaged accounts, gains and losses have no current tax consequence — investments grow tax-deferred or tax-free regardless of trading activity. Selling a losing fund inside an IRA generates no deductible loss. TLH is exclusively a taxable account strategy.
What is the wash-sale rule and how do I avoid it?
The wash-sale rule (IRS Section 1091) disallows a capital loss if you buy a 'substantially identical' security within 30 days before or after selling the losing position — a 61-day window total. To avoid it, replace sold positions with similar but not identical alternatives: sell VOO and buy IVV (different fund, same index), sell VTI and buy ITOT, sell BND and buy AGG. Hold the replacement for at least 31 days before switching back if desired. Also watch for wash sales across all your accounts — automatic dividend reinvestment in an IRA can trigger a wash sale if it buys the same fund you just sold in your taxable account.
How much in losses do you need to make tax-loss harvesting worthwhile?
There is no fixed minimum, but a reasonable practical threshold is losses of $500 or more per position, factoring in your time and the potential for transaction costs. For investors in the 15% long-term capital gains bracket, a $500 loss saves $75 — barely worth the administrative effort. For investors in the 37% ordinary income bracket harvesting short-term losses, a $500 loss saves $185, making even smaller harvests worthwhile. Most serious TLH practitioners harvest whenever a significant position (over $5,000) has declined 5–10% from cost basis.
Can I carry forward unused capital losses to future years?
Yes. Capital losses that exceed capital gains in a given year can offset up to $3,000 of ordinary income annually, with the remainder carried forward to future tax years indefinitely and without expiration. An investor who harvests $30,000 in losses during a down market year with no offsetting gains would use $3,000 against ordinary income that year and carry forward $27,000 to offset future capital gains — essentially creating a 'tax credit' that reduces taxes on future gains for years.