What Happens to Your 401(k) When You Leave the US: Withdrawal Rules for Visa Holders
Leaving the US with a 401(k) balance? Here is exactly what happens to your money — withdrawal taxes, penalties, rollover options, and the strategies that save thousands.

You worked in the US on an F-1, OPT, or H-1B visa, built up a 401(k) balance over several years, and now you're facing a departure — either because your visa status ended, your H-1B wasn't renewed, or you've made the deliberate decision to go home. The balance sitting in that account is real money. What happens to it?
The answer depends on what you do with it. Most departing visa holders either cash out immediately (expensive), roll it to an IRA and leave it in the US (smart), or simply leave it in the old employer's plan (fine, but limiting). Each path has a very different tax and penalty profile, and the difference between a good decision and a bad one can easily be $15,000–$30,000 on a $100,000 balance. This guide gives you the full picture, including how treaty rates work, what withholding to expect, and the IRS forms that protect you.
What a 401(k) actually is when you hold a work visa
A 401(k) is an employer-sponsored retirement plan governed by the Employee Retirement Income Security Act (ERISA). Contributions are made pre-tax, grow tax-deferred, and are taxed as ordinary income on withdrawal. There is no immigration law that prevents non-citizens from participating, and visa holders on H-1B, OPT, and other categories contribute to 401(k) plans on exactly the same terms as US citizens.
The critical distinction is what happens at the back end — when you withdraw — because your tax residency status at that time determines your withholding rate.
For a deeper primer on how 401(k) plans work alongside other US employment benefits, see our guide to understanding US benefits including 401k and health insurance.
The tax residency question: resident alien vs. non-resident alien
Your US tax status when you withdraw controls the withholding rules.
Resident alien (RA): You pass the Substantial Presence Test (SPT) — roughly 183 days in the US over the current and prior two years using a weighted formula — or you hold a green card. If you're still physically in the US when you take the distribution, you're almost certainly a resident alien, and normal US tax rules apply: ordinary income tax rates plus a 10% early withdrawal penalty if you're under 59½.
Non-resident alien (NRA): You've left the US and no longer pass the SPT. At this point, US-source income (including 401(k) distributions) is subject to a 30% flat withholding rate under IRC §1441, unless reduced by a tax treaty.
The transition from RA to NRA happens based on when you leave and how many US days you have in the formula. You can elect to be treated as a resident for the entire departure year if it benefits you (a "dual-status" year), but this is a complex calculation worth discussing with a CPA who handles international tax. See our tax guide for international students covering FICA and treaty benefits for more on how residency status affects your tax picture broadly.
The three paths when you leave
Path 1: Cash out immediately (most expensive)
You contact your plan administrator, request a lump-sum distribution, and the money hits your bank account. What actually happens:
- The plan is legally required to withhold 20% for federal income tax on the gross distribution
- If you're under age 59½, you also owe a 10% early withdrawal penalty when you file your tax return
- You may owe state income tax on the distribution depending on which state the plan is located in
- If you're already a non-resident alien at the time of distribution, the withholding jumps to 30% (rather than 20%), unless your home country has a tax treaty that reduces it
The practical result: on a $50,000 balance, you might net $30,000–$35,000 after withholding, then still owe more at tax time if your marginal rate exceeds what was withheld. Cashing out is the worst financial outcome for most people. It is also the most common choice, largely because it's the most visible option.
Path 2: Roll over to a Traditional IRA (usually the best move)
A direct rollover from your 401(k) to a Traditional IRA at a US brokerage (Vanguard, Fidelity, Schwab, and others all accept NRA accounts) is tax-free. No withholding, no penalty, no taxable event. The money stays in the US, grows tax-deferred, and you withdraw it on your own timeline.
Benefits for departing visa holders:
- The IRA stays open indefinitely — there's no requirement to be a US resident to hold one
- You can choose your own investments rather than being limited to the employer's plan menu
- You can file Form W-8BEN with the IRA custodian to establish your non-resident alien status and claim any applicable treaty rate on future distributions
- Required Minimum Distributions (RMDs) don't start until age 73, so you have decades of tax-deferred growth ahead of you
- If you return to the US later (on a new H-1B, through the green card process, or as a citizen), the IRA is already there
To execute a direct rollover, ask your employer's plan administrator for a "direct rollover to an IRA." They will send the check directly to the new IRA custodian — never to you. If the check comes to you first (an indirect rollover), you have 60 days to deposit it into the IRA, but the plan already withheld 20%, meaning you'd have to make up that 20% out of pocket to avoid it being counted as a distribution.
Path 3: Leave the 401(k) in the old employer's plan
Most employer plans allow former employees to maintain their balance if the balance exceeds $5,000. If yours does, this is a perfectly viable option — especially if the plan has good, low-cost funds and you expect to return to the US eventually.
Downsides:
- Limited investment options compared to a self-directed IRA
- The plan administrator can force a distribution if your balance falls below $5,000
- Some plans charge higher fees for terminated employees
- You cannot make new contributions once you've left that employer
Tax treaty rates by country: the numbers that matter
If you become a non-resident alien and later take distributions from your US retirement account, the standard 30% withholding applies — unless your home country has a tax treaty with the US that includes a reduced rate on pension/retirement income.
| Home Country | Treaty Rate on Pension Income | Notes |
|---|---|---|
| India | 15% (per Article 20) | Applies to periodic payments; lump sum may differ |
| China | 10% | Article 17 of US-China treaty |
| Canada | 15% | US-Canada treaty; RRSP rollovers also possible |
| United Kingdom | 0% | US-UK treaty exempts US pension income for UK residents |
| Germany | 15% | US-Germany treaty Article 18 |
| South Korea | 10% | US-Korea treaty Article 20 |
| Mexico | 10% | US-Mexico treaty Article 18 |
| Australia | 15% | US-Australia treaty Article 18 |
| No treaty (many countries) | 30% | No reduction available |
To claim the treaty rate, you must file Form W-8BEN with your plan administrator or IRA custodian. The form certifies your foreign status and identifies the treaty provision. Without it, the custodian withholds at 30% by default.
Note: Treaty benefits typically require that you are a tax resident of the treaty country and do not have a US permanent establishment. Always verify the current treaty text at IRS.gov — treaty provisions can be revised.
Step-by-step: what to do before you board your flight
- Confirm your account balance and vesting status. Employer-matched contributions often vest on a schedule (cliff vesting or graded). If you leave before full vesting, you forfeit unvested employer contributions.
- Decide your strategy (IRA rollover, leave in plan, or cash out) before you leave — plan administrators are easier to reach from within the US, and rollover paperwork moves faster.
- Open a US brokerage IRA account if you're rolling over. Fidelity and Vanguard accept non-resident alien IRA holders; you may need to call rather than use the online portal.
- Request a direct rollover from your employer's plan administrator. Specify "direct rollover to Traditional IRA" and provide the receiving account number and custodian details.
- File Form W-8BEN with the new IRA custodian to establish NRA status and claim your treaty rate on future distributions.
- Update your address with the custodian. Custodians send annual statements and tax forms (Form 1099-R for distributions, Form 5498 for IRA contributions). You need a current address — foreign addresses are accepted.
- Track the year you become a non-resident alien for the Substantial Presence Test. Your departure year may be a dual-status year, requiring Form 1040NR or Form 1040 with a dual-status statement.
IRA vs. 401(k) for visa holders leaving the US
The rollover question specifically compares your options for where the money lives. Here's how the two compare after your departure:
| Factor | 401(k) at Former Employer | Traditional IRA at US Brokerage |
|---|---|---|
| Investment options | Limited to employer plan menu | Broad — stocks, bonds, ETFs, mutual funds |
| NRA account accepted | Yes (you're a former employee) | Yes (most major brokerages) |
| Treaty-rate withholding | Yes, with W-8BEN | Yes, with W-8BEN |
| New contributions | No | No (you need US earned income for IRA contributions) |
| Minimum balance to stay | Usually $5,000 | No minimum |
| Annual fees | Plan-specific | Usually low or zero |
| Flexibility on withdrawal timing | Subject to plan rules | Full flexibility after 59½ |
| If employer is acquired | Plan may be merged or terminated | No impact — you own it directly |
For most departing visa holders, the IRA rollover wins on flexibility and protection. The 401(k) is fine if your balance is large, the plan's funds are excellent, and you trust that you'll engage with the plan administrator from abroad.
Early withdrawal penalty exceptions worth knowing
The 10% early withdrawal penalty under IRC §72(t) has exceptions. Most don't apply to typical departing visa holders, but two are worth noting:
- Rule of 55: If you separate from your employer during or after the calendar year you turn 55, distributions from that employer's 401(k) are penalty-free. Distributions from IRAs and plans of prior employers are not covered.
- Substantially Equal Periodic Payments (SEPP / 72(t) distributions): You can take a series of approximately equal payments based on IRS-approved calculation methods (RMD method, fixed amortization, or fixed annuitization). Once started, you must continue for the longer of five years or until you reach 59½. This is complex and requires precise calculation — any deviation triggers the penalty retroactively on all prior payments. Most visa holders leaving the US are not good candidates for this approach.
There is no penalty exception specifically for departing the United States or for visa expiration. The IRS does not care why you need the money; it only cares whether you meet one of the enumerated exceptions.
What happens to your 401(k) if you're laid off and have 60 days
If your H-1B is terminated with you in the US, you have a 60-day grace period to find a new employer, change status, or depart. During those 60 days you are still technically present in the US. See our guide on H-1B layoff and the 60-day grace period for the full picture on that window.
From a 401(k) standpoint, the 60-day grace period doesn't change your options — you can still roll to an IRA, leave the money in the plan, or cash out. The timing pressure is on the immigration side, not the retirement account side. You can execute an IRA rollover from within the US during those 60 days, which gives you more time to handle the paperwork cleanly.
Common mistakes
Cashing out immediately because it seems simplest. It is simple, but it is also the most expensive possible outcome. The 10% penalty plus income tax plus potential state tax can consume 35–45% of a balance. An IRA rollover takes a few phone calls and saves most of that.
Ignoring the W-8BEN filing. If you are a non-resident alien and you don't file Form W-8BEN, your custodian withholds at 30% regardless of any treaty. Filing the form is free and takes 10 minutes. Don't leave money on the table.
Taking an indirect rollover and missing the 60-day window. If the plan sends the check to you personally, you have 60 days to deposit it into an IRA. If you miss that window, the entire amount is taxable for the year, plus the penalty. The 20% already withheld by the plan doesn't count toward the deposit — you have to make it up. Direct rollovers eliminate this risk entirely.
Assuming the 401(k) disappears when your visa expires. It doesn't. The account is yours. Visa status has no bearing on whether the account remains open or the money remains invested. Former employees on expired visas hold US retirement accounts all the time.
Forgetting about unvested employer match. If you leave before you're fully vested, you forfeit the unvested employer contributions. Check your vesting schedule before you decide to leave — staying a few more months can sometimes unlock a meaningful amount.
Confusing rollover to a foreign retirement account with rollover to a US IRA. The US has tax treaties that recognize certain foreign pension accounts (Canada's RRSP, for example, has specific treaty treatment). Most foreign accounts are not recognized for this purpose. Rolling a 401(k) to a foreign account is generally treated as a taxable distribution, not a rollover. Keep the money in a US IRA.
Not updating your address. If your custodian can't reach you, accounts can be treated as abandoned property and escheated to the state under state unclaimed property laws — typically after 3–5 years of no contact. Update your address to a foreign one; custodians accept this.
Taxes when you eventually withdraw
Whenever you take money out of a Traditional IRA or 401(k) after you've left the US permanently, you will owe US federal tax on the distribution. The rate depends on your status at the time:
- If you are a US resident again (returned on H-1B, green card, citizenship): ordinary income tax rates apply — the same as for any US taxpayer
- If you are a non-resident alien: 30% withholding applies (or lower treaty rate per W-8BEN)
- If you're taking distributions at 59½ or later: no 10% penalty regardless of residency status
Your home country may also tax the distribution. Whether you get a foreign tax credit for US taxes paid depends on your home country's tax rules and any applicable treaty. This is the area where hiring a cross-border tax advisor in your home country is most valuable — the interplay between US withholding and home-country taxation varies significantly.
Frequently asked questions
What penalty do I face for cashing out a 401(k) when moving back to my home country?
If you are under age 59½, you owe a 10% early withdrawal penalty on top of ordinary income tax. The plan administrator withholds 20% federal tax automatically, but your total bill depends on your marginal rate. Non-resident aliens may also owe 30% withholding on future distributions unless a tax treaty reduces that rate.
Can I roll over my 401(k) to an IRA after my H-1B expires?
Yes. You can roll over a 401(k) to a Traditional IRA at any time regardless of visa status — tax-free if done as a direct rollover. The IRA stays in the US indefinitely, grows tax-deferred, and you withdraw at 59½ or later. This is usually the best strategy if you expect to return to the US or want to defer the tax bill.
How does the 30% withholding tax work for non-resident aliens taking 401(k) distributions?
Once you become a non-resident alien for US tax purposes, periodic 401(k) distributions are subject to 30% withholding under IRC §1441 unless a US tax treaty with your home country sets a lower rate. You claim the treaty rate by filing IRS Form W-8BEN with the plan administrator. Some treaties reduce the rate to 15% or even 0% for retirement distributions.
Is there a way to avoid the 10% early withdrawal penalty when leaving the US?
A few exceptions exist. If you separate from your employer in or after the year you turn 55, the penalty does not apply to that employer's plan. Substantially equal periodic payments (SEPP or 72(t) distributions) also avoid the penalty. However most departing visa holders are under 55 and cannot use these; they either leave the money invested or pay both the penalty and income tax.
Should I choose an IRA or keep the 401(k) if I plan to leave the US permanently?
Rolling to a Traditional IRA usually gives you more flexibility — broader investment choices, no plan-administrator restrictions, and easier access to treaty-rate withholding via Form W-8BEN. If your 401(k) plan has very low-cost institutional funds and your employer allows former employees to keep balances indefinitely, leaving it in the plan is also fine. The key is avoiding an immediate cash-out, which triggers both income tax and the 10% penalty.
Your 401(k) is one of the most valuable assets you've built during your time in the US. The decision you make in the weeks around your departure determines whether you walk away with most of it or give a third or more to the IRS unnecessarily. The IRA rollover path is almost always the right call — it's reversible, tax-free at execution, and keeps your options open whether you return to the US in two years or retire abroad in thirty.
If you have questions about managing your finances and career across the visa transition, F1Jobs works with international professionals navigating exactly these decisions every day.
Frequently asked questions
What penalty do I face for cashing out a 401k when moving back to my home country?
If you are under age 59½, you owe a 10% early withdrawal penalty on top of ordinary income tax. The plan administrator withholds 20% federal tax automatically, but your total bill depends on your marginal rate. Non-resident aliens may also owe 30% withholding on future distributions unless a tax treaty reduces that rate.
Can I roll over my 401k to an IRA after my H-1B expires?
Yes. You can roll over a 401k to a Traditional IRA at any time regardless of visa status — tax-free if done as a direct rollover. The IRA stays in the US indefinitely, grows tax-deferred, and you withdraw at 59½ or later. This is usually the best strategy if you expect to return to the US or want to defer the tax bill.
How does the 30% withholding tax work for non-resident aliens taking 401k distributions?
Once you become a non-resident alien for US tax purposes, periodic 401k distributions are subject to 30% withholding under IRC §1441 unless a US tax treaty with your home country sets a lower rate. You claim the treaty rate by filing IRS Form W-8BEN with the plan administrator. Some treaties reduce the rate to 15% or even 0% for retirement distributions.
Is there a way to avoid the 10% early withdrawal penalty when leaving the US?
A few exceptions exist. If you separate from your employer in or after the year you turn 55, the penalty does not apply to that employer's plan. Substantially equal periodic payments (SEPP or 72(t) distributions) also avoid the penalty. However most departing visa holders are under 55 and cannot use these; they either leave the money invested or pay both the penalty and income tax.
Should I choose an IRA or keep the 401k if I plan to leave the US permanently?
Rolling to a Traditional IRA usually gives you more flexibility — broader investment choices, no plan-administrator restrictions, and easier access to treaty-rate withholding via Form W-8BEN. If your 401k plan has very low-cost institutional funds and your employer allows former employees to keep balances indefinitely, leaving it in the plan is also fine. The key is avoiding an immediate cash-out, which triggers both income tax and the 10% penalty.