Tax-loss harvesting is a strategy for reducing your tax bill by deliberately selling investments that have declined in value, capturing the capital loss on paper, and using that loss to offset capital gains elsewhere in your portfolio. When done correctly, it reduces taxes without changing your investment exposure in any meaningful way. It is one of the few genuine legal tax reduction strategies available to ordinary investors — not a loophole, but a feature of the tax code that rewards investors who manage their portfolios thoughtfully.
The Mechanics of Capital Gains and Losses
When you sell an investment for more than you paid for it, you realise a capital gain — which is taxable. Short-term gains (on assets held less than a year) are taxed as ordinary income at your marginal rate. Long-term gains (on assets held more than a year) are taxed at preferential rates of 0, 15, or 20 percent depending on your income. When you sell an investment for less than you paid, you realise a capital loss. Capital losses first offset capital gains — short-term losses offset short-term gains, long-term losses offset long-term gains, and remaining losses offset the other type. After netting gains and losses, if you have a net capital loss, you can deduct up to $3,000 per year from ordinary income, with any excess carried forward to future tax years indefinitely.
Tax-loss harvesting exploits this structure: by realising losses in positions that have declined, you generate deductions that offset taxable gains elsewhere. The key insight is that the loss is a paper accounting event — the investment itself still exists, just in a different wrapper. By immediately buying a similar fund after selling the losing one, you maintain essentially the same investment exposure while banking the tax benefit of the realised loss.
The Wash Sale Rule
The wash sale rule is the most important constraint on tax-loss harvesting. It disallows the loss if you buy the same or substantially identical security within 30 days before or after the sale. If you sell Fund A and buy Fund A back within 30 days, the IRS disallows the loss — it is as if the sale never happened for tax purposes. The rule applies to securities that are “substantially identical,” which generally means the same security or one that represents essentially the same economic position.
The standard workaround: immediately reinvest in a similar but not identical fund. Sell VTI (Vanguard Total Market ETF) and buy SCHB (Schwab Total Market ETF) or ITOT (iShares Total Market ETF). Both track the total US stock market through different indices with slightly different methodologies — similar enough that the investment exposure is essentially maintained, but different enough that the IRS does not treat them as substantially identical. This is well-established practice among tax-efficient investors and widely documented in financial literature. Wait 31 days and you can switch back to the original fund if you prefer it.
When Tax-Loss Harvesting Is Worth Doing
Tax-loss harvesting produces the most benefit in specific circumstances. It is most valuable when you have significant capital gains to offset — from selling a home, a business, or appreciated securities — and the harvested losses directly reduce a large tax bill. It is also valuable over long periods when losses are harvested regularly and the accumulated tax savings are reinvested to compound. It is least valuable when your income puts you in the 0 percent long-term capital gains bracket — where gains are not taxed anyway — or when losses are too small relative to your portfolio to produce meaningful tax savings after accounting for any transaction costs.
For most investors with taxable accounts in the 15 or 20 percent long-term capital gains bracket, opportunistic harvesting during market downturns — when many positions are temporarily in the red — produces genuine and meaningful tax savings without changing investment exposure. The 2020 pandemic crash and the 2022 bear market were both periods when systematic harvesting produced significant tax benefits for investors who acted while positions were down.
Tax-Loss Harvesting Only Applies to Taxable Accounts
This strategy is only relevant for taxable brokerage accounts — not 401k, Roth IRA, or traditional IRA accounts. In tax-advantaged accounts, transactions do not trigger capital gains or losses for tax purposes. Selling at a loss inside a Roth IRA does not generate a deductible loss. All the mechanics described above apply only to investments held in taxable brokerage accounts, where each transaction is a potential tax event.
Robo-Advisors and Automated Tax-Loss Harvesting
Several robo-advisors — Wealthfront, Betterment, and others — offer automated tax-loss harvesting as a feature, continuously monitoring portfolios for harvesting opportunities and executing swaps without the investor needing to identify them manually. For investors with significant taxable account balances who want harvesting without the manual monitoring, these services can justify their management fees through tax savings alone at sufficient portfolio sizes. The automated approach also eliminates the wash sale risk that comes with manual harvesting, since the algorithms are designed specifically to avoid triggering the rule.
For investors who want to harvest losses manually — which is entirely feasible for a portfolio of three to five index funds — reviewing the taxable account for harvesting opportunities two or three times per year, particularly after significant market declines, is sufficient. The marginal benefit of continuous daily monitoring over quarterly opportunistic monitoring is small for most individual investors’ portfolio sizes and tax situations.
Tax-Loss Harvesting and Long-Term Cost Basis
One consideration worth understanding about tax-loss harvesting: when you harvest a loss and buy a replacement fund, your cost basis in the new fund is lower than it would have been if you had simply held the original. This means that when you eventually sell the replacement fund, the gain will be larger — you are not eliminating taxes, you are deferring them. The benefit of harvesting is that the tax is owed later rather than now, and the deferred tax dollars that would otherwise have gone to the IRS immediately instead remain invested and compounding in the interim. For most investors with long time horizons, this deferral is genuinely valuable — the deferred tax dollars compound for additional years before eventually being paid. But it is worth understanding that tax-loss harvesting is a tax deferral strategy, not a tax elimination strategy. The future tax liability is real, even if it is deferred until a time when you may be in a lower bracket or have other offsets available.
Tax-loss harvesting is worth understanding and worth using opportunistically — particularly during market downturns when losses are widespread and the tax benefits are available at no real cost in investment exposure. It is not a strategy to obsess over or to let drive portfolio construction decisions. The asset allocation, the cost of funds, and the consistency of contributions matter far more than the harvesting strategy applied on top of them. Understand it, implement it when meaningful opportunities arise, and do not let its absence from your strategy in years when the market is rising feel like a missed opportunity. The benefit is real; it is also incremental rather than transformative, and its proper place is as a refinement of a sound investment strategy rather than a reason to build the strategy around it.
For investors interested in automating tax-loss harvesting without the manual monitoring, the robo-advisor approach offers genuine value at portfolio sizes where the tax savings exceed the management fee. At smaller portfolio sizes, the manual approach — reviewing the taxable account after significant market declines and executing the appropriate fund swaps — produces most of the benefit for a modest time investment. Either approach is better than ignoring the opportunity entirely in taxable accounts where gains will eventually be substantial. Like most aspects of investment management, the best version of tax-loss harvesting is the one you will actually execute rather than the theoretically optimal version that requires more complexity than you are willing to maintain.
Tax-loss harvesting, done well over a full investing career, can add meaningful percentage points to after-tax returns in a taxable account. It is not the most important thing in your investment strategy — the asset allocation, the savings rate, and the consistency of contributions matter more. But for investors with growing taxable accounts who are in meaningful tax brackets, it is a genuine and accessible tool that reduces the tax drag on investment returns without changing the investment exposure the portfolio is designed to maintain. Learn it once, implement it opportunistically, and let the tax savings compound alongside the investments they protect.