An HSA works best if you have high medical costs, plan to stay in the same job, and can afford to put money in without touching it

A health savings account is worth opening if three things are true: you are enrolled in a high-deductible health plan (HDHP), you have money left over after paying bills to contribute, and you expect medical expenses in the next few years. The account lets you set aside pre-tax dollars for medical costs, which means you pay less in federal income tax. If you never use the money, it rolls over year to year and grows tax-free — unlike a flexible spending account (FSA), which forces you to spend it or lose it.

An HSA is not worth opening if you cannot afford to contribute regularly, if you need to withdraw the money for non-medical expenses (which triggers taxes and a penalty), or if you are covered by Medicare, Medicaid, or a spouse's non-HDHP plan. It is also less useful if your medical costs are low and predictable, because the tax savings shrink when you have little to save.

Key Takeaways

  • An HSA saves you money only if you contribute enough to offset the higher deductible of your HDHP, and you have medical expenses to pay with the account.
  • Money in an HSA is yours to keep and grows tax-free year after year, unlike FSA funds, which expire at the end of the plan year.
  • Withdrawals for non-medical expenses before age 65 are taxed as income plus hit with a 20 percent penalty, making early withdrawal expensive.
  • After age 65, you can withdraw HSA money for any reason without penalty, though non-medical withdrawals are still taxed as income.
  • An HSA only works if your employer or you can afford the contributions; if money is tight, the higher deductible of an HDHP may cost you more than you save.

How the tax savings actually work

When you contribute to an HSA through payroll deduction, the money comes out before federal income tax is calculated. If you earn $50,000 a year and contribute $3,000 to an HSA, you pay federal income tax on $47,000 instead. At a 22 percent tax rate, that saves you $660 in federal tax that year. You also avoid paying Social Security and Medicare payroll taxes on the contribution, which saves another 7.65 percent — about $230 in this example.

The catch is that this only works if you actually use the HSA for medical costs. If you contribute $3,000 but spend only $500 on medical care and withdraw $2,500 for rent, you owe income tax on that $2,500 plus a 20 percent penalty ($500), totaling $1,150 in taxes and penalties on money you already paid tax on indirectly. That wipes out the original tax savings and costs you more.

If you leave the money in the account and let it grow, you pay no tax on the investment gains — similar to a 401(k) or IRA. This is where an HSA becomes powerful over time: a 35-year-old who contributes $3,000 a year for 30 years and invests it in a low-cost index fund could have $150,000 or more by retirement, all tax-free, to spend on medical costs in later years.

When an HDHP costs more than it saves

An HDHP has a higher deductible than a standard health plan — often $1,500 to $3,000 for an individual or $3,000 to $6,000 for a family, depending on the plan. You pay all medical costs up to that deductible out of pocket before insurance kicks in. If you have chronic conditions, take regular medications, or see specialists often, you will hit that deductible quickly.

The math only favors an HDHP if your employer contributes to your HSA or if you can contribute enough to cover the difference between the HDHP deductible and a standard plan's deductible. If a standard plan has a $500 deductible and an HDHP has a $2,000 deductible, you need to save at least $1,500 in HSA contributions to break even. If you cannot save that much, the higher out-of-pocket costs will exceed any tax savings.

For people with predictable, low medical costs — a young person with no chronic conditions who sees a doctor once a year — an HDHP can work well. For someone with diabetes, arthritis, or frequent prescriptions, a standard plan with a lower deductible often costs less overall, even without an HSA.

What happens to your HSA if you change jobs

Your HSA belongs to you, not your employer. If you leave your job, you keep the account and the money in it. You can continue to use it to pay for medical expenses, and it keeps growing tax-free. You cannot make new contributions unless you enroll in another HDHP with a new employer or buy an HDHP on your own through the health insurance marketplace.

This is different from an FSA, which is tied to your employer and usually ends when you leave. An HSA is portable, which makes it more valuable over a career — you can accumulate money across multiple jobs and employers.

If you switch to a non-HDHP plan (such as a standard PPO or HMO), you stop being able to contribute to the HSA, but you can still withdraw money from it for medical expenses. Once you turn 65 and enroll in Medicare, you also cannot contribute anymore, but you can withdraw for any reason without the 20 percent penalty (though non-medical withdrawals are still taxed as income).

Investment options and account fees

Most HSAs let you invest the money in mutual funds, index funds, or target-date funds, similar to a 401(k). Some accounts require you to keep a minimum balance in cash (often $1,000 to $2,500) before you can invest the rest. Others let you invest from dollar one. The investment options and fees vary by provider — some charge $3 to $5 per month, others charge nothing.

If you plan to use your HSA only for near-term medical expenses, investing does not make sense; keep the money in a savings account earning a small amount of interest. If you expect to keep the money in the account for years, investing in low-cost index funds can significantly grow your balance over time. The difference between a 2 percent savings account return and a 7 percent stock market return compounds quickly over decades.

Before opening an HSA, compare the investment options and fees across providers. Some employers offer HSAs through specific vendors; if yours does, check what that vendor charges. If you have a choice, look for an account with no monthly fees and low-cost index fund options.

Using your HSA for retirement medical costs

An HSA is one of the few accounts that lets you save for retirement medical expenses with triple tax benefits: contributions are tax-deductible, growth is tax-free, and withdrawals for medical costs are tax-free. This makes it more powerful than a 401(k) or traditional IRA for medical costs specifically.

Medical costs in retirement are substantial. A 65-year-old couple retiring in 2024 can expect to spend roughly $315,000 on healthcare over their remaining lifetime, according to Fidelity estimates. Medicare covers some costs but not all — it does not cover dental, vision, hearing aids, or long-term care. An HSA funded over 30 working years can cover a significant portion of these expenses.

After age 65, you can withdraw HSA money for any reason without the 20 percent penalty. Non-medical withdrawals are taxed as income, but medical withdrawals remain tax-free. This flexibility makes an HSA a useful backup retirement savings account if you have already maxed out your 401(k) and IRA contributions.

Common reasons not to open an HSA

Do not open an HSA if you are covered by Medicare, Medicaid, TRICARE, or the Veterans Health Administration. Federal law prohibits HSA contributions once you enroll in Medicare, even if you are still working. If you are claimed as a dependent on someone else's tax return, you cannot open an HSA. If your spouse has a non-HDHP family plan that covers you, you cannot contribute to an HSA (though you can still use one if you opened it before the coverage changed).

An HSA is also not worth the complexity if you are self-employed with irregular income, because you have to estimate your contributions based on expected income and may face penalties if you over-contribute. If your income fluctuates significantly, a standard health plan with a lower deductible may be simpler and cheaper.

Finally, if you have a history of needing to withdraw money for emergencies, an HSA is risky. The 20 percent penalty plus income tax on non-medical withdrawals can be steep, and it defeats the purpose of saving for medical costs. In that case, a standard health plan with lower out-of-pocket costs is more practical.

Frequently Asked Questions

Can I use my HSA to pay for my spouse's or child's medical costs?

Yes. You can use HSA money to pay for medical expenses for your spouse and any dependent children, even if they are not on your health insurance plan. You cannot use it for a parent's or adult child's medical costs unless they are claimed as your dependent on your tax return.

What counts as a medical expense for HSA withdrawals?

Medical expenses include doctor visits, prescriptions, dental work, vision care, mental health treatment, and medical equipment like hearing aids or wheelchairs. Over-the-counter medications (like cold medicine or pain relievers) count only if you have a prescription. Cosmetic procedures, gym memberships, and vitamins do not count unless prescribed by a doctor for a specific condition.

What happens if I withdraw money from my HSA for a non-medical reason before age 65?

You owe federal income tax on the withdrawal plus a 20 percent penalty. If you withdraw $1,000 for a non-medical reason and you are in the 22 percent tax bracket, you owe $220 in income tax plus $200 in penalty, totaling $420. After age 65, the penalty goes away, but you still owe income tax on non-medical withdrawals.

Can I contribute to an HSA if my employer does not offer one?

Yes. You can open an HSA on your own through a bank or financial institution, as long as you are enrolled in an HDHP. You can contribute up to the annual limit set by the IRS (which varies by year and whether you have individual or family coverage). Contributions are tax-deductible when you file your tax return.

Is an HSA better than just saving money in a regular savings account?

If you are enrolled in an HDHP anyway, an HSA is better because contributions are tax-deductible and growth is tax-free. If you are not enrolled in an HDHP, you cannot open an HSA. If you are considering switching to an HDHP just to open an HSA, compare the total cost: the higher deductible plus any out-of-pocket costs must be less than the tax savings plus HSA growth for it to make sense.