Guide

Your HSA after 65 and on Medicare

Medicare ends HSA contributions, but not the account. Here's when to stop contributing, what you can pay for, and how old receipts become even more valuable.

On this page
  1. Can you contribute to an HSA after you enroll in Medicare?
  2. When should you stop HSA contributions before Medicare?
  3. What does the lookback look like with real numbers?
  4. Can your spouse keep contributing after you're on Medicare?
  5. Can you pay Medicare premiums from your HSA?
  6. What happens if you use HSA money for non-medical expenses after 65?
  7. What happens to your HSA when you die?
  8. Can you still reimburse old receipts at 65 and later?
  9. FAQ

Can you contribute to an HSA after you enroll in Medicare?

No. Once you're enrolled in any part of Medicare, including premium-free Part A, you can't make new HSA contributions (Publication 969). Turning 65 by itself doesn't end eligibility; enrolling in Medicare does. You keep the account, can keep investing it, and can keep spending from it tax-free on qualified expenses for the rest of your life.

In the year you enroll, your limit is prorated: you can contribute 1/12 of the annual limit (including the $1,000 catch-up) for each month you were HSA-eligible on the first day of the month, before Medicare coverage began.

When should you stop HSA contributions before Medicare?

Stop HSA contributions six months before the month you apply for Medicare or Social Security. If you sign up for Medicare Part A after you turn 65, coverage can be made retroactive for up to six months, but not to before the month you turned 65. Any HSA contributions made during those retroactive months become excess contributions, which face a 6% excise tax each year until you remove them.

Claiming Social Security at 65 or later enrolls you in Part A automatically, so the same lookback applies when you start your Social Security benefits. Plan the timing with your HSA custodian or a tax professional.

What does the lookback look like with real numbers?

Here's a worked example using the 2027 limits. Pat turned 65 in 2026, kept working, and stayed on an employer HDHP with self-only coverage and HSA payroll contributions. Pat applies for Social Security in September 2027.

  • Medicare Part A starts retroactively six months earlier, in March 2027.
  • Pat was HSA-eligible for two months of 2027: January and February.
  • Pat's 2027 limit is 2/12 of $5,500 (the $4,500 self-only limit plus the $1,000 catch-up), about $917.
  • If payroll kept contributing $458 a month through August, Pat put in about $3,667, so roughly $2,750 is an excess contribution.

Pat should ask the HSA custodian to remove the excess and its earnings before the tax filing deadline for 2027. Done in time, there's no 6% excise tax; the earnings removed are taxable income. Had Pat stopped contributions in March 2027, six months before applying, there would be nothing to fix.

Can your spouse keep contributing after you're on Medicare?

Yes, if your spouse is still HSA-eligible. Medicare enrollment ends only your own eligibility. A spouse under 65 who isn't enrolled in Medicare and is covered by an HDHP can keep contributing to their own HSA. If that coverage is family coverage, your spouse can generally contribute up to the family limit to their HSA, because you're no longer an eligible individual sharing it. Catch-up contributions always go into the account of the person who is 55 or older, and each spouse needs their own HSA for that.

Can you pay Medicare premiums from your HSA?

Yes, for most of them. Insurance premiums usually aren't qualified HSA expenses, but there's an exception at 65: Publication 969 allows premiums for health insurance other than a Medicare supplemental policy. In practice that's generally Medicare Part B and Part D premiums and Medicare Advantage premiums. Medigap (Medicare supplement) premiums don't qualify.

If Part B premiums are deducted from your Social Security check, you can still reimburse yourself from your HSA for them; keep the annual Social Security benefit statement that shows the premiums withheld. Premiums for a spouse's Medicare generally qualify only once the account holder is 65 too. Qualified long-term care insurance premiums also count, up to an age-based yearly limit listed in Publication 502.

What happens if you use HSA money for non-medical expenses after 65?

After 65, non-medical HSA withdrawals are taxed as ordinary income but no longer face the 20% additional tax. Before 65, the same withdrawal costs income tax plus the 20% additional tax. That makes the HSA work much like a traditional IRA for non-medical spending in retirement, with one difference: HSAs have no required minimum distributions, so you can leave the money invested as long as you like.

That's what makes saved receipts so valuable: every receipt you've kept is money you can withdraw completely tax-free instead of as taxable income.

What happens to your HSA when you die?

It depends on who inherits it. If your spouse is the beneficiary, the HSA becomes your spouse's HSA, with the same tax treatment. For anyone else, the account stops being an HSA on the date of death, and its value becomes taxable income to that person in that year; it's reduced by any of your qualified medical expenses they pay within one year after your death (Publication 969). That's a strong reason to reimburse your saved receipts during your lifetime rather than leave a large balance to children.

Can you still reimburse old receipts at 65 and later?

Yes. Expenses you paid out of pocket years ago, after your HSA was opened, can still be reimbursed tax-free at 65, 75 or 85. Retirement is often when people draw down their shoebox, using decades of saved receipts to take tax-free money. Read the HSA shoebox strategy guide and keep your records audit-ready with the guide to audit-proof HSA receipts.

Frequently asked questions

Can I contribute to an HSA after I enroll in Medicare?

No. Enrollment in any part of Medicare ends HSA eligibility, but you can keep and spend the account.

Can I use my HSA for Medicare premiums?

Generally yes for Part B, Part D and Medicare Advantage premiums once you're 65, but not Medigap premiums (IRS Publication 969).

Do HSAs have required minimum distributions?

No. Unlike a traditional IRA, an HSA has no required minimum distributions, so the balance can stay invested for life.

Adam Hansen
Adam Hansen · Founder of SnapHSA

Adam is a long-term HSA investor and dad of two who uses the shoebox strategy for his own family. He built SnapHSA after his bank's app made tracking receipts a second job. SnapHSA is a record-keeping tool, not a tax advisor; check your situation with a tax professional.

This guide is general information, not tax or legal advice. Rules can change; check your situation with a tax professional.

Track HSA receipts freeGet the app
HIPAA-aligned securityBuilt with HIPAA-aligned security standards: encrypted in transit and at rest, zero data selling, and no bank logins required.SnapHSA isn't a HIPAA covered entity and isn't HIPAA certified (there's no official HIPAA certification). Aligned means we use similar safeguards. How we protect your data →

Like SnapHSA? Review us on Trustpilot