Should H-1B Visa Holders Contribute to a 401(k)? A Cross-Border Decision Framework
Your visa horizon is not your investment horizon. When the 401(k) wins for temporary US residents, what happens if you leave, and a deep dive for India returnees.
A common plan among H-1B workers: skip the 401(k), because “I am only here for a few years.” The reasoning sounds careful and it contains a category error. A worker who leaves the United States after four years is not required to liquidate a retirement account when they go; the account can stay invested for the remaining decades until retirement. The visa sets the horizon for living in the country. It does not set the horizon for the money. This guide builds the decision framework for anyone on a temporary visa, H-1B, L-1, O-1, or TN, then works a detailed case study for the largest group facing it: Indian tech workers weighing a return home.
The short version
A temporary US stay rarely makes retirement accounts a bad deal, and it never makes them an automatic one. Order of operations: fund a mobility reserve first, because job loss, visa problems, and relocation costs arrive together. Then contribute enough to capture the employer match you will plausibly vest, valued as match times the probability of vesting. Beyond that, split savings among traditional, Roth, and taxable based on your current tax rate, when you will withdraw, and how your likely destination country treats each account. Leaving the US does not require cashing out, the 30% withheld from a nonresident distribution is not necessarily the final tax, and Roth benefits do not reliably cross borders. Plan for the border crossing; do not liquidate just because it happens.
Yes, H-1B workers can use these accounts
Start with eligibility, since many workers assume they are excluded. Employers must offer H-1B employees benefits, explicitly including retirement and savings plans, on the same basis as similarly employed US workers.1 And most H-1B workers are US tax residents: the substantial presence test counts 31 days in the current year plus 183 weighted days over three years, and H-1B holders, unlike students on F or J visas, cannot exclude their days from the count.2 Immigration status and tax residency are separate systems, and the tax system is the one that governs these accounts. A US tax resident on an H-1B files like a citizen, can contribute to a 401(k) and, subject to income limits, an IRA, and for 2026 faces the same limits as everyone else: $24,500 in 401(k) elective deferrals and $7,500 across IRAs for those under 50.3
The visa horizon is not the investment horizon
Someone who expects four more years in the US but is saving for retirement 30 years away holds a 30-year asset, whatever their visa says. On departure, the account owner can generally leave the balance in the former employer’s plan, roll it directly into an IRA, roll it into a new employer’s plan, or take a taxable distribution. A direct rollover preserves tax deferral and avoids the 20% withholding that hits distributions paid to you personally.4 Only the last option, cashing out, triggers current tax, and small balances are the one forced decision: plans can cash out balances up to $1,000 by check and must roll balances between $1,000 and $7,000 into an IRA if you make no election.4
Two horizons need separating. The relocation horizon covers money you might need for moving, unemployment, immigration expenses, and deposits, and it belongs in liquid accounts. The retirement horizon covers money that will fund consumption decades from now, and it can sit in a retirement account through any number of border crossings. Making the whole portfolio conservative, or refusing tax-advantaged accounts entirely, because a visa may expire confuses the two.
Fund the mobility reserve first
The genuinely different thing about investing on a visa is that the bad outcomes correlate. Losing your job can start an immigration clock; the relocation that follows costs money at exactly the moment income stops; a spouse’s work authorization may depend on your status. The economics of precautionary saving says liquid wealth is most valuable precisely when income is uncertain and borrowing is hard,5 and a visa holder faces more of both than a citizen in the same job. Before maximizing any retirement account, hold a reserve sized to an actual relocation budget: flights, shipping, deposits, legal fees, and months of expenses through a landing period, on top of the usual job-loss math in our emergency fund sizing guide. A dollar in a taxable account can handle any of those surprises. A dollar behind a 10% early-withdrawal penalty handles them badly.
Value the match you will plausibly vest
With liquidity handled, the employer match is usually the strongest reason to participate, and it needs one adjustment for a temporary worker. Your own deferrals are always 100% vested, but employer money can vest on a schedule as slow as a three-year cliff or six-year graded plan.6 The advertised match is therefore the wrong number; the right one is:
A $6,000 match behind a three-year cliff you have a 20% chance of reaching is worth $1,200 in expectation, and a plan you will certainly vest is worth its face value even if you leave the country afterward. The match is powerful enough that contributing can win even in the worst case. Take a worker at a 24% marginal rate whose plan offers a fully vested 50% match, and suppose they cash out immediately, paying full tax plus the 10% penalty:
Even torched by taxes and penalty on day one, the matched dollar beats the paycheck dollar. The general break-even vested match is:
where is the early-withdrawal penalty. At equal 24% rates and a 10% penalty, the break-even is about 15%: any vested match above that beats salary even under an immediate cash-out. This is a decision heuristic with simplified assumptions, and the calculator below lets you run your own numbers. The research is consistent with treating the match as the main event: matches raise participation, with the largest effect from offering any match at all,7 and defaults and automatic enrollment move savings behavior more than tax subsidies do.8,9
Traditional, Roth, or taxable: a four-layer tax problem
Beyond the match, the choice among account types is where a future move changes the analysis. A US-only investor compares tax now against tax later; a possible emigrant has four layers: the US benefit at contribution, US tax at withdrawal, treaty treatment and withholding, and the destination country’s own taxation of the account. Our Roth vs. traditional guide covers the domestic math; here is what the border adds.
- Traditional accounts usually travel more cleanly. Most countries and treaties understand a pension that is taxed at withdrawal. A high earner deducting at 32% or more today, and withdrawing later at a lower effective rate, keeps the core benefit across most borders. Federal law also bars the state you leave from taxing retirement income you receive as a nonresident of that state, which quietly benefits anyone contributing from a high-tax state and withdrawing from abroad.10
- Roth benefits may not cross the border. The US exempts qualified Roth withdrawals, but the destination country is not obliged to agree. Canada taxes Roth IRA income annually unless the taxpayer files a one-time treaty election; the UK treaty grants corresponding relief; many treaties, including India’s, say nothing about Roth at all.11 The failure mode is expensive: pay US tax up front, get no deduction, then watch another country tax the growth anyway. Choose Roth deliberately, when your likely destination recognizes it or your current rate is very low, and treat a modest Roth slice as tax-regime diversification when the destination is unknown.
- Taxable accounts buy flexibility. No penalty, no plan rules, no treaty characterization questions, full access for the move itself. The price is annual tax drag and no match. Money with a real chance of being spent within several years belongs here, not behind a penalty.
Withholding is not the final tax
The scariest number in this topic is the 30% withheld when a US retirement plan pays a nonresident alien. It is real, and it is frequently not the end of the story. The 30% is a withholding rate, reducible at source by claiming treaty benefits on Form W-8BEN, and reconciled afterward on a Form 1040-NR return, which can recover overwithholding.12 Separately, many treaties treat periodic pension payments more favorably than lump sums, so “move home and cash it all out at once” is often the single most expensive way to access the account.13 And the 10% early-withdrawal penalty has no exception for leaving the country.14 Three different numbers, custodian withholding, final US tax, and combined two-country tax, get collapsed into one scary figure in most forum advice. Keep them separate and the picture usually improves.
The account decision and the allocation decision are separate
A worker leaving in three years does not need a conservative 401(k) if the account stays invested until retirement. Asset allocation should follow the time until the money is spent, your risk capacity, and your human capital, the same logic as our human capital risk guide, with one addition: as the spending date approaches, the currency of your future liabilities starts to matter. A person who will retire abroad may eventually want safer assets aligned with the currency they will spend. That is a decision for the years near retirement, and it never requires abandoning global equities decades in advance. Inside the plan, prefer broad diversification over employer stock: your salary, unvested RSUs, and immigration status already depend on one company.
Case study: an Indian tech worker weighing a return home
India is the sharpest version of this problem, because an Indian returnee must coordinate US account rules, the US-India treaty, Indian residency transitions, and a special Indian timing election. Meet Asha, a hypothetical 32-year-old on H-1B: $200,000 salary, a 50%-of-6% employer match that vests immediately, a 32% combined marginal rate, five more expected US years, a likely return to India, a 25-year retirement horizon, an existing relocation reserve, and no expectation of US citizenship. That last point matters: a future US citizen stays under US worldwide taxation through the treaty’s saving clause and needs a different analysis.
The match math still dominates
Asha contributes $12,000 to get the $6,000 match, $18,000 total, at a take-home cost of $8,160 after her 32% rate. Give both paths 25 years at a 5% real return, tax the traditional distribution at an illustrative 30% combined rate, and tax the taxable alternative’s gain at 15%:
These are illustrations with clean assumptions, and the gap is not subtle. Most of it comes from the $6,000 of employer money, which is why the vesting probability, and never the visa expiration date, is the first number to check.
India’s timing election, under its new statute numbers
The classic problem for a returnee: the US defers tax on a traditional 401(k) until distribution, while India, once Asha is ordinarily resident, taxes worldwide income as it accrues. India solved this mismatch with a special election, and the provision was renumbered when India’s Income-tax Act, 2025 took effect on April 1, 2026. What older articles call Section 89A, Rule 21AAA, and Form 10EE is now Section 158 of the Income-tax Act, 2025, Rule 74 of the Income-tax Rules, 2026, and Form 40.15 A qualifying resident who opened a retirement account in a notified country, currently the US, UK, and Canada, while nonresident in India can elect to have India tax the account’s income at withdrawal rather than as it accrues, by filing Form 40 by the return due date.16
Three practical points. First, the election addresses timing only; it does not make anything tax-free or settle which country taxes a distribution. Second, it carries a reversal rule: someone who elects and later becomes nonresident in India again can have the deferred income become taxable retroactively, a real trap for globally mobile engineers who might move a second time. Third, the returnee’s first years back are often resident-but-not-ordinarily-resident status, generally available after nine of ten prior years nonresident or 729 or fewer days in India across the prior seven, which limits Indian taxation of foreign income during the transition. Records make or break all of this: Asha should keep every annual statement, contribution history, and balance snapshot from before her return.
Periodic payments beat lump sums under the treaty
The US-India treaty’s pension article says private pensions derived by a resident of one country from the other are taxable only in the residence country. The Treasury’s technical explanation then narrows it: a payment must be periodic to qualify, and a single lump sum falls instead under the residual income article, where the source country keeps the right to tax.17 For Asha, the popular plan of moving home and immediately draining the 401(k) is likely the worst-taxed path: early penalty, lump-sum treatment outside the pension article, and withholding friction all at once. Leaving the account invested and later taking periodic retirement distributions as an Indian resident is the structure the treaty actually rewards. Exact classification of any payment stream is fact-specific, which is one of the places a cross-border professional earns their fee.
Roth fits India poorly today
The treaty was signed in 1989, before Roth accounts existed, and has no provision recognizing their tax-free character. India’s Section 158 defines the qualifying account by reference to income the notified country taxes at withdrawal, which describes a traditional account and describes a Roth badly, since the US taxes a qualified Roth distribution not at all. No Indian guidance squarely addresses Roth accounts, so the honest statement is an interpretation: the statute’s plain terms offer a Roth no relief, and nothing published contradicts that reading. For someone with a meaningful probability of returning to India, traditional contributions are the cleaner default, a Roth conversion just before departure deserves professional review before execution, and the mega-backdoor Roth strategy in our tax-advantaged trifecta guide becomes a country-specific decision rather than a default optimization.
The Social Security gap
US retirement benefits require 40 credits, at most four per year, so roughly ten years of covered work. A five-year worker accumulates about 20, and the US has totalization agreements with exactly 30 countries that let workers combine coverage; India is not one of them.18 A returnee’s FICA taxes on a short stay may therefore fund no US benefit at all, which cuts both ways in this analysis: it makes private retirement savings more important for a short-stay worker, and it is one more reason the 401(k), which the worker keeps regardless of borders, deserves more weight than a benefit formula they may never vest into.
Asha’s order of operations
- Maintain the mobility reserve before any optimization.
- Contribute to the full immediately-vested match.
- Pay off any expensive debt.
- Direct additional long-term savings to traditional 401(k) space first, given her 32% rate and India’s traditional-friendly election.
- Add Roth only after India-specific advice, or as a small diversification slice while her destination stays uncertain.
- Keep near-term India goals, like a home purchase, in taxable.
- On departure: download every statement, keep the account invested, file the W-8BEN when residency changes, and plan distributions as periodic payments rather than a lump sum.
Run your own scenario
The calculator compares where one year of savings ends up, in a traditional 401(k) with a match, a Roth 401(k), and a taxable account, under the scenario you pick: stay in the US, leave and keep the account invested, or leave and cash out early. Every tax input is editable, because the honest version of this tool is a framework with your assumptions, never a treaty engine.
What we recommend
For most workers on a temporary visa: build the mobility reserve, capture every match dollar you will plausibly vest, and put long-term savings in a traditional 401(k) up to the point where liquidity or destination-country doubts argue for taxable instead. Choose Roth only with a reason: a low current bracket, a destination that recognizes it, or deliberate tax-regime diversification. When you leave, keep the account invested, and never cash out reflexively. Hire a cross-border professional for the specific transitions where the stakes concentrate: the year you change tax residency, any Roth conversion near departure, the first Form 40 filing for Indian returnees, and the design of distributions decades later. Those few hours of advice protect decisions this guide can only frame, and per our return on hassle framework, they are among the highest-value hours a cross-border household can buy.
How Summitward helps
Summit tracks your accounts by tax treatment, traditional, Roth, and taxable side by side, so the household’s real mix is visible rather than scattered across logins, and the retirement Monte Carlo answers the materiality question behind this whole guide: how much does contributing versus skipping the 401(k) move your plan’s success odds under your own assumptions? The tax projection tool shows what a contribution saves at your actual marginal rate. Scenario branches for residency changes and vesting-aware compensation tracking are natural extensions of this framework, and for the cross-border specifics themselves, the right output is a short list of questions for a professional, not an automated verdict.
Frequently asked questions
Can H-1B visa holders contribute to a 401(k) and IRA?
Yes. Employers must offer H-1B workers retirement benefits on the same basis as US workers, and most H-1B holders are US tax residents under the substantial presence test, which makes them eligible for 401(k) plans and, subject to the normal income limits, traditional and Roth IRAs, with the same contribution limits as citizens.
What happens to my 401(k) if I leave the United States?
Nothing forces a sale. You can leave the balance in the plan (above the $7,000 force-out threshold), roll it directly to an IRA, or roll it to a new employer’s plan, and the account keeps growing tax-deferred. Confirm your custodian serves residents of your destination country before you move, update your address and file Form W-8BEN when your residency changes, and keep copies of every statement.
Should I cash out my 401(k) when I move home?
Usually not. An early lump sum can face ordinary US tax, the 10% early-withdrawal penalty, which has no exception for leaving the country, unfavorable lump-sum treatment under many treaties, and 30% withholding friction. Keeping the account invested and taking periodic distributions in retirement is usually taxed far more gently. Run the cash-out scenario in the calculator above before deciding.
Is a Roth IRA worth it if I might return to India?
Be cautious. The US-India treaty predates Roth accounts and does not recognize their tax-free treatment, and India’s Section 158 election is written around accounts taxed at withdrawal, which a qualified Roth is not. You could pay US tax up front and still owe Indian tax on the growth. Traditional contributions are the cleaner default for likely India returnees; take India-specific advice before making large Roth contributions or conversions.
Key takeaways
- The visa horizon is not the investment horizon. A four-year stay can still fund a 30-year retirement asset, because leaving the US does not require liquidating the account.
- Liquidity comes first on a visa. Job loss, immigration deadlines, and relocation costs arrive together; fund a mobility reserve before maximizing any retirement account.
- Value the match at match times vesting probability. A vested match is strong enough to win even under an immediate taxed-and-penalized cash-out; an unvested match you will never reach is worth nothing.
- Traditional travels better than Roth. Most treaties and India’s Section 158 election are built around tax-at-withdrawal accounts; Roth recognition abroad is country-specific and sometimes absent.
- Plan the border crossing. Withholding is not final tax, periodic payments often beat lump sums under treaties, and a few hours of cross-border advice at the transition points is cheap insurance.
Related guides
- Roth vs. Traditional 401(k) and IRA: The Tax Math That Actually Matters the domestic version of the account-type decision.
- How to Withdraw From a 401(k) or IRA Before 59½ Without the Penalty the penalty mechanics and exceptions, with its own calculator.
- Emergency Fund Sizing: A Job-Risk Matrix the starting point for sizing a mobility reserve.
- Human Capital Risk for Tech Workers why employer concentration matters even more on a visa.
- The Order of Investing Operations where the match and each account fit for a US-based saver.
Sources
- US Department of Labor, Wage and Hour Division. Fact Sheet #62L: What benefits must be offered to H-1B workers? See also 20 CFR 655.731.
- IRS. Substantial Presence Test and Taxation of Alien Individuals by Immigration Status: H-1B.
- IRS (2025, November). 401(k) limit increases to $24,500 for 2026; IRA limit increases to $7,500 (Notice 2025-67).
- IRS. Rollovers of Retirement Plan and IRA Distributions.
- Carroll, C. D. (1997). Buffer-Stock Saving and the Life Cycle/Permanent Income Hypothesis. Quarterly Journal of Economics 112(1), 1–55. See also Deaton (1991), Econometrica 59(5).
- IRS. Retirement Topics: Vesting.
- Papke, L. E. (1995). Participation in and Contributions to 401(k) Pension Plans. Journal of Human Resources 30(2), 311–325. See also Engelhardt & Kumar (2007), Journal of Public Economics: a 25-cent match-rate increase raised annual contributions by roughly $365 in 2001 dollars.
- Madrian, B. C., & Shea, D. F. (2001). The Power of Suggestion: Inertia in 401(k) Participation and Savings Behavior. Quarterly Journal of Economics 116(4), 1149–1187.
- Chetty, R., Friedman, J. N., Leth-Petersen, S., Nielsen, T. H., & Olsen, T. (2014). Active vs. Passive Decisions and Crowd-Out in Retirement Savings Accounts. Quarterly Journal of Economics 129(3), 1141–1219.
- 4 U.S.C. § 114 (P.L. 104-95). Limitation on state income taxation of certain pension income.
- Canada Revenue Agency. Income Tax Folio S5-F3-C1: Taxation of a Roth IRA.
- IRS. Plan Distributions to Foreign Persons Require Withholding.
- IRS. The Taxation of Foreign Pension and Annuity Distributions.
- IRS. Topic No. 558, Additional Tax on Early Distributions and the list of exceptions.
- Income Tax Department, Government of India. Section 158, Income-tax Act, 2025: Relief from taxation in income from retirement benefit account maintained in a notified country.
- Income Tax Department, Government of India. Form 40: Frequently Asked Questions (Rule 74, Income-tax Rules, 2026; formerly Form 10EE under Rule 21AAA).
- US Department of the Treasury. Technical Explanation of the US-India Income Tax Convention, Articles 20 and 23; treaty text at irs.gov.
- Social Security Administration. Social Security Credits and International Agreements (30 countries; India absent as of July 2026).
Editor’s note
Educational content only; nothing here is tax, legal, investment, or immigration advice, and cross-border taxation is exactly the domain where individual facts change outcomes. Contribution limits are for 2026; Indian statute references reflect the Income-tax Act, 2025 and Income-tax Rules, 2026 effective April 1, 2026; treaty and totalization facts verified July 2026 and subject to change. The Roth treatment of Indian returnees is an interpretation of current law, not settled guidance. Consult qualified cross-border professionals before contributing, converting, moving, or withdrawing.
More in Tax Strategy
Browse all tax strategy guidesGet new guides by email
Evidence-based, no jargon. At most two emails a month. Unsubscribe any time.
Try it in Summitward
See Monte Carlo retirement simulation in action with your own financial data. Free to start, no credit card required.