# Tax-loss harvesting

URL: https://vestedgrant.com/glossary/tax-loss-harvesting
Updated 2026-11-21 · Facts checked 2026-11-21 · Tax year 2026
Also called: tax-loss harvesting, TLH, loss harvesting

Selling investments at a loss to realize capital losses, then reinvesting in a similar but not substantially identical holding. The losses offset capital gains and up to $3,000 of ordinary income a year, with the rest carried forward.

## Answer

Tax-loss harvesting is selling an investment at a loss to realize a capital loss while keeping market exposure through a similar, not substantially identical, replacement. Losses offset capital gains, then up to $3,000 of ordinary income a year for 2025 and 2026, with the rest carried forward. Buying substantially identical stock within 30 days before or after the sale triggers the wash sale rule.

## Definition

Tax-loss harvesting turns paper losses into realized capital losses without leaving the market. The investor sells a position at a loss, reports it on Form 8949, and buys a similar but not substantially identical replacement, which keeps the market exposure roughly intact. The wash sale rule disallows the loss if the investor buys substantially identical stock or securities within 30 days before or after the sale, including purchases in an IRA or Roth IRA and purchases by a spouse. Realized losses first offset capital gains, then up to $3,000 of ordinary income a year ($1,500 married filing separately) for 2025 and 2026, and any remainder carries forward.

Example (hypothetical): take an engineer who owns an S&P 500 index fund bought at $450 a share, now at $410. She sells 500 shares for a $20,000 realized loss and buys a fund that tracks a different broad U.S. index, such as a total-market fund, to stay invested. The $20,000 loss offsets gains from RSU share sales in the same year. Her market exposure changes only slightly. IRS guidance does not settle whether two funds tracking the same index are "substantially identical," so swapping between two funds that track the very same index carries more wash sale risk than switching to a different index.

Common mistake: harvesting a loss and then buying the same security in an IRA or Roth IRA, or in a spouse's account, within the 61-day window. The wash sale rule reaches those purchases, and when the replacement is bought in an IRA, the disallowed loss is not added to any basis, so it is lost permanently.

Tax-loss harvesting matters in down markets, in years with large gains from RSU sales or liquidity events, and as the engine behind direct indexing accounts.

## Sources

1. [IRS Topic no. 409, Capital gains and losses](https://www.irs.gov/taxtopics/tc409)
   > the amount of the excess loss that you can claim to lower your income is the lesser of $3,000 ($1,500 if married filing separately)
2. [IRS Publication 550, Investment Income and Expenses](https://www.irs.gov/pub/irs-pdf/p550.pdf)
   > Acquire substantially identical stock for your individual retirement arrangement (IRA) or Roth IRA.
3. [26 U.S.C. § 1091 (Loss from wash sales of stock or securities)](https://uscode.house.gov/us/usc/t26/s1091)
   > beginning 30 days before the date of such sale or disposition and ending 30 days after such date
