A guy named Tom โ€” Dartmouth retired plumber, but he kept consulting on the side after his "official" retirement at 64 โ€” came to a workshop a couple months ago with a question that gets to the heart of this article. "Matt, I'm 66. I'm still working about 30 hours a week. Do I sign up for Medicare? Do I take Social Security? My HSA at the consulting client has been getting funded โ€” is that still legal? Nobody at the office knows." Right? Three rules. Three different parts of the federal government. Three sets of consequences if you get them wrong. And it turns out almost nobody gets a clean explanation of how they interact. Let me walk you through them.

The three rules are: the Social Security earnings test, the Medicare enrollment timing rules, and the HSA-and-Medicare conflict. Tom needed all three explained at once because they all activate at the same age and they all interact. Here we go.

Rule 1: The Social Security Earnings Test

If you claim Social Security before your Full Retirement Age (which is 67 for anyone born in 1960 or later) and you keep working, the Social Security Administration applies an "earnings test" to your benefits. The earnings test withholds part of your benefit if your earned income โ€” wages from employment, net self-employment earnings โ€” exceeds certain limits.

2026 Social Security Earnings Test

If you're under your FRA for the entire year โ€” earn up to $24,480. SSA withholds $1 of benefit for every $2 earned above that.

In the calendar year you reach FRA, before the month you turn FRA โ€” earn up to $65,160. SSA withholds $1 for every $3 above that.

Once you reach FRA (the month of your FRA birthday onward) โ€” no limit, no withholding. Work and earn whatever you want.

Here's the part most people miss. Withheld benefits are not lost. Once you reach FRA, the Social Security Administration recalculates your benefit and credits the withheld amounts back to you in the form of higher monthly checks for the rest of your life. So the earnings test isn't a tax โ€” it's a deferral.

Tom is 66 and his FRA is 67. If he claims SS now while still earning, say, $45,000 a year from consulting, the math works like this: he's $20,520 over the $24,480 limit, so SSA would withhold $10,260 of his annual benefit. If his benefit was supposed to be $24,000 a year, he'd actually receive $13,740 in 2026. Then in 2027 โ€” his FRA year โ€” until the month he turns FRA, the higher $65,160 threshold applies. After his FRA birthday, no withholding at all.

The strategic question for Tom: should he claim now, knowing the earnings test will withhold most of the benefit (which gets credited back later as a higher monthly check)? Or should he wait until FRA when he can collect the full benefit immediately AND avoid early-claiming reductions? For most people working past 62, the answer is "wait until FRA at the earliest, ideally to 70 if longevity and spouse situation support it." The earnings test alone is rarely a reason to claim earlier โ€” but it is a reason not to claim earlier and assume you'll get the full check.

Rule 2: Medicare enrollment when you have employer coverage

Most pre-retirees enroll in Medicare during their seven-month Initial Enrollment Period (IEP) โ€” three months before their 65th birthday month, the birthday month itself, and three months after. Miss that window without alternative coverage and you face a lifetime late-enrollment penalty on Part B (10% of the standard premium for every 12-month period delayed).

The exception that matters for working pre-retirees: if you have creditable employer-sponsored coverage from an employer with 20 or more employees, you can delay Medicare Part B without penalty until that coverage ends. You then have an 8-month Special Enrollment Period to sign up after your employment or coverage ends.

Two important caveats:

For Tom, this is where it gets interesting. He's not covered by an employer health plan โ€” he's a consultant, working as a 1099 contractor, no group coverage. So the "delay Part B because I have employer coverage" exception doesn't apply to him. He should have enrolled in Medicare at 65 during his IEP. If he didn't, he's potentially facing a late-enrollment penalty when he eventually does enroll.

Rule 3: The HSA-and-Medicare conflict

This is the trap most pre-retirees walk into without realizing it. Once you are enrolled in any part of Medicare โ€” including Part A by itself โ€” you can no longer contribute to a Health Savings Account. Your existing HSA balance can stay where it is and be used for qualified medical expenses (it doesn't go away), but new contributions must stop.

The brutal twist: when you claim Social Security at any point past 65, you are automatically enrolled in Medicare Part A, retroactively up to six months. So if you've been making HSA contributions in the months before claiming SS, those contributions are now considered excess contributions. The IRS imposes a 6% excise tax on excess HSA contributions for every year they remain in the account.

Tom's situation: he has an HSA from the consulting client and has been contributing $4,000 a year. If he claims Social Security at 67, the retroactive Part A enrollment applies. If he made HSA contributions in the six months before his Social Security claim, those contributions are excess and he owes the excise tax.

The fix is straightforward but has to be intentional:

The HSA contribution limit in 2026 is approximately $4,300 individual / $8,650 family, plus a $1,000 catch-up for age 55+. Losing the ability to contribute is meaningful โ€” these are some of the most tax-advantaged dollars in the U.S. tax code (deductible on the way in, growth-tax-free, withdrawable tax-free for medical expenses). For pre-retirees who plan to keep working past 65 with HDHP coverage, the HSA-and-Medicare timing is its own planning conversation.

How the three rules interact

Here's where Tom's situation got complicated. He had three decisions and they were all linked:

The integrated answer for Tom: delay Social Security to 70 (his health and spouse situation supported it), enroll in Medicare Part A and Part B during the next general enrollment period (accepting a small late-enrollment penalty), and stop HSA contributions effective when Part A activates. Mixed result โ€” he had a small Medicare penalty he could have avoided, but the SS delay strategy more than offset it.

The four-step decision framework for working pre-retirees

What this looks like in practice

Working past 65 is a great choice for plenty of people โ€” meaningful work, social connection, financial cushion, mental engagement. But the federal rules around Social Security, Medicare, and HSAs all activate at 65 and don't coordinate well unless you make them. The penalty for getting it wrong isn't enormous โ€” usually a Medicare late-enrollment penalty in the hundreds of dollars per year, or an HSA excise tax in the low hundreds โ€” but it adds up over a long retirement and feels punitive when you discover you stepped on a rake nobody told you about.

The best version of this conversation happens 12 to 18 months before your 65th birthday โ€” when you can plan the timing intentionally instead of reacting to a missed deadline. Sleep at night, knowing the three rules are coordinated.

Free Social Security Workshop

Walk through the working-past-65 decisions in a room of pre-retirees

The Social Security Workshop covers the earnings test, claiming-age strategy, and the working-past-65 coordination problem. Free, sixty minutes, plain English. Held at libraries and community colleges across southeastern Massachusetts.

The four outcomes:

  1. I never see you again. We wave at Home Depot.
  2. You take what you learned to your existing advisor. Great.
  3. You do nothing. The one I hate the most.
  4. We're a fit and we work together.
See upcoming workshop dates →

The bottom line

If you're working past 65, three federal rules activate at the same time and don't coordinate themselves. The earnings test withholds Social Security benefits if you claim before FRA and earn too much (but credits them back at FRA). Medicare enrollment can be deferred if you have creditable employer coverage from a 20+ employer; otherwise, late-enrollment penalties are permanent. HSA contributions must stop when any Part of Medicare begins, and the 6-month retroactive Part A from claiming Social Security past 65 can create excess HSA contributions if you weren't paying attention. Coordinate the three decisions before your 65th birthday โ€” not after.

Matt Forbes

Founder, Forbes Retirement. Provides Social Security and Medicare coordination planning as part of a written-plan consultation for pre-retirees still working past 65.

Sources for the rules cited in this article: Social Security Administration earnings-test rules (ssa.gov); Centers for Medicare & Medicaid Services Initial Enrollment Period and Special Enrollment Period rules (medicare.gov); IRS Publication 969 for HSA rules and Medicare interaction (irs.gov).

The client described is a composite illustration. This article is general educational information and is not Social Security, Medicare, or tax advice. Consult your tax preparer or a qualified advisor before making coordinated enrollment decisions. Employer-coverage creditability determinations should be confirmed in writing with your employer's HR.