Glossary

    Glossary

    Tax-Loss Harvesting

    Tax-loss harvesting is selling a holding at a loss to cancel capital gains elsewhere in the portfolio, then deducting up to $3,000 more against ordinary income. The wash-sale rule is the only rule that bites, and it is easy to route around.

    Markets & InvestingLast reviewed 2026-10-06

    What it is

    Tax-loss harvesting is the practice of selling an investment that sits below its purchase price, realizing the loss, and spending it against the tax code. Realized losses first cancel realized gains of the same character: short-term losses against short-term gains, long-term against long-term. Leftover losses cross over to the other bucket, and up to $3,000 of whatever remains deducts against ordinary income each year, $1,500 for married filing separately. Unused losses carry forward indefinitely.

    The paperwork lives on Form 8949 and Schedule D, and most brokerages prefill the arithmetic every January. The one rule that bites is the wash-sale rule: rebuy the same or a substantially identical investment within 30 days before or after the sale, and the IRS cancels the loss. The fix is boring — swap into a similar fund tracking a different index, and stay invested.

    Key takeaways

    • Harvested losses cancel capital gains first, then deduct up to $3,000 a year against ordinary income.
    • Short-term losses offset short-term gains first; long-term losses offset long-term gains first.
    • Rebuying the same or substantially identical fund within 30 days triggers the wash-sale rule.
    • The standard swap is a different index fund, which keeps you invested while the loss stays bankable.
    • Losses carry forward indefinitely, and harvesting only exists in taxable accounts, never inside an IRA.

    How it works

    The netting runs in an order the IRS fixed decades ago. Short-term losses cancel short-term gains first, long-term losses cancel long-term gains first, and only after each bucket nets out do the leftovers cross. A $6,000 short-term loss against a $4,000 long-term gain leaves the gain fully canceled and $2,000 of loss remaining, which then deducts against ordinary income up to the $3,000 cap. The remainder carries forward to next year's Form 8949.

    The wash-sale rule is the enforcement mechanism. Selling a fund at a loss and buying the same fund, or one substantially identical, within 30 days before or after the sale disallows the loss, and the disallowed amount folds into the cost basis of the replacement shares instead of vanishing. The window runs both directions, so a purchase made three weeks ago counts against a sale made today. Per IRS Revenue Ruling 2008-5, buying the fund inside a spouse's account or your own IRA counts too.

    The standard implementation is a swap, not an exit. Selling an S&P 500 fund at a loss and buying a total-market fund the same afternoon keeps the portfolio invested while the loss stays bankable, because the two funds are similar but not substantially identical. After the 31st day, the investor can swap back or simply stay put. The loss waits on the tax return; the market exposure never left.

    Why it matters

    Volatility is a liability on the statement and an asset on the tax return, and harvesting is the exchange rate between the two. A taxable brokerage account compounds under an annual tax drag that a 401(k) never pays, and harvested losses are the one lever that pulls the bill down without changing a single holding. A $3,000 deduction at the 24% bracket is $720 a year, collected for doing something the drawdown already did.

    I watched a colleague named Brent (yes, that Brent) sell a losing position to cash in a correction, then rebuy the identical fund three weeks later to be safe. The wash-sale rule cancelled the loss, the market recovered without him during the paperwork gap, and the tax return showed nothing. He managed to pay the costs of both strategies and collect the benefit of neither.

    The highest-leverage thing most Americans can do is harvest losses whenever a taxable holding trades below basis, swap into a different fund rather than cash, and let the carryforward absorb future gains. Run the savings with the tax-loss harvesting calculator and net the gains and losses with the portfolio tax calculator. The trough is survivable; the paperwork error at the trough rarely is.

    Real-world examples

    The $3,000 deduction against a salary

    An investor harvests $8,000 of losses in a year with no capital gains to offset. Both buckets net negative, so $3,000 deducts against ordinary income: $720 saved at the 24% bracket, $1,050 at 35%. The remaining $5,000 carries forward on Schedule D and deducts $3,000 the following year before any new harvesting. Two tax years of deductions from one bad market quarter is the entire pitch, and the market exposure was never given up to collect it.

    The wash-sale swap that keeps the loss

    The same investor sells an S&P 500 index fund for a $4,000 loss and buys a total-market index fund the same afternoon. The funds hold overlapping companies but are not substantially identical, so the loss survives on Schedule D. The portfolio stays roughly fully invested in US large caps, the swap back can wait for day 31, and the total cost of the operation is one brokerage screen and two clicks. The tax code paid for the trade; the market never noticed it.

    Short-versus-long netting in one tax year

    A year-end statement shows a $6,000 short-term loss and a $4,000 long-term gain. The long-term bucket nets to a $4,000 gain, the short-term bucket to a $6,000 loss, and the leftovers cross: the $4,000 gain disappears against short-term losses, leaving $2,000 to deduct against ordinary income. At the 24% bracket that is $480 collected from a year the portfolio found stressful. The ordering did the work; nothing was sold to create it.

    Common mistakes

    Mistake: Rebuying the same fund inside the 30-day window.

    Why it bites you: The wash-sale rule disallows the loss, and Brent's version — rebuying through a spouse's account — counts too. The disallowed amount folds into basis, delaying rather than deleting the benefit.

    Mistake: Harvesting inside an IRA or 401(k).

    Why it bites you: No capital gains exist in those accounts, so there is no loss to realize and nothing to spend. The only losses worth anything are in the taxable brokerage.

    Mistake: Selling to cash for the 31 days.

    Why it bites you: Markets recover without appointments: a fund that falls 15% often rebounds most of it inside a month. The missed recovery routinely costs more than the deduction saves.

    Mistake: Chasing losses too small to matter.

    Why it bites you: A $60 loss harvested with $10 of bid-ask spread and an hour of basis-tracking is a hobby, not a strategy. Harvest in size or not at all.

    Ivy's take

    I spent an evening inside IRS Publication 550 and the wash-sale rulings so you do not have to, and the takeaway is that the rule is narrow, published, and easy to respect. Harvesting is one of the few tax moves that converts an uncomfortable market into a refund, and it requires no forecast, no leverage, and no newsletter subscription. The discipline is choosing a similar-enough replacement fund and leaving the calendar alone.

    Brent, meanwhile, harvested in his IRA, where no capital gains exist to lose. I ran his trade through the wash-sale window out of curiosity and the answer matched the law's: nothing happened, at a cost of one phone call to the brokerage and forty minutes he will not get back. Harvest in the taxable account, swap rather than sit, and let the carryforward do the waiting.

    Related jargon, defined

    Wash-sale rule
    The 30-day rule that disallows losses on substantially identical rebuys.
    Cost basis
    The purchase price a gain or loss is measured against.
    Short-term gain
    A gain on a holding of one year or less, taxed as ordinary income.
    Carryforward loss
    A leftover capital loss that deducts in future years indefinitely.
    Form 8949
    The IRS form where every sale's gain or loss is reported.
    Tax-gain harvesting
    Selling winners in low-income years to reset basis at the 0% rate.

    Frequently asked questions

    Does tax-loss harvesting actually save money?+

    Yes, twice: losses cancel capital gains that would otherwise be taxed at 15% to 20%, and up to $3,000 a year then deducts against ordinary income. At the 24% bracket that second piece alone is $720 a year.

    What counts as substantially identical under the wash-sale rule?+

    The IRS never published a bright line, but the same CUSIP is always a wash and the same fund's share class always is too. Funds tracking different indexes are the standard, generally accepted swap.

    Can I harvest losses in my 401(k) or Roth IRA?+

    No. Gains and losses inside tax-advantaged accounts have no tax consequence, so there is nothing to realize and nothing to spend.

    What happens to losses I do not use this year?+

    They carry forward indefinitely on Schedule D until gains or the $3,000 annual deduction absorb them. A large harvest can quietly reduce taxes for a decade.

    Do I have to stay out of the market for 30 days?+

    You only have to avoid the same or substantially identical security, so a swap into a different index fund keeps you invested the whole time. Rebuying the original fund on day 31 is fine.

    Disclaimer: This information is general in nature and does not constitute financial or legal advice. Always consult a qualified professional for your specific situation.

    Keep learning

    Ivy Sinclair-Wren

    Ivy Sinclair-Wren

    Financial Chaos Analyst

    Connect on LinkedIn

    Ivy Sinclair-Wren is a Financial Chaos Analyst covering investing, AI, wealth psychology, and the emotional consequences of opening finance apps during market crashes. Based in Melbourne, she specializes in demystifying the US tax code and helping users navigate the intersection of spreadsheet logic and human irrationality.