Tools/Visa-holder finance/401(k) Withdrawal When Leaving the US Calculator✓ CHECKED AGAINST WORKED EXAMPLES · OCT 2, 2026

Leaving the US: what do I net if I cash out my 401(k)?

Enter your balance and age to see the cash at payout, the likely final US tax after you file (Form 1040-NR or 1040) and what you keep, against leaving it invested to 59½.

Edit on my map
WHAT YOU LIKELY KEEP AFTER FILING 1040-NR
$136k
At 34, cashing out $200,000 with 30% withheld: the plan pays out $140,000 and the $20,000 early-withdrawal penalty is owed with your US return, not taken at payout, so your cash at payout after the penalty is $120,000, 60% of the balance. Withholding is the default, not the final US tax bill. On Form 1040-NR the $150,000 from contributions is taxed at graduated rates with no standard deduction ($28,598) and the $50,000 of earnings at 30% ($15,000), about $63,598 of US tax and penalty in all, so you would likely owe about $3,598 more when you file and keep about $136,402. This is an estimate: treaty relief and state tax are left out, and tax in the country you move to is not counted here.
Likely final US tax
$63,598
Due at filing
$3,598
Cash at payout, after penalty
$120,000
Withheld (30%)
$60,000
UNDERSTAND YOUR RESULT
LIBRARY CHAPTERThe 401(k) and IRAs When You LeaveThe US withholding and Form 1040-NR on one side, India's tax by residency year and the foreign retirement account relief on the other, why experts contradict each other, and how the treaty fits in.LIBRARY CHAPTERRoth or Traditional When You Might LeaveHow your tax rate today compares with how a nonresident's withdrawals are taxed later, what treaties and your new country change, what a Roth does for someone who leaves, and patterns for choosing or splitting contributions.QUICK ANSWERLeaving the US for good: what do I do with my money, and when?Work through it in order. Before you resign, decide what happens to your 401(k), HSA and brokerage accounts; in the last 60 days, settle the house, lease and cards; after you land, give US firms a Form W-8BEN and track your Indian RNOR years; next spring, file a dual-status return and the FBAR. Cashing out a 401(k) on the way out is rarely the cheapest move.
Terms:10% early-withdrawal taxTax treaty401(k) withdrawals after leaving the USEffectively connected income (ECI)Dual-status tax yearForm W-8BEN

Where your balance goes

$200kYour balance−$60kWithholding 30%−$20k10% early penalty$120kYou keep

Of $200,000, $60,000 is withheld at 30% and $20,000 is the 10% penalty (due with your return, not taken at payout), leaving $120,000 at these inputs.

Cash out now or leave it invested to 59½?

Left invested, or rolled over to an IRA: net if you take it out at that ageCash out now and invest what you keep
$488k$244k$0405060Age when you take it outPenalty ends at 59½Cash out nowInvested or rolled over

Cashing out now nets $120,000; invested at 3.9% a year after inflation, that becomes $317,043 by 59½ (before tax on the gains). Left invested for 25.5 years instead, the balance is $528,405 at 59½ and a withdrawal then nets about $369,883 in today’s dollars: $52,840 more than cashing out and investing what you keep, and $249,883 more than cashing out now.

What a lower withholding rate would change

30% withheldyour rate
$120k
15% withheld
$150k
0% withheld
$180k

The same $200,000 leaves $120,000 at 30% withholding, $150,000 at 15% and $180,000 at 0%, all after the 10% penalty. Which rate applies to you depends on your country’s tax treaty and on giving the plan a Form W-8BEN, and it is not settled for a lump sum. 0% withheld is not 0% tax: the country where you live can tax the payout.

What is withheld against the likely final US tax

Withheld at payout (30%)
$60k
Likely final US tax and penaltyestimate
$64k

The plan withholds $60,000, which Form 1040-NR credits as a payment. The likely final US tax is $43,598 plus the $20,000 penalty: the $150,000 from contributions is taxed at graduated rates with no standard deduction ($28,598) and the $50,000 of earnings at 30% ($15,000). Filing would likely owe about $3,598 more. This is an estimate at 2026 rates for a single nonresident: treaty relief on the contribution part, state tax and tax in the country where you live are not included, and 0% withheld is not 0% tax.

What moves the needle

Each row re-runs the calculation with one change. Click to apply.

How it's computed

FORMULA
Nonresident: withheld = balance × withholding rate (30% unless a treaty applies)
Nonresident, Form 1040-NR: tax = graduated tax on (balance × contribution share), no standard deduction + earnings × withholding rate; refund = withheld − tax − penalty
US resident: withheld = balance × 20%; tax = tax(other income + balance) − tax(other income), after the standard deduction
Penalty = balance × 10% (only if age < 59½). You keep = balance − tax − penalty
Left invested = balance × (1 + real return)^(years to 59½)
  • You are a nonresident alien when the money is paid. If you will still be a US tax resident on the payment date, switch the residency question above: different rules apply, with 20% withholding on a taxable payout and regular graduated rates.
  • Withholding is 30% of the whole balance, treated as pre-tax. 30% is the statutory default (IRC §1441) and the cash you would see at payout, not necessarily the final US tax: pension income from your US work after 1986 is generally taxed at graduated rates on Form 1040-NR (IRS Publication 519), so part of the 30% can come back when you file; this page estimates that true-up (next point). A lower rate applies only if a treaty covers you and the plan holds your Form W-8BEN. This page does not look up treaty rates, and treaty relief for a lump-sum cash-out is not confirmed here: the US–India treaty’s private-pension article (Article 20) covers “periodic” payments, and its other-income article (Article 23) lets the US tax income arising here as well. Ask the plan and a tax adviser before assuming a rate below 30%.
  • The Form 1040-NR estimate: 75% of the balance is treated as contributions (yours and your employer’s, for US work after 1986) and taxed as effectively connected income at the 2026 single rates with no standard deduction; the other 25% is earnings, taxed at 30% (IRS Publication 519 (2025), ch. 4 and 5). The withholding is credited as a payment (Instructions for Form 1040-NR, line 25g) and the penalty is added. Nonresident aliens cannot file jointly or take the standard deduction; the exception for students and business apprentices from India (treaty Article 21(2)) does not apply to someone who worked here on an H-1B. 75% is an assumption (nine years of equal contributions growing 7% a year); use the split on your plan statement. Not included: treaty relief on the contribution part, itemized deductions, and the dual-status year of someone who leaves partway through it.
  • The 10% penalty (IRC §72(t)) applies to any payout before 59½ and is not reduced by leaving the country. Exceptions, such as leaving your employer in or after the year you turn 55, disability or substantially equal periodic payments, are not modeled. The plan does not withhold the penalty; it is reported on your US return.
  • Not modeled: state tax, currency conversion, tax in the country you move to (0% withheld is not 0% tax), Roth or after-tax money, the extra deduction at 65 or older, and any treaty relief on the part from contributions.
  • Leaving it invested assumes a steady 3.9% a year after inflation, no fees and no forced payout, and the same 30% withholding at 59½. For a nonresident the comparison uses the cash-at-payout figures (before the Form 1040-NR true-up) at both ages. Amounts are in today’s dollars.
WORKED EXAMPLE · SAMPLE NUMBERS
$200,000 × 30% = $60,000 withheld. At 34 you are under 59½, so the penalty is $200,000 × 10% = $20,000. $200,000 − $60,000 − $20,000 = $120,000 cash at payout. On Form 1040-NR: $200,000 × 75% = $150,000 from contributions, taxed at the graduated single rates with no standard deduction = $28,598; $50,000 of earnings × 30% = $15,000; plus the $20,000 penalty. That is $63,598 against $60,000 withheld, so you would owe about $3,598 more, and $200,000 − $63,598 = $136,402 kept. Left invested for 25.5 years at 3.9% real growth, $200,000 becomes $528,405 in today’s dollars. At 59½ there is no penalty, so the same treatment leaves $369,883.
SOURCES
[1]Publication 519 (2025), U.S. Tax Guide for Aliens: ch. 4 “Pensions”, ch. 5 “Standard deduction”, ch. 8 “Withholding on Pensions” (read 2026-10-02)Internal Revenue Service[2]Instructions for Form 1040-NR (2025): lines 5a and 5b (effectively connected pensions), line 25g (tax withheld on Form 1042-S), Schedule 2 line 8 (additional tax under §72(t)) (read 2026-10-02)Internal Revenue Service[3]Topic no. 413, Rollovers from retirement plansInternal Revenue Service[4]Convention between the United States and India for the avoidance of double taxation, Articles 20 and 23Internal Revenue Service, treaty documents[5]Instructions for Form FTB 3805P, Additional Taxes on Qualified PlansCalifornia Franchise Tax Board
HSBuilt by Hussain Sehorewala · checked against worked examples · Oct 2, 2026
Keep this number honest as your life changes.
Put it on your Money Map and it re-runs as you change the seven numbers. It stays in this browser, and the calculator stays free.
Open your Money MapTell me when bank sync opens

Questions about this result

Usually yes once you have left the employer, subject to the plan’s rules. Leaving the country changes the tax, not the access: a payout to a nonresident alien is generally hit with 30% federal withholding unless a tax treaty lowers it, and the 10% early-withdrawal penalty still applies before age 59½. The 30% is a prepayment, not the final tax: the final US tax is settled when you file Form 1040-NR.
The default is 30% of the taxable amount (IRC §1441). A tax treaty between the US and your country of residence can reduce it, but the plan applies the lower rate only if you give it a Form W-8BEN claiming the treaty. Treaty terms differ by country and by type of payment, and relief for a lump-sum cash-out is not automatic: the US–India treaty, for example, protects “periodic” pension payments in its Article 20, while its other-income article lets the US tax income arising here too. This page starts at the 30% default and lets you enter a lower rate. Whatever is withheld is credited as a payment when you file Form 1040-NR (line 25g, from your Form 1042-S).
Yes. Moving abroad is not an exception. The 10% additional tax applies to a taxable payout before age 59½ unless an exception fits, for example leaving your employer in or after the year you turn 55, total and permanent disability, or substantially equal periodic payments. The plan does not withhold it; it is reported on your US return (Form 5329). This page does not model the exceptions.
A direct rollover to an IRA is not a payout, so neither the withholding nor the 10% penalty applies at that point and the money stays tax-deferred. The tax arrives later, when you withdraw from the IRA, and for a nonresident it generally carries the same withholding rules. Some IRA providers restrict accounts for customers who live abroad, so check before you leave.
Neither. Withholding is the tax collected when the money is paid, not a final calculation. The part of the payout that comes from contributions for your US work after 1986 is effectively connected income, taxed at graduated rates when you file Form 1040-NR with no standard deduction; the part that is investment earnings is taxed at 30% or a lower treaty rate (IRS Publication 519, ch. 4). The amount withheld is credited against that, so you may be able to claim part of the 30% back, or owe more if your balance is large. This page estimates that result; a treaty may reduce the tax further. And 0% withheld is not 0% tax: the country where you live can tax the payout under its own rules, and a treaty decides which country taxes first. This page shows US tax and penalty only.
The nonresident 30% rule does not apply. The plan generally withholds 20% of a taxable payout sent to you (IRS Topic 413), but that is a prepayment: the payout is added to your other income and taxed at regular rates on your return, and the 10% penalty still applies before 59½. Some states add their own tax, and California charges 2.5% on early withdrawals. Whether you are a resident depends on tests such as the substantial presence test, so settle that first; switch the residency question above to see the resident estimate. If you leave partway through the year, the status you will have on the payment date is the one that counts.
THE LEDGER · 7 min401(k) match: how much you leave on the table in 2026
THE LEDGER · 8 minRoth or traditional 401(k) if you might leave the US: the 29% line
GUIDE · $39The Retire-Early Playbook
YOUR MAP · 0 of 7 doneNext: FIRE CalculatorContinue →