← Back to Blog
A picture of a debit card that casts a shadow of a piggy bank
HSA

The HSA Stealth IRA: Why Your Health Savings Account Is the Best Retirement Account You're Ignoring

PenaltyFreeRetire Editorial ·

Federal law checked Sep 20, 2026 · Covers 2026 rules · Next review Nov 30, 2026

The HSA Stealth IRA: Why Your Health Savings Account Is the Best Retirement Account You're Ignoring

PenaltyFreeRetire Editorial | May 2026

Most people treat their HSA like a medical debit card. Money goes in, receipts get paid, and the balance stays near zero. That approach leaves a lot on the table. An HSA is one of the few accounts that can pair an upfront tax break with tax-free growth and tax-free withdrawals for qualified medical expenses. It just happens to have "health" in the name.

Advertisement

The rules are straightforward. Contribute pre-tax dollars. Let them grow tax-free. Withdraw tax-free for qualified medical expenses. The 20% additional tax on nonqualified distributions no longer applies once you reach 65, and it also does not apply on death or disability, although those withdrawals are generally still taxed as ordinary income. State income-tax treatment can differ from the federal rules, so check how your state handles HSAs.

PenaltyFreeRetire built an HSA Triple Tax Advantage calculator to illustrate how this can play out over a 20- or 30-year horizon. It is a simplified planning illustration based on the assumptions you enter, not individualized advice or an exact forecast of your results.

What makes the HSA a "triple tax" account?

Three layers of savings.

First, contributions are pre-tax when made through an employer's cafeteria plan, or tax-deductible if you contribute on your own. Either way, the money reduces your federal taxable income for the year you contribute. A few states do not follow the federal treatment, so your state return may look different.

Second, growth is tax-free for federal purposes. Invest in index funds, bonds, or cash. Capital gains, dividends, and interest are not taxed federally as long as the money stays inside the account. Again, a handful of states tax HSA earnings on the state return.

Third, withdrawals for qualified medical expenses are tax-free. Every doctor visit, prescription, and hospital bill you paid out of pocket since opening the account becomes a tax-free reimbursement opportunity later. Save those receipts. The IRS does not require you to submit them at contribution time; you just need records showing the expense was qualified and that it happened after the account was established.

After 65, the rules soften further. Nonmedical withdrawals are taxed as ordinary income, similar to pulling from a traditional IRA (Individual Retirement Arrangement), but the 20% additional tax no longer applies. The same waiver of the additional tax applies on death or disability. The difference is that you had years of pre-tax contributions and tax-free growth before that point.

Eligibility is decided month by month, not once a year. For any given month you qualify if, on the first day of that month, you are covered by a qualifying high deductible health plan and have no disqualifying coverage. Enrolling in Medicare ends contribution eligibility for every month you are enrolled, so people who sign up mid-year have to prorate their contributions. Employer contributions count toward the same annual limit as your own, which means employer money reduces how much you can add yourself.

The invest-and-hold strategy

One common approach is also the most boring: pay medical costs out of pocket with after-tax dollars, leave the HSA balance alone, and invest it like any other retirement account. Whether it suits you depends on your cash flow, your expected medical costs, and your willingness to keep records.

This is Scenario B from the PenaltyFreeRetire HSA Triple Tax Advantage calculator. Here is how it plays out in practice. You go to the doctor, pay the $180 bill with your regular checking account, and save the receipt in a folder labeled "HSA reimbursements." Your HSA balance of, say, $10,000 stays invested in a total stock market fund and keeps compounding. Over 20 years at an assumed 7% annual return, that $10,000 would grow to roughly $38,700. That figure is a simplified illustration based on a fixed assumed return, not a projection of what your account will actually do.

Now suppose you are 67 and retired. You can reimburse yourself for every qualified medical expense you paid out of pocket and still have records for. If those receipts add up to the amount you withdraw, the distribution comes out tax-free. If they do not, the remainder can stay invested and keep growing, or you can withdraw it after 65 and pay ordinary income tax with no additional 20% tax.

The HSA Triple Tax Advantage calculator compares this approach against paying from the HSA as you go. The gap can be large, but it is driven entirely by the return, tax rate, and time horizon you assume, so treat the output as an illustration rather than a forecast.

If you're already maxing your HSA contributions, our post on what happens to your HSA at 65 shows how the withdrawal rules shift in your favor after Medicare eligibility.

When does the HSA beat a Roth IRA?

Head to head, an HSA can be more tax efficient than a Roth IRA for money that eventually pays qualified medical expenses. Most people face some medical costs in retirement, but how the two accounts compare depends on your bracket now and later, your state's rules, and how much of the balance actually goes toward healthcare.

With a Roth IRA, you pay tax now. Every dollar you contribute has already been hit by federal and state income tax. A $4,400 contribution in the 22% federal bracket takes about $5,641 of pre-tax income to fund. The growth is tax-free, and qualified withdrawals are tax-free. Clean and simple, with no deduction up front.

With an HSA, that same $4,400 contribution costs $4,400 of pre-tax income because it is excluded or deductible. In the 22% federal bracket that is about $968 of federal tax saved in year one, before any state effect. The growth is tax-free, the same as the Roth, and withdrawals for qualified medical expenses are tax-free as well.

After 65, the HSA works much like a traditional IRA for nonmedical withdrawals: ordinary income tax applies, but no additional 20% tax. The difference is that you got the upfront deduction, years of tax-free growth, and tax-free medical reimbursements along the way. The Roth gives you no deduction up front but no tax on qualified withdrawals of any kind.

The Roth still has a clear place. It has a higher contribution limit in 2026 ($7,500 versus $4,400 for self-only HSA coverage), no High Deductible Health Plan (HDHP) requirement, and fewer rules about what counts as a qualified expense. For money that is likely to cover healthcare, the HSA often comes out ahead on taxes. For money that is not, the comparison is much closer and depends on your circumstances.

The catch

You need qualifying high deductible coverage to open or contribute to an HSA. Not every employer offers a plan that qualifies, and the out-of-pocket costs on these plans can sting if you have chronic conditions or expect major medical expenses in the near term. Run the numbers on your specific plan before switching.

Two 2026 changes widen the range of compatible coverage. Bronze and catastrophic health plans are now treated as HSA-compatible, so people buying those plans can contribute to an HSA. Qualifying direct primary care arrangements may also coexist with an HSA within the statutory limits, and qualifying direct primary care fees can be paid from the HSA under the new rules. Not every membership arrangement qualifies, so confirm the terms of the specific plan or agreement.

For 2026, the IRS limits are $4,400 for self-only coverage and $8,750 for family coverage. If you are 55 or older, you can add another $1,000 in catch-up contributions. These limits cover all money going into the account for the year, including anything your employer contributes. Because eligibility is measured monthly, your own limit may be lower than the full annual amount if you were not eligible for every month.

One important clarification: HSAs are not FSAs. Flexible Spending Account balances expire at year-end or carry over in limited amounts if the plan allows it. HSA balances roll over indefinitely. You can change jobs, switch insurance plans, or retire and the money stays yours. Many HSA providers let you invest the balance in mutual funds, and some require you to keep a set amount in cash before investing. Those terms vary by provider, so check your own account agreement.

One more wrinkle worth checking: state income-tax treatment can differ from federal treatment. A small number of states tax HSA contributions or investment earnings on the state return even though the federal rules do not. That does not undo the federal benefit, but it changes the math if you live in one of those states.

Calculate your own triple tax value

Use the PenaltyFreeRetire HSA Triple Tax Advantage calculator to compare the two approaches over 20 years. It is a simplified planning illustration based on the inputs and assumptions you provide, not individualized advice, an exact forecast, or a guaranteed result.

Sources

Disclaimer: The information on PenaltyFreeRetire is for general educational and informational purposes only. Nothing on this site constitutes financial, tax, legal, or investment advice. Tax laws change and individual circumstances vary. Consult a qualified CPA or fee-only financial planner before implementing any early withdrawal strategy. IRS Publication 575, Publication 590-B, Internal Revenue Code Section 408A and IRS Notice 2022-6 contain the authoritative rules.

Free email guide

Want the one-page Roth conversion version?

Get the cheat sheet by email. It covers bracket room, the 5-year wait, and the mistakes that tend to cost the most.

  • How to estimate your bracket room before you convert
  • What the 5-year rule actually means in practice
  • The mistakes that quietly add tax, penalties, or bad timing

We store your email and optional first name in Supabase to send the guide and record your choices. Resend delivers the email. If you do not opt into updates, we delete the record 90 days after your most recent guide request. See our Privacy Policy. Educational only. Not tax or investment advice.

Try the calculator

Put this strategy into numbers with our free HSA calculator.

Open HSA Calculator →