Can You Open a Roth IRA on F-1, OPT or H-1B? Eligibility, Limits and What Happens If You Leave

Your OPT paycheck can legally fund a Roth IRA, yet the brokerage may still say no. Here is why, and what changes when you reach H-1B or leave the US.

By F1Jobs Team · 2026-11-01 · 12 min read
A bank branch interior at opening time with empty wooden teller counters, a small potted plant and a polished floor reflecting warm light under a high ceiling

Short answer, as of November 1, 2026: in most cases, yes. IRS Publication 590-A makes Roth IRA eligibility depend on taxable compensation and modified AGI, not on citizenship or tax residency, so a nonresident alien on F-1 OPT, STEM OPT or H-1B who earns US wages can generally contribute (our reading of the IRS text). For 2026 the limit is $7,500 (plus $1,100 at age 50 or older), or your taxable compensation if lower. The common obstacle is the brokerage: once you certify foreign status on Form W-8BEN, some decline to open an IRA.

Status line, as of 2026-11-01:

Can a nonresident alien contribute to a Roth IRA?

Generally yes, if you have taxable US compensation. IRS Publication 590-A lets anyone with taxable compensation and modified AGI under the limit contribute to a Roth IRA, and its MAGI worksheet starts from Form 1040-NR as well as Form 1040. Residency does not decide eligibility. It decides your filing status, your income limit and which brokerage form you sign.

Publication 590-A (2025) says: "Generally, you can contribute to a Roth IRA if you have taxable compensation (defined later) and your modified AGI (defined later) is less than" the limit for your filing status. Its Worksheet 2-1 opens with "Enter your adjusted gross income from Form 1040, 1040-SR, or 1040-NR, line 11a." Form 1040-NR is the nonresident return, so the worksheet is written with nonresident filers in mind (our reading).

Publication 519 (2025), the IRS tax guide for aliens, adds the nonresident condition: "If you made contributions to a traditional IRA for 2025, you may be able to take an IRA deduction. But you must have taxable compensation effectively connected with a U.S. trade or business to do so." US wages on CPT, OPT, STEM OPT or H-1B generally qualify, because Publication 519 says performing personal services in the US usually counts as a US trade or business.

Common misconception: "Nonresident aliens can't have a Roth IRA." Correction: Neither Publication 590-A nor 519 says so. Publication 519 (2025) never mentions Roth IRAs at all (we searched it), which is partly why forums disagree. What a nonresident often cannot get is the account, because some brokerages will not open one for a Form W-8BEN customer.

What counts as taxable compensation on F-1, OPT and H-1B?

Wages in box 1 of your Form W-2 count. Publication 590-A says the IRS "treats as compensation any amount properly shown in box 1 (Wages, tips, other compensation) of Form W-2." That covers on-campus jobs, CPT, OPT, STEM OPT and H-1B pay.

Your maximum is the smaller of the annual limit and your taxable compensation, across all traditional and Roth IRAs combined. With $4,000 of on-campus wages in 2026, you can contribute at most $4,000.

The 2026 numbers (as of 2026-11)

Item2026 figureSource
IRA limit (traditional and Roth combined)$7,500, or taxable compensation if lowerIR-2025-111
Catch-up, age 50 or older$1,100IR-2025-111
Roth phase-out, single or head of household$153,000 to $168,000 modified AGIIR-2025-111
Roth phase-out, married filing jointly$242,000 to $252,000IR-2025-111
Roth phase-out, married filing separately (lived with spouse)$0 to $10,000IR-2025-111
Traditional IRA deduction phase-out, single, covered by a workplace plan$81,000 to $91,000IR-2025-111
Deadline for 2026 contributions"the due date of your return for that year (not including extensions)", so 2027-04-15 for a 1040-NR filer with withheld wages (our arithmetic; the 2026 1040-NR instructions are not posted yet)Pub 590-A
2027 limitNot publishedIRS newsroom

Caption: 2026 IRA figures as of 2026-11. Confirm on the IRS announcement before you contribute.

Roth IRA eligibility by visa and tax status (as of 2026-11)

Your visa appears nowhere in the IRA rules. Your tax residency does, because it sets your return, filing status and brokerage form. Our substantial presence test guide explains how to count your days.

Your situationUsual tax statusReturnBrokerage formCan you contribute?
F-1, no US job (first 5 calendar years)Nonresident (exempt individual)Form 8843, plus 1040-NR if you have taxable incomeW-8BENNo. No taxable compensation
F-1 with on-campus, CPT, OPT or STEM OPT wages (first 5 calendar years)Nonresident1040-NRW-8BENGenerally yes, up to wages or $7,500; brokerage may refuse
F-1 after 5 calendar years, meeting the substantial presence testResident alien1040W-9Yes, same rules as a US citizen
First H-1B year after an October 1 change of statusUsually nonresident, or dual-status with the first-year choice1040-NR or dual-statusW-8BEN until residentGenerally yes on taxable wages
H-1B (or H-4 with EAD wages) meeting the substantial presence testResident alien1040W-9Yes. Roth limit set by filing status
H-4 spouse with no income, filing jointly with an H-1B spouseResident alienJoint 1040W-9Yes, through a spousal IRA
After leaving the US, no US jobNonresident1040-NR only if you have US incomeW-8BENGenerally no new contributions

Under Publication 519, an F-1 student exempt for any part of more than 5 calendar years is no longer exempt, unless they show no intent to reside permanently and substantial compliance with their visa. Someone first present in 2022 uses 2022 to 2026.

Married on F-1 or OPT? The married filing separately trap

Publication 519 says married nonresident aliens "who are not married to U.S. citizens or residents must generally use the Tax Table column or the Tax Computation Worksheet for married filing separate returns," with narrow exceptions for married residents of Canada, Mexico or South Korea and US nationals who lived apart from their spouse for the last 6 months of the year.

For married filing separately when you "lived with your spouse at any time during the year," the 2026 Roth phase-out is $0 to $10,000. So a married OPT worker who lives with an F-2 spouse and has modified AGI of $10,000 or more cannot make a direct Roth contribution, while a single classmate on the same pay can. If you did not live with your spouse at any time during the year, for example because your spouse stayed in your home country, Publication 590-A uses the single range instead.

A traditional IRA contribution is still allowed, but with workplace-plan coverage its married-filing-separately deduction also phases out between $0 and $10,000. Once both spouses are resident aliens, as an H-1B and H-4 couple usually are after a full year here, a joint return opens the $242,000 to $252,000 Roth range, and a non-working H-4 spouse can use a spousal IRA. Our guide to how H-1B status affects your taxes covers that switch.

Why do brokerages reject my W-8BEN for an IRA?

Because the brokerage, not the IRS, decides which accounts it offers foreign persons. Form W-8BEN certifies that you are a foreign person (for an individual, a nonresident alien), and some brokerages will not open an IRA for a customer who submits one. Forum posts from OPT and H-1B workers describe applications stalling at exactly that step.

The forms are not interchangeable. The Form W-8BEN instructions say not to use it if "You are a U.S. citizen (even if you reside outside the United States) or other U.S. person (including a resident alien individual). Instead, use Form W-9 to document your status as a U.S. person." A resident alien is someone who meets the green card test or the substantial presence test for the year.

Three honest paths:

Do not sign a W-9 as a nonresident to get through the application. It is signed under penalties of perjury and changes how the brokerage withholds on and reports your other income.

Worked example: F-1 to H-1B on October 1, 2026

A single master's student arrived in August 2023, started OPT in June 2025, moved to STEM OPT and changed to H-1B on 2026-10-01.

  1. Exclude 2023 to 2025. These are exempt F-1 years (1 to 3 of 5), reported on Form 8843, with Form 1040-NR for any year with US income, such as the 2025 OPT wages.
  2. Count only the H-1B days in 2026. January 1 to September 30 are still exempt F-1 days (year 4). October 1 to December 31 is 92 days, under 183, so the student is a nonresident for 2026 unless they use the first-year choice explained in our dual-status return guide.
  3. Total 2026 compensation. All 2026 W-2 box 1 wages, STEM OPT and H-1B alike, count. As a single 1040-NR filer under $153,000 of modified AGI, up to $7,500 can go to a Roth IRA for 2026 (our reading).
  4. Expect friction at the brokerage. Applying in November 2026 means signing Form W-8BEN, and the IRA may be declined.
  5. Watch the deadline. 2026 contributions close 2027-04-15 (our arithmetic), weeks before the student meets the 2027 test (step 6), so whatever you certify to a brokerage in early 2027 must be true the day you sign. Ask a tax professional about that timing.
  6. Expect resident status for 2027. The 92 H-1B days of 2026 count at one-third (about 31 days) in the 2027 test, so a student in the US every day from January 1, 2027 reaches 183 on day 153, June 2 (our arithmetic). Publication 519 then sets the residency starting date at "generally the first day you are present in the United States during that calendar year," here January 1, 2027. The W-8BEN instructions say to notify the payer within 30 days of becoming a resident alien, and the brokerage may then ask for Form W-9.

How to check whether you can contribute for 2026

  1. Determine your 2026 tax residency with the substantial presence test in Publication 519, excluding exempt F-1 days reported on Form 8843.
  2. Add up box 1 wages on each 2026 Form W-2, leaving out treaty-exempt wages.
  3. Identify your filing status on Form 1040-NR (usually single or married filing separately) or Form 1040.
  4. Calculate modified AGI with Worksheet 2-1 in Publication 590-A and compare it with the IR-2025-111 ranges.
  5. Ask the brokerage whether it opens IRAs for Form W-8BEN customers; use Form W-9 only if you are a resident alien.
  6. Contribute by 2027-04-15, designating a 2027 deposit as being for 2026, and file Form 8606 for any nondeductible contribution or conversion.

Is a backdoor Roth allowed on H-1B?

Generally yes, as far as the tax rules go; no visa rule addresses it. A "backdoor Roth" is a nondeductible traditional IRA contribution followed by a conversion to a Roth IRA, and Publication 590-A lists no income limit for conversions (our reading), so resident-alien H-1B workers above the $168,000 single phase-out use the same mechanics as citizens. Most backdoor-Roth guidance assumes a Form 1040 filer; if you still file Form 1040-NR, have a tax professional who prepares nonresident returns review the conversion first.

Report both steps on Form 8606.

What happens to your Roth IRA if you leave the US?

The account can stay open and invested; Publication 590-A notes "you can leave amounts in your Roth IRA as long as you live." Whether your brokerage keeps serving you at a foreign address is its own policy.

An IRA is not Social Security, either. The US has 31 totalization agreements (Romania's from 2026-09-01) and none with India or China; your IRA is your own account and needs no agreement.

Before you leave:

  1. Call your brokerage to confirm it keeps IRAs open for customers who move abroad.
  2. Update your tax form when your residency changes: Form W-9 only while you are a US person, Form W-8BEN once you are a nonresident alien again. The W-8BEN instructions give 30 days to notify a payer when a change makes a W-8BEN you filed incorrect.
  3. Save every Form 5498 and Form 8606, and note the year of your first Roth contribution, which starts the 5-year clock.
  4. Book a cross-border tax professional in your destination country before you withdraw anything.

Common mistakes

Frequently asked questions

Can F-1 students on OPT contribute to a Roth IRA?

Generally yes, if you have taxable US wages. IRS Publication 590-A ties Roth eligibility to taxable compensation and modified AGI, not residency, and its worksheet starts from Form 1040-NR as well as Form 1040. For 2026 the limit is $7,500 or your taxable compensation if lower, and a single filer gets the full amount with modified AGI under $153,000. Wages a treaty exempts from US tax do not count.

Do nonresident aliens qualify for IRAs?

The tax rules do not exclude them. IRS Publication 519 (2025) says a nonresident may be able to take a traditional IRA deduction but must have taxable compensation effectively connected with a US trade or business, which US wages on CPT, OPT and H-1B generally are. Married nonresidents usually file as married filing separately, and if they lived with their spouse at any time in the year, the Roth limit falls to zero once modified AGI reaches $10,000.

Why do brokerages reject my W-8BEN for an IRA?

Form W-8BEN certifies that you are a foreign person, and each brokerage decides which accounts it will open for foreign persons. Some decline IRAs at that step even though the tax law allows a nonresident with US wages to contribute. Do not sign a Form W-9 unless you really are a US person for tax purposes, such as a resident alien under the substantial presence test.

What happens to my Roth IRA if I move back home?

Your Roth IRA can stay invested, but new contributions generally stop once you have no US taxable compensation. Your regular contributions come out first and are not taxed by the US. Earnings withdrawn before the account is qualified can face income tax, the 10% additional tax before age 59 1/2, and generally 30% or treaty-rate withholding as a nonresident. Your new home country may tax the account on its own terms.

Is a backdoor Roth allowed on H-1B?

No visa rule forbids it. A backdoor Roth is a nondeductible traditional IRA contribution followed by a conversion to a Roth IRA, and Publication 590-A lists no income limit on conversions (our reading). The taxable part of the conversion is figured on Form 8606 across all your traditional IRAs, including any old 401(k) you rolled into one, so have a tax professional check your balances first, especially if you still file Form 1040-NR.

Sources

How we checked this: on 2026-11-01 and 11-02 we read the 2025 editions of IRS Publications 590-A, 590-B and 519 (the latest posted), the Form W-8BEN instructions, the 2025 Form 1040-NR instructions, IR-2025-111 and the IRS newsroom list on irs.gov, and SSA's list of totalization agreements. Points marked "our reading" or "our arithmetic" are our analysis of that text.

This is general information, not legal or tax advice; your own W-2, Form 5498, filing status and residency facts govern, so confirm your situation with a tax professional who prepares nonresident returns.

If you are on OPT or STEM OPT and looking for an employer that sponsors H-1B, F1Jobs can help you plan the search.

Frequently asked questions

Can F-1 students on OPT contribute to a Roth IRA?

Generally yes, if you have taxable US wages. IRS Publication 590-A ties Roth eligibility to taxable compensation and modified AGI, not residency, and its worksheet starts from Form 1040-NR as well as Form 1040. For 2026 the limit is $7,500 or your taxable compensation if lower, and a single filer gets the full amount with modified AGI under $153,000. Wages a treaty exempts from US tax do not count.

Do nonresident aliens qualify for IRAs?

The tax rules do not exclude them. IRS Publication 519 (2025) says a nonresident may be able to take a traditional IRA deduction but must have taxable compensation effectively connected with a US trade or business, which US wages on CPT, OPT and H-1B generally are. Married nonresidents usually file as married filing separately, and if they lived with their spouse at any time in the year, the Roth limit falls to zero once modified AGI reaches $10,000.

Why do brokerages reject my W-8BEN for an IRA?

Form W-8BEN certifies that you are a foreign person, and each brokerage decides which accounts it will open for foreign persons. Some decline IRAs at that step even though the tax law allows a nonresident with US wages to contribute. Do not sign a Form W-9 unless you really are a US person for tax purposes, such as a resident alien under the substantial presence test.

What happens to my Roth IRA if I move back home?

Your Roth IRA can stay invested, but new contributions generally stop once you have no US taxable compensation. Your regular contributions come out first and are not taxed by the US. Earnings withdrawn before the account is qualified can face income tax, the 10% additional tax before age 59 1/2, and generally 30% or treaty-rate withholding as a nonresident. Your new home country may tax the account on its own terms.

Is a backdoor Roth allowed on H-1B?

No visa rule forbids it. A backdoor Roth is a nondeductible traditional IRA contribution followed by a conversion to a Roth IRA, and Publication 590-A lists no income limit on conversions (our reading). The taxable part of the conversion is figured on Form 8606 across all your traditional IRAs, including any old 401(k) you rolled into one, so have a tax professional check your balances first, especially if you still file Form 1040-NR.