401(k) vs. IRA for H1B Holders: Fund Which First?
By WealthyDesis Team · August 6, 2026
If your employer offers a 401(k) match, fund that first — it’s an immediate, guaranteed return no IRA can match. After that, the right order depends on your income: a Roth IRA if you’re under the phase-out range, your 401(k) up to the annual max if you’re not, and a backdoor Roth if your income is too high for a direct IRA contribution. Citizenship and visa status don’t change any of this — access to both account types runs through your Social Security Number, which H1B status already includes.
The funding order, in practice
For 2026, the IRS set the 401(k) employee deferral limit at $24,500 and the IRA contribution limit (traditional and Roth combined) at $7,500, both up from 2025. A reasonable funding sequence for most H1B holders:
- Contribute enough to your 401(k) to get the full employer match. This is the only step where skipping it has a clear, quantifiable cost.
- Fund a Roth IRA up to $7,500, if your income is under the phase-out range — full eligibility for single filers runs up to $153,000 MAGI in 2026.
- Go back to your 401(k) and contribute up to the $24,500 max, if you can afford to.
- If your income is above the Roth phase-out, use a backdoor Roth instead of step 2 — see our backdoor Roth guide and the backdoor Roth calculator for the mechanics.
A worked example
Priya is on H1B, single, earning $105,000 in salary. Her employer matches 401(k) contributions dollar-for-dollar up to 4% of pay.
- Step 1 — capture the match. 4% of $105,000 is $4,200. If she contributes that amount, her employer adds another $4,200 — an instant 100% return before any market growth.
- Step 2 — check Roth eligibility. Her MAGI of $105,000 is under the $153,000 single-filer floor for 2026, so she can contribute the full $7,500 directly to a Roth IRA.
- Step 3 — traditional IRA deduction check. Because she’s covered by a workplace plan, her traditional IRA deduction phases out between $81,000 and $91,000 MAGI for single filers in 2026. At $105,000, a traditional IRA contribution would be fully nondeductible — money in with no tax benefit going in, which is strictly worse than the Roth she’s already eligible for. This is why step 2 specifies Roth, not “IRA” generically.
- Step 4 — top off the 401(k). If cash flow allows, she raises her 401(k) contribution toward the $24,500 max, on top of the $4,200 already earning the match.
Total tax-advantaged room available to her this year: $24,500 (401k) + $7,500 (Roth IRA) = $32,000, without touching a backdoor conversion.
Where visa status actually changes the math
The account-opening mechanics are identical to a US citizen’s. Where H1B status changes the strategy, not the eligibility:
Vesting risk from job changes. Many employer 401(k) matches vest on a schedule — commonly a 2-to-6-year graded schedule or a 3-year cliff, per plan rules set under ERISA. H1B holders often change employers during the PERM/green card process, sometimes on a timeline set by their immigration attorney rather than their own preference. Leaving before your match vests forfeits the unvested portion outright. Check your plan’s vesting schedule before assuming that 4% match is fully yours.
What “leaving the country” does and doesn’t do. Your 401(k) or IRA doesn’t need to be closed if you leave the US, lose H1B status, or move back to India. It stays invested. The change is in how distributions are taxed: once you’re a nonresident alien for US tax purposes, the plan administrator withholds 30% on distributions by default, per IRS rules on payments to nonresident aliens. The US-India tax treaty doesn’t exempt 401(k) or IRA withdrawals outright, but structuring withdrawals as periodic payments and filing Form W-8BEN can reduce or eliminate that withholding under the treaty’s pension article — worth a cross-border tax preparer’s time before you take a lump sum.
No totalization agreement with India. Some countries have a US Social Security totalization agreement that lets partial work credits from both countries count toward retirement eligibility. India isn’t one of them. To qualify for any US Social Security benefit, you generally need 40 credits — roughly 10 years of US work paying into the system — earned entirely in the US. If your US career ends up shorter than that, your 401(k)/IRA balance is the retirement asset; there’s no partial Social Security safety net filling the gap the way there might be for, say, a UK or German transplant.
What happens if this is mismanaged
- Cashing out a 401(k) before leaving the US: under 59½, this triggers a 10% early withdrawal penalty plus ordinary income tax, and if you’re already a nonresident alien when you take the distribution, a 30% default withholding on top — on a $50,000 cash-out, that can mean $20,000 or more gone before you see a rupee.
- Job-hopping before the match vests: switching employers one quarter before a 3-year cliff vests can mean walking away from thousands of dollars in employer contributions that were never really “yours” until the vesting date.
- Contributing to a traditional IRA at high income out of habit: once you’re above the deduction phase-out and covered by a workplace plan, a traditional IRA contribution gets you no upfront tax break — a Roth IRA (if eligible) or backdoor Roth is almost always the better default at that income level.
- Assuming the account needs to be liquidated to leave the country: it doesn’t. Leaving a 401(k) or IRA invested and dealing with withdrawal tax treatment later, ideally with treaty benefits claimed, is usually cheaper than an emergency cash-out.
Next step
Run your own numbers in the compound interest calculator to see what the difference between capturing versus missing an employer match actually compounds to over 20-30 years, or check our retirement calculator to see whether your current contribution rate is on pace for your target retirement income.
Frequently asked questions
Can H1B holders contribute to a 401(k) or IRA?
Yes. Eligibility for both account types is based on having a valid Social Security Number and earned US income, not on citizenship or green card status. H1B status already comes with a work-authorized SSN, so there's no extra step compared to a US citizen coworker.
What happens to my 401(k) if I leave the US?
Nothing happens automatically — the account stays open and invested with your plan provider. You can leave it, roll it into an IRA, or take a distribution later. Once you're a nonresident alien, distributions default to 30% US withholding unless you file Form W-8BEN and claim a treaty benefit.
Is a Roth or traditional account better for H1B holders?
It depends on your current tax bracket versus your expected bracket in retirement, and, for immigrants specifically, whether you expect to eventually be taxed by another country on the withdrawals. There's no universal answer — the funding order in this article matters more than the Roth-vs-traditional choice for most early-to-mid-career earners.
Written by WealthyDesis Team
Reviewed for accuracy against current IRS and USCIS guidance at time of publishing.
More in Retirement & Tax-Advantaged Accounts