2027 alert16 companies end some Medicare Advantage plans in California on December 31. (CMS data) 9 days left in Annual Enrollment (ends Dec. 7).Is your plan ending? →
Working Past 65

HSAs and Medicare

If you contribute to an HSA, enrolling in Medicare requires careful timing. The 6-month lookback rule explained.

The HSA-Medicare Conflict

If you have a Health Savings Account (HSA) and approach 65, you face a critical decision. Once you enroll in any part of Medicare — including Part A, even if you pay no premium for it — you can no longer contribute to an HSA. This catches many California workers off guard, particularly those at tech companies and large employers with HSA-compatible high-deductible health plans.

The 6-Month Lookback Rule

When you enroll in Medicare or claim Social Security at age 65 or later, Part A coverage is retroactive up to 6 months (but no earlier than your 65th birthday month).

This means HSA contributions made during those 6 retroactive months are technically excess contributions — subject to taxes and a 6% excise tax penalty unless withdrawn before your tax deadline.

How to Avoid the HSA Penalty

  1. Stop HSA contributions 6 months before enrolling in Medicare. If you plan to enroll at 65, stop contributions at 64.5.
  2. Don’t claim Social Security before 65 if you want to keep contributing to your HSA. Claiming Social Security automatically enrolls you in Part A.
  3. Pro-rate your annual contribution based on the number of months you’re HSA-eligible.

You Can Still USE Your HSA After Medicare Enrollment

The rule only prohibits new contributions. You can continue to:

  • Pay for qualified medical expenses tax-free with existing HSA funds
  • Pay Medicare premiums (Part B, Part D, Medicare Advantage) with HSA funds tax-free
  • Pay for long-term care insurance with HSA funds

Strategy for Workers Who Want to Keep Contributing

If you’re 65+ and still working with HSA-compatible coverage, you can decline Medicare enrollment entirely (including Part A) and continue HSA contributions. But this requires being eligible to delay — your employer must have 20+ employees and you should not be receiving Social Security benefits.

Frequently asked questions

Can I contribute to an HSA after enrolling in Medicare?

No. Enrolling in any part of Medicare, including Part A, even if you pay no premium for it, makes you ineligible to contribute to a Health Savings Account. You can still use existing HSA funds for qualified expenses.

What is the 6-month HSA lookback rule?

When you enroll in Medicare or claim Social Security at 65+, Part A is retroactive up to 6 months. Contributions made during those 6 months become excess contributions subject to penalties unless removed.

Can I use HSA money to pay Medicare premiums?

Yes. You can use existing HSA funds to pay Part B premiums, Part D premiums, and Medicare Advantage premiums tax-free. You cannot pay Medigap premiums with HSA funds.

Licensed insurance agents for California

These independent insurance agents are licensed in California and work with Benefits Life, the publisher of this site. When they enroll you in a plan, the agent and Benefits Life may be paid by the insurance company. Learn more.

Jim Maher

Jim Maher

Based in CaliforniaAccepting new clients

Independent licensed insurance agent in California

Rocklin

David Smith

David Smith

Based in CaliforniaAccepting new clients

Independent licensed insurance agent in California

Yreka

Titphalith Yem

Titphalith Yem

Based in CaliforniaAccepting new clients

Independent licensed insurance agent in California

Chino · English

Leo Luna

Leo Luna

Based in CaliforniaAccepting new clients

Independent licensed insurance agent in California

Manteca · English

See all California agents →

Request a call from

Only this agent gets your request. No cost to you.

Visit an insurance agency office in California

These offices are independently owned by licensed insurance agents and agencies that work with Benefits Life, the publisher of this site. They are not Benefits Life offices. When they enroll you in a plan, the agency and Benefits Life may be paid by the insurance company. If you already have an agent, contact your agent for help with your plan. Learn more.

McGrew & Maher Insurance Services

5701 Lonetree Blvd, Suite 322, Rocklin, CA 95765

Hours: Mon–Fri 8 AM – 5 PM

See all California offices →