Home › HSA Calculator › The HSA as a Retirement Account
The HSA as a Retirement Account
The HSA beats the 401(k) and the IRA for retirement health care: deductible in, tax-free growth, tax-free out for medical bills.
Filed November 22, 2026 · figures checked against 2026 sources
The short answer
The best retirement account in the tax code is not a retirement account. It is a health savings account, used as one. The HSA is the only account where money goes in deductible, grows tax-free, and comes out tax-free for medical expenses, and after 65 it comes out for anything else taxed as ordinary income, exactly like a traditional IRA, with no required minimum distributions, ever. A family that maxes the account at $8,750 a year for 30 years at 7 percent ends with $826,531.88, and a self-only filer who maxes at $4,400 a year for 30 years ends with $415,627.46. The Employee Benefit Research Institute estimates a couple retiring today could need as much as $469,000 saved to cover health care costs in retirement, and the HSA is the only account built to hold exactly that money, triple tax-free, for exactly that purpose. This article works the strategy in full: the order of operations, the age-65 switch, the Medicare rules, and the mistakes that break it.
This article sets out the strategy in order: why the HSA beats the 401(k) and the IRA for retirement health care, the contribution order that maximizes it, what changes at 65, how to pay Medicare premiums from it, and how the account ends.
Why the HSA beats the retirement accounts
The comparison is arithmetic, not preference. A traditional 401(k) or IRA gives you the deduction and taxes the withdrawal. A Roth IRA gives you the tax-free withdrawal and taxes the contribution. A taxable brokerage account taxes the growth every year and the withdrawal too. The HSA gives you the deduction, the tax-free growth, and the tax-free withdrawal for medical expenses, which is all three breaks at once, and it gives you the traditional IRA treatment for everything else after 65. There is no account in the code that beats it, and there is no account that ties it, because the HSA is the only one with three breaks. The limitation is the limit: $4,400 self-only and $8,750 family in 2026, plus $1,000 at 55, against a 401(k) limit of $24,500 for 2026, plus a $8,000 catch-up at 50. The HSA is the best account and the smallest one, which is why the strategy is to fill it first and fill the 401(k) second, not the other way around.
The order of operations, for a worker with a high deductible plan, is short. First, contribute enough to the 401(k) to get the full employer match, because a match is an instant return no account can beat. Second, max the HSA, because it is the only triple-tax account and the limit is small enough to fill. Third, go back to the 401(k) or the IRA for the rest of the retirement saving. The HSA contribution saves the same income tax as a 401(k) contribution, plus the 7.65 percent FICA tax when it goes through payroll, which the 401(k) does not skip, because 401(k) contributions are subject to FICA. On a maxed family contribution of $8,750 at a 22 percent rate through payroll, the HSA saves $2,594.38 a year, $1,925 of income tax and $669.38 of FICA. The 401(k) saves the $1,925 and not the $669.38. The difference is $669.38 a year, every year, for the same $8,750.
The strategy: pay now, reimburse later
The strategy has two moves, and the second is the one most people miss. Move one is to max the account and invest it, and to pay medical bills out of pocket while you are working, rather than from the HSA. Move two is to keep every receipt. There is no time limit on HSA reimbursement: a medical expense paid in 2026 can be reimbursed from the account in 2046, tax-free, as long as the expense was qualified when it was incurred and you keep the record. The money stays invested for twenty years, growing tax-free, and the receipt is a tax-free withdrawal waiting to happen. The account becomes a vault of past medical expenses, each one a future tax-free distribution, and the balance compounds while the receipts accumulate.
Work it with the numbers. A 35-year-old with family coverage maxes the account at $8,750 a year for 20 years at 7 percent and ends with $358,710.56 at 55, and keeps going to $826,531.88 at 65. The same worker who spends the account down every year on current medical bills ends with the average balance, $5,532, and the same medical bills, paid with after-tax dollars. The difference is not the contribution, it is the discipline: pay the bills from cash flow, let the account compound, and keep the receipts. The receipts are the key, because without them the money can only come out tax-free for expenses you can prove, and after 65 it can come out for anything, taxed as income. Keep the receipts in a folder, paper or digital, with the date, the provider, and the amount, and keep the explanation of benefits with them. The IRS can ask for the record, and the record is the receipt.
What changes at 65
At 65 the account changes character, and the change is in your favor. You cannot contribute once you enroll in Medicare, including premium-free Part A, and the month you enroll is the month eligibility stops. The money already in the account stays usable, and it becomes more useful, not less. Non-medical withdrawals after 65 are taxed as ordinary income with no 20 percent penalty, which is the traditional IRA treatment. Medical withdrawals stay tax-free at any age, which is better than the IRA. There are no required minimum distributions for an HSA, ever, which is one more way it beats the traditional IRA: the balance can sit and grow for as long as you live, and you take it out when you need it, not when the calendar says so. The account has no end date, no forced withdrawal, and no penalty for leaving it alone.
The Medicare trap is the one rule that breaks the strategy, and it is a timing rule. Part A coverage is backdated up to six months when you enroll after 65, which can retroactively kill eligibility for months you already contributed for. The safe move is to stop contributions six months before you enroll in Medicare, and to check the months with this site's calculator before you file. The contributions you already made for the backdated months become excess contributions, taxed at 6 percent a year until withdrawn, and the fix is to withdraw the excess before you file. The trap catches people who enroll in Medicare at 66 or 67 after working past 65, because the backdating reaches back into months they thought were eligible. Stop six months early, and the trap never springs.
Paying Medicare premiums from the HSA
The account pays the bills retirement actually brings. HSA money can pay Medicare Part B premiums, currently $202.90 a month for 2026, Part D premiums, and Medicare Advantage premiums, all tax-free. It cannot pay a Medigap premium, which is the one gap in the rule, and it is a gap worth knowing before you choose a Medigap plan. It can pay for dental, vision, and hearing care that Medicare does not cover, and for long-term care services, and for the Part B deductible of $283 and the cost-sharing that comes with every doctor visit. The standard Part B premium plus the Part D surcharge for a retiree in the first IRMAA tier is $298.60 a month, $3,583.20 a year, per person, and a couple in that tier pays $7,166.40 a year, which is the kind of bill the HSA was built to pay, tax-free, from a balance that compounded for decades.
The arithmetic of the retirement health care bill is the reason the strategy matters. EBRI estimates a couple retiring today could need as much as $469,000 saved to cover health care costs in retirement, and that figure is for a couple with median drug expenses and a long life, not a worst case. The HSA that reaches $826,531.88 by 65 covers it with room to spare, and the money left over after the medical bills are paid is still yours, taxed as income when you take it for anything else. The 401(k) that reaches the same balance pays the same bills with after-tax dollars, because the withdrawal is taxed. The HSA pays them with pre-tax dollars, because the withdrawal for a medical expense is tax-free. The difference is the tax on $469,000 of withdrawals, which at a 22 percent rate is $103,180. That is the value of the strategy, and it is the value of the third tax break.
How the account ends
When you die, the account passes to your spouse as their HSA, with the same tax treatment, and they can use it as if it were their own, including contributing to it if they are eligible. To anyone else, a child or another beneficiary, the account passes as a taxable account, with the balance included in their income in the year of death, unless the beneficiary pays your qualified medical expenses within a year. The spousal rollover is the reason to name your spouse as the beneficiary, and the reason to keep the receipts: a spouse who inherits the account inherits the receipts with it, and the receipts are still good for tax-free reimbursement. There is no step-up in basis, because there is no basis, and there is no stretch provision, because the account is not an IRA. The account ends when the spouse ends, and the balance that remains is taxed once, at the end, which is the same treatment as a traditional IRA and better than a taxable account.
The strategy, in one paragraph, is this: get the full 401(k) match, max the HSA, invest it, pay medical bills from cash flow, keep every receipt, stop contributing six months before Medicare, and spend the account on Medicare premiums and medical care in retirement, tax-free. The calculator on this site prices the first step, the limit and the tax saving, and the projection shows the last step, the balance at 65. The middle steps are discipline, not arithmetic, and they are the ones that decide whether the account ends at $5,532, the average, or at $826,531.88, the maximum. The average owner contributes $3,035 a year and invests none of it. The maximum owner contributes $8,750 a year and invests all of it. The gap between them is not income. It is the strategy.
The HSA is the only account that gets better when you do not use it, and that is the opposite of how every other benefit works. A 401(k) is for spending in retirement, and an FSA is for spending this year, and both punish you for leaving the money alone, the first with required minimum distributions and the second with forfeiture. The HSA rewards you for leaving it alone: no required minimum distributions, no forfeiture, no penalty for waiting, and the receipts you keep today are tax-free withdrawals you can take in twenty years. The account is a time machine for medical expenses, and the fare is the discipline to pay cash now and let the money compound. The average balance is $5,532 because the average owner uses the account as a checking account. Use it as a retirement account, and the same contributions become $826,531.88.
Sources: IRS Revenue Procedure 2025-19 (2026 HSA limits); IRS Revenue Procedure 2026-24 (2027 limits); 26 U.S.C. 223 (HSA statute: catch-up, 20 percent additional tax, no required minimum distributions); IRS Publication 969 (Medicare premiums, Medigap exclusion, spousal inheritance); IRS Publication 502 (qualified medical expenses); EBRI HSA Database report 2024 (average balance $5,532, 18 percent invest, average combined contribution $3,035, $469,000 retirement health care estimate); IRS Notice 2025-67 (2026 401(k) limit $24,500, catch-up $8,000 at 50); CMS fact sheet, 2026 Medicare Parts A and B Premiums and Deductibles (standard Part B $202.90, deductible $283). The scenario figures are this site’s HSA Calculator unless stated otherwise.
The HSA as a Retirement Account questions
- Is an HSA better than a 401(k) for retirement?
- For health care costs, yes: the HSA is deductible, grows tax-free, and pays medical bills tax-free, and after 65 it behaves like a traditional IRA for anything else. The 401(k) limit is higher, so the order is match first, HSA second, 401(k) third.
- Can I pay Medicare premiums from my HSA?
- Yes. HSA money pays Medicare Part B, Part D, and Medicare Advantage premiums tax-free. It cannot pay a Medigap premium.
- Do HSAs have required minimum distributions?
- No. An HSA has no required minimum distributions, ever, unlike a traditional IRA or 401(k). The balance can sit and grow for as long as you live.
Keep reading
- How an HSA WorksThe triple tax break, the eligibility rules, and the monthly test.
- The 2026 HSA Contribution LimitsEvery 2026 number, the 2025 comparison, and the 2027 preview.
- HSA vs FSA in 2026Ownership, rollover, and which account wins for which worker.
- 7 HSA Mistakes That Cost Real MoneyExcess contributions, the Medicare trap, and five more.
- HSA CalculatorEnter your coverage and contributions: the slip finds your limit, prices the tax saving, and projects the growth.