401(k) for OPT Workers: Should You Contribute If You Might Leave the US? (2026)

Your employer offers a 401(k). Maybe they even match contributions. And you keep hearing it's "free money." But you're on OPT: you might transition to H-1B, or you might go back home in two years. You don't want to lock money up in a retirement account you can't access until you're 59½ if you're planning to leave the US at 30. So: is it worth it?

Quick answer: If your employer offers any match: yes, always contribute at least enough to get the full match. A 50% or 100% employer match is an immediate guaranteed return that no other investment can replicate. Even if you leave the US and withdraw the funds early, paying the 10% penalty and income tax still often leaves you ahead of not contributing at all. If there's no employer match, the decision is more nuanced: this guide walks through the exact math.

What You Need to Know First

A 401(k) is a retirement savings plan offered by American employers that has significant tax advantages. Your contributions are taken out of your paycheck before taxes, reducing your taxable income today. Many employers also offer a "match": for example, if you contribute 5% of your salary, your employer might contribute an additional 5%. The money grows tax-deferred until withdrawal. In retirement (after 59½), withdrawals are taxed as ordinary income.

OPT workers and 401(k) eligibility: There's no visa restriction on 401(k) participation. If your employer offers a 401(k) and you meet their eligibility requirements (typically 30–90 days of employment), you can enroll: full stop. F-1 OPT, STEM OPT, all the same.

The early withdrawal reality: If you leave the US and withdraw your 401(k) before age 59½, you'll owe:

  • Ordinary income tax on the full withdrawal amount (at your tax rate that year)
  • A 10% early withdrawal penalty on top

This sounds harsh. But as we'll show, the math often still favors contributing, especially when an employer match is involved.

2025 contribution limits:

  • Employee contribution: up to $23,500
  • With employer match, total combined: up to $70,000

⚠️ As of 2026: verify annually: Contribution limits, tax rates, and withdrawal rules are subject to annual IRS adjustments. Confirm current figures at IRS.gov before making contribution decisions.


The Employer Match: Why It Changes Everything

If your employer offers a match, this calculation isn't complicated. The match is the only investment in the world that gives you a guaranteed, immediate return before your money grows a single dollar.

Common match structures:

  • 100% match up to 3% of salary: contribute 3%, employer adds 3%, you immediately have 6%
  • 50% match up to 6% of salary: contribute 6%, employer adds 3%, you immediately have 9%
  • Dollar-for-dollar match up to $3,000: every dollar you put in, employer puts in one too

The math on a 50% match (contribute 6%, get 3% free):

Assume you earn $80,000 on OPT. You contribute 6% = $4,800. Employer adds 3% = $2,400.

You immediately have $7,200 invested, on a $4,800 contribution. That's a 50% instantaneous return, before any market growth.

Even if you leave the US two years later and withdraw the full balance:

  • Assume 7% annual growth → balance grows to roughly $8,200
  • Withdrawal: owe income tax (say 22%) + 10% penalty = 32% total tax
  • After tax/penalty: ~$5,580 in your pocket
  • Your original contribution was $4,800

You still net $780 more than if you'd never invested, plus you reduced your taxable income by $4,800 during your OPT years, saving you additional tax during the contribution years.

The employer match is not just "nice to have." It's the highest guaranteed return available to any investor at any income level. Never leave it on the table. Read our guide on if international students can invest in US stocks on F-1.


What If There's No Employer Match?

Without an employer match, the 401(k) question is more nuanced for OPT workers who might leave. Here's the honest breakdown:

The case for contributing anyway:

Pre-tax 401(k) contributions reduce your taxable income now. If you're in the 22% or 24% marginal bracket on OPT, every $1,000 contributed saves you $220–$240 in federal income tax today. When you withdraw later, whether in retirement or early if you leave, you pay income tax on that $1,000 at whatever your tax rate is then. If your future tax rate is lower (likely in retirement, or in a lower-income year), you come out ahead.

The case against contributing (no match):

If you'll leave the US in 1–2 years and withdraw early:

  • You pay the 10% penalty on top of income tax
  • The short investment horizon means limited growth to offset the penalty
  • A Roth IRA (contributions withdrawable anytime without penalty) or a taxable brokerage account offers more flexibility

The verdict without an employer match:

  • Definitely leave in under 2 years: Skip the 401(k) unless you're confident you'll roll it over to an IRA rather than withdraw it. Use a Roth IRA or taxable account instead.
  • Uncertain plans (2–5 years): Contribute modestly (10–15% of max) for the tax deduction, but keep most savings in more flexible accounts.
  • Planning to stay through H-1B: Contribute aggressively: the tax-deferred growth compounds significantly over a 10–20 year horizon.

Your Options When You Leave the US

Leaving the US doesn't mean you must cash out your 401(k). You have four options: and cashing out is often the worst one.

Option 1: Leave It In the Plan

Most 401(k) plans allow you to leave your balance in the plan even after you leave your employer, as long as your balance is above $5,000 (some plans can force distributions under that threshold). Your money continues to grow tax-deferred. You don't have to do anything.

Best if: You're uncertain about your plans and don't need the money immediately.

Watch out for: Plan fees. Some employer 401(k) plans have higher expense ratios than you'd get in a rollover IRA. Compare your fund options after you leave.

Option 2: Roll Over to a Traditional IRA

A rollover moves your 401(k) balance directly into an IRA: no taxes, no penalties, no early withdrawal consequences. You then control the investments yourself in the IRA, typically with more fund choices and lower fees.

If you're leaving the US, you can roll your 401(k) into a Traditional IRA at Fidelity or Vanguard, and the account stays open indefinitely. The money grows tax-deferred until you withdraw it in retirement. You can eventually withdraw from abroad: just owe US income tax at that point.

Best for: Students who want to leave money growing in the US for eventual retirement, even if they return to their home country.

Option 3: Cash Out and Pay the Penalty

Early withdrawal: income tax + 10% penalty. This is the most expensive option, but sometimes it's the right one, especially if you need the capital to start a business or buy property in your home country.

The actual cost of early withdrawal:

OPT Salary 401(k) Balance Tax Rate 10% Penalty Net Received
$60,000 $5,000 22% $500 $3,400
$80,000 $12,000 22% $1,200 $8,160
$100,000 $20,000 24% $2,000 $13,200

It hurts, but compare this to never having contributed: you would have paid 22–24% income tax on the contribution anyway, just without the pre-tax growth and without any employer match you received.

Option 4: Roll Over to a Roth IRA (Roth Conversion)

You can convert a traditional 401(k) to a Roth IRA. You'll owe income tax on the converted amount in the year of conversion (no 10% penalty, just the tax). After that, the money grows tax-free and contributions can be withdrawn at any time without penalty.

Best for: OPT workers in a low-income year (perhaps leaving mid-year and only working a few months) where the conversion tax hit is minimal. If you convert $15,000 in a year you only earned $20,000, your effective rate on the conversion might be 12% instead of 22%.


Tax Treaty Considerations for 401(k) Withdrawals Abroad

Some countries have tax treaties with the US that affect how your 401(k) withdrawals are taxed when you're living abroad as a non-resident.

India: The US-India tax treaty covers pension income. 401(k) distributions paid to Indian residents may be taxed in the US at a reduced rate under Article 20. The specifics depend on the nature of the distribution: consult a cross-border tax advisor before withdrawing from abroad.

China: The US-China treaty similarly has provisions for pensions and retirement distributions. Article 18 may apply.

Nepal: No US-Nepal tax treaty. Standard 30% NRA withholding on US-source retirement distributions applies once you're a non-resident abroad.

This is complex territory: if you're planning to withdraw a 401(k) from outside the US, a cross-border tax professional is worth consulting.


Real Student Scenarios

Priya's situation: Priya's OPT employer matches 100% of contributions up to 4% of salary. Her salary is $72,000. She contributes 4% = $2,880/year, employer adds $2,880. She has $5,760 invested immediately. After 2 years of OPT plus STEM OPT, she transitions to H-1B and keeps contributing. The employer match alone means she'd never consider not contributing, even if she eventually returns to India, the match math still wins.

Wei's situation: Wei's employer offers no match. He earns $85,000 on OPT and is unsure if he'll get H-1B. He decides to contribute $500/month to his 401(k) for the 22% tax deduction, saving $1,320/year in federal tax. He also contributes $7,000 to a Roth IRA (for flexible withdrawal of contributions if needed) and keeps $500/month in a taxable Fidelity account. When he gets his H-1B, he increases his 401(k) contribution significantly.

Sanjay's situation: Sanjay's employer matches 50% up to 6%. He earns $52,000 on OPT. He contributes 6% = $3,120, employer adds $1,560. When his OPT ends and H-1B lottery fails, he leaves the US. He rolls his $5,800 balance into a Traditional IRA at Fidelity, leaves it growing, and plans to access it after age 59½: or potentially during a lower-income year when the tax hit will be minimal.


Common Mistakes to Avoid

1. Not enrolling because "I might leave the US." Fix: If there's an employer match, enroll immediately. The match alone compensates for early withdrawal penalties in most realistic scenarios.

2. Cashing out immediately when you leave instead of rolling over to an IRA. Fix: A direct rollover to a Traditional IRA costs nothing: no taxes, no penalty. Cashing out costs you 32%+ of your balance. Always roll over first, then decide what to do with it.

3. Contributing the maximum ($23,500) when you have no emergency fund. Fix: Build 3 months of expenses in a liquid account before maximizing retirement contributions. A 401(k) is not accessible in an emergency without penalties.

4. Ignoring the 401(k) fund expense ratios inside your employer's plan. Fix: Some employer plans have high-fee actively managed funds. Choose the lowest-cost index fund options available: typically a total market or S&P 500 index fund with under 0.10% expense ratio.

5. Confusing 401(k) vesting schedules with contribution rights. Fix: Your own contributions are always 100% yours immediately. Employer match contributions may vest over time (1–3 years typically). If you leave before vesting, you lose unvested employer contributions. Check your plan's vesting schedule before leaving a job.


Bottom Line

If your employer matches: Contribute at minimum what it takes to get the full match on your very first day of eligibility. This is the single best financial decision available to any OPT worker, regardless of whether you stay in the US or leave.

If there's no match and you might leave in under 2 years: Prioritize a Roth IRA ($7,000/year) and a taxable brokerage for flexibility. 401(k) is optional.

If there's no match but you're planning to stay through H-1B: Contribute to the 401(k) for the pre-tax deduction. The tax savings today are real, and you'll likely stay invested long enough to compound meaningfully.

When you eventually leave: roll it over to an IRA, not a cash withdrawal. Those two words: "roll over" will save you thousands.


*The "I might leave the US" hesitation about 401(k) investing costs students more money than any other single decision I see. The employer match doesn't care about your visa status. It's free money. Take it.


FAQ

Q: Can OPT workers contribute to a 401(k)? A: Yes. There is no visa-based restriction on 401(k) participation. If your employer offers a 401(k) and you meet their eligibility requirements, you can enroll regardless of whether you're on F-1 OPT, STEM OPT, or any other non-immigrant status.

Q: What happens to a 401(k) if an OPT worker leaves the US? A: You have several options: leave it in the plan, roll it over to a Traditional IRA (no taxes or penalties), convert to a Roth IRA (pay income tax, no penalty), or cash out (income tax plus 10% early withdrawal penalty). Rolling over to an IRA is almost always better than cashing out.

Q: Is the 401(k) early withdrawal penalty worth it for OPT workers? A: If there's an employer match, almost always yes: the match compensates for the penalty in most scenarios. Without a match, it depends on your tax bracket, holding period, and whether you roll over vs. cash out. Use the scenarios in this article to calculate your specific situation.

Q: Should OPT workers choose a traditional 401(k) or Roth 401(k)? A: Most OPT workers are in the 22–24% marginal bracket. The traditional (pre-tax) 401(k) is often better at this income level: you get the deduction now at 22–24% and may withdraw at a lower rate in retirement or in a lower-income year. If your employer offers a Roth 401(k) and you expect to stay in the US long-term, the Roth option provides tax-free growth.

Q: Can OPT workers take a 401(k) loan instead of withdrawing when leaving? A: 401(k) loans typically must be repaid within 60–90 days of leaving your employer, or they're treated as distributions subject to tax and penalty. A loan is generally not a useful option for someone leaving the US permanently. Roll over to an IRA instead.

Ankit Karki

Written by Ankit Karki

Financial Educator & Former F-1 Student

Ankit Karki is a financial educator and former F-1 international student who lived through the exact challenges of navigating the US financial system. Having managed everything from opening a bank account with no SSN to optimizing credit card usage on a student budget, Ankit now writes extensively to help the international student community build strong financial foundations in the United States.

Connect on LinkedIn →

Disclaimer: This content is for informational and educational purposes only. Please consult a professional advisor for specific financial advice.