You can invest HSA funds the same way you invest other money, but the rules about what you can buy and when you can withdraw them are stricter than a regular brokerage account

Most HSA providers let you keep money in a cash account earning little or no interest, or move it into mutual funds, stocks, bonds, or other investments. The choice is yours — but the IRS has rules about what counts as a valid HSA investment, and your provider controls which investments they actually offer. If you invest HSA money and the value drops, you still owe taxes and penalties if you withdraw it for non-medical reasons.

The main difference from a regular investment account is that HSA investments must stay in the account until you use them for may have access to medical expenses or reach age 65. You cannot simply sell an investment and pocket the cash without consequences, the way you could with a taxable brokerage account. Understanding how your specific HSA provider handles investing, what your options are, and what happens if you need the money before retirement will save you from costly mistakes.

Key Takeaways

  • Your HSA provider decides which investments you can choose from — common options include mutual funds, index funds, and sometimes individual stocks or bonds, but not collectibles or life insurance.
  • Money you invest in an HSA grows tax-free as long as you withdraw it only for may have access to medical expenses, but withdrawals for other reasons trigger income tax plus a 20 percent penalty before age 65.
  • You must usually meet a minimum balance (often $1,000 to $2,500) before your HSA provider will let you invest; money below that stays in cash.
  • If an investment loses value, you can still withdraw the full amount for medical expenses without penalty, but you cannot deduct the loss on your taxes.
  • After age 65, you can withdraw HSA money for any reason without the 20 percent penalty, though non-medical withdrawals are taxed as income.

What investments your HSA provider actually offers

Your employer's HSA plan or the HSA provider you chose controls the investment menu. Some providers offer only a handful of mutual funds. Others offer dozens of funds plus the ability to buy individual stocks or bonds through a brokerage window. A few offer very limited options — sometimes just a money market fund or savings account.

Before you open an HSA or move money into investments, log into your provider's website or call them and ask what investment options are available. Write down the fund names, expense ratios (the annual cost to own the fund), and any minimum balance required before you can invest. Common providers include Fidelity, Lively, HealthEquity, and Optum Bank, and each has a different menu. If your HSA is through your employer's plan, your HR department can tell you which provider runs it and direct you to their investment options.

The IRS prohibits HSA investments in collectibles (art, coins, stamps), life insurance, and certain other assets. Your provider's rules will prevent you from buying these anyway, so you do not need to police this yourself — but it means you cannot treat an HSA like a general investment account.

How to move money from your HSA cash account into investments

The process varies by provider, but the basic steps are the same. First, log into your HSA account online or call your provider and confirm you meet their minimum balance requirement — this is usually $1,000 to $2,500 kept in cash. You cannot invest money below that threshold.

Next, decide how much to move into investments and which funds or securities you want to buy. Most providers let you do this through their website by selecting a fund and entering an amount. Some require you to call or mail a form. Once you submit the request, the money moves from your cash account into the investment you chose, usually within one to three business days.

You can also set up automatic transfers — for example, moving any balance above $2,000 into a fund each month. This is useful if you contribute regularly and want to invest the surplus without thinking about it each time. Ask your provider whether they offer this feature and how to set it up.

Tax-free growth and the rules for withdrawing invested money

Money you invest in an HSA grows tax-free. If you buy a mutual fund that gains 8 percent in a year, you do not owe taxes on that gain. If you hold individual stocks that double, there is no capital gains tax. This is one of the biggest advantages of an HSA over a regular investment account.

The catch is that you can only withdraw invested money tax-free if you use it for a may have access to medical expense. may have access to expenses include insurance premiums (for some types of coverage), deductibles, copayments, prescription drugs, dental work, vision care, and many other health costs. They do not include cosmetic surgery, gym memberships, or over-the-counter vitamins (unless prescribed by a doctor).

If you withdraw invested HSA money for a non-medical reason before age 65, you owe income tax on the full amount you withdraw plus a 20 percent penalty. For example, if you withdraw $5,000 to pay for a vacation and you are in the 22 percent tax bracket, you owe $1,100 in income tax plus $1,000 in penalty — a total of $2,100 on top of losing the $5,000. This makes withdrawing for non-medical reasons very expensive.

What happens if your investments lose money

If you invest HSA money in a stock fund and the market drops, your account balance falls. You can still withdraw the full amount for a may have access to medical expense without any penalty or tax — the loss does not change the rules. However, you cannot deduct the investment loss on your tax return the way you could with a taxable brokerage account.

This is one reason to think carefully about how much risk you want to take with HSA money. If you need the money soon for medical expenses, a conservative investment (like a bond fund or money market fund) makes sense. If you will not touch the money for decades, a stock-heavy portfolio may be worth the risk because you have time to recover from downturns.

Keep in mind that if you withdraw invested money for medical expenses, you are withdrawing whatever the current value is — not the amount you originally put in. If you invested $10,000 and it grew to $12,000, you can withdraw $12,000 tax-free for medical expenses. If it dropped to $8,000, you can withdraw $8,000 tax-free. The investment performance does not change your right to withdraw for medical reasons.

HSA investing after age 65 and the transition to retirement

At age 65, the rules change significantly. You can still withdraw invested HSA money tax-free for may have access to medical expenses. But you can also withdraw money for any reason without the 20 percent penalty — you will owe income tax on non-medical withdrawals, but not the extra penalty.

This makes an HSA a powerful retirement tool. Many people use it as a supplemental retirement account, investing aggressively while working and then drawing on it in retirement for both medical and non-medical expenses (paying income tax on the non-medical portion). Some people even keep receipts for medical expenses they paid out of pocket during their working years and reimburse themselves from their HSA decades later, letting the money grow tax-free the whole time.

If you die before using all your HSA money, the account goes to your beneficiary. If your spouse is the beneficiary, they can treat it as their own HSA. If anyone else is the beneficiary, they owe income tax on the full balance, but not the 20 percent penalty.

Choosing between keeping cash and investing

You do not have to invest all your HSA money. Many people keep enough in cash to cover their expected medical expenses for the next year or two, then invest the rest. This gives you a safety net if you have a large medical bill, while still letting your long-term savings grow.

If you are young and healthy with a high-deductible health plan, you may not use much of your HSA each year. In that case, investing most of it makes sense — you have time to recover from market downturns and decades for compound growth. If you have chronic health conditions and use your HSA regularly, keeping more in cash reduces the risk that you will need to sell investments at a bad time.

Your provider's website usually shows you how much you spent on medical expenses in the past year, which can help you decide how much to keep liquid. A common rule of thumb is to keep one year of expected medical expenses in cash and invest the rest, but your situation may be different.

Frequently Asked Questions

Can I move money back from investments into my HSA cash account?

Yes. You can sell any investment in your HSA and move the proceeds back to cash at any time, usually within one to three business days. There is no tax or penalty for doing this — you are just moving money between accounts within your HSA. This is useful if you need cash for a medical expense or if you want to reduce your investment risk.

What if my HSA provider does not offer the investments I want?

Some providers offer a brokerage window that lets you buy almost any stock or mutual fund, even if it is not on their main menu. Ask your provider whether they have this feature. If they do not and their limited options do not work for you, you can open an HSA with a different provider that offers what you need — though you will need to check whether your employer's plan allows this.

Do I have to report HSA investments on my tax return?

You do not report the investments themselves on your tax return. You report HSA contributions and withdrawals on Form 8889, which you file with your tax return. If you withdraw money for non-medical reasons, you report the amount and the penalty on that form. Your HSA provider sends you a statement each year showing contributions and withdrawals.

Can I use HSA money to invest in real estate or a business?

No. HSA money can only be invested in securities (stocks, bonds, mutual funds) and cash. You cannot use it to buy real estate, start a business, or make other types of investments. Your provider's investment menu will only show you what is allowed.

What happens to my HSA investments if I change jobs?

Your HSA stays yours — it does not belong to your employer. When you leave a job, you can keep your HSA with the same provider, move it to a new provider, or roll it into your new employer's HSA plan if they offer one. Your investments stay invested during the transfer unless you choose to sell them. There is no tax or penalty for moving an HSA between providers.