You can invest HSA funds the same way you invest other money, but the account rules are stricter than a regular brokerage account

An HSA (Health Savings Account) holds money you set aside for medical expenses, and most HSAs let you invest that money in stocks, bonds, and mutual funds instead of leaving it in cash. The mechanics work like any brokerage account — you pick investments, buy them, and they grow or shrink based on market performance. The difference is that you can only withdraw the money tax-free if you spend it on medical costs. If you withdraw it for other reasons before age 65, you pay income tax plus a 20 percent penalty on the earnings.

Not every HSA plan offers investment options. Some are cash-only accounts run by banks or insurance companies. If your plan does allow investing, the HSA custodian (the bank or financial company that holds your account) will give you a menu of funds to choose from — usually mutual funds, index funds, or target-date funds. You cannot invest in individual stocks, real estate, or cryptocurrencies through an HSA.

The decision to invest depends on how long you plan to keep the money in the account. If you expect to spend it on medical bills within a year or two, keeping it in cash makes sense. If you have years before you need it, investing can grow your balance over time.

Key Takeaways

  • Most HSA custodians require you to keep a minimum cash balance (often $1,000 to $2,500) before you can invest the rest.
  • You can only invest in funds your HSA custodian offers, not in individual stocks or other securities.
  • Withdrawals for non-medical expenses before age 65 are taxed as income plus a 20 percent penalty on earnings only.
  • HSA investments grow tax-free as long as you use withdrawals for medical costs, making long-term investing more valuable than short-term holding.

How to start investing through your HSA custodian

Log into your HSA account online or call the custodian's customer service line. Most custodians have a section labeled "Investments," "Investment Center," or "Brokerage" in the account dashboard. You will see a list of available funds with names like "Vanguard Total Stock Market Index" or "Fidelity Growth Fund." Each fund has a fact sheet showing its expense ratio (the annual fee), historical performance, and what it invests in.

Choose the funds you want to buy and enter the dollar amount or number of shares. The custodian will deduct that money from your cash balance and purchase the fund. Some custodians charge a transaction fee per trade (typically $5 to $10); others offer commission-free trading. Check your account documents or call to confirm whether your plan charges fees.

Once you own the funds, you do not have to do anything. They sit in your account and grow or decline with the market. You can sell them and move the money back to cash at any time, though some custodians charge a fee for selling as well.

The minimum cash balance requirement

Most HSA custodians require you to keep a certain amount in cash before you can invest the rest. This minimum is usually between $1,000 and $2,500, though it varies by custodian. The reason is practical: the custodian wants to make sure you have money available to pay medical bills without having to sell investments first.

If your HSA balance is $3,000 and the minimum is $2,000, you can invest only $1,000. As you add more money through payroll deductions or personal contributions, you can invest the amount above the minimum. If you withdraw money for medical expenses and your balance drops below the minimum, your investments may be automatically sold to bring your cash balance back up to the required level.

Check your HSA plan documents or custodian website to find your specific minimum. Some custodians let you lower the minimum if you call and request it, though this is not may provide.

What funds are available and how to choose

HSA custodians typically offer a small menu of mutual funds and index funds. Common options include stock index funds (which track the overall stock market), bond funds, target-date funds (which automatically shift from stocks to bonds as you approach a target year), and money market funds (which are very stable but earn little). A few custodians offer more choices, but most limit you to 10 to 30 funds.

If you are young and do not plan to use the HSA for medical expenses for many years, a stock-heavy or all-stock portfolio can grow faster over time. If you are closer to retirement or expect to need the money within five years, a mix of stocks and bonds or a bond-focused approach reduces the risk of losing money right when you need it.

Look at the expense ratio of each fund — this is the annual cost as a percentage of your investment. A fund with a 0.05 percent expense ratio costs $5 per year on a $10,000 investment, while a 1 percent ratio costs $100. Over decades, lower fees compound into real savings. Index funds typically have lower expense ratios than actively managed funds.

Tax treatment of HSA investments and withdrawals

Money you invest in an HSA grows tax-free. You do not pay capital gains tax, dividend tax, or any other tax on the earnings while the money sits in the account. This is different from a regular brokerage account, where you owe tax on dividends and capital gains each year.

When you withdraw money, the tax treatment depends on what you spend it on. If you withdraw money to pay for a medical expense — a doctor visit, prescription, dental work, or other may have access to medical cost — the withdrawal is tax-free, including all the earnings. If you withdraw money for any other reason before age 65, you pay income tax on the earnings plus a 20 percent penalty on the earnings only. The original contributions you made are never taxed.

After age 65, you can withdraw HSA money for any reason without the 20 percent penalty. You still owe income tax on the earnings, but the penalty goes away. This makes an HSA a useful retirement savings tool if you do not spend all the medical money during your working years.

Moving your HSA to a different custodian

If your current HSA custodian has high fees or a limited fund menu, you can move your account to a different custodian. This is called a trustee-to-trustee transfer. You contact the new custodian, fill out a transfer form, and they handle moving the money directly from your old account to your new one. No tax is owed, and the transfer usually takes one to two weeks.

During the transfer, your investments may be sold and the proceeds moved as cash, or the new custodian may accept the investments as-is if they offer the same funds. Ask the new custodian what happens to your current holdings before you start the transfer.

You can do a trustee-to-trustee transfer once per year without limit. Some people move their HSA every few years to chase better custodians or lower fees. Keep records of the transfer confirmation in case you need to show the IRS that the move was a legitimate transfer, not a withdrawal.

Common mistakes to avoid

Do not withdraw HSA money for non-medical expenses and assume you can pay it back later. Once you withdraw it, it is gone from the account. If you later try to reimburse yourself from the HSA, the IRS treats that as a second withdrawal, and you owe tax and penalty on both.

Do not invest money you know you will need within a year. Market downturns happen, and if you need to sell your investments when the market is down, you lock in losses. Keep money you plan to spend soon in the cash portion of your account.

Do not ignore your investment choices. If you set up investments and never look at them, you may end up with a portfolio that no longer matches your timeline or risk tolerance. Review your investments once a year, especially if your life circumstances change.

Frequently Asked Questions

Can I invest my HSA if I have a high-deductible health plan?

You must have a high-deductible health plan to open an HSA, but not all HSA custodians offer investment options. Check with your plan administrator or custodian to see if investing is available. If your current custodian does not offer it, you can transfer to one that does.

What happens to my investments if I change jobs?

Your HSA stays yours and moves with you. Your investments remain in place unless you decide to sell them. If your new employer offers an HSA through a different custodian, you can leave your old account as-is or transfer it to the new custodian. You are never forced to move your HSA.

Can I lose money investing my HSA?

Yes. If you invest in stock funds and the market drops, your HSA balance can fall. This is why keeping a cash cushion for near-term medical expenses matters. If you need the money and the market is down, you may have to sell at a loss.

Do I have to invest my HSA, or can I leave it in cash?

Leaving it in cash is always an option. Many people keep their HSA in cash because they use it to pay medical bills throughout the year. Investing makes more sense if you have years before you expect to need the money.

What medical expenses count as tax-free HSA withdrawals?

may have access to medical expenses include doctor visits, hospital stays, prescriptions, dental work, vision care, mental health treatment, and many other health-related costs. Over-the-counter medications count only if you have a prescription. Check IRS Publication 502 for a full list, or ask your custodian if a specific expense qualifies before you withdraw.