Yes, a resident alien can have an HSA. The IRS applies the same Health Savings Account rules to resident aliens as to U.S. citizens, so if you meet the standard eligibility requirements you can open the account, deduct contributions, grow the funds tax-free, and withdraw tax-free for qualified medical expenses. The harder questions are whether your residency status will hold up, whether health coverage from your home country quietly disqualifies you, and how to handle contributions in a year when you arrive or leave.
Are You Actually a Resident Alien for Tax Purposes
HSA eligibility depends on being a U.S. tax resident, so the first thing to confirm is which side of that line you fall on. You qualify as a resident alien by passing either the Green Card Test or the Substantial Presence Test. Holding lawful permanent resident status at any point during the calendar year satisfies the Green Card Test.1Internal Revenue Service. U.S. Tax Residency – Green Card Test
The Substantial Presence Test counts days. You need at least 31 days of physical presence in the current year and a weighted total of at least 183 days across a three-year window: every day this year counts fully, days from the prior year count as one-third, and days from two years back count as one-sixth.2Internal Revenue Service. Substantial Presence Test Someone in the U.S. for 120 days in each of three consecutive years lands at 180 and misses the cutoff.
Two situations can strip resident status even after you pass one of these tests.
The Closer Connection Exception
If you were present in the U.S. for fewer than 183 days in the current year but your weighted three-year total exceeds 183, you can still be classified as a nonresident if you kept a tax home in a foreign country for the entire year and maintained closer ties there than to the U.S. Anyone who has applied for or has a pending application for a green card cannot use this exception.3Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test The IRS weighs where your permanent home, family, belongings, bank accounts, and social ties are located.
If the exception applies, you are a nonresident alien for that year and cannot contribute to an HSA.
Tax Treaty Tie-Breakers
Many U.S. tax treaties contain a tie-breaker provision that assigns residency when both countries would treat you as a resident. If you invoke the tie-breaker to be treated as a resident of the foreign country, you are generally treated as a nonresident alien for U.S. tax purposes, and HSA eligibility disappears. People sometimes take treaty positions to lower a U.S. tax bill without realizing they’ve simultaneously walked out of a benefit that depends on being a resident.
Foreign Health Coverage Is the Silent Disqualifier
The most common problem for resident aliens who otherwise qualify is holding a health plan from their home country. The rule against overlapping coverage applies globally. If a foreign plan covers the same categories of care that your U.S. High Deductible Health Plan covers, you are not an eligible individual for any month that foreign coverage is in force.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
Most government-sponsored plans in other countries and most international private policies for expatriates offer comprehensive, low-deductible benefits that look nothing like an HDHP. If your foreign plan covers doctor visits, hospital stays, or prescriptions with little or no deductible, it disqualifies you whether or not you ever use it. The plan only has to exist and cover you.
The statute permits a narrow set of side coverages that do not break HSA eligibility: dental, vision, accident, disability, long-term care, telehealth and remote care, insurance for a specific disease, and fixed-indemnity hospitalization policies. Workers’ compensation and liability insurance are also fine.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts Few foreign government plans can be squeezed into these categories. To preserve eligibility, you generally have to terminate the foreign coverage or confirm in writing that it fits an exception. Dropping coverage in your home country can carry consequences there, so weigh both sides before canceling.
The Rest of the Eligibility Checklist
Beyond residency and foreign coverage, four conditions must hold on the first day of any month for that month to count.5Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans You must be enrolled in a qualifying HDHP, have no disqualifying other health coverage, not be enrolled in any part of Medicare, and not be claimable as someone else’s tax dependent.
The HDHP piece has hard numbers. For 2026, the plan must carry a minimum annual deductible of $1,700 for self-only coverage or $3,400 for family coverage, and its out-of-pocket maximum (deductibles, copays, and coinsurance, not premiums) cannot exceed $8,500 self-only or $17,000 family.6Internal Revenue Service. Rev. Proc. 2025-19 – 2026 Inflation Adjusted Amounts for Health Savings Accounts A plan that misses these thresholds isn’t an HDHP, and nothing else on the checklist saves you.
A useful expansion took effect January 1, 2026: bronze and catastrophic health plans qualify as HSA-compatible whether purchased on a Marketplace exchange or off it, even if they don’t meet the traditional HDHP thresholds.7Internal Revenue Service. Treasury, IRS Provide Guidance on New Tax Benefits for Health Savings Account Participants Under the One, Big, Beautiful Bill For resident aliens who struggled to find qualifying coverage on the individual market, that opens up more options.
Contribution Limits and Partial-Year Traps
Once eligible, you follow the same limits as citizens. For 2026, the maximum annual contribution is $4,400 for self-only HDHP coverage and $8,750 for family coverage. If you’re 55 or older and not on Medicare, you can add a $1,000 catch-up.6Internal Revenue Service. Rev. Proc. 2025-19 – 2026 Inflation Adjusted Amounts for Health Savings Accounts4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
If you were only eligible for part of the year, the limit is prorated. Divide the annual figure by 12 and multiply by the number of qualifying months. This is the default outcome for resident aliens who arrive midyear or who need time to shed a disqualifying foreign plan.
The Last-Month Rule lets you contribute the full annual amount if you’re eligible on December 1, treating you as though you’d qualified all year.5Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans It comes with a testing period. You have to stay eligible through December 31 of the following year. Lose eligibility during that window for any reason other than death or disability, and the excess amount gets added back to your income and taxed an additional 10 percent.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts For anyone who might relocate, take a treaty position, or pick up foreign coverage in the coming year, prorating is the safer choice.
Using the HSA for Care Outside the U.S.
The account works abroad. You can use HSA funds for qualified medical care regardless of where you receive it, as long as the expense meets the IRS definition of medical care, the treatment is legal where provided, and it’s actual medical care rather than cosmetic work or general wellness.
Prescription drugs are treated more strictly. The IRS generally does not allow you to deduct the cost of a prescribed drug imported from another country.8Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Medications legally prescribed and consumed in the country where you bought them can qualify. Card issuers typically add 1 to 3 percent for currency conversion, so factor that in, and hold on to receipts because the IRS can ask you to substantiate a foreign expense.
What Happens if You Leave the U.S.
Leaving the country doesn’t require you to close the account, and cashing it out is usually the wrong move. A full withdrawal for non-medical reasons is taxed as ordinary income and hit with a 20 percent penalty if you’re under 65.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts Leaving the account open lets the balance keep growing tax-free, and you can still use it for qualified medical expenses anywhere in the world.
What ends is your ability to contribute. Once you become a nonresident alien, you no longer satisfy the tax-residency requirement, and comprehensive foreign health coverage or the loss of your HDHP would end eligibility on its own. The account itself stays yours. At 65, non-medical withdrawals are still taxed as income but no longer penalized, which turns the remaining balance into something closer to a traditional retirement account.
If you come back and re-establish resident alien status with a qualifying HDHP, contributions resume, prorated to the eligible months in the return year unless you use the Last-Month Rule and accept its testing period.