Skip to content

Your complete guide to American retirement

Social Security and Medicare: Understanding the Connection

Collecting Social Security at 65 enrolls you in Medicare Parts A and B and moves your premium into a deduction; if you are not, you sign up yourself, get billed, and must watch the HSA and late-penalty rules.

Social Security and Medicare: Understanding the Connection - guide

If you are working past 65 at an employer with 20 or more workers, contributing to a Health Savings Account (HSA), and delaying Social Security toward age 67, standard Medicare advice can cost you a 6% IRS tax penalty.

Social Security and Medicare connect at three points for your household: automatic enrollment, a six-month Part A lookback that blocks HSA deposits, and how Part B premiums and IRMAA surcharges get billed.

Which Medicare and HSA path fits your job at 65

Your next move at 65 depends on whether you collect Social Security, how many employees your employer’s plan covers, whether you or your employer fund an HSA, and when your job ends.

The 20-employee threshold decides which coverage pays first when you keep working past 65. Match your household to the row below before filing anything with the Social Security Administration.

Your situation at 65 or older HSA contributions allowed? Part A and Social Security Part B and premium billing
20 or more employees, active HSA, delaying Social Security Yes, until six months before you apply Delay both until six months after the last deposit Delay; enroll within eight months after job or coverage ends
20 or more employees, collecting Social Security No; Part A cuts limit to zero Part A starts automatically; cannot claim without Part A Starts automatically at 65 (decline if job-covered); deducted from check
Fewer than 20 employees, with or without an HSA No once Medicare pays primary Sign up because Medicare pays first Usually sign up; billed by CMS-500 until you claim
20 or more employees, no HSA deposits from anyone Not applicable Optional; premium-free Part A can pay secondary Delay while job-covered; billed or deducted once enrolled
Retired at 65 without job coverage, delaying Social Security No once enrolled in Medicare Sign up during Initial Enrollment Period Sign up during Initial Enrollment Period; CMS-500 bills every three months

At employers with 20 or more workers, your job plan pays primary and Medicare pays secondary. Under 20 employees, Medicare pays first and the employer plan may pay little until you carry Parts A and B.

Ask your employer’s benefits administrator, in writing, how many employees count toward the plan and whether its prescription drug coverage is creditable for Part D.

Why claiming Social Security or Part A shuts down your HSA

Common retirement advice says everyone should take premium-free Part A at 65 because it costs nothing and covers secondary hospital bills. That rule backfires if either you or your employer puts money into an HSA.

Under IRS rules, enrolling in any part of Medicare, including premium-free Part A, drops your HSA contribution limit to zero for each month you are enrolled. Employer contributions count toward that zero limit too.

You cannot collect Social Security retirement benefits at 65 or older and turn down Part A. Protecting your HSA therefore requires delaying Social Security as well as Part A.

If you received Social Security or Railroad Retirement Board benefits for at least four months before 65, Parts A and B start automatically. Your card arrives about three months before your 65th birthday month.

You can follow the card’s instructions to decline Part B with current job coverage, but Part A stays active and blocks HSA deposits. Otherwise, nothing starts automatically at 65.

People born in 1960 or later do not reach full retirement age until 67. Those two years between 65 and 67 leave you in charge of your own Medicare and HSA timing through Social Security.

Stopping HSA deposits six months before your Social Security filing month

Apply for Social Security or Part A after 65, and Part A coverage is backdated up to six months, though never earlier than your 65th birthday month. HSA deposits during those backdated months become excess contributions.

Excess contributions are taxable and face a 6% annual excise tax unless you withdraw them and their earnings in time. Stopping all deposits six months before filing prevents that tax penalty.

Suppose you plan to apply in July, which can backdate Part A to the previous January. Follow these steps so January through June stay free of excess HSA contributions:

  1. Six months before filing (January): Stop both your payroll deductions and any employer HSA contributions before the first paycheck of the month.
  2. Middle months (February through May): Check every pay stub and HSA statement to confirm no employer match, wellness deposit, or payroll deduction posted.
  3. One month before filing (June): Review your prorated annual limit in our guide to HSAs in retirement and confirm the cutoff date with your benefits administrator and a tax professional.
  4. Filing month (July): Apply for Social Security or Part A through the Social Security Administration online, by phone, or at a local office.

Money already inside your HSA before the six-month lookback stays yours. You can still spend it tax-free on qualified medical expenses, including Part B, Part D, and Medicare Advantage premiums, though not Medigap premiums.

Enrolling in Part B on time when work coverage ends or covers under 20

Woman circling a date on a wall calendar
Your Initial Enrollment Period lasts seven months around the month you turn 65.

If your employer has fewer than 20 workers, delaying Medicare to keep an HSA usually backfires. Because Medicare pays primary below 20 employees, your job plan may pay little until you enroll in Parts A and B.

Once you leave a 20-or-more employer after 65, your Special Enrollment Period lasts eight months from when the job or the coverage ends, whichever comes first. Have your employer complete the employment verification Social Security requires.

Only coverage from current employment protects you from penalties. COBRA and retiree plans do not count, as detailed in our guide to COBRA and the Part B late penalty.

If you retire at 65 without job coverage, enroll during your seven-month Initial Enrollment Period: three months before your birthday month, that month, and three months after. Apply before your birthday month and coverage starts on its first day.

Apply during or after your birthday month and coverage starts the next month. Skipping Part B without job coverage adds a late penalty of 10% for each full 12-month period you delayed.

You pay that surcharge for life; two full years late adds 20%, or $41.88 extra, totaling $251.28 a month in 2027.

Miss every window and the General Enrollment Period runs January 1 to March 31, starting coverage the next month with the penalty still attached. Part D adds a penalty after 63 days without creditable drug coverage.

Check the full schedule in our Medicare enrollment periods guide. For free one-on-one counseling on coordinating job coverage with Medicare, contact your State Health Insurance Assistance Program at shiphelp.org.

Paying CMS-500 bills now and handling IRMAA and COLA once checks start

If you enroll in Part B while still delaying Social Security, Medicare bills you directly. For 2027, the standard Part B premium is $209.40 a month and the Part B deductible is $292.

Without a Social Security check, Medicare mails a Medicare Premium Bill, form CMS-500, usually every three months. At the 2027 standard rate, a three-month bill equals $628.20, and you can pay it four ways:

Unpaid bills can end your coverage, so call 1-800-MEDICARE with questions about billing, Easy Pay, or start dates. Once you claim Social Security after your HSA freeze, Part B shifts automatically to a benefit deduction.

Part D and Medicare Advantage premiums can also come out of your check if you ask your plan. Check your first Social Security benefit notices to confirm the deduction moved cleanly from quarterly billing.

Working past 65 can also trigger higher-income surcharges when you claim. For 2027, IRMAA applies when 2025 modified adjusted gross income was above $112,000 for single filers or $224,000 for joint filers.

A single filer with 2024 MAGI of $120,000 pays $284.10 for Part B plus a $14.50 Part D add-on. That is $95.70 a month, or $1,148.40 for the year, more than the standard premium.

The top tier, at $500,000 or more single or $750,000 or more joint, pays $689.90 for Part B plus $91.00 for Part D. Social Security deducts both once your benefit starts.

If your income dropped because you stopped working, ask Social Security to use more recent income, as our IRMAA guide explains. CMS updates premiums and IRMAA brackets every fall.

For 2027, Social Security benefits rise 3.6% in January 2027, adding $72 before deductions on a $2,000 monthly benefit. Your COLA notice shows both the raise and your Part B deduction, as our COLA guide explains.

9 Comments

Comments are closed.