We Are Calculator logoWe Are Calc.
We Are Calculator logoWe Are Calc.

66+ free financial calculators for mortgages, retirement, taxes, investing and more. Your numbers stay on your device — we never sell your data.

Calculators

  • Personal Finance
  • Loan & Debt
  • Mortgage & Housing
  • Savings & Investing
  • Retirement
  • Business Finance

Popular Tools

  • Paycheck by State
  • Income Tax by State
  • House Affordability
  • Mortgage Affordability
  • 2026 Affordability Index
  • Guides

Company

  • About Us
  • Contact
  • Editorial Policy
  • Sitemap

Legal

  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Affiliate Disclosure
© 2026 We Are Calculator. All rights reserved.Designed by Weblta.com
HomeGuidesIs Maxing Out and Investing Your HSA Worth It?
Investing9 min readAugust 1, 2026

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.

WC
We Are Calculator Editorial
Editorial standards · Corrections
Share

In this guide

  1. 1Is an HSA worth maxing out?
  2. 2How it stacks up against retirement accounts
  3. 3How to actually invest your HSA
  4. 4What happens to your HSA when you die
  5. 5Common questions

Is an HSA worth maxing out?

The quick answer

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.

Key takeaways
  • 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

Stage401(k) / Traditional IRARoth IRAHSA
ContributionPre-taxAfter-taxPre-tax (and FICA-free via payroll)
GrowthTax-deferredTax-freeTax-free
Qualified withdrawalTaxed as incomeTax-freeTax-free (medical)
Non-qualified withdrawal before 6510% penalty + taxEarnings taxed + 10%20% penalty + tax
After age 65 / 59½Taxed as incomeTax-freeTaxed as income (non-medical) or tax-free (medical)
Where the HSA's tax treatment sits relative to standard retirement accounts

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

  1. 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.
  2. 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.
Check the fee structure before you assume investing is free
Some custodians charge a monthly investment account fee or a spread on top of fund expense ratios. On a small balance those fees can outweigh the growth. If your employer's chosen custodian has weak options or high fees, some people transfer to a better custodian via a trustee-to-trustee transfer — unlimited, tax-free, no effect on your contribution limit — while keeping payroll contributions flowing to the employer-chosen account.

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.

This is a five-minute fix with a five-figure consequence
If you're married, confirming your spouse is the named HSA beneficiary — not just implied by your will — is one of the highest-value five minutes you can spend. Beneficiary designations on the account itself generally override a will.

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.

Share
WC
Written by
We Are Calculator Editorial

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.

Editorial standards·How we source data·Corrections·Last reviewed August 1, 2026
In this guide
  1. 01Is an HSA worth maxing out?
  2. 02How it stacks up against retirement accounts
  3. 03How to actually invest your HSA
  4. 04What happens to your HSA when you die
  5. 05Common questions

Run the numbers yourself

Every tool is free, private, and works offline — no sign-up required.

HSA Calculator
Model what your HSA grows to over time if invested instead of spent.
FIRE Calculator
See how an invested HSA fits into an early-retirement plan.
Coast FIRE Calculator
The point where compounding alone finishes the job — an invested HSA counts toward it.

Frequently asked questions

For most people with access to an HSA, yes. It's the only account offering a triple tax advantage — tax-free (or payroll-tax-free) contributions, tax-free investment growth, and tax-free withdrawals for qualified medical expenses at any age with no deadline. Money left uninvested in the default cash option misses out on most of that benefit.

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

Investing19 min read

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.

Compound Interest CalculatorCD CalculatorStock Return Calculator+10 more
Read the guide
Investing9 min read

$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.

Investment PlannerInterest CalculatorInflation-Adjusted Return
Read the guide
Investing7 min read

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.

Interest CalculatorInvestment PlannerInflation-Adjusted Return+1 more
Read the guide
Mortgages18 min read

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.

HELOC CalculatorHome Equity Loan CalculatorLoan Refinance Calculator+8 more
Read the guide