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 get the same triple tax benefit: a deduction for contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses. The complications specific to resident aliens are narrower than people fear and sit in three places: confirming your tax-residency status, making sure foreign health coverage isn’t quietly disqualifying you, and thinking ahead about what happens if you leave the country.
The Baseline Eligibility Rules Still Apply
Four conditions must be true on the first day of any month for you to contribute for that month. You must be covered by a qualifying High Deductible Health Plan, have no other health coverage that overlaps with what the HDHP covers, not be enrolled in any part of Medicare, and not be claimable as someone else’s tax dependent.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
For 2026, a qualifying HDHP has a minimum annual deductible of $1,700 for self-only coverage or $3,400 for family coverage, with out-of-pocket costs capped at $8,500 and $17,000 respectively.2Internal Revenue Service. Rev. Proc. 2025-19 – 2026 Inflation Adjusted Amounts for Health Savings Accounts3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
None of these numbers change because you’re a resident alien. The rules you have to pay extra attention to are the ones about who counts as a resident and what counts as other coverage.
Confirming Your Resident Alien Status
You qualify as a resident alien for tax purposes by passing either the Green Card Test or the Substantial Presence Test. The Green Card Test is simple: holding lawful permanent resident status at any point in the calendar year makes you a resident alien for that year.4Internal 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 at least 183 weighted days across a three-year window, where current-year days count fully, prior-year days count as one-third, and days from two years back count as one-sixth.5Internal Revenue Service. Substantial Presence Test
Passing one of these tests makes you a resident alien and gives you access to the HSA on the same footing as a citizen. Two situations can pull that status back out from under you.
The Closer Connection Exception
If you were present in the U.S. for fewer than 183 days in the current year but still met the Substantial Presence Test on the weighted three-year count, you can be reclassified as a nonresident alien if you kept a tax home in a foreign country for the entire year and had a closer connection to that country than to the U.S. The exception is not available to anyone who has applied for or has a pending application for a green card.6Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test If this exception applies to you, you cannot contribute to an HSA for the year.
Tax Treaty Tie-Breaker Rules
Many U.S. tax treaties include a tie-breaker provision that assigns residency to one country when both would otherwise claim you. If you invoke that tie-breaker to be treated as a resident of your home country, you are generally treated as a nonresident alien for U.S. tax purposes, which eliminates HSA eligibility. People who file treaty-based positions to cut their U.S. tax bill sometimes don’t realize they’ve also closed the HSA door for that year.
Foreign Health Coverage Is the Usual Disqualifier
Of all the ways a resident alien can be eligible on paper and still fail the test, foreign health coverage is the most common. The rule against overlapping coverage applies worldwide. If a health plan from your home country covers the same categories of care your HDHP covers, you are not an eligible individual for any month in which that foreign plan is active.3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts It doesn’t matter whether you ever use the foreign plan. Its existence is enough.
Most national health systems and most international expatriate policies provide broad, low-deductible coverage that looks nothing like an HDHP, so they disqualify you. The statute does allow a handful of narrow coverage types to coexist with an HSA: dental, vision, accident-only, disability, long-term care, policies covering a single specified disease, and fixed-indemnity hospitalization plans.3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts A foreign plan that fits inside one of those categories is fine. Few do.
To preserve eligibility you either need to terminate the foreign coverage or confirm it fits one of those exceptions. Dropping coverage in your home country can have its own consequences there, so look at both sides before canceling anything.
Contributing When You’re Only Eligible Part of the Year
Resident aliens often arrive midyear or need time to drop disqualifying coverage before they can contribute. In that case your contribution limit is prorated: take the annual limit, divide by 12, and multiply by the number of months you were eligible.
The Last-Month Rule offers an alternative. If you’re an eligible individual on December 1, you can contribute the full annual amount as though you’d been eligible all year.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans The condition is a testing period running through December 31 of the following year. If you lose eligibility during that window for any reason other than death or disability, the excess amount is added back to your income and hit with an additional 10 percent tax.3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts For a resident alien who may relocate, change visa status, or pick up foreign coverage within the next year, this rule carries real risk. Prorating is often the safer choice.
Using the Account for Medical Care Abroad
Once the account is funded, you can use it to pay for qualified medical expenses regardless of where the care is delivered. A doctor’s visit or surgery in your home country qualifies as long as the expense meets the same IRS definition of medical care that applies to care in the U.S. The treatment must be legal where you receive it, and it has to be genuine medical care rather than cosmetic or general wellness spending.
Prescription drugs are the one area where location matters more. The IRS generally does not allow the cost of a prescribed drug imported from another country, though medication legally prescribed and consumed in the foreign country where you bought it can qualify.7Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Using an HSA debit card internationally typically brings currency conversion fees of 1 to 3 percent. Keep every receipt. The IRS can ask you to prove a foreign expense was qualified.
What Happens if You Leave the U.S.
Leaving the country does not force you to close your HSA, and cashing it out on your way out is almost always a mistake. A full withdrawal before age 65 is taxed as ordinary income and carries a 20 percent additional tax on top.3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts Leaving the account open preserves tax-free growth and keeps the funds available for qualified medical expenses anywhere in the world.
What stops is your ability to contribute. Once you become a nonresident alien, drop your HDHP, or pick up comprehensive foreign coverage, new contributions have to stop. The account itself remains yours. At 65 the 20 percent penalty on non-medical withdrawals disappears, so the balance behaves like a traditional retirement account for anything you spend outside of health care, while qualified medical withdrawals stay tax-free.
If you later return to the U.S., re-establish resident alien status, and enroll in a qualifying HDHP, you can resume contributions. The limit for that return year is prorated to the months you’re eligible, unless you choose to use the Last-Month Rule and accept its testing period.