Market downturns are painful, but they come with a silver lining that many investors overlook: tax-loss harvesting. When investments in your taxable brokerage account lose value, those losses can be used to reduce your tax bill now and in future years. Done correctly, tax-loss harvesting can add 0.5% to 1.0% to your after-tax returns annually without changing your actual investment strategy or increasing your risk exposure.
Tax-loss harvesting (TLH) is the practice of selling investments that have declined in value to realize a capital loss, then using that loss to offset capital gains or ordinary income. The key insight is that the IRS cares about realized gains and losses, not paper gains and losses. By strategically realizing losses, you turn a temporary market decline into a permanent tax benefit while maintaining your desired market exposure through replacement investments.
How Tax-Loss Harvesting Works
The mechanics are straightforward. Suppose you bought $20,000 of an S&P 500 index fund, and it is now worth $15,000. If you sell, you realize a $5,000 capital loss. You can immediately use that loss to offset any capital gains you have realized elsewhere in your portfolio. If your total realized losses exceed your realized gains, you can deduct up to $3,000 of the excess against your ordinary income each year. Any remaining losses carry forward indefinitely to future tax years.
The critical step is what happens after you sell. You do not want to miss out on the market's eventual recovery, so you need to reinvest the proceeds into a similar but not substantially identical investment. For an S&P 500 index fund, common replacement options include a total stock market index fund, a large-cap index fund from a different provider, or an S&P 500 fund with a different share class. The goal is to maintain your asset allocation and market exposure while capturing the tax benefit.
Consider a concrete example: you have a $100,000 portfolio in Vanguard S&P 500 ETF (VOO). The market drops 15%, and you sell, realizing a $15,000 loss. You immediately buy iShares S&P 500 ETF (IVV) with the proceeds. You maintain identical market exposure. If you have $10,000 of realized gains elsewhere in the year, the first $10,000 of losses offset those gains tax-free. The remaining $5,000 reduces your ordinary income by $3,000 this year (saving you $660 to $1,110 depending on your bracket), and you carry forward $2,000 to next year.
Key Takeaway
Tax-loss harvesting does not change your investment strategy or risk profile when done correctly with proper replacement investments. The tax savings are essentially free money from the IRS. The value of TLH is highest for high-income investors who have large capital gains and pay the top marginal rates, but it benefits investors at every income level who hold taxable brokerage accounts.
Wash Sale Rules: The Trap to Avoid
The IRS wash sale rule is the single most important constraint on tax-loss harvesting. Under this rule, if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed for tax purposes. Instead, the disallowed loss is added to the cost basis of the replacement shares, deferring the benefit rather than eliminating it entirely.
The 61-day window covers 30 days before the sale, the day of the sale, and 30 days after the sale. This includes purchases through dividend reinvestment plans (DRIPs), automatic investment plans, and even purchases by your spouse or a corporation you control. If your S&P 500 fund distributes dividends that are automatically reinvested within the 61-day window, those shares can trigger a partial wash sale.
The definition of "substantially identical" is where things get nuanced. The IRS has never provided a definitive list of what counts, but the general guidance is that funds tracking different indices (S&P 500 vs Total Stock Market) are not substantially identical, while two S&P 500 index funds from different providers might be. Most tax professionals consider funds from different issuers following different indices to be safe, but there is always an element of judgment involved.
Carryforward Losses: Turning This Year's Pain into Next Year's Gain
One of the most powerful features of tax-loss harvesting is the ability to carry forward unused losses indefinitely. If you realize $50,000 in losses in a year and only have $10,000 in gains and a $3,000 ordinary income deduction, the remaining $37,000 carries forward to future years. There is no expiration date on capital loss carryforwards, and they retain their character as short-term or long-term, which matters because short-term losses offset short-term gains first (which are taxed at higher ordinary rates) before offsetting long-term gains.
The carryforward strategy becomes particularly valuable if you plan to sell appreciated assets in the future. Suppose you realize a large loss in a down year and carry it forward. Three years later, you want to sell investment property or a concentrated stock position with significant built-in gains. Your carried-forward losses neutralize the tax on those gains, potentially saving you tens of thousands of dollars in capital gains tax.
It is worth noting that carryforward losses die with you. Upon death, the cost basis of inherited assets is stepped up to fair market value, and any unused capital loss carryforwards are lost. If you are in poor health with significant carryforward losses, it may make sense to realize gains to use them before they disappear.
A $10,000 realized loss in a taxable account can save an investor in the top federal bracket (37%) up to $3,700 in capital gains tax when used to offset short-term gains, or $2,380 when used against long-term gains (20%). Used against ordinary income, the annual $3,000 limit saves between $660 (12% bracket) and $1,110 (37% bracket) per year. Over a multi-decade investing career, systematic tax-loss harvesting can add 0.5% to 1.0% to net annualized returns.
Tax-Loss Harvesting Against Ordinary Income vs Capital Gains
The tax code gives preferential treatment to capital gains, which means the type of income your losses offset matters. Losses first offset gains of the same type: short-term losses offset short-term gains, and long-term losses offset long-term gains. If you have excess losses of one type, they offset gains of the other type. Any remaining losses (after offsetting all gains) can deduct up to $3,000 per year against ordinary income.
The tax savings depend entirely on what you are offsetting. Offsetting short-term capital gains (taxed at ordinary income rates up to 37%) saves you the most. Offsetting long-term gains (taxed at 0%, 15%, or 20%) saves you less. Offsetting ordinary income at $3,000 per year saves you your marginal rate on that amount. A dollar of loss offsetting short-term gains can be worth more than twice as much as a dollar offsetting long-term gains, so prioritizing loss harvesting in years when you have short-term gains is especially valuable.
For most investors, the $3,000 ordinary income deduction is the primary benefit. At the 22% tax rate, that saves $660 per year. Over 20 years of harvesting losses, that is $13,200 in tax savings just from the ordinary income deduction, plus whatever additional gains you offset along the way.
Robo-Advisor Tax-Loss Harvesting: Does It Deliver?
Several robo-advisors (Wealthfront, Betterment, Schwab Intelligent Portfolios) have made tax-loss harvesting a core feature of their offerings, claiming they can add 0.5% to 1.5% to after-tax returns. These platforms use automated algorithms to scan portfolios daily for harvesting opportunities, often using multiple ETFs for each asset class to avoid wash sale concerns while maintaining exposure.
The reality is more nuanced than the marketing suggests. Robo-advisor TLH is most effective in volatile markets where there are frequent opportunities to realize losses. In steadily rising markets, there are fewer losses to harvest, and the benefit drops accordingly. Additionally, robo-advisor TLH can create complexity when you want to switch providers, as you may have multiple tax lots with different cost bases across multiple ETF pairs.
For investors with large taxable portfolios (above $100,000), the automated TLH provided by robo-advisors can be cost-effective compared to hiring a tax professional to manage it manually. For smaller portfolios, the tax savings may not justify the management fees, and a simple buy-and-hold strategy with occasional manual harvesting during market downturns is likely sufficient. The key is to treat TLH as a long-term strategy, not a source of immediate gratification — the real benefits compound over years and decades through lower tax bills and higher after-tax returns.