GLOSSARY DEEP DIVE

Capital Loss: How to Turn a Bad Trade Into a Usable Deduction, Not Just a Loss

Every investor eventually sells something for less than they paid for it. What separates a wasted loss from a valuable one is understanding the netting order, the $3,000 annual ceiling against ordinary income, and the wash sale rule that can quietly erase the whole deduction.

Deep dive9 min readUpdated 2026

The core principle

A capital loss occurs when you sell an investment for less than its adjusted cost basis, generally what you paid for it plus certain adjustments like reinvested dividends or commissions. The tax code treats losses differently depending on how long you held the position: a short-term loss comes from an asset held one year or less, and a long-term loss from an asset held more than one year. That distinction matters because the two categories are netted separately before they are combined.

The netting order runs in a specific sequence. Short-term losses first offset short-term gains, and long-term losses first offset long-term gains. Whatever is left over in each bucket, a net gain or a net loss, is then combined across the two categories. If the final combined number is a loss, you may deduct up to $3,000 of it against ordinary income in a single year ($1,500 if married filing separately). Anything beyond that ceiling does not disappear. It carries forward to future tax years indefinitely, retaining its original short-term or long-term character, until it is fully used against future gains or the annual ordinary-income allowance.

Key idea You do not get to pick which losses offset which gains. The netting happens by category automatically, which means the deduction you end up with can differ meaningfully from the loss you think you booked when you sold a single position.

This mechanism is what makes deliberate loss realization, commonly called tax loss harvesting, a genuine tool rather than a gimmick. Because losses can offset gains dollar for dollar with no cap, and because unused amounts carry forward rather than expiring, a loss realized this year can still be doing useful work a decade from now.

It is worth being precise about what counts as a realized loss in the first place, since this is a surprisingly common point of confusion. A loss only exists for tax purposes once you actually sell the position. A stock that has fallen 40% in value but that you continue to hold has an unrealized loss, sometimes called a paper loss, which has no tax consequence whatsoever until a sale occurs. This distinction matters because it means the decision to realize a loss is entirely within your control and timing, which is exactly what deliberate tax loss harvesting exploits: you choose when to convert a paper loss into a usable deduction, ideally in a year when you also have gains to offset or income you would like to reduce.

The character of the loss also affects how valuable it is. A short-term loss, when it survives the netting process and is applied against ordinary income or against a short-term gain, is offsetting income that would otherwise have been taxed at your marginal ordinary income rate, which for high earners can run considerably higher than the long-term capital gains rate. A long-term loss applied against a long-term gain is, by contrast, offsetting income that would have been taxed at the more favorable long-term rate. In practice this means a short-term loss is, dollar for dollar, generally the more valuable one to realize when you have a choice, since it is more likely to be sheltering income taxed at a higher rate.

How the math works

The governing relationship is: net capital position = (long-term gains minus long-term losses) plus (short-term gains minus short-term losses).

Example 1: a normal netting year. Maria sells three positions in the same calendar year. Stock A, held two years, is sold for a $12,000 long-term gain. Stock B, held fourteen months, is sold for a $6,000 long-term loss. Stock C, held five months, is sold for a $1,800 short-term loss. Netting long-term first: $12,000 minus $6,000 leaves a net long-term gain of $6,000. She has no short-term gains to net against the short-term loss, so that bucket stays a $1,800 loss. Combining the two buckets, $6,000 minus $1,800 leaves a net capital gain of $4,200, taxed at favorable long-term rates. Without the losing trades, she would have owed tax on the full $12,000.

Example 2: a large loss year for a high earner. David, a corporate attorney with a concentrated position built up from years of employer stock grants, decides to diversify during a down year. He sells shares with a cost basis of $180,000 for proceeds of $95,000, a long-term loss of $85,000. A separate short-term trade nets him a $10,000 gain. Combining the buckets: negative $85,000 plus $10,000 equals a net capital loss of $75,000. He deducts $3,000 against his ordinary income this year and carries forward $72,000.

The carryforward keeps working in later years. Suppose next year David realizes a $20,000 long-term gain and nothing else. The carryforward first offsets that gain dollar for dollar: $72,000 minus $20,000 leaves $52,000 still carrying forward, and the gain itself owes no tax. He can then also apply the $3,000 ordinary-income allowance against what remains, bringing the carryforward down to $49,000 heading into the following year. At that pace, a large loss can remain a live tax asset for many years, doing its most valuable work in whichever future year meets a large gain, rather than trickling out $3,000 at a time.

How it shows up in real portfolios

The most common everyday use is year-end tax loss harvesting in a taxable brokerage account. An investor holding a broad market index fund that has dipped in value sells it, locks in the loss, and immediately buys a similar but not identical fund, say a different index provider tracking a comparable but not equivalent benchmark, to avoid a lapse in market exposure while staying clear of the wash sale rule discussed below.

For a high-earning professional carrying concentrated stock from equity compensation, a stock plan, or a legacy holding, capital losses realized elsewhere in the portfolio can make the diversification trade itself cheaper. Selling an appreciated concentrated position normally triggers a gain, but if the same year includes a realized loss from a separate, genuinely underperforming holding, the loss can absorb part or all of that gain, reducing the tax drag of finally getting properly diversified.

A retiree drawing down a taxable account in a low tax bracket experiences the same mechanics differently. The $3,000 ordinary-income offset is worth less to someone already in a low bracket, but the ability to net losses against gains generated by routine rebalancing still has real value, since it can be the difference between a rebalancing trade that owes tax and one that does not.

There is also a market-history dimension worth understanding. Broad equity market drawdowns of 20% or more, sometimes called bear markets, have occurred repeatedly across market history, and each one has created a genuine window for tax loss harvesting across an entire taxable portfolio at once, not just a single losing position. Investors who systematically harvest losses during these periods, rather than treating loss realization as an occasional, ad hoc decision, tend to accumulate meaningfully larger carryforward balances than investors who only sell losers reluctantly. The mechanical discipline of harvesting matters more than trying to time the exact bottom of a decline, since the loss is available the moment the position is underwater, regardless of whether it falls further afterward.

Actionable breakdown

  • Losses net short-term against short-term, long-term against long-term, first.
  • Remaining buckets then combine into one final number.
  • Up to $3,000 of a net loss offsets ordinary income yearly.
  • Anything beyond that carries forward with no expiration.
  • Carryforward amounts keep their original short-term or long-term character.
  • Losses in 401(k)s and IRAs are not deductible; those accounts are untaxed anyway.
  • Time harvesting around genuine portfolio changes, not the reverse.

Common pitfalls

  • The wash sale rule. Buying the same or a "substantially identical" security within 30 days before or after the sale disallows the loss entirely, even if the repurchase happens in a spouse's account or an IRA.
  • Losses that die with the taxpayer. Unused carryforward losses do not pass to heirs. Inherited assets instead receive a stepped-up cost basis, which erases both the loss carryforward and any embedded gain, so a large carryforward left unused at death is simply gone.
  • Letting the tax tail wag the investment dog. Selling a position purely to harvest a loss, then buying it back into a worse long-term holding, or avoiding a needed sale because it would realize a gain, both let a tax mechanic override sound portfolio judgment.
  • Forgetting the netting order. Investors often assume a specific loss offsets a specific gain of their choosing. In fact the categories net automatically, so the deduction that survives can be smaller, or differently timed, than expected.
Key idea A large capital loss carryforward is a real, portable tax asset. Track it every year on your return, because it will usually be worth the most in whatever future year you have your largest capital gain, not the year it was created.

For the mirror-image concept and the deliberate strategy built on it, see capital gain and tax loss harvesting. For the rule that most often disqualifies a harvested loss, see wash sale, and for the income category the deduction ultimately offsets, see ordinary income. The full framework for managing gains and losses across a portfolio is covered in our tax efficiency guide.

The bottom line

A capital loss is only worth as much as your understanding of how it nets, carries forward, and can be forfeited through a wash sale or a death, so track it deliberately rather than treating it as a one-time write-off.

Back to the full glossary