There is exactly one account in the entire US tax code that gives you a triple tax advantage. Not a double — a triple. Money goes in pre-tax, it grows tax-free, and you can pull it out tax-free when you use it for qualified medical expenses. That account is a Health Savings Account. And most people who have access to one are either not using it, leaving it sitting in cash earning nothing, or reflexively maxing their Roth IRA first without running the comparison. This is worth slowing down on.
I spent thirty years as a Warning Coordination Meteorologist at the National Weather Service. Part of that job was helping people understand that the most consequential risks are often the ones that feel abstract until they are not. Healthcare costs in retirement are exactly that kind of risk. The number most financial planners use as a benchmark is somewhere north of $300,000 in total out-of-pocket healthcare expenses for a couple retiring at 65 — and that figure tends to land in the category of "things I will deal with later" until a medical event makes it suddenly, urgently present. The HSA is one of the best tools available for turning that abstract future risk into a funded, growing asset. Whether it belongs in front of your Roth IRA depends on a few specific factors — but for most people on an HDHP who can pay current medical bills from their regular cash flow, the answer is yes.
What the HSA Actually Is (and the Part People Miss)
An HSA is a tax-advantaged savings account available to people enrolled in a qualifying high-deductible health plan. The IRS sets minimum deductible thresholds and maximum out-of-pocket limits for HDHP qualification — check IRS.gov for current figures, as these adjust annually for inflation. If your health plan meets those criteria, you can contribute to an HSA up to the annual IRS limit, which also adjusts each year (individual coverage and family coverage have different caps; look up the current year's limits before contributing).
Here is the part that surprises most people: after age 65, you can withdraw HSA money for any purpose. Non-medical withdrawals before 65 trigger income tax plus a 20 percent penalty. Non-medical withdrawals after 65 trigger only income tax — exactly the same treatment as a traditional IRA. So the HSA functions as a Roth IRA for medical expenses and a traditional IRA for everything else after 65. That is an unusual combination of features that exists nowhere else in the tax code.
The other critical piece: most employer-sponsored HSAs allow you to invest your balance in mutual funds or ETFs once your balance exceeds a threshold (often $1,000 or $2,000 depending on the administrator). If your HSA is sitting entirely in cash, you are missing the point. The triple tax advantage only compounds into something meaningful if the money is actually invested and growing over 10 to 20 years. More on that in a moment.
The Three Tax Advantages, Explained Plainly
Advantage one: contributions are pre-tax. If you contribute to your HSA through payroll deduction, those dollars skip both federal income tax and FICA (Social Security and Medicare taxes). If you contribute outside payroll, you deduct it on your tax return. Either way, a $4,000 HSA contribution from a household in the 22 percent federal bracket saves roughly $880 in federal income tax alone — plus whatever your state tax rate adds on top.
Advantage two: the money grows tax-free. Invested in a low-cost index fund, the balance compounds without any annual tax drag on dividends, interest, or capital gains inside the account. This is the same benefit a Roth IRA offers.
Advantage three: qualified medical withdrawals are tax-free. Prescription drugs, doctor visits, dental work, vision care, surgery, and a long list of other expenses qualify. In retirement, healthcare tends to be one of the largest spending categories. Paying those bills from an HSA means the money was never taxed entering, was never taxed growing, and is never taxed leaving. A traditional IRA matches only one of those three. A Roth IRA matches two. The HSA, for medical expenses, matches all three.
The HDHP Trade-Off: Who This Works for and Who It Doesn't
The HSA requires a high-deductible health plan, and that is not the right choice for everyone. HDHPs have lower monthly premiums but higher out-of-pocket costs before coverage kicks in. If you have a chronic condition, take several expensive medications, or regularly hit your deductible under a traditional plan, the math on switching to an HDHP can go the wrong direction fast. Higher premium costs plus lower out-of-pocket exposure might save you more in actual medical spending than the tax benefits of an HSA recover.
If you are generally healthy, young, rarely see doctors beyond preventive care, and have enough cash flow to handle an unexpected medical bill without financial crisis, an HDHP plus HSA combination often wins on total cost. Run the numbers on your actual expected medical utilization before assuming an HDHP is the right move. The HSA is only as valuable as the health plan structure that unlocks it.
The Strategy Most People Are Not Doing: Pay Out of Pocket, Let the HSA Grow
Here is the approach that separates people who are using their HSA tactically from people who are using it as a slightly better medical checking account. The rules say you can reimburse yourself for qualified medical expenses at any point in the future — there is no deadline. You can pay a $300 doctor bill out of your regular checking account today, keep the receipt, and reimburse yourself from the HSA five years from now. Or fifteen years from now. Or never, and use the balance tax-free for medical expenses in retirement instead.
What this means in practice: if you can afford to pay current medical expenses from your regular income and cash flow, let the HSA sit invested and compounding. Keep receipts for every qualified expense. Your future self can pull that money out of the HSA tax-free as reimbursement — effectively creating a tax-free slush fund that compounds for years before you touch it. This strategy works best for people in their 30s and 40s who have 20 to 25 years of runway before they start needing the balance.
HSA vs Roth IRA: The Direct Comparison
For someone on an HDHP deciding whether to max the HSA or the Roth IRA first, the relevant comparison is between two strong accounts. The Roth has meaningful advantages: contributions can be withdrawn at any time without penalty (not the earnings — just contributions), there are no required minimum distributions, and the money is accessible for non-medical purposes in retirement without any penalty or tax after 59½. If you anticipate needing retirement flexibility beyond healthcare, the Roth's broader spending eligibility matters.
The HSA wins on tax efficiency specifically for medical spending. If the goal is to fund future healthcare costs, no account matches the triple advantage. And since healthcare is almost certainly going to be a large retirement expense regardless of your health today, directing pre-tax dollars toward a growing, invested HSA is genuinely powerful over a 20-year window.
The practical order for most working households with an HDHP: contribute to your 401k up to the employer match (free money first, always), max the HSA, then fund the Roth IRA with what remains. The matching 401k contributions and the HSA together often represent a more efficient tax structure than Roth IRA contributions before the HSA is maxed. How the Roth IRA fits into the larger priority order, including when Roth conversions make sense earlier in retirement, is covered in depth in the Roth conversion strategy guide for people in their late 50s — the MAGI considerations there apply equally to people deciding how aggressively to fund a Roth in their 40s.
The MAGI Angle: How HSA Contributions Affect Your Future Medicare Costs
One underappreciated benefit of maxing your HSA: contributions reduce your modified adjusted gross income (MAGI). This matters more than most people realize in the years before Medicare enrollment. Your Medicare Part B and Part D premiums are determined by your MAGI from two years prior — the IRMAA surcharge system. A household that reduces MAGI by $4,000 to $8,000 per year through HSA contributions might avoid crossing an IRMAA bracket threshold entirely, potentially saving $500 to $1,000 or more in annual Medicare premiums for each of the first years of coverage. The mechanics of how MAGI two years before Medicare enrollment determines your premium tiers — and the ways a Roth conversion can unexpectedly trigger that surcharge — are worth understanding before you finalize your retirement income strategy.
The broader question of where the HSA fits in your retirement account withdrawal sequence also deserves a dedicated look. The conventional wisdom of "spend taxable accounts first, then tax-deferred, then Roth" needs to be adjusted when you have a substantial HSA balance: the HSA should be earmarked for healthcare spending specifically, not treated as a generic last resort. For a structured breakdown of which accounts to draw from and in what order to minimize lifetime taxes, the retirement account withdrawal order guide for early retirees walks through the sequencing logic in detail.
Choosing Where to Hold Your HSA
Your employer may offer an HSA administrator, but you are not required to use it. Many employer-sponsored HSAs have limited investment options or charge monthly administrative fees that eat into the tax advantage. Fidelity's HSA has no monthly fees, no minimum balance requirement for investing, and access to their zero-expense-ratio index funds. Lively is another fee-free option with Fidelity or TD Ameritrade as the investment custodian. If your employer deposits contributions directly into their HSA platform, you can typically transfer to a preferred custodian once per year.
The investment choice matters. An HSA left in the default cash or money market position is not meaningfully different from a savings account with slightly better tax treatment. An HSA invested in a total market index fund at 0.03 percent expense ratio compounding for 20 years is a genuinely different asset class. The structure for automating contributions so the HSA gets funded consistently alongside your other accounts — not as an afterthought after other bills are paid — is part of building a system that works without constant attention.
For the reading that will sharpen your thinking on this: a dedicated HSA strategy guide covers the investment selection, the receipt-keeping strategy, and the coordination with Medicare in more detail than any single article can cover. And Ed Slott's retirement tax planning books remain the clearest explanation of how Roth IRAs, traditional IRAs, and tax-advantaged accounts like the HSA interact across a 30-year retirement horizon. Both are worth having before you finalize your savings priority order.
One more piece of context worth understanding before you decide: the projected cost of healthcare before Medicare eligibility, for people who retire or change jobs before 65, is substantial and often underestimated. If there is any possibility of an employment gap between early retirement and Medicare enrollment, the gap in what health insurance actually costs between 62 and Medicare eligibility at 65 — including the COBRA vs. ACA marketplace comparison — is critical context for sizing your HSA balance target. A well-funded HSA going into that gap years takes significant financial pressure off an otherwise difficult transition. Start your HSA at Fidelity.com or Lively.com today — opening the account and designating your investment elections takes under 15 minutes, and the sooner the compounding starts, the more powerful the triple advantage becomes.
