An HSA can function as an investment account, but only after you meet a spending threshold

A Health Savings Account is both a savings account and an investment account, depending on your balance. Once you accumulate enough money to cover your immediate medical expenses — typically $2,000 to $3,000 — you can invest the remainder in stocks, bonds, mutual funds, or other securities through your HSA provider. The money you invest grows tax-free, and you pay no taxes when you withdraw it for medical costs.

The catch is that most HSA providers require you to keep a minimum balance in cash (usually $1,000 to $2,500) before you can invest anything. Until you reach that threshold, your HSA functions as a regular savings account, often earning little to no interest. Once you cross it, you can move the excess into investments while keeping the minimum in cash for immediate medical bills.

Not all HSA providers offer investment options. Some are basic savings-only accounts run by banks or insurance companies. If investing matters to you, you need to choose a provider that offers a brokerage platform — and you may need to open an HSA with a different provider than the one attached to your health insurance plan.

Key Takeaways

  • You can invest HSA funds in stocks, bonds, and mutual funds once your cash balance exceeds your provider's minimum threshold, usually $1,000 to $2,500.
  • Investment growth in an HSA is tax-free, and withdrawals for medical expenses are never taxed, making it a powerful long-term savings tool.
  • Not every HSA provider offers investment options, so you may need to switch providers if your current one does not have a brokerage platform.
  • You must keep a minimum cash balance in your HSA at all times to cover immediate medical expenses before you can invest the rest.
  • If you withdraw invested funds for non-medical reasons before age 65, you owe income tax plus a 20 percent penalty on the earnings.

How the investment threshold works in practice

Your HSA provider sets a minimum cash balance requirement — this is money that must stay liquid and accessible. Common minimums are $1,000, $1,500, or $2,500. You cannot invest anything until your total balance exceeds this amount by at least the minimum itself. If your minimum is $1,000 and you have $2,500 in your account, you can invest $1,500. The $1,000 stays in cash.

This structure protects you: medical bills can arrive without warning, and you need cash on hand to pay them immediately. Your provider does not want you to be forced to sell investments at a loss because you had an unexpected doctor visit. Once you invest money, it may take several days to sell and withdraw, so the cash buffer matters.

Some providers let you lower the minimum after you have built a larger balance and demonstrated you understand the risk. Others keep it fixed. Check your provider's rules before you open an account if investing is important to your plan.

Tax advantages of investing through an HSA

An HSA offers three tax breaks that regular investment accounts do not. Money you contribute is tax-deductible (or pre-tax if your employer contributes). Investment earnings — dividends, capital gains, interest — are never taxed while the money sits in the account. And when you withdraw funds to pay for medical expenses, you owe no tax on the withdrawal, including the earnings.

This triple tax advantage makes an HSA more powerful than a 401(k) or traditional IRA for medical expenses specifically. A 401(k) taxes you on withdrawals. A traditional IRA taxes you on withdrawals. An HSA taxes you on neither the contribution, the growth, nor the withdrawal — as long as you use the money for medical costs.

After age 65, you can withdraw HSA funds for any reason without penalty, though non-medical withdrawals are taxed as regular income. This makes an HSA a backup retirement account if you do not spend all your medical savings by then.

What you can and cannot invest HSA money in

HSA investment options depend entirely on your provider. Most large HSA providers offer a menu of mutual funds, index funds, and exchange-traded funds (ETFs). Some offer individual stocks and bonds. A few offer self-directed investing, which means you can invest in real estate, private businesses, or other alternative assets — though this is rare and comes with higher fees.

You cannot invest HSA money in life insurance, collectibles, or certain other assets. The IRS maintains a list of prohibited investments, and your provider will not let you buy them through your HSA. If you are unsure whether something is allowed, ask your provider before you try.

The investment menu available to you depends on which provider you choose. If you have an HSA through your employer's insurance plan, you may be limited to that provider's offerings. If you open an individual HSA, you can shop around for a provider with investments that match your goals.

Switching HSA providers to access investments

If your current HSA does not offer investments, you can move your money to a different provider. This is called a trustee-to-trustee transfer, and it is tax-free. You do not withdraw the money yourself; the old provider sends it directly to the new one. The process usually takes one to two weeks.

You can do a trustee-to-trustee transfer as often as you want, but most people do it once and stay put. Switching providers means updating your employer's payroll if they contribute to your HSA, and it means learning a new platform. However, if your current provider charges high fees or offers poor investment options, switching is worth the hassle.

Before you switch, compare the new provider's fees, investment options, and minimum balance requirements. Some providers charge annual account fees, per-transaction fees, or investment management fees. Over time, high fees can eat into your returns, so factor them into your decision.

Risk and penalties if you withdraw invested funds early

When you invest HSA money, you accept market risk. If you invest in stocks and the market drops, your balance drops with it. If you need to withdraw that money while it is down, you lock in the loss. This is why the cash minimum matters: it protects you from being forced to sell investments at a bad time.

If you withdraw invested HSA funds for a non-medical reason before age 65, you owe income tax on the entire withdrawal plus a 20 percent penalty on the earnings portion. If you withdraw $5,000 and $1,000 of that is earnings, you pay income tax on all $5,000 and a 20 percent penalty ($200) on the $1,000 in earnings. This is a steep cost, so only invest money you are confident you will not need for medical expenses.

Medical expenses are broadly defined and include doctor visits, prescriptions, dental work, vision care, mental health treatment, and many other costs. They do not include health insurance premiums (with limited exceptions) or cosmetic procedures. If you are unsure whether an expense counts, check the IRS rules or ask your provider.

HSA investment strategies for different time horizons

If you are young and healthy with a high deductible, you may not need to withdraw from your HSA for years. In that case, you can invest aggressively — mostly stocks — because you have time to recover from market downturns. The longer your time horizon, the more risk you can afford to take.

If you are older or expect to use your HSA for medical expenses within the next few years, keep more money in cash and invest only what you are confident you will not need soon. A balanced mix of stocks and bonds is common for people in this situation.

Some people use their HSA as a retirement account and never touch it during their working years, instead paying medical expenses out of pocket. This strategy maximizes the tax-free growth and leaves the HSA intact for medical expenses in retirement, when costs typically rise. It requires discipline and the ability to afford medical bills without the HSA, but it can result in a much larger nest egg.

Frequently Asked Questions

Can I invest my entire HSA balance, or do I have to keep some in cash?

No, you must keep your provider's minimum balance in cash at all times. This is typically $1,000 to $2,500. You can only invest the amount above that minimum. The cash buffer ensures you can pay medical bills immediately without having to sell investments.

What happens to my investments if I change jobs and switch health insurance?

Your HSA stays yours regardless of your job or insurance plan. Your investments stay invested, and you keep the account open. You can continue to invest and withdraw from it, and your employer's new plan does not have to use the same HSA provider. You may choose to stay with your current provider or switch.

Do I have to report HSA investments on my taxes?

You report HSA contributions on your tax return using Form 8889, but you do not report individual investments or their earnings. When you withdraw money for medical expenses, that withdrawal is not taxable. If you withdraw for non-medical reasons, you report the withdrawal and the penalty on your return.

Can I lose money investing through an HSA?

Yes. If you invest in stocks or bonds and the market declines, your HSA balance can drop. This is why keeping a cash minimum is important — it protects you from being forced to sell investments at a loss to pay a medical bill. Only invest money you do not expect to need for several years.

Is an HSA a better investment account than a regular brokerage account?

For medical expenses, yes — the tax-free growth and tax-free withdrawals are unmatched. For non-medical investing, a regular brokerage account or retirement account like a 401(k) or Roth IRA may be better because you have more flexibility. An HSA is best used for its intended purpose: saving for medical costs.