The rule in plain terms
Under IRS Publication 969, you can't contribute to a health savings account for any month you're enrolled in Medicare, and that includes retroactive Medicare coverage. Contributions for those months count as excess contributions, which generally carry a 6% excise tax each year they stay in the account.
Part A causes the surprise. Medicare.gov says that when you sign up after 65, Part A coverage can start up to 6 months before the month you apply, but no earlier than the month you turned 65. OCI's Medicare guide gives Wisconsinites the same warning: stop HSA contributions 6 months before you apply.
Your choices
| If you… | Then |
|---|---|
| Want to keep contributing and have coverage from current work at an employer with 20 or more employees | You can usually delay Part A and Part B, then use the 8-month special enrollment period |
| Are ready to stop contributing | Sign up for Part A (most pay no premium), and stop contributions at least 6 months before you apply |
| Already get Social Security benefits | You have Part A, so contributions must stop |
| Work for an employer with fewer than 20 employees | Medicare usually pays first, so you likely need Medicare, and contributions stop |
A safe timeline
- Pick your Medicare start month, usually the month after your job coverage ends.
- Stop HSA contributions, yours and your employer's, at least 6 months before you apply for Medicare or Social Security.
- Figure your last year's limit. For 2027 the full-year limit is $4,500 for self-only coverage or $9,000 for family coverage, plus $1,000 if you're 55 or older, reduced for the months you're on Medicare.
- Apply for Part A and Part B with forms CMS-40B and CMS-L564 when job coverage ends.
- Keep your receipts. HSA money stays yours and can pay qualified medical costs tax-free.
A spouse who isn't on Medicare and has their own qualifying high-deductible coverage may be able to keep contributing. Family HSA rules are detailed, so talk with a tax professional.
Wisconsin notes
Delaying Part B while you have job coverage also keeps Wisconsin's 6-month Medigap open enrollment for later, because it starts with Part B (Ins 3.39 (3r)). If you buy coverage through HealthCare.gov with an HSA-eligible plan, contributions still stop when Medicare starts; see leaving HealthCare.gov at 65.
Related: working past 65 in Wisconsin, small employers and Medicare and self-employed and turning 65. Full guide: Working past 65. To go over Medicare options when you retire, 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 — When does Medicare coverage start?
- Medicare.gov — Which insurance pays first?
- Wisconsin OCI — Guide to Health Insurance for People with Medicare in Wisconsin, PI-002 (R 04/2026)
- Wisconsin Administrative Code — Ins 3.39 (3r)
More questions in this guide
- Can COBRA or Wisconsin state continuation let me delay Medicare Part B?
- I'm a Wisconsin farmer turning 65. What do I need to know about Medicare?
- What happens to my HealthCare.gov plan when I turn 65 in Wisconsin?
- I'm self-employed in Milwaukee and turning 65. How does Medicare affect me?
- My employer has fewer than 20 employees. Does Medicare pay first?
- Do I need Medicare at 65 if I'm still working in Wisconsin?
Part of the guide: Working past 65 in Wisconsin: Medicare and your job coverage · All questions
Frequently asked questions
Can I use my HSA to pay Medicare premiums?
Yes, once you're 65, the IRS lets you use HSA money tax-free for Part B, Part D and Medicare Advantage premiums, but not for Medigap premiums.
Can I delay Part A if I already get Social Security?
No. People who get Social Security benefits are enrolled in Part A, so HSA contributions must stop once those benefits start.
Can my employer keep putting money in my HSA after I'm on Medicare?
No. Under IRS Publication 969, contributions from anyone, including your employer, count toward your limit, which is zero for months you're enrolled in Medicare. Ask your employer to stop its contributions too.
Medicare in your Wisconsin county
Plans, licensed agents and help, county by county: Milwaukee · Dane · Waukesha · Brown · Racine · Outagamie · Winnebago · Kenosha · Rock · Marathon · Washington · La Crosse · Sheboygan · Eau Claire · Walworth · Fond du Lac · St. Croix · Ozaukee · Dodge · Jefferson · All 72 counties →