Should You Invest the Money in Your Health Savings Account?
Yes, most people with an HSA should invest at least part of the balance if they plan to keep the account open for several years
An HSA sits in a bank or brokerage account that you control. The money does not have to stay in cash. If your HSA provider offers investment options—and most do—you can buy mutual funds, ETFs, or other securities with the balance, just as you would in a regular brokerage account. The tax-free growth on those investments stays tax-free as long as you withdraw it for may have access to medical expenses.
The practical question is whether you should. If you have a small balance, high medical expenses coming soon, or a low risk tolerance, keeping cash makes sense. But if you have several years before you expect to need the money, investing can meaningfully increase what you have available to spend on healthcare later—or to leave untouched and withdraw tax-free in retirement after age 65.
Reddit discussions on this topic often circle around the same tension: the HSA is a powerful retirement savings tool, but it requires discipline and planning. This guide walks through how investing an HSA actually works, what the tradeoffs are, and how to decide whether it fits your situation.
Key Takeaways
- HSA money can be invested in mutual funds and ETFs through most providers, and the growth remains tax-free if withdrawn for medical expenses.
- Investing makes sense if you have a balance you won't need for medical bills within the next three to five years and can tolerate short-term market swings.
- You typically need to move money from the HSA's cash account into an investment account within the same provider—a one-time setup step.
- After age 65, you can withdraw HSA money for any reason without penalty, though non-medical withdrawals are taxed as ordinary income.
- Keeping some cash in your HSA for immediate medical expenses while investing the rest is a common middle-ground approach.
How HSA Investment Options Work at Major Providers
Most HSA custodians—Fidelity, Lively, HealthEquity, Optum, and others—offer an investment platform within the account. You log in, move money from your cash balance into an investment subaccount, and then select funds or individual securities to buy. The process is similar to opening a brokerage account, except the money never leaves the HSA wrapper.
Some employers offer HSAs through smaller administrators that do not provide investment options at all—only a savings account. If that is your situation, you cannot invest through your current provider. A few people move their HSA balance to a provider that does offer investments, though this requires checking whether your employer plan allows it and whether there are any transfer fees.
The investment menu varies by provider. Fidelity and Lively typically offer hundreds of mutual funds and ETFs. Smaller administrators might offer a limited menu of target-date funds or a handful of index funds. Before you open an HSA or decide to invest, check what your provider actually offers—not all HSAs are equal on this front.
The Tax Advantage of Investing Inside an HSA
An HSA has three tax layers: contributions are tax-deductible (or pre-tax if through payroll), growth is tax-free, and withdrawals for may have access to medical expenses are tax-free. That triple tax benefit does not exist in a regular brokerage account or even in a 401(k). It is the reason financial planners often call the HSA the best retirement savings account available.
When you invest inside an HSA, you get the tax-free growth on top of the tax-free contribution. If you invest $3,000 and it grows to $5,000 over ten years, that $2,000 gain is never taxed—as long as you eventually use it for medical expenses or withdraw it after age 65. In a taxable brokerage account, you would owe capital gains tax on that $2,000.
This advantage compounds over decades. Someone who invests $4,000 per year in an HSA for 30 years, earning an average of 7 percent annually, would have roughly $580,000 at retirement. The same person investing in a taxable account would have significantly less after paying taxes on dividends and gains along the way. The HSA's tax shelter is the real reason to consider investing it.
When Investing Your HSA Makes Sense
Investing works best if you meet three conditions: you have a time horizon of at least three to five years, you have other money available to pay for medical expenses, and you can tolerate seeing your balance drop 20 or 30 percent in a bad market year without panic-selling.
If you are young, healthy, and your employer covers most of your medical costs, you may not touch your HSA for years. That is the ideal scenario for investing. You can buy a diversified portfolio of low-cost index funds and let them grow. Even if the market drops, you do not need the money, so you can wait for it to recover.
If you have chronic health conditions, high out-of-pocket costs, or you expect major medical bills in the next year or two, keep that portion in cash. You can still invest the rest. For example, if you have $8,000 in your HSA and expect $2,000 in medical expenses this year, invest $6,000 and leave $2,000 in the cash account.
If you are older and close to retirement, investing still makes sense—but you might shift toward more conservative investments like bonds or balanced funds rather than aggressive stock portfolios. The goal is to let the money grow without taking on risk you cannot afford to lose.
How to Set Up HSA Investing and Manage It
The first step is logging into your HSA provider's website or app and looking for an "invest" or "brokerage" tab. You will see your current cash balance and an option to transfer money into an investment account. Most providers let you move money in small increments or all at once.
Once the money is in the investment account, you select what to buy. A simple approach is to choose a single target-date fund that matches your expected retirement year—these funds automatically shift from stocks to bonds as you age. Another approach is to build a three-fund portfolio: a U.S. stock index fund, an international stock index fund, and a bond index fund, in proportions that match your risk tolerance.
After you invest, there is little to do. You do not need to rebalance frequently or trade actively. Many people set up automatic contributions from their paycheck (if their employer plan allows it) and then leave the investments alone for years. The key is not to sell during market downturns just because the balance dropped.
Keep records of what you spent on medical expenses, even if you do not withdraw the money immediately. You can withdraw HSA funds tax-free for may have access to expenses at any point in the future—even decades later—as long as you have receipts. Some people pay medical bills out of pocket and let their HSA investments grow, then withdraw the HSA money years later to reimburse themselves.
The Risk of Market Losses and How to Manage Them
The main downside of investing an HSA is that the balance can drop if the market falls. If you invested $10,000 and the stock market declined 30 percent, your HSA would be worth $7,000. If you needed that money for a medical emergency at that moment, you would have less than you expected.
This risk is manageable if you plan ahead. Keep enough cash in your HSA to cover your expected medical expenses for the next year or two. Invest only the money you are confident you will not need for at least three to five years. If you have an emergency fund outside your HSA, you can afford to take more investment risk inside it.
Another way to reduce risk is to invest gradually rather than all at once. If you have $20,000 to invest, you could move $5,000 per month into investments over four months. This spreads out your entry point and reduces the chance that you invest everything right before a market drop. This approach is called dollar-cost averaging.
HSA Investing in Retirement and Beyond Age 65
After you turn 65, the HSA rules change in your favor. You can withdraw money for any reason without penalty—not just medical expenses. Non-medical withdrawals are taxed as ordinary income, but there is no 20 percent penalty. This means your HSA becomes a second retirement account, similar to a traditional IRA, except with an even better tax history.
Many people use this feature strategically. They invest aggressively in their HSA during their working years, let it grow tax-free, and then in retirement they can withdraw it for medical expenses (tax-free) or for living expenses (taxed like regular income). Since healthcare costs are often high in retirement, a large HSA balance can cover many of those bills tax-free.
If you die before spending all your HSA money, your beneficiary inherits it. The tax treatment depends on who the beneficiary is—a spouse can treat it as their own HSA, while other beneficiaries owe income tax on the balance. This is another reason to keep good records and consider your HSA part of your overall estate plan.
Frequently Asked Questions
Can I lose money investing in an HSA?
Yes. If you invest in stocks or stock funds and the market drops, your HSA balance will drop too. This is why you should only invest money you do not expect to need for several years. If you need the money soon, keep it in cash.
What if I invest my HSA and then get sick and need the money?
You can withdraw the money at any time for may have access to medical expenses. If the investments have lost value, you withdraw at the lower amount. This is a real risk, which is why keeping some cash in your HSA is a good idea if you have health conditions that might require unexpected expenses.
Do I have to report HSA investments on my taxes?
No. The HSA itself is reported on your tax return using Form 8889, but the investments inside it are not reported separately. You only report withdrawals. If you withdraw for non-medical expenses after age 65, you report that as income, but the investments themselves do not trigger annual tax reporting.
Is it better to invest in an HSA or a 401(k)?
The HSA has a better tax treatment—contributions, growth, and withdrawals are all tax-free for medical expenses. A 401(k) only gets tax-free growth and tax-deductible contributions. If you have access to both, maximizing your HSA first, then using the 401(k) for additional retirement savings, is often the stronger strategy.
What happens to my HSA investments if I change jobs?
Your HSA stays yours. You can keep the investments in place, move the balance to a new provider, or cash out and move to a new HSA. There is no penalty for changing providers. Some people move to a provider with better investment options when they change jobs.