ESPP and 83(b) Elections on a Visa (2026): What Happens to Your Company Stock When You Relocate

Vishveshwar Rao · IRS Enrolled Agent
16 min read
Quick answer: Your ESPP stock carries two separate tax layers, and relocation splits them. The purchase discount is treated as compensation for the work you did in the US, so it generally stays US-taxable on Form 1040-NR even after you move to India, while the capital gain above it generally shifts to your new country of residence once you are a US nonresident. An 83(b) election remains valid for US purposes after you leave, but the 30-day filing deadline is absolute and you get no deduction if the shares are later forfeited. H-1B holders who never held a green card owe no US exit tax; the dangerous year is the year you move, when your day count and sale dates can expose your gains to a 30 percent US tax.

A recurring question on forums like Blind and Reddit is which country taxes equity that vests after someone moves to India. The answers contradict each other: one camp says taxation follows your residency on the vesting date, the other says the US taxes everything because the stock was granted there. Each camp is describing only one of two layers. This post applies the actual rules, from the tax code and the US-India treaty, to ESPP shares and 83(b) stock. It covers the equity leg only; if your move also involves a 401k, HSA, or Roth account, those follow separate rules not addressed here.
This is general information for NRIs and visa holders, not personalized tax advice. Cross-border equity decisions have large dollar consequences; talk to a cross-border tax professional before acting.
Which country taxes my ESPP shares if I bought in the US and sell after moving to India?
Both can, but on different pieces. Every discounted ESPP share has two layers:
- A compensation layer: the discount you received for being an employee. Under IRC section 423(b)(6), a qualified plan can sell you stock at no less than 85 percent of fair market value, using the lesser of grant-date or purchase-date value.
- A capital gain layer: everything the stock earns above that.
The compensation layer follows where you worked. IRS Publication 519 sources multiyear compensation on a time basis, US workdays divided by total workdays, and Regulation 1.861-4(b)(2)(ii)(F) defines the relevant period for equity as grant to vesting. If you worked in the US for the whole offering period, the discount is 100 percent US-source wages and stays US-taxable on Form 1040-NR after you leave. The treaty does not change this: Article 16(1) lets the country where the employment was exercised tax the pay from it.
The capital gain layer follows where you live when you sell. IRC section 865(a) sources gain on a stock sale by the seller's residence, so once you are a full-year US nonresident, the gain is foreign-source and generally outside US tax. The departure year itself is the exception, because your day count that year can pull the gain back into US tax; see the 183-day trap below. India, meanwhile, taxes its residents on worldwide income and picks up that gain under its own rules. Treaty Article 13 gives no shelter in either direction: each country may tax capital gains under its own domestic law.
That resolves the forum split: each camp saw only one layer, and the US-taxes-everything camp even missed the mechanism, since US workdays between grant and vest control, not the grant location. No single IRS publication states this two-layer result end to end, so have a professional confirm how the components combine for your facts. The same sourcing logic drives RSU vests after a move, covered in RSU Taxes on an H1B Visa (2026).
Does holding ESPP shares 2 years for a qualifying disposition still make sense if I am moving to India?
The rules first. A sale is a qualifying disposition under IRC 423(a) only if you sell no sooner than 2 years after the grant date and 1 year after the purchase date. The reward, under IRC 423(c) and Publication 525, is that your ordinary income is capped at the lesser of:
- fair market value at sale minus what you paid, or
- fair market value at grant minus the option price.
On a disqualifying disposition (selling before both clocks run), ordinary income equals fair market value at purchase minus what you paid; Publication 525 is explicit that this is not limited to your gain on the sale. Either way basis increases by the ordinary income, and under IRC 421(b) disqualifying income lands in the year of sale.
A worked example, per share. Grant-date value $20. Your plan has a 15 percent discount with a lookback, so you pay $17. Value on the purchase date is $24. You later sell at $40.
- Disqualifying sale: ordinary income of $7 ($24 minus $17) taxed as wages, basis becomes $24, capital gain of $16.
- Qualifying sale: ordinary income is the lesser of $23 ($40 minus $17) or $3 ($20 minus $17), so $3. The remaining $20 is capital gain.
Now the cross-border twist. If you sell after the move as a US nonresident:
- The ordinary income layer stays US-taxable as US-workday compensation. A qualifying disposition shrinks it from $7 to $3 in this example.
- The capital gain layer is foreign-source to the US and generally escapes US tax once you are a full-year nonresident, qualifying or not (the departure year is the exception, covered below).
- India applies its own law to the sale and ignores the US qualifying-disposition framework. Its holding-period and rate rules for foreign shares differ, and the Income-tax Act, 2025 replaces the 1961 Act effective April 1, 2026, so get current Indian advice on rates.
So a qualifying disposition still shrinks the one layer the US keeps taxing, but its traditional US benefit matters less after departure. Whether that is worth holding a single stock through a relocation is a portfolio decision, not a tax formula.
I'm moving this year. Does it matter whether I sell before or after I leave?
Yes, and the reason is a trap in Publication 519 that catches people who assume "I left, so the US is done with my gains."
IRC 871(a)(2) imposes a 30 percent tax on a nonresident alien's US-source net capital gains, but only if the person was in the US 183 days or more during the taxable year, and Publication 519 says this can apply even to transactions that occur while you are abroad. In your departure year you will almost always cross 183 days.
Here is the honest part. Whether that rule actually reaches a specific post-departure sale turns on whether the gain counts as US-source in your departure year, and the dual-status mechanics that decide it are not settled cleanly in IRS guidance. Treat the departure-year sale as a live risk to time around, not a settled 30 percent bill. A November sale after an August move to Bengaluru sits inside that uncertainty; the same sale in January, once you are a full-year nonresident, does not.
One more Publication 519 detail: your residency termination date defaults to December 31 of the departure year unless, for the rest of the year, your tax home is abroad and you have a closer connection there. So the clean move is to push sales into your first full nonresident calendar year, which sidesteps the question entirely. Confirm the dual-status and treaty details with a professional before placing the trade.
What paperwork changes at my broker and with the IRS after I relocate?
- W-8BEN. Once you are a foreign person, you give Form W-8BEN to your broker to certify foreign status and claim treaty rates. It replaces your resident-era W-9 and drives downstream withholding; what the broker sends you afterward, and whether it withholds at all, varies by firm.
- Form 3922. After the first transfer or sale of ESPP shares, the company must furnish Form 3922 with the dates and values you need to split ordinary income from capital gain. For 2025 transfers, the deadline was January 31, 2026. Archive every Form 3922 before you lose access to the equity portal.
- The W-2 that follows you. Publication 525 says your employer or former employer should report the ESPP ordinary income as W-2 box 1 wages. Compliance for departed nonresidents is inconsistent; if no W-2 arrives, you still owe the reporting on Form 1040-NR, computed from your Form 3922 numbers.
- The cost-basis trap. Broker 1099-B forms routinely report basis as only what you paid, omitting the discount already taxed as wages. Copy that number and you pay tax on the discount twice. Understate your gain instead and the IRS automated underreporter program sends a notice, much harder to resolve from India. Reconcile every sale against Form 3922 before filing.
Can I file an 83(b) election on an H-1B?
The tax code does not care about your visa. IRC section 83 applies to anyone who receives stock in connection with services: by default, under 83(a), you are taxed at vesting on fair market value minus what you paid, and an 83(b) election moves that tax event to grant, locking in a spread that is often near zero for early-exercised startup stock.
The mechanics, current for 2026:
- The deadline is 30 days after the transfer, fixed by statute in IRC 83(b)(2). No extensions, no relief.
- You can file a written statement or Form 15620, the standardized IRS election form (Rev. 4-2025). Check irs.gov for the current filing channel before assuming an electronic option exists. Form 15620 cannot be used for a section 83(i) deferral election, which follows Notice 2018-97 instead.
- You file with the IRS office where you file your return and give a copy to your employer. Since the 2016 final regulations, you no longer attach a copy to your income tax return.
The question visa holders actually ask is different: does receiving or early-exercising startup equity count as unauthorized work on an H-1B? That is immigration law, not tax law. Reddit workarounds involving offshore consulting agreements are engineering around a question nobody in those threads is qualified to answer; get an immigration attorney's written opinion first.
If I file an 83(b) and then leave the US mid-vesting, does the election still protect me?
On the US side, mostly yes, with one sharp edge.
The election permanently switches off the 83(a) vesting-date tax for those shares. Later vests do not create US income even if you are gone by then, and when you eventually sell as a full-year nonresident, the gain is foreign-source under 865(a) and generally outside US tax.
The sharp edge is forfeiture. IRC 83(b)(1) says that if the property is later forfeited, no deduction is allowed. Leave the company before vesting, have it repurchase your unvested shares, and the tax you paid with the election is simply gone. For a visa holder this is not hypothetical: a lottery loss or a layoff can force a departure in weeks. Price that risk in, especially if the spread at grant is well above zero.
On the India side there is no clean answer to publish: India applies its own perquisite and capital gains rules to its residents, and how it treats shares that vested under a US 83(b) election needs a professional with both rulebooks open. Treat confident forum answers accordingly.
Two boundary notes: 83(b) has nothing to do with ESPP (section 423 purchases have no 83(b) analog and, unlike ISOs, no AMT adjustment at purchase), and if you exercised ISOs and hold AMT credits while planning a move, that is a separate and nastier problem, covered in ISOs, AMT, and Leaving the US (2026). For scale, the 2026 AMT exemption those exercises eat into is $140,200 for joint filers and $90,100 for unmarried filers.
Do I owe US exit tax on my ESPP or startup shares when I leave?
If you are on H-1B, L-1, F-1, or any other nonimmigrant status and never held a green card: no. The section 877A exit tax applies only to expatriates, meaning US citizens who relinquish citizenship and long-term residents who held a green card in at least 8 of the last 15 taxable years. Form 8854 follows the same boundary; a departing H-1B holder does not file it.
If you hold a green card near the 8-of-15 line, the analysis changes. For 2026, you are a covered expatriate if your average annual net income tax for the prior 5 years exceeds $211,000 or your net worth is $2,000,000 or more; covered expatriates face a deemed sale of their assets with the first $910,000 of gain excluded, and ESPP shares and 83(b) stock count toward the net-worth test. The full framework is in US Exit Tax for Green Card Holders Moving Back to India (2026).
Should I sell before I leave or wait for my RNOR window in India?
RNOR (resident but not ordinarily resident) is India's transitional status for returnees. Per the Income Tax Department's e-filing portal, you remain RNOR for a tax year if you were a non-resident of India in 9 of the 10 preceding years, or spent 729 days or less in India across the 7 preceding years. Finance Act 2020 added deemed-RNOR categories (Indian citizens with India-source income above Rs 15 lakh present 120 to 181 days); confirm the current tests under the new Income-tax Act, 2025.
While RNOR, foreign income is generally not taxable in India unless it is derived from a business controlled in India or a profession set up in India. That is the legal basis of the RNOR window strategy: sell appreciated US shares while a US nonresident and still RNOR, and the capital gain layer can fall outside both countries, foreign-source to the US under 865(a) and outside India under RNOR. The ESPP ordinary income layer still lands on Form 1040-NR.
Sequencing, in order of confidence:
- Gains realized while still a US resident: the US taxes them normally, and India generally has no claim yet.
- Gains realized as a US nonresident during RNOR years: the target zone, subject to the departure-year 183-day trap and to verifying your RNOR math each year.
- Gains realized after RNOR lapses: India taxes them as an ordinarily resident taxpayer, and anything kept in the US generally comes with Schedule FA foreign-asset disclosure obligations, where missed reporting carries heavy penalties.
The full decision framework, including India's Form 67 foreign tax credit mechanics and the DTAA interplay, is in Sell RSUs Before or After Moving Back to India?. It applies to ESPP shares with the one modification this post adds: the US-workday portion of the discount never stops being US wages.
Filing your 83(b) election online with Form 15620
Until recently, an 83(b) election meant a paper letter mailed to the IRS with certified tracking and crossed fingers. That changed: the IRS released Form 15620, a standardized 83(b) election form, and since mid 2025 it can be filed online. You sign in through the IRS site with ID.me, answer the questions, and submit electronically, or download the completed form and mail it the old way. Use one method, not both.
Two things the online option does not change. The deadline is still 30 days from the date the stock is transferred to you, and there are effectively no exceptions, so treat the portal as a convenience rather than a cushion. And you still need to give a copy of the filed election to the company that issued your stock for its records.
If you already filed a paper election with your own letter format, you do not need to refile on Form 15620. The custom letter route remains valid; the standardized form simply removes the guesswork about required fields and gives you an electronic receipt, which is worth having if you ever need to prove the election was timely.
FAQ
My ESPP enrollment form asks if I am a "US person," and I fail the substantial presence test this year. Which box do I check?
The W-9 versus W-8BEN choice follows your tax residency, not your visa: W-8BEN while you are a nonresident alien, W-9 once you pass the substantial presence test. Tell the plan administrator the year your status flips, because this choice drives all downstream withholding.
First year on H1B after F1, still a nonresident, and I just started ESPP. How does my ESPP income get reported in a nonresident or dual-status year, and can mainstream tax software handle it?
The reporting follows your residency status for the year, and this is where filers get stuck. In a nonresident year your US-source equity compensation belongs on Form 1040-NR; in the year your status flips you may file a dual-status return that splits the year. Equity compensation routinely breaks consumer tax software built for either pure residents or pure nonresidents, so an ESPP purchase plus an F1-to-H1B status change is a common place to need a preparer who works both sides.
Does the $25,000 ESPP limit change when I relocate?
No. IRC 423(b)(8) caps purchases at $25,000 of stock per calendar year, valued at grant-date fair market value, across all employer plans, regardless of residency. Continued contributions after a transfer abroad, and refunds on a mid-period exit, are plan-document questions for your stock administration team.
The IRS sent me an underreporting notice on an ESPP sale, but the discount was already in my W-2. Who is right?
Usually you, if the discount was genuinely in box 1, but you have to prove it. The 1099-B likely showed only your purchase price as basis. Respond with the W-2, the Form 3922, and a basis calculation showing the ordinary income added to basis, which Publication 525 explicitly provides for. Neither pay it blindly nor ignore it, especially with an Indian mailing address slowing every exchange.
Can I keep my Fidelity or Schwab account after moving back to India?
That is broker policy, not tax law. Some brokers restrict or close accounts on an India address; others allow holding but block new purchases. Update your W-8BEN and address honestly rather than borrowing a US address, and get your broker's policy in writing before you move.