An HSA is one of the few accounts that triple-tax-advantage your money
A health savings account works as a retirement account because it is the only account where contributions, growth, and withdrawals can all be tax-free—but only if you spend the money on medical expenses. After age 65, you can withdraw HSA money for any reason without penalty, though non-medical withdrawals are taxed as income. This makes an HSA more flexible in retirement than a dedicated medical fund, and more tax-efficient than a 401(k) or IRA if you use it for healthcare costs.
The math works like this: you put pre-tax money in, it grows tax-free, and if you withdraw it for a may have access to medical expense—copays, deductibles, prescriptions, dental work, hearing aids, long-term care insurance premiums—you pay no tax on the withdrawal. No other retirement account offers this combination. A 401(k) taxes you on withdrawal. A Roth IRA taxes you on the contribution. An HSA taxes you on neither, as long as the money goes toward healthcare.
Most people treat an HSA as a spending account and drain it each year. But if you can afford to pay medical bills out of pocket and leave the HSA untouched, it becomes a stealth retirement savings vehicle. The account grows year after year, and by the time you retire, you have a pot of money specifically designed to cover one of retirement's largest expenses: healthcare.
Key Takeaways
- An HSA is the only account where contributions, growth, and may have access to withdrawals are all tax-free, making it more efficient than a 401(k) or Roth IRA for healthcare costs.
- After age 65, you can withdraw HSA money for any reason without the 20 percent penalty, though non-medical withdrawals are taxed as ordinary income.
- If you pay medical bills out of pocket and leave your HSA untouched, it compounds tax-free for decades and becomes a dedicated healthcare fund in retirement.
- You can only contribute to an HSA if you are enrolled in a high-deductible health plan, so your insurance choice directly affects your retirement savings options.
- Receipts for medical expenses paid out of pocket can be kept and matched to HSA withdrawals years later, giving you flexibility in when you take the money out.
How HSA contributions fit into your overall retirement savings
An HSA is a supplement to, not a replacement for, a 401(k) or IRA. The contribution limits are lower—$4,150 for individual coverage and $8,300 for family coverage in 2024, though these amounts change annually—so you cannot save as much as you can in a 401(k). But because HSA money is triple-tax-advantaged, it should be prioritized after you have captured any employer 401(k) match.
The typical savings order is: contribute to your 401(k) up to the employer match, then max out your HSA, then go back to the 401(k). This is because the HSA's tax advantage is stronger. If you are self-employed or do not have access to a 401(k), an HSA becomes even more valuable because it is one of the few ways to save pre-tax money for retirement.
One constraint: you can only contribute to an HSA if you are enrolled in a high-deductible health plan (HDHP). If your employer offers a low-deductible plan, you lose the HSA option. This means your insurance choice at open enrollment directly affects your retirement savings strategy. Some people deliberately choose an HDHP specifically to unlock HSA contributions, even if the plan has a higher out-of-pocket maximum.
Why healthcare costs make an HSA a retirement necessity
Healthcare is one of the largest expenses in retirement. A couple retiring at 65 can expect to spend $315,000 or more on healthcare over their lifetime, according to estimates from benefits consulting firms—though this varies widely based on health status and longevity. Medicare covers hospital and doctor visits but not dental, vision, hearing aids, or long-term care. It also has gaps: you still pay deductibles, coinsurance, and premiums.
An HSA lets you set aside money specifically for these costs before you retire, when you are earning income and can afford to contribute. By the time you reach 65, you have a dedicated fund that grows tax-free and can be withdrawn tax-free for any healthcare expense. This is more efficient than paying for healthcare out of a taxable brokerage account or a traditional IRA, where withdrawals are taxed as income.
If you retire before Medicare may be able to access at 65, an HSA is even more critical. You will need to buy private insurance on the ACA marketplace, and premiums are high. An HSA can cover those premiums, deductibles, and out-of-pocket costs without triggering taxes or penalties.
The mechanics of using an HSA in retirement
At age 65, the HSA rules change. You can withdraw money for any reason without the 20 percent penalty that applies to non-medical withdrawals before 65. If you withdraw for a non-medical reason, you pay ordinary income tax on the amount, but no penalty. This means an HSA becomes a flexible retirement account after 65, similar to a traditional IRA.
However, if you withdraw for a may have access to medical expense, you pay no tax at all. This is where the strategy matters. You can be strategic about which expenses you pay from the HSA and which you pay from other accounts. For example, if you have a large dental bill, you can withdraw from the HSA tax-free. If you need general spending money, you can withdraw from a taxable account or IRA and let the HSA continue growing.
You do not have to take withdrawals in any particular order or on any schedule. Unlike a 401(k), there are no required minimum distributions from an HSA. You can leave the money untouched as long as you want, and it continues to grow tax-free. This makes an HSA useful as an emergency fund for healthcare costs that might arise unexpectedly in your 70s or 80s.
Keeping receipts and timing withdrawals strategically
One unusual feature of HSAs is that you can withdraw money years after you incur a medical expense, as long as you have documentation. If you paid $2,000 out of pocket for dental work in 2024, you can keep that receipt and withdraw $2,000 from your HSA in 2030 or 2035, tax-free. This gives you enormous flexibility in retirement.
The strategy is to pay medical bills out of pocket during your working years and in early retirement, keep all receipts, and let the HSA grow. Then in later retirement, when you may be in a higher tax bracket or facing large medical bills, you can withdraw from the HSA to cover those old expenses. This is legal and common, though it requires discipline to keep receipts organized.
Some people use this to their advantage by withdrawing from the HSA only when they have a large medical expense that would otherwise come from a taxable account. Others use it to smooth income across years: if you have a year with high medical costs, you can withdraw from the HSA to cover them and avoid tapping a taxable brokerage account.
Coordination with Medicare and other retirement income
Once you turn 65 and enroll in Medicare, your HSA becomes a supplement to your Medicare coverage. You can use HSA money to pay Medicare premiums (Part B and Part D), deductibles, coinsurance, and copays. You can also use it for dental, vision, and hearing aids, which Medicare does not cover. This makes the HSA a natural fit with Medicare planning.
If you are still working at 65 and covered by an employer plan, you cannot contribute to an HSA while you are on Medicare, with limited exceptions. Once you enroll in Medicare Part A, HSA contributions stop. This is an important deadline: if you want to maximize HSA contributions before retirement, you need to do it before you turn 65 and enroll in Medicare.
An HSA also does not affect your Social Security benefits or Medicare premiums based on income. Unlike a traditional IRA withdrawal, which counts as income for purposes of calculating your Medicare premium surcharge, an HSA withdrawal for a may have access to medical expense does not count as income. This makes it a tax-efficient way to pay for healthcare in retirement without triggering higher Medicare costs.
Common mistakes that reduce HSA value in retirement
The biggest mistake is treating an HSA like a spending account and withdrawing money every year to pay current medical bills. This defeats the purpose of using it as a retirement tool. If you can afford to pay medical bills out of pocket, you should do so and leave the HSA untouched to compound.
Another mistake is not keeping receipts. If you lose documentation of a medical expense, you cannot withdraw from the HSA to reimburse yourself, even if the expense was legitimate. Keep receipts in a folder or scan them digitally. Some people create a spreadsheet of expenses and amounts to make it easy to reference years later.
A third mistake is not maximizing HSA contributions while you are working. The contribution limit is relatively low, but it compounds over decades. If you contribute $4,000 per year for 30 years and earn 6 percent annually, you end up with roughly $380,000. If you wait until age 55 to start contributing, you have only 10 years and end up with roughly $60,000. The earlier you start, the more powerful the compounding effect.
Frequently Asked Questions
Can I use my HSA to pay for my spouse's medical expenses in retirement?
Yes. Once you are married, you can use your HSA to pay for your spouse's may have access to medical expenses, even if they do not have their own HSA. This applies whether your spouse is covered by your health plan or has separate coverage. Keep receipts for both of you to document the expenses.
What happens to my HSA if I die?
If you leave your HSA to your spouse, they can treat it as their own HSA and continue using it tax-free for medical expenses. If you leave it to a non-spouse beneficiary, they must withdraw the balance within a set timeframe and pay income tax on it. Consult your HSA provider about beneficiary designation options.
Can I invest my HSA money, or does it have to sit in cash?
Most HSA providers allow you to invest the money in mutual funds, stocks, or bonds, similar to a brokerage account. Some require a minimum cash balance (often $1,000 to $2,500) before you can invest the rest. Check with your HSA provider about investment options and fees.
What if I switch to a non-HDHP plan? Can I still use my HSA?
You can no longer contribute to the HSA, but you can continue to withdraw from it for may have access to medical expenses for the rest of your life. The money you have already saved remains yours and continues to grow tax-free if invested.
Do I have to spend my HSA money before I turn 65?
No. You can let it grow untouched for decades. After 65, you can withdraw for any reason without penalty, though non-medical withdrawals are taxed as income. There is no deadline to use the money, and no required minimum distributions.