401(k) for H1B Visa Holders: Taxes, Vesting, and Withdrawals

H-1B visa holders can participate in an employer’s 401(k) plan on the same terms as U.S. citizens. Federal law does not let an employer exclude you based on visa status, and once you meet the plan’s eligibility rules you contribute, receive any match, and choose investments the same way anyone else on payroll does. A 401(k) for H-1B visa holders becomes complicated later, when you change jobs, leave the country, or need to pull the money out while living abroad. That’s where the visa-specific tax rules kick in.

Who Can Join and How Much You Can Contribute

ERISA lets a plan require you to be at least 21 and to have completed one year of service before joining, but it cannot impose stricter conditions than that.1Office of the Law Revision Counsel. 29 U.S. Code 1052 – Minimum Participation Standards Nothing in those rules distinguishes between citizens and visa holders. Many large employers waive the waiting period and let you enroll on your first day; your plan’s Summary Plan Description spells out the specific timeline.2U.S. Department of Labor. FAQs About Retirement Plans and ERISA

For 2026, you can defer up to $24,500 of your salary into a 401(k) through payroll deductions.3Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500 That limit is your own contribution and does not include what your employer adds through a match. Workers 50 and older can put in another $8,000, bringing their employee total to $32,500. Workers aged 60 through 63 get a higher catch-up of $11,250 under SECURE 2.0.4Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500

One rule catches high earners starting in 2026. If your FICA wages from your employer exceeded $150,000 in the prior year, any catch-up contributions must go into a Roth (after-tax) account. You can still make them, but you lose the pre-tax option. If your plan doesn’t offer a Roth feature, you lose catch-up eligibility entirely until the employer adds one.

How the Substantial Presence Test Affects Your Taxes

Your tax treatment turns on whether the IRS considers you a resident alien or a nonresident alien. Most H-1B holders qualify as resident aliens under the Substantial Presence Test: at least 31 days in the U.S. during the current year and at least 183 days using a weighted formula that adds all days in the current year, one-third of the prior year, and one-sixth of the year before that.5Internal Revenue Service. Substantial Presence Test

If you arrived partway through the year, you might not meet the test for your first calendar year and end up filing as a dual-status alien. That doesn’t affect your ability to contribute to the plan; 401(k) eligibility comes from ERISA and the employer’s rules, not from your tax filing status.6Internal Revenue Service. Taxation of Alien Individuals by Immigration Status – H-1B

As a resident alien, your 401(k) tax treatment works identically to a U.S. citizen’s. Pre-tax deferrals reduce your current taxable income because deferred wages don’t appear in box 1 of your W-2.7Internal Revenue Service. Topic No. 424, 401(k) Plans They do not reduce your Social Security or Medicare liability; that money is still wages for FICA purposes.8Internal Revenue Service. 401(k) Resource Guide – Plan Participants – 401(k) Plan Overview

Vesting Matters More If You Change Employers

Money you contribute from your paycheck is always yours. Employer matching contributions depend on a vesting schedule, and if you leave before you’re fully vested you forfeit the unvested portion. Federal law allows two schedules for a defined contribution plan’s matching contributions:9Internal Revenue Service. Retirement Topics – Vesting

A year of service generally means 1,000 hours worked in a 12-month period.9Internal Revenue Service. Retirement Topics – Vesting H-1B workers who transfer employers after two or three years feel this most. If your employer uses three-year cliff vesting and you move at the two-year mark, you walk away with none of the match. Check your plan’s schedule before you time a job change.

Keeping the Account If You Leave the United States

Your 401(k) does not disappear when your visa ends or you move abroad. You can leave the account in place, and for balances above $7,000 the plan administrator generally needs your consent before distributing anything.11Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules SECURE 2.0 raised that threshold from $5,000 to $7,000 for distributions after December 31, 2023, so older references to $5,000 are out of date.

If your balance is $7,000 or less, the plan may force it out. Balances above $1,000 that aren’t claimed or rolled over get automatically moved into an IRA set up in your name.11Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules Keep your mailing address and contact information current with the administrator after you leave the country so you receive required disclosures and tax forms.

From abroad you can log into the plan portal, rebalance, and change allocations. The assets keep growing tax-deferred regardless of where you live. You just can’t add new contributions once you no longer have U.S. wages running through that payroll.

Rolling Over Instead of Leaving It

The cleanest way to move the balance is a direct rollover to an IRA. The plan sends the funds straight to your IRA custodian, no taxes are withheld, and no taxable event occurs.12Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions If a new employer’s 401(k) accepts incoming rollovers, you can consolidate there instead. Confirm with the new plan first, since not every plan takes them.

Avoid an indirect rollover if you can. If a check is made out to you, you have 60 days to deposit the full amount into an eligible retirement account, and the old plan will already have withheld 20%, meaning you have to make up that shortfall from other funds to roll the entire balance. Miss the 60-day window and the whole distribution becomes taxable, plus the 10% early withdrawal penalty if you’re under 59½.13Internal Revenue Service. Retirement Plans FAQs Relating to Waivers of the 60-Day Rollover Requirement

What Withdrawals Actually Cost

Taking money out before age 59½ triggers a 10% additional tax on top of regular income tax.14Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions Exceptions exist for disability, certain medical expenses, and a series of substantially equal payments, among others. Leaving the country is not one of them.

For someone still classified as a U.S. resident, an eligible rollover distribution that isn’t rolled over directly is subject to mandatory 20% federal withholding.15Internal Revenue Service. Pensions and Annuity Withholding That’s a prepayment against your actual tax bill; you settle up when you file.p>

Once you leave the U.S. and no longer meet the Substantial Presence Test, you become a nonresident alien for tax purposes. Distributions paid to nonresident aliens carry a flat 30% federal withholding under IRC Section 1441.16Internal Revenue Service. Plan Distributions to Foreign Persons Require Withholding The plan cannot reduce that rate unless you provide a valid Form W-8BEN establishing that a tax treaty between the U.S. and your country of residence entitles you to a lower rate.17Office of the Law Revision Counsel. 26 U.S. Code 1441 – Withholding of Tax on Nonresident Aliens

On Form W-8BEN Part II you specify the treaty article, the reduced withholding percentage, and the type of income. You submit it to the plan administrator or paying institution, not to the IRS.18Internal Revenue Service. Form W-8BEN – Certificate of Foreign Status of Beneficial Owner for United States Tax Withholding and Reporting Not every treaty covers retirement distributions, and the rates vary. If your country’s treaty doesn’t include a pension or retirement article, the full 30% applies.

Any distribution generates a Form 1099-R showing the amount paid and taxes withheld.19Internal Revenue Service. About Form 1099-R, Distributions From Pensions, Annuities, Retirement or Profit-Sharing Plans, IRAs, Insurance Contracts, etc. You have to report the income on a U.S. return for the year of the distribution even if you were living abroad. Nonresident aliens generally file Form 1040-NR. The IRS receives its own copy of the 1099-R and will follow up if it’s missing from your return.

If You Have an Outstanding 401(k) Loan When You Leave

If you borrowed from your 401(k) while employed and leave before repaying, most plans require full repayment within about 90 days of your termination date. Unpaid balances are treated as a plan loan offset, which counts as a distribution for tax purposes.20Internal Revenue Service. Plan Loan Offsets

There’s a break built in for job separations. If the offset happens because you left the employer (or the plan was terminated) and the loan was in good standing, it qualifies as a qualified plan loan offset (QPLO). Instead of the usual 60 days, you have until your tax filing deadline, including extensions, for the year of the offset to roll the amount into another retirement account.20Internal Revenue Service. Plan Loan Offsets Miss that deadline and the offset counts as taxable income, with the 10% early withdrawal penalty on top if you’re under 59½.

If your employment situation is changing and you have an outstanding loan, deal with it before your last day when possible. Full repayment removes the tax problem entirely; if that isn’t realistic, work out the QPLO timeline in advance so you don’t turn retirement savings into a tax bill by accident.