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.
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.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
How Much Can You Actually Save?
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
When Tax-Loss Harvesting Makes the Most Sense
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
Rules, thresholds and tax consequences change by year and taxpayer circumstances. Treat prior-year figures as historical examples and verify the current rule with the relevant official source before acting.
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.
Sources, scope, and review
Last editorial review: October 20, 2026. This page provides general educational information, not individualized investment, tax, legal, or financial advice. Past performance does not predict future results.
Editorial responsibility: Juarez Santos. Background provided by the site owner: financial agent and real-estate management. This background does not replace individualized advice or a credentialed specialist review. When a qualified independent reviewer contributes to a page, that reviewer and their role must be identified on that page.
Disclosure requirement: Before publication, display any material affiliate, advertising, or commercial relationship relevant to this page. Do not state that a professional specialist reviewed an article unless that review can be documented.
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.