Your brokerage screen says you’re down $10,000. The coffee has gone cold. Somewhere, a cheerful market newsletter suggests staying positive.

You can stay invested and still put that loss to work. Tax-loss harvesting turns an investment disappointment into a potential tax deduction, provided you handle the sale and replacement carefully. Your tax situation is yours; a CPA can confirm whether the details fit before you click Sell.

Sepia engraving of a woman at a kitchen table stitching a green patch onto a torn umbrella, with rain on the window, a sewing box and a teacup beside her

TL;DR

  • Tax-loss harvesting uses realized investment losses to offset capital gains.
  • Remaining losses can reduce ordinary income by up to $3,000 annually, with unused amounts carried forward.
  • Wash-sale rules cover purchases before and after your sale, including spouse and IRA purchases.
  • Replacement investments and future taxes determine whether harvesting actually pays.

What tax-loss harvesting actually does

Tax-loss harvesting, or TLH, means selling an investment below its adjusted cost basis so the loss can reduce taxable gains or income.

Cost basis is your investment’s tax starting point, usually its purchase cost with adjustments. Under the IRS’s capital-gains guidance, a deductible investment capital loss arises when sale proceeds fall below that basis.

Say you bought shares for $12,000 and sell them for $10,000. Ignoring fees and adjustments, you’ve realized a $2,000 loss. The red number on your screen becomes a tax event.

The decline already happened economically. Selling records it. Holding forever doesn’t turn the original purchase price into a legally enforceable promise from the universe.

This walkthrough concerns investments held in a taxable brokerage account. The Vanguard tax-loss-harvesting FAQs describe reinvesting sale proceeds in a replacement designed to maintain your asset allocation.

You can often buy that appropriate replacement immediately. If account types and fund choices still feel slippery, start with Investing 101 for People Who Already Have a Budget.

What you can deduct for 2026

For 2026, the federal limit against ordinary income remains $3,000, or $1,500 if married filing separately. That’s the statutory amount in Internal Revenue Code Section 1211, not an annually inflation-adjusted contribution limit.

A married couple filing jointly gets one $3,000 limit. Marriage supplies many things. A second copy of this deduction isn’t one of them.

The sequence matters:

  • Apply capital losses against capital gains first.
  • If losses exceed gains, deduct up to the applicable annual limit against ordinary income.
  • Carry unused losses into later tax years.

The $3,000 cap doesn’t limit how much capital gain you can offset. A $20,000 deductible capital loss can offset $20,000 of capital gains.

You also don’t choose to save the whole loss while paying tax on gains you could offset. The netting rules determine its use.

The IRS’s Publication 550 explains the sorting: short-term losses first offset short-term gains, long-term losses first offset long-term gains, then the categories net against each other. Carryovers retain their short-term or long-term character.

A deduction reduces taxable income; it isn’t a refund equal to the loss. If a $3,000 deduction saves you tax at an assumed 24% marginal rate, that’s $720. Illustrative arithmetic, not a promised check.

Fit this into Year-End Tax Moves to Start in September (Not December) so one clever trade doesn’t become your entire tax plan.

The wash-sale rule has a rearview mirror

Under Internal Revenue Code Section 1091, buying substantially identical stock or securities within 30 days before or after a loss sale can disallow the loss.

That’s a 61-day window including sale day. Calendar days. Buying on day 30 afterward is still inside it; day 31 is outside, assuming no other triggering acquisition.

The rule looks backward, too. A purchase last week can interfere with a loss sale today. The tax code apparently has access to your browsing history.

IRS Publication 550 explicitly includes purchases by your spouse and acquisitions in your IRA or Roth IRA. Another account or broker isn’t a hiding place.

These examples assume a taxable loss sale and replacement shares you retain. The fund-swap row is a practical interpretation; Vanguard’s FAQs describe similar-exposure substitutes, not IRS approval:

ActionWash sale?Why
Sell Apple at a loss; buy Apple the next day.Yes.Same security inside the window.
Buy extra Apple shares 10 days before selling older Apple shares at a loss.Yes, for matched shares.The window also looks backward.
Your spouse buys Apple during your loss-sale window.Yes.Spouse purchases count.
Your IRA buys Apple during your taxable loss-sale window.Yes.IRA acquisitions count, too.
A dividend automatically buys replacement shares during the window.Yes, for matched shares.Automatic reinvestment is still a purchase.
Buy Apple 31 days after selling, with no triggering purchase beforehand.No, on these facts.The purchase falls outside the window.
Replace a total-market fund with one tracking a meaningfully different index.Generally avoided; review the pair.Similar exposure can come from securities that aren't substantially identical.
Engraving of a giant hourglass in an old bank lobby beside a revolving door, where a man in a bowler hat strains to push his way back through before the sand runs out

For a typical taxable-account replacement, a disallowed loss gets added to replacement-share basis, postponing the deduction.

An IRA replacement is nastier. IRS Revenue Ruling 2008-5 disallows the loss without increasing IRA basis. That can mean permanent loss of the deduction. Tiny checkbox. Large consequences.

The substitution game: similar doesn’t mean identical

You want to preserve the portfolio’s job while changing the security enough to respect the wash-sale rule.

Selling a total-market index fund and buying a different total-market fund tracking a meaningfully different index is generally considered a workable approach. Treat that as a practical interpretation, not an IRS-approved pairing.

The Vanguard tax-loss-harvesting FAQs describe using replacement funds with similar exposure and flag replacing one index fund with another tracking the same index as a potential problem.

Compare benchmarks, holdings, construction rules, and costs. A new ticker alone proves very little. A fake moustache doesn’t make your fund a different person.

Selling Apple and immediately buying Apple back is the easy case: substantially identical, because it is literally Apple. Changing brokerage apps doesn’t alter the fruit.

Also compare investment risk. A narrow technology fund isn’t interchangeable with a broad total-market portfolio merely because both contain stocks. If a replacement doesn’t fit your plan, the deduction may be poor compensation for owning something you didn’t want.

You can keep a suitable replacement beyond the wash-sale window. Returning to the original fund later may realize a new gain. There’s no mandatory homecoming parade.

Three worked examples, from annoying to spectacularly annoying

The IRS’s capital-loss rules establish the deduction and carryforward framework. Here are three simplified applications, assuming deductible losses, no wash sales, no other capital transactions or carryovers, sufficient taxable income, and a filing status allowing the $3,000 limit.

ExampleRealized loss2026 capital gains offset2026 ordinary-income deductionCarryforward after 2026
Small$2,000$2,000$0$0
Medium$10,000$0$3,000$7,000
Large$30,000$0$3,000$27,000

Small: a $2,000 loss meets $2,000 of gains

You previously sold one investment for a $2,000 gain. You sell another, purchased for $8,000, for $6,000.

Your $2,000 loss offsets the $2,000 gain. Net capital gain: zero. Nothing remains for an ordinary-income deduction or carryforward.

If the gain would otherwise face an assumed 15% federal rate, the immediate reduction is $300. If it would be taxed at 0%, that offset alone saves nothing. Same loss, different payoff. Tax context has entered the chat.

Medium: $10,000 lost, $7,000 saved for later

You sell a holding with $25,000 of basis for $15,000 and have no capital gains.

Of the $10,000 loss, $3,000 reduces ordinary income in 2026. The remaining $7,000 carries into 2027.

At an assumed 24% marginal rate, the current deduction saves $720. The $7,000 carryforward is a future tax attribute, not $7,000 in cash. Your landlord will notice the distinction.

If you realize $7,000 of capital gains next year and have no other relevant transactions, the carryforward can offset them all. It isn’t limited to $3,000 against gains.

Large: $30,000 used across ten tax years

You realize a $30,000 loss in 2026, with no capital gains to offset.

Assume no future capital gains or additional losses, enough taxable income each year, and unchanged deduction rules. You use $3,000 annually from 2026 through 2035: ten deductions totaling $30,000.

The carryforward is $27,000 after 2026, $24,000 after 2027, and $3,000 after 2034. The final deduction uses it in 2035.

That’s ten years including the harvest year, not ten additional years afterward. The loss has a longer calendar commitment than most houseplants.

Ten years isn’t a legal expiration date. Gains could use the balance faster; insufficient taxable income could change the schedule. Calculate the actual carryover using the IRS worksheet.

The benefit is often tax deferral

Harvesting can lower today’s bill while increasing a future one.

Sell an investment with $12,000 basis for $10,000, then buy a replacement for $10,000. If it later sells for $12,000, you’ve created a $2,000 gain on that replacement.

Kitces’s analysis of tax-loss-harvesting tradeoffs explains why current and future tax rates matter. Harvesting at a low rate and realizing the recovery at a higher rate can hurt.

The deduction doesn’t come with a time machine that erases the decline. It changes the tax timing.

Vanguard’s research, Tax-loss harvesting: Why a personalized approach is important, identifies reinvestment of tax savings as a major driver of value, alongside individual tax circumstances.

If the savings stay invested, they may grow during the deferral period. If replacement costs, trading spreads, or poor performance consume the benefit, the paperwork hasn’t made you richer. Neither has calling it a strategy.

A year-end walkthrough you can actually use

1. Check your gains and existing carryovers

Collect realized gains and losses across taxable accounts, prior-return carryovers, and expected fund capital-gain distributions. Check the complete picture before adding another loss.

2. Pick the shares and replacement deliberately

Review individual purchase lots, not just the position’s total return. Confirm the broker’s basis method and which shares the sale will use. IRS Publication 550 describes specific share identification and broker confirmation.

Choose a replacement you would willingly own. Tax savings are an unimpressive dating criterion for a fund.

3. Coordinate purchases across the household

Review recent buys, automatic investments, dividend reinvestment, spouse accounts, and IRAs. Adjust upcoming purchases and record when the restriction ends.

Use The ‘Money Date’ Script: 30 Minutes a Week That Will Change Your Marriage to make this a shared check. Nobody enjoys discovering their spouse’s perfectly innocent trade ate a deduction.

4. Execute before year-end and protect January

For ordinary exchange-traded stocks and ETFs, execute the sale by December 31, 2026, during available trading hours. An unfilled order doesn’t count.

The IRS’s 2026 Form 1099-B instructions use trade date for the sale date and require only limited broker wash-sale reporting. Don’t assume the broker catches purchases across every account.

A January repurchase can still wash out a December loss. The window doesn’t reset with the wall calendar.

5. Keep the tax paperwork

Save confirmations, basis details, replacement purchases, and carryover calculations. The IRS’s Form 8949 instructions explain wash-sale adjustments; most investment sales flow through Form 8949 and Schedule D.

Engraving of a bookbinder in spectacles stitching loose papers into bound volumes at a cluttered workbench, with a wall of filing drawers behind and a tabby cat asleep on a chair

Take the benefit that fits your life

Harvesting deserves a look when you have usable losses, gains or income to offset, and a sensible replacement. Skipping it can also be reasonable when savings are tiny, existing carryovers are large, or household trading makes compliance a second job.

You’re allowed to have an investing plan that doesn’t require a ceremonial December spreadsheet.

Put the review inside The Fall Financial Reset: 30 Days to Q4-Ready Finances and give it a stopping point. Your tax situation is yours; have a CPA check uncertain substitutions, carryovers, and state treatment before acting.

Tax-loss harvesting is the only place the IRS hands you a small thank-you note for your bad year. Take it.