Are You Eligible for an HSA on H-1B or F-1 OPT? Health Savings Accounts for Visa Workers
Yes, H-1B workers and many F-1 OPT employees can open and use an HSA — but the tax benefits depend on your residency status in ways most people miss.

Open enrollment at your new US employer asks you to choose between a traditional PPO and a High-Deductible Health Plan with an HSA. The PPO feels safer. But your colleague on H-1B just told you the HSA option saved her several thousand dollars in taxes last year. Does the same math apply to you?
It might. Your eligibility to open an HSA is almost certainly the same as any US employee. Your eligibility to deduct contributions depends on whether the IRS considers you a resident or non-resident alien — a distinction that has nothing to do with your visa type and everything to do with how many days you've spent in the country. This guide explains who qualifies, how the tax math differs by residency status, how HSAs compare to FSAs for international employees, and the mistakes that cost people money.
The short answer on eligibility
Your visa status alone does not disqualify you from opening or contributing to an HSA. The IRS's four eligibility criteria for HSAs are:
- You are enrolled in a qualifying High-Deductible Health Plan (HDHP)
- You have no other disqualifying health coverage (e.g., a second health plan with lower deductibles, Medicaid, Medicare)
- You are not enrolled in Medicare
- You cannot be claimed as a dependent on someone else's return
H-1B, F-1 OPT, STEM OPT, O-1, TN, L-1 — none of these appear on the eligibility checklist. An H-1B holder working for a company that offers an HDHP can open and fund an HSA the same day as a US citizen on the same benefits plan.
The more complicated question is whether you get the full tax triple benefit from doing so.
The triple tax benefit — and where it breaks down for some visa holders
HSAs are popular because they offer three tax advantages simultaneously:
- Contributions are pre-tax (or deductible) — you reduce your taxable income by the amount you contribute
- Earnings grow tax-free — interest and investment gains inside the account are not taxed
- Qualified withdrawals are tax-free — distributions for eligible medical expenses incur no tax
For US residents (citizens, permanent residents, and certain visa holders who pass the Substantial Presence Test), all three apply in full. But the first benefit — the deduction — depends on how you file your federal taxes. If you file Form 1040-NR as a non-resident alien, you generally cannot deduct HSA contributions. The contributions you make may still be pre-tax through payroll if your employer's plan is set up that way (Section 125 cafeteria plan), but the stand-alone deduction on your tax return is off the table.
For more on how residency status determines your tax obligations, see our tax guide for international students covering FICA and treaties.
Who counts as a resident for tax purposes
The IRS uses the Substantial Presence Test (SPT) independent of immigration status. You pass if you were present at least 31 days this year and at least 183 days under this weighted formula: (days this year × 1) + (days last year × 1/3) + (days two years ago × 1/6) ≥ 183.
F-1 students have a five-year exemption. Days on an F-1 visa are exempt from the SPT count in your first five calendar years, so most F-1 and early OPT workers file as non-resident aliens and cannot claim the HSA deduction.
H-1B workers typically become tax residents in their first or second year. H-1B carries no SPT exemption, so most full-year H-1B workers file Form 1040 and get the full HSA deduction. Transition-year filers (F-1 → H-1B mid-year) may file dual-status returns — consult a tax professional for that scenario.
For a broader look at how residency status affects your overall financial picture, see our piece on understanding US benefits including 401k and health insurance.
Tax benefit comparison by visa and residency status
| Profile | Files as | HSA eligible? | Contribution deduction? | Growth tax-free? | Qualified withdrawal tax-free? |
|---|---|---|---|---|---|
| H-1B, full year, passes SPT | Resident (1040) | Yes | Yes | Yes | Yes |
| H-1B, first partial year | Dual-status | Yes (partial year) | Partial — consult CPA | Yes | Yes |
| F-1 OPT, year 1-5 | Non-resident (1040-NR) | Yes (if HDHP) | No | Yes | Yes |
| F-1 STEM OPT, year 1-5 | Non-resident (1040-NR) | Yes (if HDHP) | No | Yes | Yes |
| F-1 OPT, year 6+ (passes SPT) | Resident (1040) | Yes | Yes | Yes | Yes |
| Green card holder | Resident (1040) | Yes | Yes | Yes | Yes |
Key insight: F-1 OPT and STEM OPT workers in their first five years can open an HSA but miss the upfront deduction. The account still shelters investment growth and medical withdrawals — real value, just not the full triple benefit.
What counts as a qualifying HDHP in 2026
For 2026, the IRS set these thresholds for an HDHP to qualify for HSA purposes:
- Minimum deductible: $1,650 (self-only) / $3,300 (family)
- Maximum out-of-pocket: $8,300 (self-only) / $16,600 (family)
Your plan also cannot provide benefits for any non-preventive care before you meet the deductible, with narrow exceptions (e.g., certain preventive care, telehealth under temporary rules). Dental-only or vision-only plans don't disqualify you; a general FSA at the same employer often does (though a Limited-Purpose FSA covering only dental and vision does not).
Your HR department or benefits portal should tell you which plans are HDHP-eligible. Look for the phrase "HSA-compatible" in the plan description. If you are uncertain, ask benefits directly — they deal with this question every open enrollment.
2026 HSA contribution limits
| Coverage type | 2026 annual contribution limit |
|---|---|
| Self-only HDHP | $4,300 |
| Family HDHP | $8,550 |
| Catch-up (age 55+) | Additional $1,000 |
You can contribute up to the annual limit regardless of when during the year you enroll, as long as you were enrolled in an HDHP as of December 1 (the "last-month rule"). But if you lose HDHP coverage before the end of the following year, you may owe a testing-period penalty — this matters if you plan to switch jobs or leave the US.
Contributions can come from you, your employer, or both — but the combined total cannot exceed the annual limit.
HSA vs FSA for international employees
The FSA (Flexible Spending Account) is a competing option many employers offer. Here is how they compare for visa holders specifically:
| Feature | HSA | FSA |
|---|---|---|
| Requires HDHP | Yes | No |
| Portability on job change | Yes — account is yours | No — forfeited at job end |
| Rollover | Unlimited | Limited ($660 in 2026, plan-dependent) |
| Investment growth | Yes (many accounts) | No |
| Non-resident alien deduction | No (but pre-tax payroll still possible) | Typically pre-tax payroll |
| Useful if leaving US within 1-2 years | Better — funds carry forward indefinitely | Worse — you may forfeit unused balance |
H-1B holders with longer US timelines should lean toward the HSA — full deduction, tax-sheltered growth, portable across employers. F-1 OPT workers with uncertain US tenure may find the FSA's simplicity more useful; a $2,700 FSA spent fully this year beats a $4,300 HSA with no deduction and an unclear future. STEM OPT workers transitioning to H-1B can often keep an existing HDHP/HSA running uninterrupted through the cap-gap period and into H-1B status.
Step-by-step guide to opening an HSA on an H-1B or OPT
- Confirm your plan is HDHP-eligible. Ask HR or look for "HSA-compatible" in your Summary of Benefits and Coverage.
- Check your residency status. Run the Substantial Presence Test. Full-year H-1B workers typically pass and file Form 1040. F-1 workers in years 1–5 typically do not and file Form 1040-NR.
- Open the HSA. Most employers direct you to a custodian (Fidelity, HealthEquity, Optum) during open enrollment. You can also open one independently at any HSA-eligible bank or brokerage.
- Set your contribution level. If your coverage continuity is uncertain, contribute conservatively — close to what you expect to spend on medical expenses that year.
- Elect pre-tax payroll deductions. Fund your HSA through Section 125 payroll to avoid FICA taxes on contributions. This benefit is available even if you cannot claim the Form 1040-NR deduction as a non-resident.
- Save all medical receipts. No time limit exists on reimbursing yourself, so you can pay out of pocket now and pull tax-free cash from the HSA years later — but only with documentation.
- File Form 8889 at tax time (residents only). Attach it to your Form 1040. Non-residents typically skip this form but should report any HSA distributions on their 1040-NR.
What happens to your HSA if you leave the US or change jobs
Your HSA balance belongs to you regardless of your visa or employer. HSA funds are immediately vested — unlike a 401(k). If you leave your employer, the custodian keeps the account open and you can use funds for qualified medical expenses indefinitely, whether you are in the US or abroad. If you return home, you keep the account, the invested balance, and the tax-free withdrawal benefit. The FICA savings from payroll contributions end when employment ends, but the account persists.
For broader guidance on your first months navigating US employment benefits, see our first 90 days guide for international hires.
Common mistakes
1. Assuming you're ineligible because of your visa type. Many international employees skip HSA enrollment entirely. That's the most expensive mistake — H-1B holders often qualify for the full triple benefit and leave thousands of dollars in tax savings unclaimed every year.
2. Enrolling in an HSA while covered under a non-HDHP plan. If your spouse's traditional PPO also covers you as a secondary plan, you are disqualified. Review both plans at open enrollment.
3. Using HSA funds for non-qualified expenses before age 65. This triggers a 20 percent penalty plus ordinary income tax. IRS Publication 502 lists qualified expenses. Gym memberships and most cosmetic procedures are not on the list.
4. Skipping the Section 125 payroll election because you think you can't deduct contributions. Non-residents who cannot claim the Form 1040 deduction can still reduce FICA taxes (Social Security and Medicare) through a Section 125 pre-tax payroll election. The payroll election and the 1040 deduction are separate benefits — you may be able to use one without the other.
5. Triggering the last-month rule penalty. If you enroll mid-year and contribute the full annual limit under the last-month rule, you must maintain HDHP coverage through December 31 of the following year. A mid-year job switch or plan change triggers income tax plus a 10 percent penalty on excess contributions. Contribute conservatively in your first year if coverage continuity is uncertain.
6. Leaving the HSA balance in cash. Most custodians default new contributions to a low-yield cash account. Once your balance clears a threshold (typically $1,000–$2,000), move it into index funds. An HSA parked in cash is leaving the investment-growth leg of the triple benefit unused.
7. Losing receipts for qualified medical expenses. There is no deadline for reimbursing yourself for past qualified expenses. Many holders pay out of pocket now, let the HSA grow, and reimburse themselves tax-free years later — but only with documentation. Start a receipts folder today.
Frequently asked questions
Can an H-1B visa holder open and contribute to an HSA?
Yes — your visa type is not an eligibility criterion. If you are enrolled in a qualifying HDHP, have no disqualifying secondary coverage, are not on Medicare, and cannot be claimed as a dependent, you qualify. Most full-year H-1B workers also get the full contribution deduction because they pass the Substantial Presence Test and file Form 1040.
Can an F-1 OPT or STEM OPT student contribute to an HSA?
Yes, if your employer offers an HDHP. The visa status doesn't bar you. The catch is that F-1 students in their first five calendar years are typically non-resident aliens who file Form 1040-NR and cannot claim the HSA deduction — so you get the account's tax-free growth and withdrawal benefits, but not the upfront deduction.
What is an HDHP and how do I know if my plan qualifies?
For 2026, a qualifying HDHP must have a minimum deductible of $1,650 (self-only) or $3,300 (family), and maximum out-of-pocket limits of $8,300 (self-only) or $16,600 (family). Check your Summary of Benefits and Coverage for the phrase "HSA-compatible" or ask your HR team directly.
What is the difference between an HSA and an FSA for international employees?
An HSA is owned by you, rolls over indefinitely, and is portable across employers and countries. An FSA is employer-administered, largely "use-it-or-lose-it" each year, and not portable. For visa holders with uncertain US timelines, the HSA's portability is a meaningful advantage — though F-1 workers who won't get the deduction may prefer the simplicity of an FSA for short tenures.
What happens to my HSA funds if I leave the US or lose my visa status?
Your HSA balance remains yours. There is no USCIS or IRS rule that cancels funds upon departure. You can keep the account open, invest the balance, and withdraw tax-free for eligible medical expenses anywhere in the world. Non-medical withdrawals before age 65 incur ordinary income tax plus a 20 percent penalty, same as for any HSA holder.
Have questions about optimizing your US compensation and benefits as a visa holder? F1Jobs helps international candidates navigate everything from open enrollment to tax-smart benefit elections.
Frequently asked questions
Can an H-1B visa holder open and contribute to an HSA?
Yes. H-1B status itself does not disqualify you from HSA eligibility. The only requirements are that you are enrolled in a qualifying High-Deductible Health Plan (HDHP), you have no other disqualifying health coverage, you are not enrolled in Medicare, and you cannot be claimed as a dependent on someone else's tax return. Your visa type is not a factor in those four tests.
Can an F-1 OPT or STEM OPT student contribute to an HSA?
Possibly, but with an important catch. You can open and fund an HSA if your employer offers an HDHP — the visa status does not bar you. However, most F-1 students are non-resident aliens for federal tax purposes in their first five calendar years in the US, and non-resident aliens cannot deduct HSA contributions on Form 1040-NR. You can still use the account tax-free for medical expenses, but you lose the upfront contribution deduction that makes HSAs so attractive for US residents.
What is an HDHP and how do I know if my plan qualifies?
A High-Deductible Health Plan for HSA purposes must meet IRS minimum deductible and maximum out-of-pocket thresholds published each year. For 2026, the HDHP minimum deductible is $1,650 for self-only coverage and $3,300 for family coverage, and the out-of-pocket maximum is $8,300 for self-only and $16,600 for family. Your Summary of Benefits and Coverage document from your insurer will indicate whether the plan is HSA-eligible. When in doubt, ask your HR or benefits administrator directly.
What is the difference between an HSA and an FSA for international employees?
An HSA (Health Savings Account) is owned by you, rolls over indefinitely, and is portable when you change employers or leave the US — funds you contribute are yours permanently. An FSA (Flexible Spending Account) is employer-administered, has a "use-it-or-lose-it" rule (with a small rollover allowance), and is not portable. For international employees who may leave the US before retirement, an HSA's portability is a major advantage, though the tax benefits differ based on your residency status.
What happens to my HSA funds if I leave the US or lose my visa status?
Your HSA balance belongs to you regardless of your visa situation. If you use funds for qualified medical expenses, the distribution is tax-free. If you withdraw funds for non-medical purposes before age 65, you pay ordinary income tax plus a 20 percent penalty — the same rule that applies to any HSA holder. After age 65, non-medical withdrawals are taxed as ordinary income but carry no penalty. There is no USCIS rule or IRS provision that cancels HSA funds upon departure from the US.