Skip to main content

Tax-Loss Harvesting for High Earners: The Complete Guide

Offset capital gains and up to $3,000 of ordinary income by selling investment losers. Learn the wash-sale rule, RSU timing, and direct indexing for high earners.

Jump to section
  1. What tax-loss harvesting actually is
  2. The dollar math: what a harvested loss is actually worth
  3. The wash-sale rule (§1091): what kills the strategy
  4. Harvesting around RSU and ISO sales
  5. Why direct indexing creates more harvesting opportunities
  6. When harvesting backfires
  7. Ready to build a harvesting strategy that actually holds up?

TLDR

Do you own an investment that is down? You can sell it and use the loss on your taxes. This is tax-loss harvesting. The loss offsets your gains, dollar for dollar. It can also cut up to $3,000 of your ordinary income each year under IRC §1211(b). Any loss left over carries forward with no end date, under §1212(b). Watch one trap: the wash-sale rule (§1091). Buy the same or a substantially identical (nearly the same) security within 30 days before or after the sale, and the loss is disallowed. That is a 61-day window in total. Buy it back inside an IRA, and the loss is gone for good, under Revenue Ruling 2008-5. High earners often pay 20% on long-term gains plus 3.8% Net Investment Income Tax. That is 23.8% combined. So each harvested dollar of loss can cut your federal tax by up to about $0.24 this year. Your new shares have a lower cost basis. You may owe that tax later when you sell them. You can avoid this by giving the shares away or holding them until death.

In this guide, you’ll learn:

  • How to figure out how much a harvested loss saves you at the 23.8% combined federal rate
  • How to watch every account you control, and your spouse’s accounts too. The IRS says a spouse’s purchase can cause a wash sale. It has not ruled on a spouse’s IRA. Treat it the same way to be safe
  • How to time your RSU vesting sales and ISO exercises for the best harvesting
  • Why direct indexing gives you far more harvesting moments than a plain ETF portfolio
  • How to spot the times harvesting backfires, so you avoid the low-bracket trap

#What tax-loss harvesting actually is

Tax-loss harvesting means you sell an investment that has dropped. That locks in a capital loss for your taxes. You then put the money back into a similar, but not identical, position. This keeps your market exposure the same.

The goal is not to leave the market. The goal is to turn an unrealized loss into a usable tax deduction, while you stay invested.

Here is the simple version:

  • You bought 100 shares of a tech ETF for $50,000. Today it is worth $38,000.
  • You sell the ETF, realizing a $12,000 capital loss.
  • You use that $12,000 loss to offset $12,000 of capital gains realized elsewhere this year.
  • Net taxable capital gain: zero.
  • You immediately buy a different but correlated ETF to stay invested in the same market segment.

If you have more losses than gains, you can use up to $3,000 of the excess to offset ordinary income in the same year. Any amount beyond that carries forward indefinitely to future tax years.

#The mechanics under the tax code

IRC §1211(b) caps the deduction of net capital losses at $3,000 a year for individuals ($1,500 if you file married filing separately). That cap applies only to what is left after your losses have already offset all your capital gains.

IRC §1212(b) says unused net capital losses carry to next year. There is no expiration date. They keep their short-term or long-term label.

Short-term losses (held 12 months or less) offset short-term gains first. Long-term losses offset long-term gains first. Any leftover in one category then flows to the other. Only the final net number hits the $3,000 ordinary-income floor.

#Why high earners benefit most

At lower income levels, long-term capital gains may be taxed at 0% or 15%. Harvesting then saves you 15 cents per dollar. That may not be worth the effort and the wash-sale risk.

If your income is above $200,000 single or $250,000 joint, your long-term gains face 15% plus the 3.8% NIIT. That is 18.8%. Above $545,500 single or $613,700 joint, the rate is 20% plus 3.8%, or 23.8%. Add a 9 to 13% state rate in California, New York, or Oregon. Now each harvested loss is worth real money.

That is where tax-loss harvesting stops being a nice-to-have. It becomes a real planning priority.

#The dollar math: what a harvested loss is actually worth

Let’s put real numbers on this. Then you can see what is at stake.

Say you have $80,000 of realized long-term capital gains this year, from selling stock that went up. You also have one brokerage position that is down $35,000 from your cost basis.

Without harvesting:

  • $80,000 LTCG at 23.8% (federal only) = $19,040 federal tax due

With harvesting:

  • Sell the losing position, realizing a $35,000 long-term capital loss
  • Net long-term gain: $80,000 minus $35,000 = $45,000
  • $45,000 at 23.8% = $10,710 federal tax due
  • Federal tax saved: $8,330 in the current year

If you live in California (13.3% top rate on capital gains), add another $4,655 saved at the state level. Total savings from one harvesting move: over $12,000.

  • $35,000

    Capital loss harvested

    Down position sold, then re-invested

  • $8,330

    Federal tax saved

    23.8% rate (20% LTCG + 3.8% NIIT)

  • Indefinite

    Loss carryforward

    Unused losses per IRC §1212(b)

Source: IRC §1211(b), §1212(b), IRC §1411. 2026 NIIT threshold: $200K single / $250K MFJ. State taxes additional.

#The $3,000 ordinary income offset in practice

Now take a simpler case. You have no capital gains this year but you harvest $10,000 of capital losses from positions that declined.

  • Year 1: $10,000 net capital loss. You deduct $3,000 against ordinary income. At a 35% bracket that saves $1,050. At 37% it saves $1,110. Carryforward: $7,000.
  • Year 2: You have $5,000 of gains and a $7,000 carryforward. The carryforward wipes out the gains, so you owe no tax on them. The $2,000 left over cuts your ordinary income that year. Nothing carries to Year 3, so any Year 3 gains are taxed as usual.
  • Year 3: $2,000 of capital gains. You apply the last $2,000. Tax on those gains: $0.

A $10,000 harvest in a bad market year gets you a $3,000 deduction now. It also builds $7,000 of future gain-shielding room. The cost: two trades and a 31-day wait before you rebuy the original position.

#Short-term vs. long-term: which losses are worth more

The type of loss changes how much it saves you. Short-term capital losses (held 12 months or less) offset short-term gains first. Short-term gains are taxed at up to 37%, plus 3.8% NIIT. That is 40.8% in total. A $10,000 short-term loss against a $10,000 short-term gain saves up to $4,080. Compare that to $2,380 for long-term.

Long-term capital losses offset long-term gains first. There the top rate is 20% plus the 3.8% NIIT. A $10,000 long-term loss against a $10,000 long-term gain saves you $2,380 federal at those combined rates.

Here is the point: if you have both types of losses to harvest, the short-term ones are often worth more per dollar. That is true when you also have short-term gains from RSU vesting, short-term trades, or crypto sales. Pair them on purpose.

#The wash-sale rule (§1091): what kills the strategy

This is where most investors and some brokers get it wrong.

IRC §1091 disallows a loss if you buy the same or a substantially identical security within 30 days before or after the sale. That is a 61-day window total: 30 days before, the sale date, and 30 days after.

If you trigger a wash sale, what happens next depends on where you bought the replacement:

  • In a taxable account: the loss is put off, not gone. The disallowed loss adds to the cost basis of the new shares. You recover it when you sell those shares later, in a clean trade.
  • In an IRA or Roth IRA: the loss is gone for good, per Revenue Ruling 2008-5. The IRA has no outside cost basis for the IRS to attach the loss to. It simply disappears.

#The IRA trap is the most dangerous mistake in harvesting

I cannot stress this enough. Revenue Ruling 2008-5 exists because this exact pattern was quietly destroying tax deductions. Taxpayers thought they were staying invested cleanly. They were not.

Example: You sell 200 shares of an S&P 500 ETF at a $15,000 loss in your taxable brokerage account on October 1. On October 5, your IRA’s auto-rebalance buys the same ETF. You have triggered a wash sale. Because the repurchase is inside a tax-advantaged account, the $15,000 loss is gone for good.

The IRS has not said in writing that Revenue Ruling 2008-5 covers 401(k) accounts by name. But most practitioners treat 401(k)s the same as IRAs under §1091. We treat it as a permanent loss and tell clients the same. The risk is not worth testing.

#How to stay clean across all accounts

The cleanest fix is to swap in a correlated but not substantially identical security. The IRS has never published a full list of what counts as substantially identical. Here are the well-known rules of thumb:

  • Same ETF, different provider, same index (for example, Vanguard VOO and iShares IVV both track the S&P 500): many practitioners treat these as substantially identical. Skip this swap.
  • S&P 500 ETF swapped for a Total Market ETF: different makeup and index. Usually fine.
  • Exxon (XOM) swapped for Chevron (CVX): two different companies in the same sector. Usually fine.
  • Individual stock swapped for a sector ETF: widely treated as not substantially identical.

If you are not sure about a swap, settle that question before you trade, not after.

#The 31-day clean period

If you would rather skip the substitute-security approach, just wait 31 days to buy back the original. The risk: you sit out of the market during that window. If the position jumps back up, the tax savings from harvesting may not cover what you missed.

For long-term positions you expect to hold for years anyway, using a substitute for 31 days is usually the smarter move.

#Harvesting around RSU and ISO sales

If you get equity compensation, you have built-in harvesting chances most W-2 employees miss. This strategy pairs well with a thoughtful RSU sell plan.

#RSU vesting creates ordinary income and a cost basis reset

When RSUs vest, the fair market value at vesting is taxed as W-2 ordinary income through your payroll. Your cost basis in those shares is the FMV at vesting. This matters because:

  • If your employer’s stock drops after vesting, you are sitting on a capital loss against that vesting basis.
  • You can harvest that loss when you have other gains to offset, or carry it forward.
  • Watch the wash-sale window closely. Your ESPP may auto-buy shares, or more RSUs may vest. If either happens in the 61-day window around your sale, it could trigger a wash sale.

The key move: line up your RSU sell schedule with any upcoming vesting dates before you harvest. A one-page sell plan that maps vesting dates and tax lot bases earns its keep here.

#ISO exercises and AMT basis mismatches

For Incentive Stock Options (ISOs), the spread at exercise is an Alternative Minimum Tax preference item, not regular income. So your AMT basis is higher than your regular tax basis in the same shares. If the stock drops after you exercise, your AMT loss is bigger than your regular loss. That is because your AMT basis is higher. A sale can also create a regular gain with an AMT loss. Run both calculations before you sell ISO shares.

This is worth a full, separate look. See ISO vs. NSO equity compensation before you harvest ISO shares without checking both your regular and AMT basis.

The short version: never harvest ISO shares without knowing your AMT exposure first.

#Pairing RSU sales with losses elsewhere in the portfolio

If your RSU position has grown a lot and you plan to sell, that sale creates a large capital gain. Instead of just paying the tax, look at the rest of your portfolio. Find loss positions you can harvest the same year to offset it.

Example: Your RSU position is up $90,000 (long-term) and you plan to sell. Your brokerage account has three positions down a combined $40,000 from cost basis. Harvest those three positions at the same time. Net taxable gain: $50,000 instead of $90,000. At 23.8%, that is $9,520 saved on the harvested losses alone.

#Why direct indexing creates more harvesting opportunities

A standard brokerage portfolio holding S&P 500 ETFs has one security per market segment. When the index is up 12% for the year, all your ETF positions are likely also up around 12%. There is nothing to harvest.

Direct indexing fixes this. It swaps the single ETF for the individual stocks underneath it, held directly in your account. All 500, or a sample of 300 to 400. Now, even in a year when the index is up 12%, you might have 120 stocks that are down 5% to 20%. Each one is a chance to harvest.

#How direct indexing works in practice

A direct indexing separately managed account (SMA) holds individual stocks weighted to track the S&P 500 or another index. The software watches every position each day. It flags harvest candidates when they drop below a threshold you set, usually 5% to 10% below cost.

When a position is harvested:

  • The software sells the declining stock
  • Replaces it with a correlated substitute to maintain market exposure
  • Flags the original for potential repurchase after the 31-day wash-sale window expires
  • Logs the realized loss for your tax records

The result, according to research from major custodians and wealth managers: some firms report extra after-tax return from direct indexing. Results vary by account, market and how long you stay invested. Much of the gain is tax put off, not tax saved for good.

#The minimum investment reality

Direct indexing takes enough capital to hold meaningful positions across hundreds of stocks. Here are the real-world entry points:

  • $100,000: Schwab Personalized Indexing and a few newer platforms start here, with annual fees around 0.40%. Minimums and fees change. Many providers start between $100,000 and $250,000, and some start lower. Check each provider’s current terms before you decide.
  • $250,000 and up: Vanguard Personalized Indexing, Parametric, Goldman Sachs Aperio, the platforms where the after-tax edge typically clears the fee over plain ETFs
  • Below $100,000: a standard ETF strategy, with you harvesting by hand when you spot a loss position

If giving to charity matters to you, direct indexing pairs well with a donor-advised fund. You harvest the losers for the tax loss. Then you donate your most appreciated long-term winners straight to the DAF, for a full fair-market-value charitable deduction. See the breakdown of donor-advised funds vs direct giving for how that combination works in a single tax year.

#When harvesting backfires

Not every loss position is worth harvesting. Here is when the math turns against you.

#The low-bracket year trap

You might have a year with temporarily low income: a sabbatical, a big business loss, or early retirement before Social Security. If so, you may be in the 0% long-term capital gains bracket. In a 0% year, a long-term loss would only cancel gains that are already tax free. That wastes the loss. It also lowers your cost basis, which raises your gain later. Gain harvesting can work better. Check how extra gains affect credits and Medicare premiums first.

Just so you know: the right move in a low-bracket year is often the opposite. Consider selling appreciated positions at the lower rate (called gain harvesting) or doing a Roth conversion, instead of harvesting losses.

#Using short-term losses against low-rate long-term gains

Short-term losses offset short-term gains first, saving up to 37%. But if your only gains this year are long-term, using a short-term loss there saves just 20% to 23.8%. You would be spending a high-value asset (the short-term loss) to save at a lower rate.

The fix is not to skip harvesting short-term losses. Pair them with short-term gains whenever you can. Carry any extra forward to offset future short-term gains. Do not burn them against long-term gains at a discount.

#Harvesting assets you plan to hold until death

At death, an asset’s basis resets to its market value. Gains are wiped out. Losses are wiped out too. So an unused loss on a position you hold until death is lost. That step-up erases embedded capital gains for your heirs. If you hold a concentrated position you plan to pass on, that embedded gain will never be taxed. So harvesting losses to offset a gain the step-up will erase anyway solves a problem that does not exist.

#Common questions

Does the $3,000 ordinary income limit apply to both short-term and long-term losses? Yes. First you net all your gains and losses. Any net capital loss left over, whether short-term or long-term, can offset up to $3,000 of ordinary income per year. The short-term vs. long-term split changes how much the loss is worth against gains. It does not change whether the loss can reach ordinary income.

Can I harvest the same position every year? Yes, as long as you respect the 31-day clean period each time. Sell the position, hold a substitute for 31 days, then buy back the original. Your cost basis resets lower each time you harvest. Over time this builds a deferred gain that eventually comes due. But you have pushed it years into the future, while getting the tax benefit now.

What happens to a wash-sale loss if I rebuy inside my 401(k)? Most practitioners treat it as gone for good. That follows the logic of Rev. Rul. 2008-5, which covers IRAs. The IRS has not ruled on 401(k) accounts by name, but the reasoning is the same: there is no outside cost basis inside the 401(k) for the loss to attach to. We tell clients to treat it as gone and plan around that.

Does cryptocurrency have a wash-sale rule? As of 2026, crypto you hold directly is not subject to the wash-sale rule under IRC §1091, which applies to “stock or securities.” That could change soon. In September 2026 a House committee approved a bill that would apply the rule to crypto sold after September 14, 2026. It is not law yet. Even today, a quick sell and rebuy with no real purpose can draw IRS questions. Check the current law before you rely on this.

How does tax-loss harvesting interact with the AMT? Capital losses reduce both regular taxable income and AMT income in most cases. But if you owe AMT (often triggered by ISO exercises or large itemized deductions), the exact benefit can differ between the two calculations. The ISO interaction is especially tricky. Always run both AMT and regular tax before a large harvest involving equity compensation.

If I harvest a loss and buy a substitute, when can I switch back to the original? Day 31 after the sale. If you sell on October 1, you can buy back the original starting November 1. Put a calendar reminder on the 31-day mark. Miss it, and rebuying on day 29 triggers the wash sale.

Can I harvest losses inside a tax-deferred retirement account? No. Losses inside a traditional IRA, Roth IRA, or 401(k) stay trapped inside that wrapper. They lower the account’s value but create no deductible loss outside the account. Tax-loss harvesting only pays off in taxable brokerage accounts.

Is there a cap on how much loss I can carry forward? No. Under IRC §1212(b), capital loss carryforwards have no dollar cap and no end date. A big market downturn in a large portfolio could create hundreds of thousands in carryforward losses that shield future gains for years. The $3,000 annual limit only caps how much loss hits ordinary income each year. It does not cap the total carryforward balance.


#Ready to build a harvesting strategy that actually holds up?

Tax-loss harvesting looks simple. Then you hit the IRA wash-sale rule. Or you find out your RSU grants create a 61-day landmine. Or you realize you have been burning short-term losses against 15% gains instead of 37% income. We don’t do surprises. We map your full picture (taxable accounts, retirement accounts, equity comp vesting schedule, estate plan) before we recommend a single trade.

For W-2 high earners with equity compensation and real brokerage accounts, pairing tax-loss harvesting with an RSU sell plan is smart. Add a direct indexing account, and it becomes one of the highest-ROI strategies out there. It runs quietly in the background, compounding year after year.

Book a 20-minute Tax Discovery: Google Meet, no pitch, free advice either way. Or learn more about tax planning advisory and what a proactive strategy looks like for your situation.

Search the whole site.

Articles, services, segment pages, tech stack. Start typing, or jump to a topic.

Tip: ↑ ↓ to navigate · Enter to open · Esc to close