HSA Retirement Calculator
A health savings account is the only account in the tax code that is deductible going in, tax-free while it grows, and tax-free coming out — as long as the money goes on qualified medical expenses. After 65 the rules loosen considerably.
What changes at 65
- Medical spending stays completely tax free — deductibles, copays, dental, vision, hearing aids, long-term care premiums within limits, and Medicare Part B, Part D and Advantage premiums (though not Medigap).
- Non-medical spending is allowed, taxed as ordinary income with no penalty. Before 65 the same withdrawal carries a 20% penalty on top of tax.
- In other words, after 65 an HSA is at worst a traditional IRA and at best a tax-free account. There is no scenario in which it is worse than the alternatives.
The calculator above is set with no tax, modelling medical spending, and inflation at 3% because healthcare inflation runs above the general rate. Change the tax field to your bracket if you plan to spend the money on anything else.
The receipt strategy
There is no deadline for reimbursing yourself. If you pay a medical bill out of pocket today and keep the receipt, you can reimburse yourself from the HSA in twenty years — tax free — after the money has compounded the whole time. Some retirees accumulate decades of receipts as a tax-free withdrawal allowance they can draw on at any point.
The practical requirements: the expense must have been incurred after the HSA was opened, it must not have been reimbursed or deducted elsewhere, and you need to be able to produce the records. Photograph every receipt and keep a running spreadsheet.
What an HSA is actually for in retirement
Healthcare is the least predictable large expense in retirement. A common estimate puts lifetime out-of-pocket medical costs for a 65-year-old couple in the region of $300,000, excluding long-term care. An HSA is the only account designed to meet exactly that, with no tax drag at any stage.
Two rules that catch people out
- You cannot contribute once enrolled in Medicare. Contributions must stop, and if you claim Social Security after 65 the six-month retroactive Part A enrolment means you should stop contributing six months before applying, or face an excise charge.
- HSAs are poor inheritances for anyone but a spouse. A spouse inherits it as their own HSA. Any other beneficiary receives the entire balance as taxable income in one year, which is the worst possible treatment — so spend the HSA before other accounts if leaving a legacy matters.
How the calculator works
Each month the balance earns one month of return, then the withdrawal is taken out. Every 12 months the withdrawal is increased by the inflation rate so your spending power stays level. If you enter a tax rate, each withdrawal is grossed up so the after-tax amount you keep matches the number you typed. The calculator stops when the balance hits zero, or after 100 years if it never does.
The "to last 20 / 25 / 30 years" figures are solved by bisection: the largest starting withdrawal that still survives that horizon under the same return and inflation assumptions.
Frequently asked questions
Can I use my HSA for non-medical expenses after 65?
Yes. From 65 the 20% penalty disappears and non-medical withdrawals are simply taxed as ordinary income, exactly like a traditional IRA. Medical withdrawals remain completely tax free at any age.
Can I pay Medicare premiums from an HSA?
Yes, tax free — Part B, Part D and Medicare Advantage premiums are all qualified expenses once you are 65. Medigap supplement premiums are the notable exception and are not qualified.
Can I still contribute to an HSA after 65?
Only if you are not enrolled in any part of Medicare. Once Medicare starts, contributions must stop. Because Part A can apply retroactively for up to six months when you claim Social Security after 65, stop contributing six months before you apply.
What happens to my HSA when I die?
A spouse beneficiary inherits it as their own HSA with all the tax advantages intact. Any other beneficiary must include the full balance in their taxable income in the year of death, so an HSA is generally the account to spend first if you plan to leave a legacy.
Related calculators
SavingsLast calculators are educational estimates. They assume a constant average return and steady inflation; real markets are volatile and sequence-of-returns risk can shorten how long money lasts. Nothing here is financial, investment, tax, or legal advice. Consult a qualified professional before making decisions.