Here's the short answer. Once you're enrolled in any part of Medicare, you can't put new money into a Health Savings Account (HSA). The trap is timing. If you sign up for premium-free Part A after age 65, your coverage starts up to 6 months back from the month you apply (but never before the month you turned 65). Any HSA money you put in during those backdated months is over the limit and can bring a tax penalty. Medicare's advice: stop HSA contributions 6 months before you apply for Medicare or for Social Security retirement benefits. You can keep spending the money already in the account.
Why Medicare and HSA Contributions Don't Mix
An HSA is a tax-advantaged account that only people with a high-deductible health plan can contribute to. It is not the same as a flexible spending account (FSA) or a health reimbursement account (HRA). Medicare counts as other health coverage. So once you enroll in Part A, Part B, or both, you no longer qualify to contribute. Your employer can't contribute for you either.
This is true even if you keep working and stay on the high-deductible plan. The rule is about being enrolled in Medicare, not about retiring.
The 6-Month Retroactive Part A Rule
Most people get Part A with no premium because they paid Medicare taxes while working. If you delay that free Part A past 65 and sign up later, Medicare backdates your coverage. Part A starts 6 months before the month you sign up, or before the month you apply for Social Security or Railroad Retirement benefits. It can't start earlier than the month you turned 65.
Backdated coverage is normally a good thing. It means Medicare can pay hospital bills from those months. But for HSA purposes, you were "enrolled in Medicare" during those 6 months, even though you didn't know it at the time. Contributions made during that window are treated as if you weren't eligible to make them.
What the Trap Looks Like in Real Life
Picture someone who turns 65 in March, keeps working, and keeps funding an HSA. They decide to retire and file for Social Security and Medicare in October of the following year. Part A is backdated 6 months, to April. Every HSA dollar they or their employer put in from April through October now counts as an excess contribution. They'll need to pull that money back out or pay tax on it, and they may not find out until they do their taxes.
The fix is simple if you plan ahead: stop contributions 6 months before the month you plan to apply.
Your Options If You Want to Keep Contributing
Whether you can safely delay Medicare depends on your coverage.
| Your situation at 65 | Can you delay Part A and keep the HSA? |
|---|---|
| Job-based coverage from your or your spouse's current employer with 20 or more employees | Yes. You may delay both Part A and Part B and keep contributing. You'll get an 8-month Special Enrollment Period when the job or coverage ends, with no late penalty. |
| Current employer with fewer than 20 employees | Generally no. Medicare pays first, so you should enroll in Part A and Part B at 65. HSA contributions must stop. |
| COBRA or retiree coverage | No. These don't count as current-employment coverage. Enroll at 65 to avoid gaps and penalties. See COBRA and Medicare. |
| Already collecting Social Security | No. You're enrolled in Part A automatically, so contributions must stop. |
Delaying Part A is a personal decision. Part A is free for most people, and delaying it means giving up hospital coverage that would have cost nothing. Talk with your employer's benefits office and a tax professional about whether the HSA tax break outweighs that. Our Working Past 65 guide covers the Part B side of this decision.
What You Can Still Do With an HSA After Medicare
Enrolling in Medicare only stops new contributions. The money already in the account is yours. You can keep using it for qualified medical expenses, including many Medicare costs. Ask a tax professional which costs qualify. An HSA you built up while working can still help pay for Medicare for years.
Checklist Before You Apply
- Pick your target month for applying for Medicare or Social Security.
- Count back 6 months. Stop your own HSA contributions and ask your employer to stop theirs by that month.
- Confirm your employer size and coverage type. Only current-employment coverage from an employer with 20 or more employees lets you delay safely.
- Check your contribution total for the year. Ask your tax professional to confirm how much you could contribute for the year you enroll.
- Save everything. Keep your employer coverage notice and application dates in case questions come up later.
Common Questions
I already contributed during the backdated months. What now?
Contact your HSA administrator and a tax professional right away. Excess contributions can usually be withdrawn to limit the damage, but the details and deadlines are tax rules, not Medicare rules. Don't ignore it. The problem doesn't go away on its own.
Does the 6-month rule apply if I sign up during my Initial Enrollment Period at 65?
No. Part A can't start earlier than the month you turn 65. The backdating only matters when you sign up later than that. Your HSA contributions simply need to stop when Part A begins.
Can I enroll in Part B only and skip Part A to protect my HSA?
No. Enrolling in any part of Medicare ends your HSA eligibility. To keep contributing you would need to delay all of it, which is only safe with current-employment coverage from a larger employer.
My spouse is on Medicare. Can I still contribute to my HSA?
Your spouse's Medicare doesn't affect your own eligibility, as long as you have a qualifying high-deductible plan and aren't on Medicare yourself. See Medicare for Couples for how one spouse's enrollment affects the other's coverage.
Related Guides
- Working Past 65: Medicare & Employer Coverage
- Turning 65: Start Here
- Enrollment & Deadlines
- Common Medicare Mistakes
- Official: Medicare.gov: Working past 65
- Official: Medicare.gov: When does Medicare coverage start?