AMDA-IMIC

Medicare When You Still Have Employer Coverage

How Medicare interacts with employer-sponsored health coverage for people who work past 65, when you can delay enrollment without a penalty, and HSA rules.

Who this is for

People approaching 65 who are still employed, HR professionals advising older workers on Medicare coordination, and family members helping someone decide whether to delay Medicare enrollment.

Medicare eligibility begins at 65, but enrollment is not always required immediately. If you are still working and have health insurance through your employer, you may be able to delay some parts of Medicare without facing a late enrollment penalty — depending on your employer’s size and the type of coverage you have. Getting this decision wrong can leave you with coverage gaps, unexpected costs, or HSA contribution problems. This page explains the rules governing how Medicare and employer insurance interact when you work past 65. It is general information, not personalized advice; your specific situation may require consultation with your HR department, a benefits counselor, or the Social Security Administration.

The 20-employee threshold: who is primary?

The most important rule in Medicare-employer coordination is the 20-employee rule. Under federal law, employers with 20 or more employees are required to offer active employees and their covered spouses employer health coverage that acts as the primary payer — meaning the employer plan pays first before Medicare. In this situation, an active employee over 65 can legitimately delay Medicare Part B enrollment without accruing a late enrollment penalty, as long as the employer coverage remains active.

For employers with fewer than 20 employees, the rules flip. Medicare becomes the primary payer for employees who are Medicare-eligible, even while they are still actively working. If a Medicare-eligible employee at a small employer has not enrolled in Medicare, the employer plan may pay claims as if Medicare had already paid its share — leaving the employee responsible for costs that Medicare would have covered. Working at a small employer and missing the Medicare enrollment window can therefore create an immediate and ongoing gap in coverage.

If you are unsure whether your employer meets the 20-employee threshold, your HR department can clarify how your employer classifies itself for Medicare Secondary Payer purposes.

Delaying Part B without a penalty: what you need

To delay Part B enrollment past 65 without a penalty, you need to meet these conditions simultaneously:

  1. Your employer has 20 or more employees.
  2. You are an active employee (not retired) enrolled in employer-sponsored coverage as a current employee — not as a retiree.
  3. Your employer’s coverage is considered primary to Medicare.

Retiree coverage — even if it comes from a former employer — does not protect you from the Part B late enrollment penalty. Retiree plans are generally secondary to Medicare, meaning Medicare is expected to be primary once you are eligible. If your only coverage at 65 is retiree insurance, you should enroll in Medicare on time.

Part A at 65: usually worthwhile even while working

Most working people who are Medicare-eligible can still enroll in premium-free Part A without disrupting their employer coverage. For people who qualify for premium-free Part A (based on their own or their spouse’s work history), there is generally no cost, and having Part A active provides a backup for hospital costs.

However, enrolling in Part A — even if you keep your employer insurance and delay Part B — immediately disqualifies you from making new contributions to a Health Savings Account (HSA). If you are contributing to an HSA and want to continue doing so, you would need to delay Part A enrollment as well. The tax benefits of HSA contributions are significant for some people; the decision involves weighing the value of remaining HSA-eligible against the value of having Part A active.

Health Savings Accounts and Medicare: the contribution cutoff

HSAs are paired with qualifying High-Deductible Health Plans (HDHPs). To contribute to an HSA, you cannot be covered by Medicare or most other non-HDHP coverage. Once you enroll in Medicare Part A or Part B, you immediately lose HSA contribution eligibility — even if you remain enrolled in your HDHP through your employer.

There is also a retroactivity concern with Part A. When you apply for Social Security retirement benefits, Medicare Part A enrollment is generally automatic. Additionally, if you apply for Social Security after age 65, Part A may be retroactively backdated up to six months before your application date. This retroactive enrollment can create an unintentional HSA over-contribution if you contributed to an HSA during those months. People who want to delay Medicare and maintain HSA eligibility should apply for Medicare directly through SSA rather than through Social Security benefit applications.

You can continue to use existing HSA funds after enrolling in Medicare to pay for qualified medical expenses, including Medicare Parts B, C, and D premiums. You simply cannot make new contributions once Medicare is active.

Coordination of benefits: how the two payers work together

When you have both employer insurance and Medicare, the two plans must coordinate to avoid paying more than 100 percent of your claims. The term for this process is coordination of benefits (COB). Which plan pays first (primary) and which pays second (secondary) is determined by the rules described above.

In a typical scenario for an employee at a large employer:

  1. Employer plan pays first as primary, covering its standard portion of the approved claim.
  2. Medicare pays second as secondary, potentially covering some or all of the remaining cost-sharing from the primary plan — depending on what Medicare’s payment rules allow.

In this arrangement, having both coverages active can reduce your out-of-pocket costs substantially for medical services covered by both plans. However, some employer plans have coordination language that adjusts their payment when Medicare is active, so it is worth reviewing your employer plan’s Summary Plan Description to understand how it handles secondary coordination.

Documents and terms you’ll see

When navigating Medicare alongside employer coverage, you will encounter these terms in HR materials and government correspondence:

  • Primary payer — the plan that pays first on a claim; determines the baseline from which the secondary payer calculates its share
  • Coordination of benefits — the process by which two insurers determine which pays first and how much each owes
  • Special Enrollment Period — the eight-month window following the end of qualifying employer coverage that allows you to enroll in Part B without a penalty
  • Medicare Secondary Payer — the federal rule framework that determines when Medicare pays as secondary rather than primary; CMS enforces MSP rules

Using the Special Enrollment Period when you leave your job

When your employment ends or your employer coverage terminates, a Special Enrollment Period opens for Part B. This SEP lasts eight months from the date your employment or coverage ends, whichever occurs first. You do not have to wait until coverage ends to use the SEP — you can enroll while still employed if you prefer to coordinate the start of your Medicare coverage with your planned retirement date.

To enroll using an SEP, you will typically need documentation of your employer coverage. The Social Security Administration may request a completed CMS-L564 form (Request for Employment Information) signed by your employer, confirming the dates your employer-sponsored coverage was active. Starting the documentation process before your employment ends avoids delays.

COBRA coverage that you elect after leaving employment is not equivalent to active employer coverage for SEP purposes. If you elect COBRA instead of enrolling in Medicare during the SEP, the COBRA period does not extend your SEP. You could face a Part B late enrollment penalty when you eventually try to enroll.

Putting it all together: a step sequence for leaving employment at or after 65

  1. Confirm your employer’s size (20 or more employees or fewer) with your HR department.
  2. Determine whether you want to continue HSA contributions — if so, plan your Medicare enrollment timing to avoid premature Part A activation.
  3. Request a creditable coverage letter from your employer’s plan confirming your drug coverage was creditable; you will need this to avoid a Part D late enrollment penalty.
  4. Obtain and complete Form CMS-L564 with your employer to document coverage dates.
  5. Apply for Part B through SSA within eight months of your coverage or employment ending.
  6. If enrolling in a Part D plan, do so within two months of losing your employer’s creditable drug coverage to avoid a penalty.
  7. Review the Medicare Basics guide to understand how Part D, Medigap, and Medicare Advantage options fit into your post-employment coverage plan.

Key terms

TermPlain meaningGlossary
Primary payer The insurer that pays its share of a medical claim first; the primary payer's decision determines what the secondary payer owes →
Coordination of benefits The process by which two or more insurers determine the order and amount each pays when a person is covered by more than one health plan →
Special Enrollment Period A window outside the Initial Enrollment Period when you can enroll in Medicare without a late enrollment penalty, triggered by qualifying events such as losing employer coverage →
Health Savings Account An HSA is a tax-advantaged account used with a high-deductible health plan; contributions are no longer permitted once you enroll in any part of Medicare →

Common questions

Do I have to enroll in Medicare at 65 if I am still working?
Not necessarily. If your employer has 20 or more employees and provides health insurance that qualifies as primary coverage, you can generally delay Part B enrollment without a late enrollment penalty. You should still enroll in Part A if you qualify for premium-free Part A, as it costs nothing in most cases. Part D can typically also be delayed if your employer plan's drug coverage is creditable.
What is the 20-employee rule?
Federal law requires employers with 20 or more employees to make employer-sponsored coverage primary over Medicare for active employees and their covered spouses. Employers with fewer than 20 employees are not subject to this rule, which means Medicare generally becomes primary even while you are working — making it important to enroll in Medicare on time at those smaller employers.
When does my Special Enrollment Period start for Part B?
Your Part B SEP starts when you lose employer-sponsored coverage or when your employment ends, whichever comes first. The SEP lasts eight months from that date. You can also use the SEP while still employed if you choose to enroll before coverage ends.
What happens if Medicare is primary and I have not enrolled?
If your employer has fewer than 20 employees, Medicare is considered the primary payer for you as an active employee. If you have not enrolled in Medicare, your employer plan may pay as if Medicare had paid its share — leaving you responsible for costs that Medicare would have covered. This can create significant gaps in coverage.
Can I keep contributing to my HSA if I enroll in Medicare?
No. Once you are enrolled in any part of Medicare — including Part A — you are no longer eligible to make new contributions to a Health Savings Account. You can still spend existing HSA funds on qualified medical expenses, including Medicare premiums for Parts B, C, and D.
Does enrolling in Part A affect my HSA eligibility even if I delay Part B?
Yes. HSA eligibility requires that you be enrolled only in a qualifying high-deductible health plan and not covered by other disqualifying coverage. Medicare Part A, once active, makes you ineligible to contribute to an HSA. If you want to continue HSA contributions, you would need to delay both Part A and Part B.
What is the COBRA consideration for Medicare?
COBRA is generally not considered qualifying coverage that replaces Medicare for purposes of the SEP. If you lose job-based coverage and elect COBRA instead of enrolling in Medicare, the COBRA period does not extend your Part B SEP. You may face a late enrollment penalty if you wait until COBRA ends to enroll in Part B.
How do I notify Medicare when I leave my job?
You apply for Part B through the Social Security Administration — online, by phone, or in person. When you apply using your SEP, you will need documentation of your employer coverage, typically a letter from your employer confirming coverage and the date it ended. The form CMS-L564 (Request for Employment Information) can be completed by your employer to support the SEP enrollment.

Sources

  1. Medicare.gov — Working past 65
  2. CMS — Medicare Secondary Payer
  3. Medicare.gov — HSA and Medicare
  4. IRS — Health Savings Accounts and Medicare
  5. KFF — Medicare and Working Past 65

Last reviewed: September 2026