How to Use a Health Savings Account as an Investment Tool
A Health Savings Account can hold investments, not just cash, and grow tax-free for medical expenses decades away
A Health Savings Account (HSA) is a savings account tied to a high-deductible health insurance plan that lets you set aside pre-tax money for medical costs. Most people use it like a checking account — deposit money, pay a doctor bill, withdraw. But an HSA can also function as an investment account. You can invest the balance in stocks, bonds, or mutual funds inside the account, and any growth is tax-free as long as you withdraw it for may have access to medical expenses. This makes it one of the few accounts where you get a tax deduction going in, tax-free growth while the money sits, and tax-free withdrawals coming out — but only if you follow the rules.
The investment angle matters because most people never max out their HSA contributions, and the money they do contribute often sits unused for years. If you are healthy and your employer covers most routine care, your HSA balance can grow substantially. Investing that balance instead of leaving it in cash means the account compounds over decades, turning a modest annual contribution into a significant pool of tax-free medical funds — or a backup retirement account after age 65.
Key Takeaways
- You can only open an HSA if you are enrolled in a high-deductible health plan (HDHP), and contribution limits vary by year and whether you have individual or family coverage.
- Money invested in an HSA grows tax-free and can be withdrawn tax-free for may have access to medical expenses, including insurance premiums, deductibles, copays, and some over-the-counter items.
- If you withdraw HSA money for non-medical expenses before age 65, you owe income tax plus a 20 percent penalty; after 65, you owe only income tax on non-medical withdrawals.
- An HSA is portable — it stays with you even if you change jobs or insurance plans — and unused balances roll over indefinitely with no "use it or lose it" important date.
- Investment options inside an HSA depend on your account provider and may include mutual funds, stocks, or bonds, but some providers limit you to cash or money market funds until you reach a minimum balance.
Who can open an HSA and how much you can contribute
To open an HSA, you must be enrolled in a high-deductible health plan (HDHP) — a plan with a deductible of at least $1,600 for individual coverage or $3,200 for family coverage in 2024. You cannot have other health coverage at the same time, with narrow exceptions for accident, disability, dental, vision, and long-term care insurance. You also cannot be claimed as a dependent on someone else's tax return, and you cannot be enrolled in Medicare.
Contribution limits change each year. For 2024, you can contribute up to $4,150 if you have individual coverage or $8,300 if you have family coverage. If you are 55 or older, you can add an extra $1,000 per year as a catch-up contribution. These limits are set by the IRS and may increase in future years. You contribute through payroll deduction (if your employer offers it), a direct deposit to the HSA, or a check to the account provider. Contributions reduce your taxable income for that year.
How HSA investments work and what you can invest in
When you open an HSA, the money typically sits in a cash account earning little or no interest. To invest it, you must move money from the cash portion into investment options offered by your account provider. Common options include target-date funds, index funds, stock mutual funds, bond funds, and sometimes individual stocks or ETFs. The specific menu depends on your provider — some offer dozens of choices, while others limit you to a handful of funds until you reach a minimum balance (often $1,000 to $2,500).
Any gains from these investments — dividends, interest, capital appreciation — are not taxed inside the HSA. If you own a mutual fund that gains 8 percent in a year, you owe no tax on that gain as long as the money stays in the HSA. This tax-free growth compounds over decades, which is why an HSA can become a powerful long-term investment tool if you do not need to withdraw the money for medical expenses in the near term.
The trade-off is that you cannot touch the invested money without selling it first, and selling takes a few business days. If you need to pay a medical bill when ready, you may need to keep some cash in the HSA or use another source of funds temporarily. Many HSA providers let you keep a small cash reserve ($500 to $1,000) while investing the rest, so you have both liquidity and growth potential.
Tax benefits: the three-layer advantage
An HSA offers three layers of tax benefit that few other accounts match. First, contributions are tax-deductible — money you put in reduces your taxable income for that year, just like a traditional 401(k) or IRA. If you contribute $3,000 and earn $60,000, your taxable income drops to $57,000. Second, growth is tax-free — dividends and capital gains inside the HSA are never taxed, regardless of how much they grow. Third, withdrawals for may have access to medical expenses are tax-free — you take the money out and owe no tax on the original contribution or any growth.
This three-layer structure is rare. A traditional IRA gives you a deduction and tax-free growth, but withdrawals are taxed. A Roth IRA gives you tax-free growth and withdrawals, but contributions are not deductible. An HSA gives you all three, but only if you use the money for medical expenses. That constraint is the catch, but it is also what makes the HSA so valuable for long-term medical planning.
What counts as a may have access to medical expense
may have access to medical expenses include insurance premiums (for Medicare, long-term care, or COBRA continuation coverage), deductibles, copays, coinsurance, and out-of-pocket costs for doctor visits, hospital stays, surgery, and prescription drugs. They also include some over-the-counter items: pain relievers, cold medicine, allergy medication, antacids, and first-aid supplies all count if you have a prescription or a doctor's note saying you need them. Dental work, vision care, hearing aids, and mental health treatment count. Physical therapy, acupuncture, and chiropractic care count if a doctor prescribes them.
Items that do not count include cosmetic surgery, gym memberships, vitamins (unless prescribed by a doctor), and most over-the-counter items without a prescription. The IRS publishes a detailed list on its website, and your HSA provider can tell you whether a specific expense qualifies before you withdraw. One strategy is to pay medical expenses out of pocket and keep receipts, then reimburse yourself from the HSA years later — this lets your HSA balance grow longer while you cover when ready costs from other funds.
Penalties and rules for non-medical withdrawals
If you withdraw HSA money for something other than a may have access to medical expense before age 65, you owe income tax on the amount withdrawn plus a 20 percent penalty. If you withdraw $5,000 for a vacation, you owe income tax on $5,000 plus $1,000 in penalties. This makes early non-medical withdrawals expensive and is why an HSA is not a good place for money you might need for non-medical reasons.
After age 65, the penalty goes away. You can withdraw money for any reason without the 20 percent penalty, though you still owe income tax on non-medical withdrawals. This makes an HSA function like a traditional IRA after 65 — useful as a backup retirement account if you have not spent the balance on medical expenses by then. There is no time limit on when you must use the money. You can let it sit and grow for 20 or 30 years, then withdraw it for medical expenses in retirement.
HSA portability and what happens when you change jobs
An HSA belongs to you, not your employer. If you leave your job, the account stays with you. You keep the money, keep the investments, and keep contributing if you remain enrolled in an HDHP (whether through a new employer, a spouse's plan, or the individual market). This portability is a major advantage over a Flexible Spending Account (FSA), which is tied to your employer and has a "use it or lose it" rule.
You can also change HSA providers if you want different investment options or lower fees. Some providers charge monthly maintenance fees ($2 to $5), investment fees, or transaction fees. If your current provider is expensive, you can roll the balance to another provider without tax consequences, similar to an IRA rollover. Keep records of the rollover to show the IRS if asked. This flexibility means you are not locked into a provider's limited investment menu or high fees for the life of the account.
HSA vs. other savings and investment accounts
An HSA is not the only way to save for medical expenses, but it is the most tax-efficient if you are may be able to access. A Flexible Spending Account (FSA) also lets you set aside pre-tax money for medical expenses, but it has a "use it or lose it" rule — unused money at the end of the year is forfeited (with a small carryover option in some plans). An FSA is also tied to your employer and ends when you leave the job. An HSA has no use-it-or-lose-it rule and is portable.
A regular savings account or taxable brokerage account lets you invest money, but you pay taxes on dividends and capital gains each year. A Roth IRA lets you invest tax-free, but it is meant for retirement and has withdrawal restrictions. An HSA is the only account that combines a tax deduction, tax-free growth, and tax-free withdrawals for a specific purpose — and that purpose (medical expenses) is broad enough that most people will use the money eventually. For someone in a high tax bracket with a high-deductible plan and good health, an HSA can be a more powerful wealth-building tool than a 401(k) or IRA.
Frequently Asked Questions
Can I invest my HSA if I have not met my deductible yet?
Yes. The HSA balance and your insurance deductible are separate. You can invest money in the HSA even if you have not paid your deductible, and you can withdraw it anytime for a may have access to medical expense. Some people keep a small cash reserve in the HSA to cover when ready medical bills and invest the rest.
What happens to my HSA if I switch to a non-HDHP plan?
You cannot make new contributions once you leave the HDHP, but the money already in the account stays there and can still grow. You can withdraw it for may have access to medical expenses at any time. If you rejoin an HDHP later, you can resume contributions.
Can I use my HSA to pay for my spouse's medical expenses?
Yes, as long as your spouse is your dependent for tax purposes. You can also use it for any dependent child, parent, or other family member claimed on your tax return, regardless of whether they are on your health insurance plan.
Do I have to report HSA withdrawals on my tax return?
If all your withdrawals are for may have access to medical expenses, you do not report them. Your HSA provider sends you a Form 1099-SA showing total withdrawals, and you keep receipts to prove they were may have access to. If you make a non-medical withdrawal, you report it on Form 8889 and pay tax plus the penalty.
What is the best investment strategy for an HSA?
That depends on when you expect to use the money. If you need it within a few years for known medical expenses, keep it in cash or a stable value fund. If you will not touch it for 10 or more years, a diversified portfolio of stock index funds can grow substantially. Many people treat an HSA as a long-term investment account and pay medical expenses out of pocket, saving receipts to reimburse themselves later.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.