Skip to main content

How to Invest Money in Your Health Savings Account

You can invest HSA funds the same way you invest a retirement account, but only after you meet your deductible

A Health Savings Account lets you set aside money for medical expenses with a tax break. Once you have enough cash on hand to cover your deductible, you can invest the remainder in stocks, bonds, mutual funds, or other securities through your HSA provider. The investment earnings grow tax-free, and you pay no tax when you withdraw the money for may have access to medical costs.

The catch is timing: you must keep enough liquid cash in your HSA to pay for medical bills as they arrive. Most people invest only the surplus — the amount beyond what they expect to spend in the next year or two. If you invest money you actually need for an upcoming procedure or prescription, you will have to sell at the wrong time and may lock in a loss.

Your HSA provider controls what investments are available. Some offer a limited menu of mutual funds and index funds. Others offer a brokerage window that lets you buy individual stocks, ETFs, and bonds. A few offer nothing but a savings account, which means no investing option at all. Check your provider's website or call their customer service line to see what your account supports.

Key Takeaways

  • You can only invest HSA money after you have set aside enough cash to cover your annual deductible and expected medical costs.
  • Investment earnings in an HSA grow tax-free and are never taxed when withdrawn for may have access to medical expenses.
  • Your HSA provider determines which investments you can choose — some offer mutual funds only, while others provide a brokerage window for stocks and ETFs.
  • Selling investments to pay a medical bill may force you to realize losses, so invest only money you do not expect to need within one to two years.
  • You can hold investments across multiple HSA accounts if you have changed providers, though consolidating usually simplifies tracking and reduces fees.

How much cash to keep liquid before you start investing

The amount depends on your deductible and your medical spending patterns. If your deductible is $1,500 and you typically spend $200 a year on copays and prescriptions, keep $1,700 in cash. If you have a family plan with a $3,000 deductible and higher expected costs, keep $4,000 to $5,000 liquid.

A useful rule: keep 12 to 18 months of expected medical costs in cash, then invest the rest. This buffer protects you from having to sell investments at a loss when an unexpected bill arrives. If you are young and rarely see a doctor, you might keep only your deductible amount. If you have chronic conditions or take expensive medications, keep more.

Review this number once a year. If your HSA balance has grown well beyond what you need for near-term medical costs, move the surplus into investments. If you have had a year with higher medical spending, rebuild your cash cushion before investing again.

What types of investments HSA providers typically offer

Most HSA providers offer a tiered menu. At the basic level, you get a money market fund or savings account earning minimal interest. Step up, and you can choose from target-date funds, index funds tracking the S&P 500 or total market, and bond funds. Some providers also offer individual mutual funds focused on growth, value, or dividend stocks.

A smaller number of HSA providers offer a brokerage window, which means you can buy and sell individual stocks, ETFs, and bonds directly. This option costs more in fees — typically $1 to $3 per trade — but gives you full control over your holdings. Fidelity, Lively, and HealthEquity all offer brokerage windows on their HSA products.

Before opening an HSA or moving money to a new provider, ask what investments are available. Request their investment menu in writing or download it from their website. If a provider offers only a savings account, your money will earn almost nothing, and you will miss years of tax-free growth. If you already have an HSA with limited options, you can open a second HSA with a different provider that offers better investments, though you will need to track both accounts.

Tax advantages of investing inside an HSA versus a regular brokerage account

An HSA investment account has three tax layers that a regular brokerage account does not. First, the money you contribute reduces your taxable income — you get a deduction whether you itemize or take the standard deduction. Second, the investment earnings (dividends, capital gains, interest) are never taxed while the money sits in the account. Third, withdrawals for may have access to medical expenses are tax-free, including the earnings.

Compare this to a taxable brokerage account. You contribute with after-tax dollars, pay tax on dividends and interest each year, and pay capital gains tax when you sell. Over 20 years, the tax advantage of an HSA can be substantial. If you invest $3,500 a year and earn an average 7 percent return, the difference between an HSA and a taxable account could be $15,000 or more in taxes avoided.

This is why HSAs are sometimes called "stealth retirement accounts." If you do not need the money for medical expenses, you can leave it invested indefinitely. After age 65, you can withdraw HSA money for any reason without penalty — you will pay income tax on non-medical withdrawals, but not the 20 percent penalty that applies before 65. This makes an HSA a powerful long-term savings tool if you can afford to pay medical bills out of pocket and let the HSA grow.

How to move money between your cash and investment portions

Most HSA providers let you move money between a cash account and an investment account through their website or mobile app. Log in, find the "transfer" or "move funds" option, and specify how much to move and which direction. The transfer usually completes within one to three business days.

Some providers charge a fee for transfers — typically $0 to $5 per move. Others charge nothing. Check your provider's fee schedule before you open the account. If you plan to rebalance your investments quarterly or move money frequently, a provider with no transfer fees will save you money over time.

When you need to pay a medical bill, you can withdraw directly from your cash account without touching investments. If your cash balance is low, you can transfer money from your investment account to your cash account, wait for it to settle, and then withdraw. Some providers let you withdraw directly from investments, but this is less common and may trigger a sale at an unfavorable price.

Common mistakes to avoid when investing HSA money

The biggest mistake is investing money you need soon. If you invest your entire HSA balance and then face a $2,000 medical bill three months later, you will have to sell investments that may have dropped in value. You lock in the loss and miss the recovery. Keep your cash buffer first, then invest the surplus.

A second mistake is choosing investments that are too conservative. An HSA is a long-term account, especially if you are young and healthy. Keeping everything in a money market fund earning 4 or 5 percent means missing decades of stock market growth. If you will not need the money for 10 years or more, a diversified stock fund or target-date fund is usually a better choice than bonds or cash.

A third mistake is ignoring your HSA after you open it. Many people contribute, invest, and then never check the account again. Review it once a year to make sure your cash cushion is still appropriate, rebalance if your investments have drifted from your target allocation, and confirm that your provider's fees have not increased. Neglect can cost you thousands in missed growth or excess fees.

How HSA investments work if you change jobs or providers

Your HSA is yours to keep, even if you leave your job. The account and all its investments stay with you. If your new employer offers an HSA with a different provider, you have two choices: leave your old HSA where it is and open a new one with your new employer, or roll the old HSA into the new one.

Rolling over an HSA is straightforward. Contact your old provider and request a direct trustee-to-trustee transfer to your new provider. This move is not taxable and does not count against any contribution limits. The transfer takes one to two weeks. Your investments in the old account will be sold and the cash transferred, so you will briefly hold cash in the new account before you reinvest it.

If you have multiple HSAs from previous jobs, you can consolidate them into one account. This simplifies tracking, reduces the number of fee statements you receive, and often lowers your overall fees. However, you can only contribute to one HSA per year, so having multiple accounts does not increase your contribution limit — it just makes record-keeping harder.

Frequently Asked Questions

Can I lose money by investing my HSA?

Yes. If you invest in stocks or stock funds and the market drops, your HSA balance will fall. However, you only realize the loss if you sell while prices are down. If you leave the investments alone and the market recovers, you regain the value. This is why it is important to invest only money you do not need for several years.

What happens to my HSA investments if I switch to a health plan without an HSA?

Your HSA remains yours and your investments keep growing tax-free. You can no longer contribute new money, but you can still withdraw for may have access to medical expenses tax-free. You can also leave the money invested indefinitely and withdraw it after age 65 for any reason (paying income tax on non-medical withdrawals).

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

You can leave it in cash if you prefer. Some people do this because they use their HSA as a near-term medical fund and do not want market risk. However, cash earns very little interest, so you miss out on tax-free growth. Most financial advisors suggest investing at least the surplus after you cover your deductible.

Can I invest my HSA in real estate or cryptocurrency?

No. HSA investments are limited to securities and mutual funds offered by your provider. Real estate, cryptocurrency, and other alternative investments are not permitted. Your provider's investment menu will show exactly what is available.

How do I know if my HSA provider's investment fees are reasonable?

Look for the expense ratio on any mutual fund or ETF you are considering — this is the annual cost as a percentage of your balance. Expense ratios below 0.20 percent are considered low-cost. Also check whether your provider charges account maintenance fees, transfer fees, or trading fees. Providers like Fidelity and Lively typically charge less than $50 per year in total fees, while some smaller providers charge $100 or more.