Mathstub
RSU basicsMathstub Editorial

Is there a way to avoid taxes on RSUs? (Honest answer: no, but 5 ways to optimize)

You cannot legally avoid tax on RSU vests — the FMV is taxed as ordinary wage income under IRC §83(a) the moment the shares deliver. Five legal strategies can reduce, defer, or offset the bill: (1) state arbitrage before vest, (2) max 401(k) and HSA, (3) charitable stock gifts of vested shares, (4) tax-loss harvesting, (5) hold post-vest for long-term capital gains treatment on appreciation. None erase the vest-tax itself.

← all guides✓ Reviewed against IRS sourcesFree · no signup
5 min read · 1,093 words

Tax year 2026 · Last updated June 7, 2026

Short answer: no, you cannot legally avoid the tax owed on an RSU vest. The fair-market value of the shares is taxed as ordinary wage income under IRC §83(a) the moment they deliver — same as a cash bonus. Anyone selling you an "RSU tax loophole" is either misinformed or breaking the law. But there are five legitimate strategies that legally reduce, defer, or offset the total tax bite. Here is the honest list.

The 5 legal levers — none erase the vest tax itself
LeverWhat it doesRough saving
Move before a vestSkips state tax on future vestsUp to ~13% of the vest
Max 401(k) + HSALowers your taxable income that year~$13k on $400k income
Donate appreciated sharesSkips capital-gains tax + full deduction~$840 per $8k gifted
Tax-loss harvestingOffsets capital gains (not the vest)Varies
Hold 1+ yearAppreciation taxed at the lower LTCG rateSmall; risk tradeoff

Strategy 1 — State residency arbitrage (before vest, not after)

9%) to a no-tax state (Texas, Florida, Washington) before the vesting date, the vest may be sourced to your new state under that state's rules.

Caveat: most states use "workday allocation" or "trailing nexus" — California sources RSU income to CA based on the percentage of vesting period you worked in CA, not where you live on vest day.

Concrete savings: 100% remote tech worker moves from CA to TX one year before a $200,000 vest. CA might still claim 50-100% of the income depending on facts. 3% × $200k).

The move only pays off if you actually establish bona fide TX residency (driver's license, voter registration, no CA real-estate, etc.) and your equity vests over multiple years.

Strategy 2 — Max pre-tax 401(k) and HSA the same year as vesting

Pre-tax retirement and health-savings contributions reduce your W-2 Box 1 ordinary income dollar-for-dollar. The RSU vest is still taxed in full as ordinary income, BUT pushing your total taxable income lower may keep you out of higher brackets, reduce AMT exposure, and lower the marginal rate that applies to the next dollar of vest:

  • 401(k) contribution limit 2026 (projected): $24,000 elective deferral + $8,000 catch-up if 50+. Employer match adds nothing taxable.
  • HSA contribution limit 2026 (projected): $4,400 self-only / $8,750 family + $1,000 catch-up if 55+.
  • Mega backdoor Roth (if your plan allows): up to $46,500 in after-tax 401(k) contributions, immediately converted to Roth. Does not reduce current taxes but locks in tax-free growth on the contribution AND any earnings.

For a $400,000 W-2 earner in California in the 32% federal bracket, maxing 401(k) + HSA saves approximately $13,150 in combined federal + state tax that year.

Real money, totally legal, no tradeoff except the cash is locked until retirement.

Strategy 3 — Charitable stock gifts (donate appreciated shares, not cash)

If you already plan to donate to charity, donate appreciated RSU shares directly instead of selling them and donating cash. You get:

  • A charitable deduction equal to the current FMV of the shares (up to 30% of AGI for long-term appreciated stock to a public charity per IRC §170(b)(1)(C)).
  • Zero capital gain on the appreciation — the charity sells the shares tax-free.
  • No "deemed sale" — you skip the cap-gain tax you would have owed on selling the appreciated shares yourself.

Example — 100 shares (cost basis $5,000) now worth $8,000:

Donate the shares vs sell first, then donate cash
DeductionCapital-gains tax
Donate shares directly$8,000$0
Sell, then donate cash$8,000~$840

Same $8,000 deduction either way — but donating the shares directly saves the ~$840 of capital-gains tax (15% + 3.8% NIIT). For larger gifts, a donor-advised fund (Fidelity Charitable, Schwab, Vanguard) lets you time the deduction.

Strategy 4 — Tax-loss harvesting (offset cap gains, not ordinary income)

If you have other investment positions sitting at unrealized losses, sell them in the same calendar year as your RSU vest. The realized capital losses offset:

  1. Capital gains on RSU shares sold at appreciation (dollar-for-dollar offset).
  2. Up to $3,000 of ordinary income per year if your losses exceed your gains.
  3. Excess losses carry forward indefinitely under IRC §1212(b).

Limitation: tax-loss harvesting does not offset the ordinary-income portion of an RSU vest. The vest FMV is W-2 wages, not capital gain.

Harvesting only helps if you have capital gains to offset (from selling vested shares post-appreciation, or other investments).

Watch the wash-sale rule under IRC §1091 — do not buy back the same security within 30 days.

Strategy 5 — Hold for long-term capital gains on appreciation

The FMV at vest is taxed as ordinary income — unavoidable.

But if you hold the shares for 366+ days after vest, any appreciation from vest price to sale price is taxed at long-term capital gains rates (0/15/20% federal) instead of ordinary rates (22-37%).

The saving is real but only applies to the gain ABOVE the vest FMV.

Example: 100 RSUs vest at $50/share ($5,000 FMV, taxed as ordinary income at ~$2,140 in CA). Hold 18 months, sell at $80/share. 3% CA = ~$840.

If sold inside 1 year, that same $3,000 would have been ~$1,330 at ordinary rates. Saving: $490 on $8,000 of gross sale. Tradeoff: 18 months of single-stock concentration risk on $8,000.

For most tech workers with diversification concerns, the LTCG saving is too small to justify holding. See our separate post on when to sell RSUs after vesting for the full risk math.

What does NOT work (avoid these "loopholes")

The "loopholes" that don’t work
The "trick"Why it fails
83(b) election on RSUsDoesn’t apply — RSUs are taxed at vest under §83(a); no election exists (it’s for restricted stock or options).
Refuse the vestYou can’t. The grant controls; vested shares can’t be returned for a tax do-over.
Defer with an NQDC planStrict §409A rules, usually execs only, and your deferral is an unsecured claim on the employer.
Move to Puerto Rico (Act 60)US-source work done before the move stays federally taxable; Pub 570 / Act 60 sourcing is aggressively audited.
Offshore entity to hold RSUsIllegal — RSU income is your personal W-2 wages; routing it through an entity is evasion (§61, §7201).

The takeaway

No magic trick erases tax on an RSU vest. The FMV at vest is ordinary wage income under §83(a), full stop.

What you can do is reduce other taxable income (pre-tax retirement, charitable giving), defer or smooth out the timing (state arbitrage, NQDC), or convert future appreciation to capital gain (hold past 1 year).

For a high-earner with significant equity, combining strategies 2 + 3 + 5 typically saves $5,000–$30,000 per year of vesting — without any aggressive positions.

For complex situations (multi-state residency, $1M+ vests pushing into 37% federal supplemental, ISO/AMT interactions, or pre-IPO equity), talk to a fee-only fiduciary CPA who specializes in equity compensation.

The Harness Wealth network is a good starting point — Mathstub matches you with vetted equity-comp pros.

Sources & citations

IRC §83(a) (taxation of property transferred for services); IRC §170(b)(1)(C) (charitable contribution limits for appreciated property); IRC §1091 (wash sale rule); IRC §1212(b) (capital loss carryover); IRC §1411 (Net Investment Income Tax); IRC §409A (nonqualified deferred compensation); IRC §61 (gross income definition); IRC §7201 (tax evasion); IRS Publication 525 (Taxable and Nontaxable Income); IRS Publication 526 (Charitable Contributions); IRS Publication 570 (Tax Guide for Individuals With Income From U.S. Possessions); Treas. Reg. §1.83-7 (taxation of options vs RSUs).

Run your own numbers

By Mathstub Editorial · Reviewed by Reviewed against IRS primary sources

Was this helpful?

Spotted a bug, edge case, or numbers that look off? Tell us — we read every report.

mathstub ecosystem · paid notion templates

When a calculator isn’t enough.

See all 4 templates →

Four Notion templates built around the same IRC-cited math the free calculators run — for tracking, planning, and CPA prep across an entire tax year. Lifetime updates included.

Affiliate disclosure — we earn from sales on Mathstub-owned products listed above. Free calculators always stay free.