What Is Tax Loss Harvesting? The Complete Guide
March 30, 2026 ยท 8 min read

What Is Tax Loss Harvesting? The Complete Guide

There is a strange asymmetry buried in the tax code that most investors never notice. When your investments go up, the government claims a share of the gain. When they go down, the government lets you keep the loss โ€” and use it. Not just absorb it, but actually deploy it, like a financial instrument, to reduce the taxes you would otherwise owe on your winners.

This is the core idea behind tax loss harvesting. It is not a loophole or a workaround. It is a deliberate feature of how capital gains taxation works in the United States โ€” and understanding it is one of the highest-return things a taxable investor can do. The strategy does not require picking better stocks, timing the market, or taking on extra risk. It just requires paying closer attention to the tax consequences of what you already own.

What is tax loss harvesting?

Tax loss harvesting is the practice of selling an investment that has declined in value in order to realize a capital loss, and then using that loss to offset capital gains realized elsewhere in your portfolio. The result is a lower net taxable gain โ€” and therefore a lower tax bill โ€” without necessarily changing your overall investment exposure.

The key phrase is "without necessarily changing your investment exposure." After selling the losing position, most investors immediately reinvest the proceeds into a similar but not identical security. This keeps them invested in the same sector, the same asset class, or the same market โ€” just through a different instrument. The economic position stays roughly intact. The tax benefit is real.

To put it plainly: tax loss harvesting turns a paper loss into a tax asset. Instead of watching a declining position and hoping it recovers, you crystallize the loss, put it to work immediately, and then reestablish the exposure after a short waiting period. The loss is not wasted โ€” it is converted into after-tax value.

How does tax loss harvesting work?

Imagine you bought 100 shares of a technology ETF at $180 per share โ€” an $18,000 position. Over the same period, you also own a healthcare ETF that has risen from $12,000 to $19,000. You want to sell the healthcare ETF to rebalance. Under normal circumstances, that $7,000 gain would be taxable. At the 15% long-term capital gains rate, you would owe $1,050. At the top federal rate of 23.8% (including the 3.8% net investment income tax), the bill reaches $1,666.

Now suppose the technology ETF has fallen to $140 per share. Your $18,000 position is now worth $14,000 โ€” a $4,000 unrealized loss. If you sell it before selling the healthcare ETF, you realize that $4,000 loss. It can be applied directly against the $7,000 gain from healthcare, reducing your net taxable gain to $3,000. At the top federal rate, you have just cut your tax bill from $1,666 to $714 โ€” saving $952 โ€” simply by selling in the right order.

After selling the technology ETF, you immediately buy a similar fund โ€” perhaps a broader market ETF or a tech-adjacent fund โ€” to maintain your market exposure. You have not abandoned your investment thesis. You have simply traded one instrument for a nearly equivalent one, pocketed a tax benefit in the process, and stayed invested throughout.

Alpine night sky over mountain peaks โ€” stillness and patience, like the long-game of tax-efficient investing

Short-term vs. long-term capital gains: why the distinction matters

Not all gains โ€” and not all losses โ€” are treated equally. The tax code distinguishes between short-term and long-term capital gains based on how long you held the asset before selling. Assets held for one year or less generate short-term gains, which are taxed as ordinary income โ€” up to 37% at the federal level. Assets held for more than one year generate long-term gains, taxed at the more favorable rates of 0%, 15%, or 20%, depending on your income.

Capital losses follow the same classification. A short-term loss first offsets short-term gains; a long-term loss first offsets long-term gains. When losses exceed gains within a category, they spill over. If total capital losses exceed total capital gains, the excess can offset up to $3,000 of ordinary income per year โ€” and any remaining balance carries forward indefinitely into future tax years.

This hierarchy matters for strategy. Harvesting a short-term loss to offset a short-term gain is particularly valuable, because short-term gains are taxed at the highest rates. An investor at the 37% federal income tax bracket who can convert a $10,000 short-term gain into a $0 net gain has saved $3,700 in federal taxes alone, in a single transaction.

The wash sale rule: the one constraint that changes everything

The IRS is aware that investors might try to sell a losing position just to capture the tax benefit and then immediately buy it back, as if nothing happened. To prevent this, Congress created the wash sale rule. Under this rule, if you sell a security at a loss and buy the same or a "substantially identical" security within 30 days before or after the sale โ€” in any account you own โ€” the loss is disallowed for tax purposes.

The disallowed loss is not gone forever โ€” it is added to the cost basis of the repurchased shares, deferring the tax benefit rather than eliminating it. But the timing consequence is immediate: if you trigger a wash sale, you lose the tax benefit in the current year, which is often the most valuable time to have it. This is why tax loss harvesting requires buying a similar but not identical replacement security during the 30-day window.

The wash sale rule applies across all your accounts simultaneously. Selling a losing stock in your taxable account and buying it back in your IRA within the 30-day window triggers a wash sale just as surely as repurchasing in the same account. This is one of the most commonly overlooked traps โ€” and one of the strongest arguments for tracking tax lot and wash sale exposure across your entire household, not just account by account.

When should you use tax loss harvesting?

Tax loss harvesting is most valuable when three conditions align: you have realized or expected capital gains to offset, you own positions with unrealized losses, and your marginal tax rate on those gains is meaningfully positive. An investor in the 0% long-term capital gains bracket โ€” which in 2026 applies to married filers with taxable income below approximately $94,050 โ€” gains relatively little from harvesting long-term losses, since there is no gain tax to offset.

The most valuable harvesting opportunities arise during periods of market volatility. When broad markets decline, or when individual holdings move against you despite an overall portfolio gain, you have the chance to realize losses without meaningfully changing your economic position. A 10% correction in a single sector position might generate a harvestable loss even in a year when your overall portfolio is up โ€” and that loss is just as real and useful as any other.

The conventional wisdom is to review your portfolio for harvesting opportunities once a year, typically in November or December. This is better than never doing it โ€” but it captures only a fraction of the available value. Markets produce harvesting opportunities throughout the year. A position that is at a loss in March may have recovered by December. Continuous monitoring is the difference between capturing all available losses and capturing only the ones that remain visible at year-end.

The compounding effect: why this matters more than most investors realize

Tax loss harvesting is often described as a tax deferral strategy rather than a tax elimination strategy, and that description is technically accurate. When you harvest a loss and reset your cost basis lower, you will eventually pay tax on a larger gain when you finally sell the replacement position. The benefit is that the tax is deferred โ€” and deferred taxes are worth real money.

Consider a $10,000 tax deferral achieved through harvesting. That $10,000 stays invested rather than going to the IRS this April. Over 20 years at a 7% annual return, that $10,000 grows to roughly $38,700. Even after paying capital gains tax when you eventually sell, the after-tax value of that deferred payment โ€” the money you kept working for two more decades โ€” is substantially greater than if you had paid it immediately. The longer the deferral, the larger the benefit.

For investors who hold positions until death, the compounding benefit becomes permanent. Assets passed to heirs receive a step-up in cost basis to the fair market value at the date of death, effectively eliminating any deferred gain. For these investors, tax loss harvesting is not a deferral at all โ€” it is a permanent tax reduction on the capital that will ultimately be passed on.

Tax lot selection: the hidden variable inside every harvest

When you own multiple purchases of the same security at different prices and dates, you hold multiple "tax lots" โ€” each with its own cost basis, holding period, and tax character. When you sell shares, you choose which lots to sell. Most brokerages default to FIFO (first in, first out), selling your oldest shares first. This default is almost never optimal.

Using the specific identification method โ€” allowed by the IRS โ€” you can designate exactly which shares to sell. You might choose the highest-cost lots to minimize your realized gain. You might choose lots that are 11 months old and wait 31 days before selling, converting what would have been a short-term gain into a long-term gain taxed at a lower rate. Or you might choose lots already at a loss to harvest them while leaving your winning lots intact to continue compounding.

Tax lot selection is where the real precision of tax management lives. It is also where the complexity becomes genuinely difficult to manage manually. A portfolio of 30 positions, each with three or four lots purchased at different times, creates over a hundred individual decisions โ€” and the optimal choice in any given moment depends on your total income, your other gains and losses that year, the holding period of each lot, and your expected future tax rates. This is exactly the kind of problem that scales poorly for humans and scales perfectly for software.

Why most investors still don't do this

Tax loss harvesting has been understood by wealth managers and tax professionals for decades. It is not a new idea. And yet the majority of individual investors โ€” including many sophisticated ones โ€” do not practice it systematically. The reason is not ignorance. It is friction. Done properly, tax loss harvesting requires monitoring your portfolio continuously, understanding the wash sale implications of every transaction, tracking cost basis across multiple accounts, and executing trades quickly when opportunities emerge. Most people simply do not have the time or the systems to do this consistently.

The investors who have historically captured most of the available value from tax loss harvesting are those with access to institutional-grade tax management โ€” the clients of large family offices and quantitative wealth managers who run automated tax overlay strategies on portfolios worth tens of millions of dollars. For everyone else, the strategy was either done manually and imperfectly, or not done at all.

That gap is narrowing. AI-driven tax management platforms now apply the same continuous, cross-account, lot-level optimization that was once exclusive to institutional investors โ€” to portfolios of any size. The strategy itself has not changed. What has changed is who can execute it well. The result is that the tax alpha that was once reserved for the wealthiest investors is now available to anyone willing to run their taxable account with the same deliberateness that institutional managers have always brought to theirs.

Ready to stop overpaying taxes?

Our average customer saves $30,000/year. See what you could save.

Get started free