What Happens to Your 401(k) and HSA When You Leave the US
By Muntasir Minhaz • Published Sep 23, 2026 • Updated Sep 23, 2026
When you leave the US permanently, you roll a 401(k) into an IRA or cash it out, but cashing out usually means income tax plus a 10% early withdrawal penalty, and HSA funds stay yours for qualified medical expenses even after you lose US health coverage.
💵 Cashing out a 401(k) before age 59 and a half adds a 10% early withdrawal penalty on top of regular income tax.
📩 As a nonresident alien, many US-source retirement payments face a flat 30% withholding unless a tax treaty sets a lower rate.
🏠 You stop adding new money to an HSA once you lose US high-deductible health plan coverage, but existing funds still pay for qualified medical expenses tax-free.
🛂 Check whether your home country has a Social Security totalization agreement with the US, since that lets your US work credits count toward a home-country pension instead of being lost.
Your 401(k) options when you leave
A 401(k) does not close automatically when you leave your US job or the country. You generally choose between three paths: leave the money in the existing plan if your former employer allows it, roll it into an Individual Retirement Account (IRA), or cash it out. Many plans allow former employees to keep a balance above a minimum amount invested indefinitely, so leaving it in place is often the simplest option if you might return to the US or want the balance to keep growing.
Rolling over to an IRA
A direct rollover moves the balance into an IRA without triggering tax, as long as you follow the plan's direct rollover process rather than taking the cash yourself first. This keeps the money invested and avoids the immediate tax hit, but you need a US brokerage that accepts nonresident account holders, and not every provider does. Ask your plan administrator or a provider such as Fidelity or Vanguard directly whether they support nonresident account holders before you decide.
Cashing out
Taking the balance as cash is the most expensive option. The withdrawal counts as taxable income, and if you are under 59 and a half, the IRS adds a 10% early withdrawal penalty on top of regular tax.
As a nonresident alien, IRS guidance states that most US-source fixed or periodic payments, which include many retirement distributions, are taxed at a flat 30% unless a tax treaty between the US and your home country sets a lower rate. Check whether your country has a treaty with the US before assuming the standard rate applies.
What happens to your HSA
A Health Savings Account (HSA) is not tied to a specific employer or country. Once you lose coverage under a US high-deductible health plan, you no longer add new money to the account, but the balance does not disappear. Under IRS Publication 969 , you still take tax-free distributions to pay or get reimbursed for qualified medical expenses even after you stop being eligible to contribute.
A withdrawal for anything other than a qualified medical expense counts as taxable income and, if you are under 65, adds a further tax penalty on top. Keep the account open and keep records of any qualified medical expense you want to claim against it.
Social Security and totalization agreements
Money you and your employer paid into US Social Security does not automatically transfer to your home country's pension system. Some countries have a totalization agreement with the US that lets work credits earned in each country count toward eligibility for benefits in the other, avoiding a situation where you paid in but qualify for nothing in either system. Check the current list of agreement countries on ssa.gov before you assume your contributions are lost or automatically preserved.
FICA and your paycheck while still in the US
Most F-1 and J-1 students working on campus or on Curricular or Optional Practical Training are exempt from Social Security and Medicare tax (FICA) as nonresident aliens for their first five calendar years in the US. If your employer withheld FICA anyway, that is a separate refund claim from your 401(k) or HSA decisions, filed with the IRS using Form 843. Check your pay stubs for a FICA line before you leave, since claiming a wrongful withholding refund gets harder once you no longer have a US address for correspondence.
Before you leave
Decide on your 401(k) plan (leave it, roll it over, or cash out) before your last US paycheck, while HR and the plan administrator still answer questions directly.
Update your mailing and email address with every plan administrator so you keep getting tax forms like the 1099-R.
Keep your HSA debit card and records even after coverage ends, since you still submit claims for expenses incurred while covered.
Ask a tax professional familiar with nonresident alien filing about your specific treaty position before you cash out anything.