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. #Common questions
  8. #Ready to build a harvesting strategy that actually holds up?

TLDR

Tax-loss harvesting lets you sell investments that are down to generate a capital loss, which offsets capital gains dollar-for-dollar and reduces up to $3,000 of ordinary income per year under IRC §1211(b). Unused losses carry forward indefinitely under §1212(b). The biggest trap is the wash-sale rule (§1091): buy the same or substantially identical security within 30 days before or after the sale (a 61-day total window) and the loss disappears. Repurchase inside an IRA and the loss is gone permanently per Revenue Ruling 2008-5. High earners at the 20% long-term capital gains rate plus the 3.8% Net Investment Income Tax face a 23.8% combined federal rate, making each harvested dollar of loss worth nearly $0.24 in federal tax saved.

In this guide, you’ll learn:

  • Calculate exactly how much a harvested loss saves you at the 23.8% combined federal rate
  • Apply the wash-sale rule (§1091) correctly across every account you own, including your spouse’s IRA
  • Time your RSU vesting sales and ISO exercises to maximize harvesting opportunities
  • Understand why direct indexing creates far more loss-harvesting moments than a standard ETF portfolio
  • Spot the scenarios where harvesting backfires so you avoid the low-bracket trap

#What tax-loss harvesting actually is

Tax-loss harvesting is the practice of selling an investment that has declined in value to lock in a capital loss for tax purposes, then immediately reinvesting the proceeds in a similar (but not identical) position to maintain your market exposure.

The goal is not to exit the market. The goal is to convert an unrealized loss into a usable tax deduction while staying economically 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) limits the deduction of net capital losses for individuals to $3,000 per year ($1,500 if married filing separately). That limit applies to any remaining net loss after you have already offset all your capital gains.

IRC §1212(b) ensures that unused net capital losses carry forward to the following year with no expiration date, retaining their character as short-term or long-term.

Short-term losses (securities held 12 months or less) offset short-term gains first. Long-term losses offset long-term gains first. After netting within each category, any remaining excess flows across to the other category. Only the final net capital loss position 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 saves you 15 cents per dollar, which may or may not justify the effort and the risk of making a wash-sale mistake.

But once you are in the 20% long-term capital gains bracket for 2026 (taxable income above $545,500 single or $613,700 married filing jointly) and your investment income also crosses the Net Investment Income Tax threshold ($200,000 MAGI single or $250,000 MAGI married filing jointly), you are facing a combined 23.8% federal rate on long-term gains. Add a 9–13% state rate on top of that in California, New York, or Oregon, and each harvested loss is genuinely valuable.

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

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

Let me put real numbers on this so you see exactly what is at stake.

Say you have $80,000 of realized long-term capital gains this year from selling appreciated stock. 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 are 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 (saving $990 at a 33% combined federal rate). Carryforward: $7,000.
  • Year 2: $5,000 of capital gains. You apply $5,000 of the carryforward. Tax on those gains: $0. Remaining carryforward: $2,000.
  • 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 creates a $3,000 immediate deduction plus $7,000 of future gain-shielding capacity, all for the cost of placing two trades and waiting 31 days before rebuying the original position.

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

The character of the loss affects 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 ordinary income rates, up to 37% federal. A $10,000 short-term loss used against a $10,000 short-term gain saves you $3,700 at the top federal rate.

Long-term capital losses offset long-term gains first, where 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.

The practical implication: if you have both types of losses to harvest, the short-term losses are often worth more per dollar when you also have short-term gains from RSU vesting, short-term trades, or crypto sales. Pair them deliberately.

#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 substantially identical security within 30 days before or after the sale. That is a 61-day total window: 30 days before, the sale date itself, and 30 days after.

If you trigger a wash sale, the result depends on where the repurchase happened:

  • In a taxable account: the loss is deferred, not gone. The disallowed loss adds to the cost basis of the replacement shares. You recover it when you sell the replacement shares later in a clean transaction.
  • In an IRA or Roth IRA: the loss is permanently and irrecoverably forfeited, per Revenue Ruling 2008-5. The IRA has no outside cost basis for the IRS to attach the deferred loss to. It disappears.

#The IRA trap is the most dangerous mistake in harvesting

I cannot overstate this. Revenue Ruling 2008-5 was issued precisely because this pattern was silently destroying tax deductions for taxpayers who thought they were staying invested cleanly.

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 automatic rebalance buys the same ETF. You have triggered a wash sale, and because the repurchase is inside a tax-advantaged account, the $15,000 loss is permanently lost.

The IRS has not formally extended Revenue Ruling 2008-5 to 401(k) accounts by name, but most practitioners treat 401(k)s identically to IRAs under §1091. We treat it as a permanent loss and advise clients accordingly. The risk is not worth testing.

#How to stay clean across all accounts

The cleanest solution is to replace the sold security with a correlated but not substantially identical substitute. The IRS has never published an exhaustive list of what qualifies as substantially identical, but here are the well-established positions:

  • Same ETF, different provider tracking the same index (e.g., Vanguard VOO and iShares IVV both track the S&P 500): many practitioners consider these substantially identical. Avoid this swap.
  • S&P 500 ETF replaced with a Total Market ETF: different composition and index. Generally acceptable.
  • Exxon (XOM) replaced with Chevron (CVX): two different companies in the same sector. Generally acceptable.
  • Individual stock replaced with a sector ETF: broadly accepted as not substantially identical.

If you are unsure about a specific swap, that question is worth settling before you trade, not after.

#The 31-day clean period

If you want to avoid the substitute security approach entirely, you can simply wait 31 days to repurchase the original security. The risk: you are out of the market during that window. If the position recovers sharply, the tax savings from harvesting may not outweigh the opportunity cost of missing the rebound.

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

#Harvesting around RSU and ISO sales

If you receive equity compensation, you have built-in harvesting opportunities that most W-2 employees overlook. This strategy pairs directly with a thoughtful RSU sell plan framework.

#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 the vesting date, you are sitting on a capital loss relative to the vesting cost basis.
  • You can harvest that loss when you have other gains to offset, or carry it forward to future years.
  • Watch the wash-sale window carefully. If your company auto-purchases shares through an ESPP or if additional RSU tranches vest during the 61-day window around your sale, you may inadvertently trigger a wash sale on the harvested shares.

The key action: coordinate your RSU sell schedule with any pending vesting dates before executing a harvest. A one-page sell plan that maps vesting dates and tax lot bases is worth its weight 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. This creates a situation where your AMT basis is higher than your regular tax basis in the same shares. If the stock later drops below your exercise price, you may have a regular tax loss but still show an AMT gain, or face a complex crossover scenario.

This is nuanced enough to get its own detailed treatment. See the full breakdown on ISO vs. NSO equity compensation before harvesting ISO shares without confirming both your regular and AMT basis positions.

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

#Pairing RSU sales with losses elsewhere in the portfolio

If you have a large concentrated RSU position that has appreciated significantly, selling it creates a large capital gain. Rather than just paying the tax, look at your broader portfolio for loss positions you can harvest in the same tax 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 simultaneously. 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%. Nothing to harvest.

Direct indexing solves this by replacing the single ETF with the individual underlying stocks held directly in your account. All 500, or a representative sample of 300 to 400. Now, even in a year where the index is up 12%, you might have 120 individual stocks that are down 5% to 20%. Each one is a potential harvest.

#How direct indexing works in practice

A direct indexing separately managed account (SMA) holds individual stocks weighted to approximate the S&P 500 or another index. The account’s software monitors every position daily and flags candidates for harvesting when they drop below a threshold you set (typically 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: 0.3% to 1.0% of additional after-tax return annually compared to a comparable ETF strategy. That is the tax alpha from continuous, systematic harvesting operating year-round instead of only when you notice a loss.

#The minimum investment reality

Direct indexing requires enough capital to hold meaningful positions across hundreds of stocks. The practical entry points:

  • $100,000: Schwab Personalized Indexing and a few newer platforms start here, with annual fees around 0.40%
  • $250,000 and up: Vanguard Personalized Indexing, Parametric, Goldman Sachs Aperio — the platforms where after-tax alpha reliably exceeds the fee premium over ETFs
  • Below $100,000: standard ETF strategy with manual harvesting when you spot loss positions

If you are also charitably inclined, direct indexing pairs cleanly with a donor-advised fund strategy. You harvest the losers for the tax loss, then donate your most appreciated long-term winners directly 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 across a single tax year.

#When harvesting backfires

Not every loss position is a good harvesting candidate. Here are the situations where the math turns against you.

#The low-bracket year trap

If you are in a year with temporarily low income (sabbatical, major business loss, early retirement before Social Security kicks in), you may be in the 0% long-term capital gains bracket. Harvesting a long-term loss when your LTCG rate is already 0% does nothing to offset long-term gains. Worse, it converts a 0%-rate deferred gain into a harvested position with a lower cost basis that you will sell at a higher rate in future years.

Just so you know: the right move in a low-bracket year is often the opposite. Consider selling appreciated positions at the lower rate (a technique called gain harvesting) or doing a Roth conversion, not 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, deploying a short-term loss there only saves you 20% to 23.8%. You are spending a high-value asset (short-term loss) to save at a lower rate.

The solution is not to avoid harvesting short-term losses. It is to pair them with short-term gains whenever possible and carry the excess forward to offset future short-term gains rather than burning them against long-term gains at a discount.

#Harvesting assets you plan to hold until death

Under current law, appreciated assets receive a stepped-up basis to fair market value at the date of death. That step-up eliminates embedded capital gains for the heirs. If you are holding a concentrated position you plan to pass on, the embedded gain will never be taxed. Harvesting losses in the same asset class to offset a gain you plan to eliminate through a step-up is solving 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. After netting all your gains and losses, any remaining net capital loss (whether it originated from short-term or long-term positions) can offset up to $3,000 of ordinary income per year. The short-term vs. long-term distinction affects the rate the losses are worth against gains, not whether they 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 repurchase the original. Your cost basis resets lower with each harvest. Over time this creates a deferred gain that eventually comes due, but you have pushed it years into the future while accessing the tax benefit now.

What happens to a wash-sale loss if I rebuy inside my 401(k)? Most practitioners treat it as permanently lost, following the logic of Rev. Rul. 2008-5 (which addresses IRAs). The IRS has not issued a direct ruling naming 401(k) accounts, but the reasoning is the same: there is no outside cost basis inside the 401(k) for the deferred loss to attach to. We tell clients to treat it as gone and plan accordingly.

Does cryptocurrency have a wash-sale rule? As of 2026, cryptocurrency is not currently subject to the wash-sale rule under IRC §1091, which applies to “stock or securities.” This is a meaningful planning advantage: you can sell Bitcoin at a loss on December 30 and repurchase it on December 31, harvesting the full loss without a 61-day wait. Congress has repeatedly proposed extending §1091 to digital assets. Check the current law before relying on this treatment.

How does tax-loss harvesting interact with the AMT? Capital losses reduce both regular taxable income and AMT income in most standard cases. However, if you are subject to AMT (often triggered by ISO exercises or large itemized deductions), the exact benefit may differ between the two calculations. The interaction with ISO shares is especially complex. Always model both AMT and regular tax before executing 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 repurchase the original security starting November 1. Put a calendar reminder at the 31-day mark. Missing 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) are trapped inside the tax-deferred wrapper. They reduce the account’s value but generate no deductible loss outside the account. Tax-loss harvesting only creates a tax benefit in taxable brokerage accounts.

Is there a cap on how much loss I can carry forward? No. Under IRC §1212(b), capital loss carryforwards are unlimited in amount and carry forward indefinitely. A significant market downturn in a large portfolio could generate hundreds of thousands in carryforward losses that shield future gains across many 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 straightforward until you hit the IRA wash-sale rule, discover your RSU grants create a 61-day landmine, or 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 recommending a single trade.

For W-2 high earners with equity compensation and significant brokerage accounts, coordinating tax-loss harvesting with an RSU sell plan and a direct indexing account is one of the highest-ROI strategies available. It runs quietly in the background, compounding year after year.

Book a 15-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