Is Maxing Out and Investing Your HSA Worth It?
The triple tax advantage, how to actually invest the balance instead of leaving it in cash, and the beneficiary decision that changes everything.
Is an HSA worth maxing out?
For most people with access to one, yes — an HSA is worth maxing out and investing, before or alongside a Roth IRA. It's the only account with a triple tax advantage: pre-tax (or payroll-tax-free) contributions, tax-free growth, and tax-free withdrawals for medical expenses, at any age, with no deadline to spend the money.
- The triple tax break has no equivalent in a 401(k), traditional IRA, or Roth IRA — each of those gets tax-free treatment on only two of the three stages (in, growth, out).
- Most people leave HSA money sitting in cash earning close to nothing, instead of investing it — the single biggest way people underuse the account.
- After age 65, non-medical withdrawals lose the 20% penalty and the account behaves like a traditional IRA, so worst case you still get IRA-like treatment.
- The catch: money you spend now doesn't compound later. Whether to invest or spend down depends on whether you can afford to pay current medical costs out of pocket.
How it stacks up against retirement accounts
| Stage | 401(k) / Traditional IRA | Roth IRA | HSA |
|---|---|---|---|
| Contribution | Pre-tax | After-tax | Pre-tax (and FICA-free via payroll) |
| Growth | Tax-deferred | Tax-free | Tax-free |
| Qualified withdrawal | Taxed as income | Tax-free | Tax-free (medical) |
| Non-qualified withdrawal before 65 | 10% penalty + tax | Earnings taxed + 10% | 20% penalty + tax |
| After age 65 / 59½ | Taxed as income | Tax-free | Taxed as income (non-medical) or tax-free (medical) |
How to actually invest your HSA
Every HSA custodian offers a default cash account — this is what you're contributing to unless you actively opt into investing. Cash typically earns close to nothing, sometimes below inflation, which quietly erodes the account's value over time.
The two shapes investing takes
- Investment menu through your custodian. Most large HSA providers (Fidelity, HealthEquity, HSA Bank, Optum) offer a curated set of mutual funds or ETFs once your cash balance clears a minimum threshold — often $1,000 to $2,000. This is the path of least resistance if your employer-chosen custodian has decent fund options and low fees.
- Self-directed brokerage HSA. A smaller number of custodians (Fidelity is the most commonly cited) let you invest the full balance in essentially any stock, ETF, or fund with no required cash minimum, the same way you would in a taxable brokerage account. This suits people who already manage their own portfolio and don't want to pay a menu's built-in fund fees.
The "shoebox strategy"
Because there's no deadline to reimburse yourself for a qualified medical expense, some people deliberately pay current medical bills out of pocket, save every receipt, and let the HSA balance grow untouched for years or decades — then reimburse themselves tax-free at any point in the future, even in retirement, for expenses incurred any year after the HSA was opened. This turns the HSA into a stealth retirement account while preserving the option to access that money tax-free whenever it's actually needed.
What happens to your HSA when you die
What happens to your HSA when you die depends entirely on who you name as beneficiary — and the difference is enormous.
Spouse named as beneficiary
The account simply becomes your spouse's HSA. They keep every tax advantage — no immediate tax, no forced distribution, full ability to keep investing and to make future tax-free withdrawals for qualified medical expenses (their own, not just yours). This is by far the cleanest outcome, and it's a five-minute beneficiary-form update if you haven't confirmed it recently.
Anyone else named as beneficiary
The account stops being an HSA on the date of death. The full fair market value becomes taxable ordinary income to the beneficiary in the year you died — there's no ability to stretch it over time or roll it into their own HSA. There's no 20% penalty (it never applies at death), just ordinary income tax, which can still push a large balance into a much higher bracket for that year.
One partial offset: a non-spouse beneficiary can reduce the taxable amount by paying any of your outstanding qualified medical expenses within one year of your death.
No beneficiary named / estate as beneficiary
This is the worst outcome. The fair market value lands on your own final tax return, and the funds may go through probate before reaching your heirs.
Common questions
Should I max out my HSA before or after my 401(k) match?
Capture the full employer 401(k) match first — it's an immediate, guaranteed return no HSA can beat. After that, many advisors put HSA contributions ahead of additional 401(k) or Roth IRA contributions specifically because of the triple tax advantage, then return to maxing the 401(k) or IRA. This is a general ordering, not individual advice — your emergency fund status and near-term medical costs matter too.
Can I invest HSA money the same way I invest a 401(k)?
Broadly yes — most custodians offer mutual funds or ETFs similar in spirit to a 401(k) menu, and some offer full self-directed brokerage access. The mechanics (buying, selling, rebalancing) work the same way. The key difference is timing flexibility: an HSA has no required minimum distributions at any age, unlike a traditional 401(k) or IRA.
What's a self-directed HSA?
A self-directed HSA lets you invest the account balance in individual stocks, ETFs, and a broad range of securities — not just a preset fund menu — the same way a self-directed brokerage account works. It appeals to people who already manage their own investments and want to apply the same strategy inside the HSA's tax wrapper rather than accept a custodian's limited fund list.
A research-first finance team. No lead selling, no lender rankings, no affiliate-pulled recommendations. Every guide pairs primary sources (IRS, CFPB, Federal Reserve, CRA) with the free calculators you can run yourself.
Run the numbers yourself
Every tool is free, private, and works offline — no sign-up required.
Frequently asked questions
Get the one-page FIRE cheat sheet
The formulas, withdrawal-rate table, and savings-rate timeline from our guides — free, one email, no spam.
Unsubscribe anytime. We never share your email.
Keep reading
How to Start Investing in 2026: A Beginner's Playbook
A math-first 2026 playbook for beginner investors: account order, Roth vs Traditional by bracket, three-fund portfolio, DCA vs lump sum, and 7 costly mistakes.
$10,000 Invested in the S&P 500: What It Becomes in 10, 20, and 30 Years
At the S&P 500's ~10% historical average return, $10,000 grows to about $25,900 in 10 years, $67,300 in 20, and $174,500 in 30. See nominal vs. inflation-adjusted results.
How Much Interest Does $10,000 Earn in a CD? (2026 Rates)
A $10,000 CD at 4.50% APY earns $450 in one year. Over 5 years at 4.25%, that's $2,314 in compound interest. Full earnings table by term and rate.
How to Get a Mortgage in 2026: The Complete Guide
A data-driven 2026 mortgage guide: rates, loan types, credit and DTI rules, closing costs, rate locks, the 30-day timeline, and when to refinance or recast.