You can invest HSA money the same way you invest retirement accounts

A Health Savings Account holds money you set aside for medical costs, but the money does not have to sit in a savings account earning almost nothing. Most HSA providers let you invest the balance in mutual funds, index funds, or other investments — the same way you would invest money in a 401(k) or IRA. The growth you earn on those investments is tax-free as long as you use the money for medical costs later.

The catch is straightforward: you choose when and how much to invest. Your HSA provider gives you the tools, but they do not move your money automatically. You log in, pick your investments, and move money from the cash portion of your account into those investments. If you never log in and choose, your money stays in cash.

This matters because the longer your money sits in cash, the less it grows. Someone who invests their HSA at age 30 and leaves it alone until age 65 can end up with significantly more money than someone who keeps it in cash — but only if they actually move it into investments.

Key Takeaways

  • Most HSA providers offer investment options like mutual funds and index funds, but you must move money into them yourself — it does not happen automatically.
  • Money you invest in an HSA grows tax-free, and you pay no tax when you withdraw it for medical costs, making it a powerful long-term savings tool.
  • You can keep some money in cash for near-term medical costs and invest the rest for growth, since you control how much goes into each.
  • Investment options vary by HSA provider, so you may need to switch providers if your current one does not offer the funds you want.
  • If you withdraw invested money for non-medical costs before age 65, you pay income tax plus a 20 percent penalty on the earnings only.

How to move money from cash into investments

The process differs slightly by provider, but the basic steps are the same. Log into your HSA account online or through the provider's app. Look for a section called "Investments," "Investment Center," or "Brokerage" — the exact name varies. You will see a list of available funds with their names, ticker symbols, and recent performance.

Choose the fund or funds you want to invest in. You can put all your money into one fund, split it across several, or keep some in cash and invest the rest. Then enter the dollar amount you want to move and confirm the transaction. The money moves from your cash balance into that investment, usually within one business day.

Some providers require a minimum investment — often $500 or $1,000 — before you can start. If your balance is below that, you may need to wait until you contribute more, or you may be able to invest smaller amounts in certain funds. Check your provider's rules before you try.

What kinds of investments are usually available

Most HSA providers offer a menu of mutual funds and index funds, similar to what you would find in a 401(k). Common options include stock funds (which track the overall market or specific sectors), bond funds (which invest in government and corporate debt), and balanced funds (which mix stocks and bonds). Some providers also offer target-date funds, which automatically shift from stocks to bonds as you approach a certain year.

The specific funds available depend entirely on your provider. Fidelity HSAs might offer different funds than an HSA through your bank or employer. If your current provider has limited options or high fees, you can move your HSA to a different provider — this is called a trustee-to-trustee transfer — and gain access to their investment menu instead.

A few providers also offer self-directed HSAs, which let you invest in real estate, private businesses, or other alternative investments. These are less common and usually come with higher fees and more paperwork, but they exist if you want more control.

Keeping some money in cash for when ready medical costs

You do not have to invest all your HSA money. Many people keep a portion in the cash account to cover medical costs they expect in the next year or two — copays, prescriptions, dental work, or other known expenses. The rest goes into investments to grow over time.

This strategy makes sense because you need to be able to pay for medical costs when they happen. If all your money is tied up in investments and the market drops right when you need to withdraw, you lock in a loss. Keeping three to six months of expected medical costs in cash gives you a buffer.

You can also withdraw from investments whenever you need to — there is no penalty for withdrawing invested money for medical costs, even if you have to sell at a loss. The penalty only applies if you withdraw for non-medical reasons. So keeping money in cash is about convenience and avoiding forced sales, not about avoiding penalties.

Tax benefits of investing in an HSA

The tax advantage of investing in an HSA is the same whether your money sits in cash or in funds: money you contribute is not taxed, growth is not taxed, and withdrawals for medical costs are not taxed. This is different from a regular brokerage account, where you pay tax on dividends and capital gains every year, and different from a 401(k), where you pay tax when you withdraw.

An HSA is actually more tax-efficient than a 401(k) because you avoid tax three times — on the way in, on the growth, and on the way out — as long as you use the money for medical costs. A 401(k) only avoids tax on the way in and the growth; you pay tax when you withdraw.

This means investing in an HSA is especially powerful if you have a long time horizon. Someone who invests $3,000 a year from age 30 to 65 and earns 7 percent annually could end up with over $600,000 — all of which can be withdrawn tax-free for medical costs. That same money in a taxable brokerage account would owe taxes on the gains.

What happens if you withdraw invested money for non-medical costs

If you withdraw money from your HSA for something other than a medical cost — a vacation, a car, anything not medical — you pay income tax on the withdrawal plus a 20 percent penalty. The penalty applies only to the earnings, not to the money you originally contributed.

For example: you invest $5,000 and it grows to $7,000. If you withdraw all $7,000 for a non-medical cost, you pay income tax on the full $7,000 and a 20 percent penalty on the $2,000 in earnings. You do not pay the penalty on the original $5,000.

After age 65, the penalty goes away. You can withdraw money for any reason and only pay income tax on the earnings — the same as a traditional IRA. This makes an HSA a powerful retirement account if you do not use all the money for medical costs by then.

Choosing between different investment options

If your provider offers multiple funds, you need to decide which ones fit your situation. The main question is how long you plan to keep the money invested. If you will need it within five years, a bond fund or balanced fund is safer because stocks can drop sharply in the short term. If you will not touch it for ten years or more, a stock fund can weather short-term drops and usually grows more over long periods.

Look at the fund's expense ratio — the annual fee charged as a percentage of your balance. A fund that costs 0.05 percent per year is much cheaper than one that costs 1 percent per year, and that difference compounds over decades. Index funds usually have lower fees than actively managed funds.

You can also look at the fund's recent performance, but past performance does not predict future results. A fund that did well last year might underperform next year. What matters more is whether the fund matches your goals and has reasonable fees.

Moving your HSA to a provider with better investment options

If your current HSA provider has limited investment choices or high fees, you can move your account to a different provider. This is called a trustee-to-trustee transfer, and it is not a taxable event — you do not owe taxes or penalties.

To do this, open an HSA with the new provider, then ask your old provider to transfer the balance directly to the new one. Do not withdraw the money yourself and deposit it into the new account — that counts as a distribution and can trigger taxes. The transfer usually takes one to two weeks.

Before you switch, check whether your new provider charges monthly fees, has a minimum balance requirement, or limits how often you can move money between cash and investments. Some providers are free; others charge $2 to $5 per month. Over time, those fees add up.

Frequently Asked Questions

Can I lose money by investing my HSA?

Yes, if you invest in stock funds or other investments, the value can drop in the short term. If you need the money and the market is down, you may have to sell at a loss. This is why many people keep some money in cash for near-term costs and invest only money they will not need for several years.

Do I have to invest my HSA money?

No. You can leave all your money in the cash account if you prefer. It will not grow much, but it will be available whenever you need it. Many people use a mix: cash for when ready costs and investments for long-term growth.

What if I do not know which funds to pick?

If your provider offers target-date funds, those are a straightforward choice — you pick the fund closest to the year you turn 65, and it automatically shifts from stocks to bonds over time. Otherwise, a straightforward stock index fund or balanced fund works for most people. You can also talk to a financial advisor, though many charge fees.

Can I move my investments between funds?

Yes. You can sell one fund and buy another whenever you want, with no tax or penalty as long as the money stays in your HSA. Some providers limit how often you can trade, so check your rules. Moving between funds does not count as a withdrawal.

What counts as a medical cost for withdrawal purposes?

Medical costs include doctor visits, prescriptions, dental work, vision care, mental health treatment, and many other health-related expenses. The IRS publishes a full list. If you are not sure whether something counts, ask your HSA provider or check the IRS website before you withdraw.