Yes, you can invest HSA money, and most account holders should
A Health Savings Account (HSA) is not just a place to park cash for medical bills. Once your balance reaches a certain threshold—usually $1,000 to $2,500, depending on your provider—you can invest that money in stocks, bonds, mutual funds, or other securities, just like a brokerage account. The money grows tax-free, and when you withdraw it for may have access to medical expenses, you pay no taxes on the gains. This makes an HSA one of the most tax-efficient investment accounts available.
The catch is that you control whether to invest. Many HSA providers default to keeping your money in a cash account earning little to nothing. You have to actively choose to invest, and you have to understand what you're doing—because losses are real, and you can't recover them with a tax deduction.
Key Takeaways
- You can invest HSA funds once your balance exceeds your provider's minimum, typically $1,000 to $2,500.
- HSA investment gains are never taxed if you withdraw the money for may have access to medical expenses, making it more tax-efficient than a 401(k) or IRA.
- Your HSA provider controls which investments are available—some offer only a handful of mutual funds, while others offer full brokerage access.
- You can keep some money in cash for near-term medical expenses while investing the rest for long-term growth.
- If you withdraw invested money for non-medical reasons before age 65, you owe income tax plus a 20% penalty on the earnings.
How HSA investing works differently from regular savings
When you leave money in an HSA cash account, it typically earns 0% to 0.5% interest—barely keeping pace with inflation. When you invest that same money, you're betting on market returns, which historically average around 7% to 10% annually for a diversified stock portfolio, though with year-to-year swings.
The tax advantage is what makes HSA investing special. In a regular brokerage account, you owe capital gains tax on your profits. In a 401(k) or traditional IRA, you owe income tax when you withdraw. In an HSA, if you use the money for a may have access to medical expense—doctor visits, prescriptions, dental work, vision care, hearing aids, and many others—you owe zero tax on the gains. That's true whether you invested for one year or thirty.
After age 65, an HSA works like a traditional IRA: you can withdraw money for any reason without penalty, though non-medical withdrawals are taxed as income. This makes an HSA a stealth retirement account if you don't need the medical funds.
What investments your HSA provider actually offers
Not all HSA providers give you the same investment options. Some offer only a few mutual funds. Others partner with a brokerage and let you buy individual stocks, ETFs, and bonds. A few offer self-directed investing, where you can hold real estate or alternative investments, though this is rare and usually comes with higher fees.
Before you open an HSA or move money into investments, check your provider's investment menu. If your employer offers an HSA through a specific provider, you may have limited choices. If you're self-employed or buying an HSA on your own, you can shop for a provider with better investment options. Some well-known HSA providers with broader investment access include Fidelity, Lively, and HealthEquity, though availability varies by state and plan type.
Ask your provider directly: What is the minimum balance to start investing? What are the investment options? Are there transaction fees or expense ratios beyond what the mutual fund or ETF charges? A provider charging 0.5% annually on top of a fund's 0.10% expense ratio is eating into your returns.
The strategy: cash for now, investments for later
You don't have to choose between cash and investments. Many people keep a year or two of expected medical expenses in the cash portion—copays, prescriptions, dental work—and invest the rest. This way, you're not forced to sell investments at a loss when you need money for a medical bill.
If you're young and healthy with a high-deductible health plan, you may not touch your HSA for years. That's the ideal scenario for investing: a long time horizon means you can ride out market downturns and benefit from compound growth. If you're older or have chronic conditions requiring regular medical spending, keep more in cash.
You can also rebalance over time. Sell some investments to move money back into cash as you age or as your medical needs change. This is a normal part of managing an HSA.
Tax consequences if you withdraw invested money the wrong way
The 20% penalty applies only to earnings on non-medical withdrawals before age 65. If you withdraw $5,000 you invested and it grew to $6,000, you owe income tax plus a 20% penalty on the $1,000 gain—not on the full $6,000. The $5,000 principal comes out tax-free because you contributed it with pre-tax dollars.
After age 65, the penalty disappears, but the tax remains. You can withdraw $6,000 for any reason, but you owe income tax on the $1,000 gain. This is why an HSA becomes a useful retirement account: the tax is lower than the penalty, and you have flexibility.
Keep records of what you invested and when. If you withdraw money years later, your provider should report the cost basis and gains, but tracking it yourself prevents confusion and errors.
Risk and what happens if the market drops
Investing means accepting the possibility of loss. If you invest $10,000 in a stock fund and the market drops 20%, your balance is $8,000. If you need that money for a medical bill next month, you've locked in a loss. This is why the cash-for-now strategy matters: keep money you'll need soon in cash, and invest money you won't touch for years.
Market downturns are temporary if you have time to wait. Historically, the stock market has recovered from every major decline within a few years. If you're investing HSA money you won't need for five or more years, a downturn is usually an opportunity to buy more at lower prices, not a reason to panic.
Conservative investors can choose bond funds or balanced funds that mix stocks and bonds. These are less volatile than pure stock funds but also have lower long-term returns. Your choice depends on your age, health, and how much you can afford to lose without affecting your ability to pay medical bills.
How to get your free guide investing your HSA
Log into your HSA account and look for an "Invest" or "Investment" tab. Your provider will show you the available funds or brokerage options. Read the fund descriptions and expense ratios—lower is better. If you're new to investing, a target-date fund (which automatically becomes more conservative as you age) or a simple total stock market index fund is a reasonable starting point.
You can usually move money from your cash balance into investments with a few clicks. Some providers let you set up automatic transfers—for example, moving any balance over $2,000 into investments each month. This is a simple way to invest without thinking about it.
If your provider's investment options are poor or expensive, you may be able to roll your HSA to a different provider. Check whether your current employer's plan allows rollovers, and whether the new provider accepts incoming rollovers. This process takes a few weeks but can be worth it if you're managing a large HSA balance.
Frequently Asked Questions
What counts as a may have access to medical expense for HSA withdrawals?
may have access to expenses include doctor visits, hospital stays, prescription drugs, dental and vision care, hearing aids, and many over-the-counter items like bandages and pain relievers. Mental health treatment, physical therapy, and medical equipment like crutches or wheelchairs also count. The IRS publishes a full list, but the general rule is: if it's primarily for diagnosing, treating, or preventing a medical condition, it qualifies.
Can I invest my HSA if my employer set it up?
Usually yes, but it depends on your employer's plan and provider. Some employer plans restrict investing until your balance reaches a certain level. Check with your HR department or your HSA provider's website. If your employer's plan doesn't allow investing, you may be able to roll the money to an individual HSA with a provider that does.
What happens to my HSA investments if I change jobs?
Your HSA stays yours. You own it, not your employer. When you leave a job, you can keep the HSA with the same provider, roll it to a new provider, or roll it to an IRA if you prefer. Your investments stay invested unless you sell them. There's no forced withdrawal or tax penalty just for changing jobs.
Is an HSA better than a 401(k) for investing?
For medical expenses, yes—HSA gains are never taxed if used for may have access to medical costs, while 401(k) withdrawals are always taxed as income. But you can only contribute to an HSA if you have a high-deductible health plan, and contribution limits are lower than 401(k) limits. Many people should do both: max out an HSA first because of the tax advantage, then contribute to a 401(k).
Can I take my HSA money out to invest in real estate or cryptocurrency?
Most HSA providers don't allow this. Standard HSA accounts are limited to mutual funds, stocks, bonds, and ETFs. A few providers offer self-directed HSAs that allow alternative investments, but these are rare, expensive, and come with strict rules. For most people, the investment options your provider offers are the only ones available.