RSU Vesting Tax Withholding for Non-Resident Aliens: What Your Pay Stub Isn't Telling You
Your employer may be withholding the wrong amount on your RSU vest — and as a non-resident alien, the gap between what was withheld and what you owe can be thousands of dollars.

You accepted an offer that included RSUs. The recruiting email celebrated it as a meaningful part of your total compensation. Your first vest hit a few months ago, the shares landed in your brokerage account, and the pay stub showed some withholding. Everything looked fine.
Then tax season arrived and your accountant flagged a gap. Your employer withheld at the 22% federal supplemental rate. But as a non-resident alien on F-1 OPT or H-1B, you may have been subject to a 30% flat withholding rate — and nobody told you the difference. Multiply that 8-point gap across several quarterly vests and a six-figure total compensation package, and you are staring at a material underpayment, potential penalties, and a very unpleasant April surprise.
This guide explains exactly how RSU taxation works for non-resident aliens, what your employer is (and is not) required to do, how your status change from F-1 to H-1B affects the math, and what you can do right now to fix or prevent the problem.
How RSUs work as taxable income
A Restricted Stock Unit is a promise from your employer to deliver shares of company stock after a vesting condition is met (usually a time-based cliff or graded schedule). At the moment shares vest and are delivered to you, the IRS treats the fair market value of those shares as ordinary compensation income — the same category as your salary. That income appears on your W-2 (or Form 1042-S if your employer processes you under NRA withholding rules) and is subject to federal income tax withholding.
This is the key distinction: the income is not a capital gain, it is wages. The capital gain or loss — if any — only arises after the vest date, based on price changes between the vest price and the eventual sale price.
For US citizens and resident aliens, employers typically withhold at the supplemental wage rate of 22% (on amounts up to $1 million in supplemental wages per year) or at a flat 37% for amounts over $1 million. The withholding is imperfect but directionally reasonable for most situations.
For non-resident aliens, the rules diverge significantly.
The 30% NRA withholding rate and why it matters
Under Internal Revenue Code §1441, income paid to a non-resident alien that is not effectively connected with a US trade or business is subject to 30% withholding at source. Wages from US employment are effectively connected income — but supplemental wages like RSU vests are a gray area in how many payroll systems actually handle them. The IRS position, and the DOL guidance, treats RSU vest income as wages subject to the normal withholding rules — but at the NRA rate of 30% rather than the resident alien supplemental rate of 22%, unless a tax treaty reduces the applicable rate.
A tax treaty can reduce or eliminate this rate. The US has income tax treaties with dozens of countries — common ones for F-1 and H-1B workers include India (no RSU-specific treaty benefit for wages), China (partial treaty benefits for students in early years), South Korea, and many others. You must proactively claim treaty benefits by submitting Form 8233 (for wages) or Form W-8BEN (for non-wage income) to your employer before the vest event. If you have not filed this form, your employer should withhold at the full 30%.
What your payroll department actually does (and why there's a gap)
Here is the uncomfortable reality: many large US employers run non-resident alien employees through standard payroll systems configured for resident wages. The system sees "supplemental wages" and applies the 22% rate automatically. Unless your HR or payroll team has specifically flagged your NRA status and configured your record accordingly, you may receive incorrect withholding on every single vest — not because anyone is trying to deceive you, but because payroll automation does not always ask about tax residency.
You are responsible for the correct amount. The withholding is your employer's obligation, but any underpayment of tax is yours to make right on your return.
Residency classification — the threshold question
Before you can know which withholding rules apply to you, you need to know your tax residency classification for the year in question.
Non-resident alien status
You are a non-resident alien for US tax purposes if you do not meet either the green card test or the substantial presence test. Most F-1 students are non-resident aliens for their first five calendar years in the US (the "exempt individual" rule under §7701(b)(5)(A)(ii) exempts F-1 visa holders from counting days toward substantial presence during that window). Most J-1 scholars get two exempt years.
H-1B holders do not get an exempt period. From your first H-1B status day, every day in the US counts toward the substantial presence test. The test requires 31 days present in the current year and 183 days counted using a weighted formula (current year days × 1 + prior year days × 1/3 + two-years-prior days × 1/6). Most H-1B holders become resident aliens for tax purposes within one to two years of holding that status.
Resident alien status
Once you meet the substantial presence test, you file Form 1040 (not 1040-NR), you are taxed on worldwide income, and your RSU vesting income is treated exactly like a US citizen's — subject to 22% supplemental withholding, not 30%.
The transition year
The year you change from non-resident to resident alien tax status is called a "dual-status year." You file a dual-status return covering your NRA period (1040-NR as an attachment) and resident period (1040 as the primary return). RSU vests that happened during the NRA portion of the year are still subject to NRA rules even if you are filing a resident return for most of the year.
This transition is where many F-1-to-H-1B workers get tripped up. See our broader guide on the substantial presence test and tax residency for the full mechanics.
RSU withholding by visa status — a quick reference
| Visa/Status | Exempt individual period | Tax residency (typical) | Applicable withholding on RSU vest |
|---|---|---|---|
| F-1 (within first 5 calendar years) | Yes — days not counted | Non-resident alien | 30% NRA rate (or treaty rate) |
| F-1 OPT (within exempt period) | Yes | Non-resident alien | 30% NRA rate (or treaty rate) |
| F-1 STEM OPT (beyond 5th calendar year) | No | Likely resident alien | 22% supplemental rate |
| H-1B (first year, if substantial presence not yet met) | No | May still be NRA | 30% NRA rate |
| H-1B (substantial presence met) | No | Resident alien | 22% supplemental rate |
| Green card holder | No | Resident alien (always) | 22% supplemental rate |
Note that STEM OPT extends authorization for 24 months beyond OPT, and many STEM OPT workers are past their five-year F-1 exempt window by the time they complete it — at that point they can begin accumulating substantial presence days even on F-1 status. This catches people off guard.
What gets reported — W-2 vs. Form 1042-S
If your employer withholds at the standard supplemental rate (22%) and processes you like a resident employee, RSU income appears in Box 1 of your W-2, and federal withholding in Box 2.
If your employer properly withholds at the 30% NRA rate, the income may appear on Form 1042-S (Foreign Person's US Source Income Subject to Withholding) instead of or in addition to the W-2. The 1042-S uses income codes — RSU vesting income from employment is typically reported under income code 17 (compensation for dependent personal services) or income code 20, depending on how the employer's payroll vendor handles it.
Receiving a 1042-S is not a problem — it is actually a sign that your employer is treating your status correctly. The issue arises when you receive only a W-2 with 22% withholding and you should have been on the 30% NRA track.
The RSU sale: capital gains rules for non-resident aliens
Once shares vest and you own them, any subsequent price change creates a capital gain or loss when you sell.
Critical rule: Non-resident aliens are generally not subject to US federal income tax on capital gains from US securities — unless they are present in the US for 183 or more days in the year of the sale under a specific rule in §871(a)(2). This is a different 183-day test than the substantial presence test; it is a flat-count test applied only in the year of sale.
This creates a meaningful planning opportunity: if you are a non-resident alien and you sell RSU shares in a year when you are outside the US for more than 183 days (or you've already left the country), the capital gain on those shares is typically not taxable by the US. Your home country may tax it — that is a separate question.
If you are a resident alien when you sell, normal capital gains rules apply: short-term gains (shares held less than one year from vest) are taxed as ordinary income; long-term gains (held more than one year) are taxed at 0%, 15%, or 20% depending on your income bracket.
For a deeper look at how selling timing interacts with your visa situation, see our guide on stock option exercise timing for ISO and NSO holders, which covers analogous planning concepts for equity compensation broadly.
Step-by-step: what to do at each vesting event
- Before your first vest: Confirm your tax residency classification. Are you in your exempt F-1 years? Have you met substantial presence? Ask your employer's payroll department what withholding rate they have on file for you.
- File Form 8233 if applicable: If you are a non-resident alien and your home country has a tax treaty that reduces the wage withholding rate on compensation income, submit Form 8233 to your employer before the vest. The employer is required to honor a valid 8233. Review IRS Publication 519 for treaty tables.
- On vest date: Note the fair market value (FMV) on the vest date — this is your cost basis for the shares. Record this number regardless of whether you sell immediately or hold.
- Check the pay stub: Look at the supplemental withholding line. Does it say 22%? Does it say 30%? If you are a non-resident alien and you see 22%, flag it to payroll immediately.
- Calculate any underpayment: (FMV of vest × 8%) = approximate federal underpayment per vest if you are NRA and should have been withheld at 30%.
- Make estimated quarterly payments: If you discover mid-year that withholding has been incorrect, file Form 1040-ES (or 1040-ES NR for NRA filers) to make estimated payments and avoid the underpayment penalty under §6654.
- At year-end: Collect your W-2 and any 1042-S. File Form 1040-NR if you are a non-resident alien for the full year, or a dual-status return if you transitioned mid-year. Report the RSU vest income in the wages section.
- On sale: Track your holding period from vest date. Decide whether to sell immediately (simplest: zero capital gain) or hold for long-term treatment. If you are still a non-resident alien, note the 183-day presence rule in the sale year.
FICA taxes on RSU vesting — the overlooked line item
In addition to federal income tax withholding, RSU vest income is subject to Social Security (6.2%) and Medicare (1.45%) taxes — collectively FICA. This applies to both resident and non-resident aliens who are in H-1B status.
However, F-1 and J-1 students in their exempt period are not subject to FICA on wages. This means an F-1 OPT worker vesting RSUs pays no FICA, but an H-1B worker vesting RSUs does. The shift from F-1 to H-1B can add ~7.65% in FICA obligations to your total compensation tax picture — on top of the income tax withholding change.
Check your pay stub for lines labeled "Social Security" and "Medicare." If you are on F-1 OPT and see FICA deductions, that is an error in your favor of your employer — report it and request a refund. If you are on H-1B and do not see FICA deductions, that could mean your employer has your status coded incorrectly. See our full breakdown on FICA exemptions and tax treaties for international students for the details.
State tax considerations
Beyond federal withholding, most states with income taxes (California, New York, Massachusetts, Washington is an exception) treat RSU vest income as ordinary wages subject to state withholding. California notably does not allow the federal NRA 30% flat rate to override state withholding — California applies its own supplemental withholding rate regardless of federal NRA status.
If you work in a no-income-tax state (Texas, Washington, Florida, Nevada), this is a non-issue. If you move states between vest events, the sourcing rules become complex — each state generally taxes wage income based on where the services were performed, which may prorate the income across states based on work location during the vesting period.
Equity alongside RSUs — understanding the full picture
If your compensation package includes both RSUs and stock options (ISOs or NSOs), the tax treatment is completely different for options than it is for RSUs. RSUs generate ordinary income at vest with no optionality. ISOs generate no income at exercise for regular tax purposes (though the spread is an AMT preference item). NSOs generate ordinary income at exercise equal to the spread. If you hold a mix, do not assume the RSU framework applies to your options. We cover the option side in detail in equity and RSU treatment for visa holders and the exercise-timing considerations in stock option exercise timing.
Common mistakes
Assuming your employer handles NRA withholding correctly. Most do not. Payroll systems default to resident assumptions. You must verify your withholding rate proactively — waiting until tax season is often too late to avoid underpayment penalties.
Not filing Form 8233 before vesting. If you are entitled to treaty benefits, the treaty only reduces withholding prospectively from the date the employer has the form. If your first vest already happened without an 8233 on file, you cannot retroactively reduce the withholding that was required at that vest — you reclaim it on your tax return, but the overcollection already happened.
Conflating the two 183-day tests. The substantial presence test determines your residency classification for the entire year. The §871(a)(2) 183-day test determines whether capital gains from securities sales are US-taxable in a specific year. They use different counting methods and answer different questions. Many people assume "I'm a non-resident alien, so my stock sale gain is tax-free" without checking whether they triggered the sale-year 183-day count.
Forgetting state tax filings. A non-resident alien who properly reports no federal capital gains on an RSU sale may still owe California or New York state tax on that same gain, depending on where they performed the work during the vesting period.
Selling shares after a status change without recalculating basis. Your cost basis is the FMV on the vest date, period. It does not reset when your visa status changes. Some workers mistakenly recalculate or omit the basis, leading to overstated capital gains or misreported wash sales.
Not making estimated quarterly payments after discovering underpayment. If you learn in August that January through July vests were underwithheld, you cannot wait until April to pay. The underpayment penalty under §6654 applies per quarter, so back-loading the payment into April catches you with penalties for the earlier quarters anyway. Pay estimated taxes for the remaining quarters as soon as you identify the shortfall.
Ignoring the FICA line on H-1B. The federal income tax conversation often overshadows FICA, but RSU vest income on H-1B adds 7.65% in FICA taxes on top of income tax. Verify that line on your pay stub is populated correctly.
Frequently asked questions
What is the correct federal withholding rate on RSU vesting for a non-resident alien?
It depends on your treaty position and residency status. Without a tax treaty, the IRS requires backup withholding at the 30% flat NRA rate on supplemental wage income for non-resident aliens. Many employers instead apply the standard 22% supplemental rate and may not account for your NRA status at all. The 30% rate applies unless a tax treaty reduces or eliminates it, which you must claim proactively on Form 8233 or W-8BEN before vesting.
Do RSUs vest as ordinary income or capital gain for a non-resident alien?
The shares are treated as ordinary compensation income at vesting — the fair market value on the vest date becomes your taxable wage, reported on Form W-2 (or Form 1042-S if withheld at the NRA rate). Any gain or loss from holding the shares after vesting is a separate capital transaction. Non-resident aliens are generally not subject to US tax on capital gains from stock sales unless they are present in the US for 183 or more days in that calendar year under the substantial presence rule.
Will I owe a large tax bill in April if my employer only withheld 22% on RSU vests?
Potentially yes. If you are a non-resident alien subject to the 30% withholding rate and your employer withheld only 22%, you have an 8-percentage-point gap on every vest. On a $50,000 vest that is $4,000 underpaid. You would owe that balance — plus potential underpayment penalties — when you file Form 1040-NR. Estimated quarterly payments can prevent the penalty.
What happens to the RSU tax situation when I change from F-1 OPT to H-1B status?
Your tax residency classification can shift during that transition period. On F-1 OPT you are typically a non-resident alien exempt from the substantial presence test for up to 5 calendar years. Once you move to H-1B and begin counting days under the substantial presence test, you may become a resident alien for tax purposes — which changes your withholding rules entirely, shifting you to normal graduated rates instead of the flat 30% NRA rate. A mid-year status change requires careful attention to which tax form applies to each portion of the year.
Should I sell RSU shares immediately at vesting or hold them?
From a tax standpoint for a non-resident alien, selling immediately at vesting is often simpler — you crystallize zero capital gain (since cost basis equals the vest price), eliminating the 183-day capital gains question entirely. If you hold shares and later sell while still a non-resident alien, any gain is generally not subject to US federal tax unless you trigger the 183-day presence rule in the sale year. However, holding introduces stock concentration risk and future complexity, particularly if your visa status or residency classification changes before you sell.
RSU taxation is one of the most under-explained parts of working in the US on a visa. Your employer's payroll team may not flag your NRA status, your HR onboarding materials almost certainly do not explain the 30% rule, and the difference between the two withholding rates compounds across every vest. Getting this right requires you to take the initiative — verify your withholding rate, file the right treaty forms before they are needed, and make estimated payments if you discover a gap mid-year.
If you are navigating this as part of a broader job search or offer evaluation, F1Jobs works with international candidates at every stage of the US employment process — including helping you think through total compensation when equity is involved.
Frequently asked questions
What is the correct federal withholding rate on RSU vesting for a non-resident alien?
It depends on your treaty position and residency status. Without a tax treaty, the IRS requires backup withholding at the 30% flat NRA rate on supplemental wage income for non-resident aliens. Many employers instead apply the standard 22% supplemental rate and may not account for your NRA status at all. The 30% rate applies unless a tax treaty reduces or eliminates it, which you must claim proactively on Form 8233 or W-8BEN before vesting.
Do RSUs vest as ordinary income or capital gain for a non-resident alien?
The shares are treated as ordinary compensation income at vesting — the fair market value on the vest date becomes your taxable wage, reported on Form W-2 (or Form 1042-S if withheld at the NRA rate). Any gain or loss from holding the shares after vesting is a separate capital transaction. Non-resident aliens are generally not subject to US tax on capital gains from stock sales unless they are present in the US for 183 or more days in that calendar year under the substantial presence rule.
Will I owe a large tax bill in April if my employer only withheld 22% on RSU vests?
Potentially yes. If you are a non-resident alien subject to the 30% withholding rate and your employer withheld only 22%, you have an 8-percentage-point gap on every vest. On a $50,000 vest that is $4,000 underpaid. You would owe that balance — plus potential underpayment penalties — when you file Form 1040-NR. Estimated quarterly payments can prevent the penalty.
What happens to the RSU tax situation when I change from F-1 OPT to H-1B status?
Your tax residency classification can shift during that transition period. On F-1 OPT you are typically a non-resident alien exempt from the substantial presence test for up to 5 calendar years. Once you move to H-1B and begin counting days under the substantial presence test, you may become a resident alien for tax purposes — which changes your withholding rules entirely, shifting you to normal graduated rates instead of the flat 30% NRA rate. A mid-year status change requires careful attention to which tax form applies to each portion of the year.
Should I sell RSU shares immediately at vesting or hold them?
From a tax standpoint for a non-resident alien, selling immediately at vesting is often simpler — you crystallize zero capital gain (since cost basis equals the vest price), eliminating the 183-day capital gains question entirely. If you hold shares and later sell while still a non-resident alien, any gain is generally not subject to US federal tax unless you trigger the 183-day presence rule in the sale year. However, holding introduces stock concentration risk and future complexity, particularly if your visa status or residency classification changes before you sell.