When to make your last contribution
Premium-free Part A goes back up to six months from the date you sign up for it or apply for Social Security or Railroad Retirement benefits, but no earlier than the first month you're eligible. Medicare & You 2027 gives this guide:
| If you sign up for Medicare | Make your last HSA contribution |
|---|---|
| During your Initial Enrollment Period | The month before you turn 65 |
| During it, and your birthday is on the 1st | Two months before you turn 65 |
| Less than 6 months after you turn 65 | The month before you turn 65 |
| 6 or more months after you turn 65 | 6 months before the month you apply |
If you claim Social Security at 65 or later, you're enrolled in Part A, so plan your last HSA contribution before you file for retirement benefits too.
Your limit in the year Medicare starts
The IRS figures your limit month by month. In 2027 the self-only limit is $4,500 and the family limit is $9,000, plus $1,000 if you're 55 or older. Say your self-only coverage and Part A both start in July: you were eligible for six months, January through June, so your limit before any catch-up is $2,250.
Can you delay Medicare to keep contributing?
Only if you're still working with group coverage that lets you delay Medicare, you haven't claimed Social Security, and you turn down Part A as well as Part B. Ask your employer's benefits office first. When that job coverage ends, you have eight months to sign up for Part B without a penalty. See Part B if you're still working.
The California tax twist
California doesn't recognize HSAs. The Franchise Tax Board says HSA contributions aren't deductible on your California return, and interest and other earnings inside an HSA are taxable in California in the year they're earned. That doesn't change the Medicare rules, but it matters when you compare keeping money in an HSA with other savings. Ask a tax professional about your own return.
Using your HSA after Medicare
- You can keep spending your HSA on qualified medical expenses, tax-free under federal rules.
- After 65, money you take out for non-medical costs is taxed as income but has no extra federal penalty.
- Your HSA can pay Medicare premiums and out-of-pocket costs, but not Medigap premiums.
To compare Medigap, Part D and Medicare Advantage plans from the companies they work with when you leave work coverage, call a licensed insurance agent at (949) SENIORS (949-736-4677), TTY 711. More in our HSA and Medicare guide.
Related questions
Do I need Part B if I'm still working?
The 20-employee rule.
How does CalPERS work with Medicare?
What retirees must do at 65.
When should I sign up at 65?
Your seven-month window.
Sources
- Medicare.gov — Medicare & You 2027 (PDF), Health Savings Account
- Medicare.gov — Working past 65
- IRS — Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
- California Franchise Tax Board — 2025 Instructions for Schedule CA (540)
More questions in this guide
- Do I need Medicare Part B if I'm still working at 65?
- How does CalPERS health coverage work with Medicare?
Part of the guide: Working Past 65 in California · 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 for Medicare premiums, such as Part B, Part D and Medicare Advantage premiums. Medigap premiums don't qualify.
What if I already contributed after Medicare started?
Those are excess contributions. The IRS charges a 6% excise tax each year they stay in the account, unless you withdraw them and their earnings by your tax return's due date, including extensions.
Do my employer's contributions count?
Yes. The limit covers all contributions to your HSA, including your employer's, so ask payroll to stop both in time.
Medicare in your California county
Plans, local agents and help, county by county: Los Angeles · San Diego · Orange · Riverside · San Bernardino · Santa Clara · Alameda · Sacramento · Contra Costa · Fresno · Kern · San Francisco · Ventura · San Joaquin · San Mateo · Stanislaus · Sonoma · Tulare · Solano · Santa Barbara · All 58 counties →