What Happens to My HSA When I Leave My Job?

Happy freelancer leaving the office satisfied after quitting job.

skynesher / Getty Images

Unlike a Flexible Spending Account, you can keep your Health Savings Account (HSA) when you leave your job.

Even if you opened your HSA in association with a high deductible health plan (HDHP) you got from your job, the HSA itself is yours to keep. All of the money in it—including contributions your employer made, contributions you made, and interest or investment growth—belongs to you.

This article will explain what you need to know about your HSA if you're leaving your job and the HSA was part of your employer-benefits package.

Happy employee leaving the office after quitting his job
Skynesher / Getty Images

Pay COBRA Premiums Using Your Health Savings Account

If you’re losing your health insurance as a result of leaving your job, you can use the money in your HSA to pay the monthly premiums for COBRA continuation of your health insurance. This is considered a qualified medical expense, so you won’t have to pay income taxes on the withdrawals, and you won't be subject to the 20% penalty that applies to HSA withdrawals that aren't used for qualified medical expenses.

What if you can’t afford COBRA, don’t want to continue your current health plan, or aren’t eligible for COBRA? As long as you’re receiving federal or state unemployment benefits, you may withdraw the money in your HSA to pay health insurance premiums.

For example, you could purchase a health plan from your state’s Affordable Care Act health insurance exchange and use money from your HSA to pay the premiums, as long as you're receiving unemployment benefits. Depending on your total projected income for the year, you may even be eligible for a government subsidy to help you pay the monthly premiums so your HSA funds stretch further.

But once you're no longer receiving unemployment benefits, you cannot use pre-tax HSA funds to pay your health insurance premiums. There is an exception to this rule for anyone transitioning to Medicare. HSA funds can be used to pay most Medicare-related premiums.

As soon as you stop receiving unemployment benefits, don't forget to stop using your HSA funds to pay your health insurance premiums. Otherwise, you could face a 20% penalty on those withdrawals.

Use Your HSA as an Emergency Fund

The money in your HSA can be withdrawn to pay for medical expenses. But you don't have to withdraw money from your HSA when you have a medical expense. Instead, you can pay your medical bills with other money (post-tax) and keep the receipt.

Then, months or years or decades later, you can withdraw money from your HSA to reimburse yourself for the medical expense that you paid with post-tax money. But note that this is assuming you didn't itemize those medical expenses on your tax return the year you paid them. You can't ever double-dip on your taxes, so if you itemize the deduction, you can't also reimburse yourself with pre-tax HSA money.

So some people treat their HSA as an emergency fund, invested in stocks or bonds or an interest-bearing account, with the gains growing tax-free from one year to the next. They pay all their medical bills with other funds and save the receipts.

Then if they need the money—because of a job loss, for example—they can withdraw as much from the HSA as they've spent on otherwise unreimbursed medical bills during the time they've had the HSA. The withdrawal isn't taxed since it's technically being used to pay for medical expenses, just many months or years after the fact.

Losing Your High Deductible Health Plan? Stop Your HSA Contributions

If you lose or cancel your high-deductible health plan (HDHP) health insurance coverage, you won’t be able to contribute to your HSA until you regain HDHP coverage.

This is true even if you get health insurance coverage from a different type of health plan. Not having an HDHP means you’re not allowed to contribute to your HSA (and keep in mind that an HDHP is a very specific type of health plan that has to follow specific IRS rules; it's not just any health plan with a high deductible).

However, you may withdraw tax-free, penalty-free funds from your HSA to pay for qualified medical expenses whether you have an HDHP, a different type of health insurance, or are uninsured.

And if you get an HDHP from your new employer, or purchase an HDHP on your own (through the Marketplace/exchange in your state or off-exchange), you can resume making contributions to your HSA.

If you switch to a different type of health insurance or end up uninsured altogether for a while, you can't contribute anything to the HSA during the time that you don't have HDHP coverage. But you can still make tax-free withdrawals from the account to pay for medical expenses you incur during that time.

If you end up getting HDHP coverage again before the end of the year, and you have HDHP coverage as of December 1, you can contribute the full allowable amount to your HSA for that year.

But there's a caveat: You then have to keep your HDHP coverage in place throughout the next year (this is called the ​testing period) or else you'll have to pay taxes and a penalty on some of the HSA contributions you made during the year when you didn't have HDHP coverage for the whole year. 

The maximum allowable HSA contribution amount in 2024 is $4,150 if you have coverage for just yourself under the HDHP, or $8,300 if you have coverage for yourself and at least one other family member under the HDHP.

The maximum allowable contribution is prorated if you have HDHP coverage for less than the full year. So if you have HDHP coverage from January through June, you would only be able to contribute half of the total annual amount. But as noted above, you can make the full annual contribution if you have HDHP coverage as of December 1, as long as you then continue to have HDHP coverage throughout the following year.

You always have until the tax filing deadline—around April 15 of the following year—to make some or all of your contribution.

Retiring? Special Rules Apply to Your Health Savings Account

Once you turn 65, you may withdraw money from your HSA for any reason without facing the 20% penalty for non-medical withdrawals. However, only the money you withdraw for qualified medical expenses will be tax-free. You’ll pay regular income taxes on money you withdraw for non-medical purposes.

Medicare premiums (for Part B, Part D, Medicare Advantage, and Part A for people who don't receive it premium-free) are considered a qualified medical expense, but premiums you pay for Medicare supplemental policies (Medigap plans) are not. You’ll pay income taxes on HSA withdrawals used for Medigap premiums, but the HSA withdrawals you use for other Medicare premiums will be tax-free.

Note that while you can generally always use your HSA funds to cover medical expenses for your spouse, the rules are a little different for Medicare premiums: You can only use your pre-tax HSA funds to cover your spouse's Medicare premiums if you and your spouse are at least 65 years old.

If you're not yet 65, you won't be able to cover your spouse's Medicare premiums with your HSA funds until you turn 65 (HSAs are individually owned, even if the plan is linked to a family HDHP; each spouse can have their own HSA if they're eligible, or they can both contribute to one that's in just one spouse's name).

You may no longer make contributions to your HSA once you’ve enrolled in Medicare. This is true even if you're only enrolling in Medicare Part A, and are delaying Medicare Part B because you're still working and enrolled in your employer's health plan.
You'll need to stop your HSA contributions as soon as you're enrolled in any Medicare coverage. Some people choose to delay even premium-free Medicare Part A if they're still working, not yet receiving Social Security benefits, are enrolled in their employer's HDHP, and are still making HSA contributions.

Want to Change HSA Custodians?

An HSA custodian is the bank or financial institution where you keep your HSA funds. You don’t have to keep your HSA with the same custodian after you leave your job; you may move your HSA from one custodian to another. You might consider doing this if:

  • You’re unhappy with the fees your current HSA custodian charges.
  • You’re not satisfied with the investment options your current HSA custodian allows.
  • Your current custodian offers online-only HSA management and you’d prefer getting face-to-face customer service by walking into your local bank or credit union.

Changing from one HSA custodian to another can be done by a direct transfer of assets between custodians. In other words, your old HSA custodian transfers the money directly to your new HSA custodian. Following the rules in IRS Publication 969, “Do not include the amount transferred as income, deduct it as a contribution, or include it as a distribution on Form 8889.”

Some custodians charge a fee for transferring assets or closing an account, so make sure you ask.

Summary

A Health Savings Account (HSA) is a tax-advantaged account that allows people to save for future medical expenses. Many people have HSAs in conjunction with a job, but the HSA belongs entirely to the employee. If the person leaves their job, the HSA (and any money in it) goes with the employee. They are free to continue using the money for medical expenses and/or move it to another HSA custodian. If they continue to have HSA-qualified high-deductible health plan (HDHP) coverage, they can also continue to make contributions to the HSA.

4 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Internal Revenue Service. This notice provides guidance on Health Savings Accounts. 

  2. Internal Revenue Service. Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans.

  3. Internal Revenue Service. Revenue Procedure 2023-23.

  4. Benefit Strategies. HSAs and Medicare.

By Elizabeth Davis, RN
Elizabeth Davis, RN, is a health insurance expert and patient liaison. She's held board certifications in emergency nursing and infusion nursing.