Yes, you can invest HSA money, and most accounts let you do it

A Health Savings Account (HSA) is designed to hold money for medical expenses, but the funds don't have to sit in a regular savings account earning almost nothing. Most HSA providers let you move money into investments — stocks, bonds, mutual funds, or target-date funds — the same way you would in a retirement account. The money grows tax-free as long as you use it for medical costs later.

Not every HSA plan offers investment options, and the ones available depend on which provider manages your account. Your employer chooses the HSA provider, so your options are limited to what that provider offers. If your current plan doesn't invest, you can sometimes roll the money to a different HSA provider that does, though you'll want to check whether your employer allows that.

Key Takeaways

  • Most HSA providers offer investment options, but you must keep a minimum cash balance (often $1,000 to $2,500) available for medical expenses you might need to pay right away.
  • HSA investments grow tax-free and withdrawals for medical costs are never taxed, which is a major advantage over regular investment accounts.
  • You can only invest money that exceeds your provider's minimum balance requirement, so a small HSA may not have enough to invest.
  • If your employer's HSA provider doesn't offer investments, you can roll your balance to a different HSA provider that does, though you may need employer permission.
  • At age 65, you can withdraw HSA money for any reason without penalty, though non-medical withdrawals are taxed as income.

How investment options work inside an HSA

When your HSA provider offers investments, they typically show you a menu of mutual funds, index funds, or target-date funds to choose from. You decide how much of your balance to keep in cash and how much to move into investments. The cash portion stays liquid — you can withdraw it anytime without selling anything — while the invested portion grows over time.

The key rule is the minimum balance requirement. Most providers require you to keep $1,000 to $2,500 in cash at all times. Only the money above that threshold can be invested. If your HSA balance is $3,000 and your provider requires a $2,000 minimum, you can invest $1,000. This protects you in case you need to pay a medical bill suddenly and don't want to sell investments at a bad time.

Once money is invested, you can usually move it back to cash whenever you want, though some providers charge a small fee or take a few business days to process the sale. Check your provider's rules before you invest.

The tax advantage of investing in an HSA versus a regular account

The biggest reason to invest HSA money is the tax treatment. Money you put into an HSA is not taxed going in (if your employer contributes, it's not taxed at all; if you contribute yourself, you deduct it on your tax return). The money grows tax-free inside the account. When you withdraw it to pay a medical bill, that withdrawal is never taxed.

Compare that to a regular investment account: you pay taxes on the money going in, you pay taxes on dividends and capital gains each year, and you pay taxes again when you sell. An HSA avoids all three layers of tax as long as you use the money for medical costs.

This makes an HSA a powerful long-term savings tool if you can afford to leave the money invested and pay medical bills out of pocket instead. Over 20 or 30 years, that tax-free growth adds up significantly compared to investing the same amount in a taxable account.

What counts as a medical expense you can withdraw for

The IRS has a long list of medical costs you can pay with HSA money tax-free: doctor visits, prescriptions, dental work, vision care, mental health treatment, medical equipment, and many others. You can also use HSA money to pay insurance premiums in certain situations — specifically COBRA coverage, long-term care insurance, and health insurance while you're receiving unemployment benefits.

The expense must be for you, your spouse, or your dependents. You can't use HSA money to pay for someone else's medical care unless they're claimed as a dependent on your tax return. Keep receipts and records of what you paid for, because the IRS can ask you to prove that withdrawals were for medical costs.

One common question: can you withdraw money to reimburse yourself for a medical bill you paid years ago? Yes, as long as you didn't already deduct it on your taxes or use another tax-free medical program to pay for it. You don't have to withdraw the money in the same year you paid the bill.

What happens if you withdraw HSA money for non-medical reasons

If you take money out of your HSA for something that isn't a medical expense, you owe income tax on that withdrawal. You also owe a 20% penalty on top of the income tax — so if you withdraw $1,000 for a non-medical reason, you'd owe roughly $200 to $300 in penalties and taxes depending on your tax bracket.

The penalty applies only to the amount you withdraw for non-medical reasons, not to your whole balance. If you withdraw $5,000 and $4,500 is for medical costs and $500 is for something else, only the $500 gets penalized.

There is one exception: at age 65, you can withdraw HSA money for any reason without the 20% penalty. You still owe income tax on non-medical withdrawals, but the penalty goes away. This is why some people treat an HSA like a retirement account — they invest it, pay medical bills out of pocket, and at 65 they can withdraw whatever they want.

Rolling your HSA to a provider that offers investments

If your employer's HSA provider doesn't offer investment options, you have the option to roll your balance to a different HSA provider that does. This is called an HSA-to-HSA transfer or rollover. The money moves directly from one provider to the other, and it's not taxed or counted against your annual contribution limit.

The catch is that your employer may not allow it. Some employers require you to use their chosen provider. Check your plan documents or ask your benefits administrator whether you can roll to a different provider. If you can, you'll need to open an account with the new provider and request the transfer — don't withdraw the money yourself, because that counts as a distribution and could trigger taxes.

Another option is to leave the money with your current provider and open a separate HSA with a provider that does invest. You can have multiple HSAs as long as your total contributions across all of them don't exceed the annual limit set by the IRS. This lets you keep money with your employer's provider for quick access and invest the rest elsewhere.

Choosing investments inside your HSA

The investments available in your HSA depend entirely on your provider. Some offer only a handful of mutual funds; others offer dozens of options including individual stocks. Common choices are target-date funds (which automatically shift from stocks to bonds as you get older), low-cost index funds, or a straightforward mix of a stock fund and a bond fund.

Because HSA money is meant for medical expenses, many people choose more conservative investments than they would in a retirement account — especially if they might need the money soon. If you're young and healthy and don't expect major medical bills for years, you might invest more aggressively. If you have ongoing medical costs, you might keep most of the money in cash and invest only what you're confident you won't need.

Check what your provider charges in fees. Some HSA providers charge monthly account fees, transaction fees for moving money between cash and investments, or fund expense ratios that are higher than you'd pay elsewhere. High fees can eat into your returns, so it's worth comparing providers if you're planning to invest a large balance.

Frequently Asked Questions

Do I have to invest my HSA money?

No. You can leave all of it in cash if you prefer. Many people do, especially if their HSA balance is small or they expect to use the money for medical bills soon. Investing is optional and makes the most sense if you have money you won't need for several years.

What if I need the money I invested before I can sell it?

You can sell the investments and move the money back to cash, though it usually takes a few business days. Some providers charge a fee for selling. This is why providers require a minimum cash balance — so you have money available when ready if you need it for a medical bill.

Can I lose money investing in an HSA?

Yes, the same way you can lose money in any investment account. If you invest in stocks or stock funds and the market drops, your balance will drop too. The tax advantages of an HSA don't protect you from investment losses. Only invest money you can afford to leave alone for at least a few years.

Is there a limit to how much I can invest in my HSA?

The limit is the same as the annual contribution limit — $4,150 for individual coverage or $8,300 for family coverage in 2024, though these amounts change each year. You can invest up to that amount, but only the portion above your provider's minimum cash balance can actually be invested.

What happens to my HSA investments if I change jobs?

Your HSA stays yours. You keep the account and the investments, even if you leave your job or switch to a different employer. You can continue investing it, or you can roll it to a different provider. The investments don't get forfeited or reset.