The rule in one line
IRS Publication 969 lists being enrolled in Medicare as one of the things that ends HSA eligibility. It doesn't matter whether that's Part A alone, Part B alone or both. From the first month of Medicare, no new money can go in, from you or from payroll.
The six-month look-back
Medicare.gov says that if you're 65 or older, Part A starts up to six months before the month you sign up or apply for Social Security benefits, though never earlier than the month you first became eligible. Contributions made during those retroactive months count as excess contributions. That's why Medicare.gov tells HSA holders to stop contributing six months before they apply.
| Example | Detail |
|---|---|
| Age and job | Pam, 67, is an engineer at a Draper software company with 300 employees and an HSA-qualified health plan |
| Plan | Retire at the end of December and apply for Medicare and Social Security in early December |
| Look-back | Part A could reach back to June |
| What she does | Stops payroll HSA contributions after May, and asks Social Security to start Part B on January 1 using her Special Enrollment Period |
Contribution limits in the Medicare year
For 2027 the HSA limit is $4,500 for self-only coverage and $9,000 for family coverage, plus a $1,000 catch-up for people 55 and older. In the year Medicare starts, the limit is prorated: Publication 969 counts only the months before Medicare. Overfunded accounts can be fixed by withdrawing the excess before the tax deadline; ask the HSA custodian.
When delaying Part A makes sense
- You work for an employer with 20 or more employees, so the job's plan pays first.
- You aren't collecting Social Security yet.
- Your premium-free Part A would add little while the group plan is primary.
At a small employer, where Medicare pays first, keeping the HSA usually isn't worth the risk of large hospital bills. See do I need Medicare if I'm still working?
Utah public employees
State and school workers covered by PEHP should check their own plan before 65, because PEHP's Medicare Supplement for retirees requires Parts A and B once they leave work. Our URS and PEHP guide covers the retiree side.
When you're ready to retire, read how to sign up for Part B after you retire and our working past 65 guide. To compare Medigap, Part D or Medicare Advantage plans from the companies they work with, you can request a call from a licensed insurance agent.
Sources
- IRS Publication 969 — Health Savings Accounts and Other Tax-Favored Health Plans
- Medicare.gov — How do I sign up for Medicare? (HSA and the 6-month look-back)
- Medicare.gov — Who pays first?
- PEHP — Medicare Supplement program
More questions in this guide
- Is COBRA creditable coverage for Medicare?
- Do I need Medicare at 65 if I'm still working in Utah?
- How do I sign up for Part B when I retire from a Utah employer after 65?
Part of the guide: Working past 65 in Utah: Medicare and your job's health plan · All questions
Frequently asked questions
Can I still spend the money already in my HSA?
Yes. The balance is yours. IRS Publication 969 lets people 65 or older use HSA money tax-free for Medicare premiums such as Part B, Part D and Medicare Advantage, plus deductibles, copays and coinsurance. Medigap premiums don't qualify.
I already get Social Security. Can I skip Part A?
No. If you're collecting Social Security benefits, Part A starts automatically at 65, and HSA contributions have to stop from that month.
Does delaying Part A cost me a penalty?
Not if your Part A would be premium-free and you have coverage from current work. The penalty for late Part A applies only to people who pay a Part A premium.
Can my younger spouse keep contributing?
Possibly. Medicare stops your contributions, not your spouse's. If your spouse is under 65, not on Medicare and covered by a qualifying high-deductible plan, they may contribute to their own HSA.
Medicare in your Utah county
Plans, licensed agents and help, county by county: Salt Lake · Utah · Davis · Weber · Washington · Cache · Tooele · Iron · Box Elder · Summit · Wasatch · Uintah · Sanpete · Sevier · Duchesne · Carbon · San Juan · Millard · Juab · Morgan · All 29 counties →