A loss in a taxable account is not only a loss. Realized deliberately, it is a tax asset with a statutory exchange rate: capital losses offset capital gains dollar for dollar, and up to $3,000 a year of leftover loss ($1,500 if married filing separately) offsets ordinary income, with the remainder carried forward indefinitely. Tax-loss harvesting is the practice of realizing those losses on purpose — selling a position that is down, banking the loss, and immediately buying a similar-but-not-identical replacement so the portfolio's allocation never changes. This page works the arithmetic and the one rule that can void the whole maneuver.

The arithmetic

Suppose a taxable investor sells a fund for an $8,000 loss in a year when they also realized an $8,000 long-term gain elsewhere. The loss erases the gain: at a 15% capital-gains rate, that is $1,200 of tax that does not get paid. Suppose instead there are no gains to offset. The first $3,000 of the loss offsets ordinary income — at a 22% bracket, $660 saved this year — and the remaining $5,000 carries forward to do the same work in future years. Note what the maneuver did not do: it did not make the investor richer by the $8,000. The loss already happened in the market. Harvesting simply refuses to let it go to waste, converting a paper decline into a deduction while the replacement position keeps the money invested. The account this only works in — taxable, never an IRA or 401(k), where losses are invisible to the tax code — is the subject of Taxable Brokerage Accounts and Asset Location.

The wash-sale rule: the 61-day window

The IRS disallows the loss if you buy a substantially identical security within 30 days before or after the sale — a 61-day window centered on the trade (IRC § 1091). The disallowed loss is not destroyed; it is added to the replacement position's basis, deferring the benefit rather than denying it — unless the replacement purchase happens in an IRA, in which case the loss is permanently gone, a trap the IRS confirmed in Revenue Ruling 2008-5. Practical compliance is straightforward for fund investors: replace the sold fund with a fund tracking a different index (a total-market fund swapped for a large-cap index fund, for example), and the position is economically similar without being substantially identical. Automated dividend reinvestment into the sold fund inside the window is the classic accidental violation — turn reinvestment off before harvesting.

Where harvesting fits, and where it does not

Harvesting is worth most to investors with large taxable accounts, high brackets, and gains to offset — and worth least, sometimes negatively, when trading costs, short-term-gain replacements, or complexity swamp a small benefit. It interacts with everything else in the taxable account: harvested losses are the fuel for the gain-realization planning in Capital Gains Management, and the replacement purchase is a rebalancing opportunity under Rebalancing Your Portfolio. Two cautions close the page. First, the harvested portfolio's basis steps down by the loss taken — you are deferring tax recognition on the replacement's future gains, not abolishing it, unless the position is later donated or stepped up at death. Second, harvesting is a taxable-account-only, year-round discipline with a December crowd; the investors who benefit most treat it as maintenance, like rebalancing, rather than a year-end scramble.

Official documentation and references

Keep going

Educational disclaimer: This article is general education, not personalized financial, tax, legal, or benefits advice. Primary sources, plan documents, and — for insurance and estate topics — your state's law and licensed professionals govern your situation. All numbers in examples are illustrative.