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.

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:
- In effect: the 2026 IRA limit and Roth income ranges, announced in IR-2025-111 on November 13, 2025.
- Not published: the 2027 IRA limit. Last year's came on November 13; until the IRS newsroom posts it, any 2027 figure is a projection.
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.
- FICA-exempt wages still count. The IRC 3121(b)(19) exemption for nonresident F-1 students removes Social Security and Medicare tax, not income tax, so box 1 wages remain compensation (our reading).
- Investment income does not. Publication 590-A excludes "interest income, and dividend income" and other earnings from property, so trading covered in our guide on whether F-1 students can invest in stocks creates no IRA room.
- Treaty-exempt wages do not. Publication 590-A excludes "Any amounts (other than combat pay) you exclude from income." Wages removed from US tax by a treaty, such as the China treaty's $5,000 student exemption, are not compensation (our reading).
- Graduate stipends are a special case. Publication 590-A counts taxable non-tuition fellowship and stipend payments for graduate or postdoctoral study; how a treaty changes that is a question for a tax professional.
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)
| Item | 2026 figure | Source |
|---|---|---|
| IRA limit (traditional and Roth combined) | $7,500, or taxable compensation if lower | IR-2025-111 |
| Catch-up, age 50 or older | $1,100 | IR-2025-111 |
| Roth phase-out, single or head of household | $153,000 to $168,000 modified AGI | IR-2025-111 |
| Roth phase-out, married filing jointly | $242,000 to $252,000 | IR-2025-111 |
| Roth phase-out, married filing separately (lived with spouse) | $0 to $10,000 | IR-2025-111 |
| Traditional IRA deduction phase-out, single, covered by a workplace plan | $81,000 to $91,000 | IR-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 limit | Not published | IRS 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 situation | Usual tax status | Return | Brokerage form | Can you contribute? |
|---|---|---|---|---|
| F-1, no US job (first 5 calendar years) | Nonresident (exempt individual) | Form 8843, plus 1040-NR if you have taxable income | W-8BEN | No. No taxable compensation |
| F-1 with on-campus, CPT, OPT or STEM OPT wages (first 5 calendar years) | Nonresident | 1040-NR | W-8BEN | Generally yes, up to wages or $7,500; brokerage may refuse |
| F-1 after 5 calendar years, meeting the substantial presence test | Resident alien | 1040 | W-9 | Yes, same rules as a US citizen |
| First H-1B year after an October 1 change of status | Usually nonresident, or dual-status with the first-year choice | 1040-NR or dual-status | W-8BEN until resident | Generally yes on taxable wages |
| H-1B (or H-4 with EAD wages) meeting the substantial presence test | Resident alien | 1040 | W-9 | Yes. Roth limit set by filing status |
| H-4 spouse with no income, filing jointly with an H-1B spouse | Resident alien | Joint 1040 | W-9 | Yes, through a spousal IRA |
| After leaving the US, no US job | Nonresident | 1040-NR only if you have US income | W-8BEN | Generally 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:
- Ask before you apply whether the brokerage opens traditional or Roth IRAs for Form W-8BEN customers. Policies differ.
- Wait until you are a resident alien. Then you are a US person for tax purposes and Form W-9 is correct.
- Use the workplace plan, if your employer offers one. A 401(k) or Roth 401(k) enrols you through payroll, not a brokerage's account-opening review; our guide on whether to contribute to a 401(k) on OPT or H-1B weighs it if you might leave.
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.
- 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.
- 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.
- 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).
- Expect friction at the brokerage. Applying in November 2026 means signing Form W-8BEN, and the IRA may be declined.
- 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.
- 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
- Determine your 2026 tax residency with the substantial presence test in Publication 519, excluding exempt F-1 days reported on Form 8843.
- Add up box 1 wages on each 2026 Form W-2, leaving out treaty-exempt wages.
- Identify your filing status on Form 1040-NR (usually single or married filing separately) or Form 1040.
- Calculate modified AGI with Worksheet 2-1 in Publication 590-A and compare it with the IR-2025-111 ranges.
- Ask the brokerage whether it opens IRAs for Form W-8BEN customers; use Form W-9 only if you are a resident alien.
- 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.
- Aggregation. The taxable part of a conversion is figured across all your traditional IRAs; Publication 590-B's worksheet asks for "the value of all your traditional IRAs as of December 31". An old 401(k) rolled into a traditional IRA (a move our 401(k) guide for visa holders leaving the US covers) can make most of a conversion taxable. A 401(k) still in the employer plan is not counted.
- A separate 5-year clock. Publication 590-B gives each conversion its own 5-year period for the 10% additional tax, which matters if you may leave and need the money soon.
- No undo. Publication 590-A: "No recharacterizations of conversions made in 2018 or later."
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.
- New contributions generally stop once you have no US taxable compensation effectively connected with a US trade or business (our reading of Publication 519).
- Contributions come out first. Publication 590-B orders withdrawals as regular contributions, then conversions, then earnings. A distribution is qualified, and free of US tax, only after the 5-year period and on or after age 59 1/2, disability, death, or a first home (up to $10,000 lifetime).
- Early earnings cost more. Earnings withdrawn before the account qualifies are taxable, the 10% additional tax applies before 59 1/2 unless an exception fits, and as a nonresident alien the taxable part generally faces 30% withholding or a lower treaty rate claimed on Form W-8BEN.
- Your new country has its own rules. US tax-free treatment does not bind your home country, which may tax the growth yearly or the withdrawals, depending on its law and the treaty's pension article.
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:
- Call your brokerage to confirm it keeps IRAs open for customers who move abroad.
- 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.
- Save every Form 5498 and Form 8606, and note the year of your first Roth contribution, which starts the 5-year clock.
- Book a cross-border tax professional in your destination country before you withdraw anything.
Common mistakes
- Counting the wrong income. Dividends, capital gains and treaty-exempt wages are not compensation. Putting in more than your wages (say $7,500 against $4,000 of on-campus pay) creates an excess contribution, taxed at 6% for each year it stays in the account (Publication 590-A).
- Ignoring married filing separately. A married nonresident who lived with their spouse during the year hits the $0 to $10,000 Roth range.
- Using a 2027 projection as the limit. The IRS has not published 2027 limits as of 2026-11-01.
- Asking the wrong expert. Your DSO handles SEVIS and OPT reporting, not taxes. Take IRA questions to a tax professional who prepares nonresident returns, and status questions to an immigration attorney.
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
- IRS Publication 590-A (2025), Contributions to IRAs
- IRS Publication 590-B (2025), Distributions from IRAs
- IRS Publication 519 (2025), U.S. Tax Guide for Aliens
- IRS IR-2025-111, 2026 401(k) and IRA limits
- Instructions for Form W-8BEN (10/2021)
- Instructions for Form 1040-NR
- IRS Topic 558, additional tax on early distributions
- SSA POMS, totalization agreements
- IRS newsroom, current news releases
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.