The marketable headline on HSAs after age 65 is already priced: once Medicare starts, new HSA contributions must stop. IRS Publication 969 says your HSA contribution limit is zero beginning with the first month you are enrolled in Medicare, and the rule applies to periods of retroactive Medicare coverage as well.[1] The new part, or at least the part many people still learn too late, is that premium-free Medicare Part A can begin up to 6 months before the month you apply if you are over 65.[2][3]

That timing detail changes the problem. The real risk is not choosing the wrong fund inside the HSA or forgetting the catch-up contribution. The real risk is letting payroll keep feeding the account after a retroactive Part A start date has already turned those deposits into excess contributions.[1][4][5]

Image context: the lead image uses an immersive paperwork-table scene rather than a medical stock image, chart, or administrative-building filler. That is the right scale for this article because the mistake comes from filing mechanics, benefit timing, calendar months, and payroll deductions before it ever looks like a hospital bill.

Priced vs new

What is priced is the basic rule. If you are enrolled in Medicare, you are no longer allowed to make new HSA contributions for the months covered by Medicare.[1] Plenty of savers know that much. Many also know the companion fact that HSAs become more flexible after 65 on the withdrawal side: nonmedical distributions are still taxable, but the extra 20% penalty no longer applies once you reach age 65.[1]

What is still under-read is the stop-date problem. SSA says Part A coverage begins up to 6 months before the month you apply if you are over 65, and Medicare.gov says the same thing in its coverage-start rules for premium-free Part A, while adding that coverage cannot start earlier than the month you turned 65.[2][3] Publication 969 then closes the loop: contributions made during the period of retroactive coverage are considered excess.[1]

That combination means "I will stop contributing when I retire" is often the wrong operating rule. The cleaner rule is "I need to stop early enough that any retroactive Part A start date cannot overlap with payroll contributions."[4][5]

Three scenarios that change the answer

1. You sign up during your initial Medicare window

Medicare calls your first chance to sign up the Initial Enrollment Period, a 7-month window that starts 3 months before the month you turn 65 and ends 3 months after it.[3] If you qualify for premium-free Part A and sign up in that window, Medicare says Part A starts the month you turn 65. If your birthday falls on the first day of the month, coverage generally starts the month before you turn 65.[3]

In this branch, the HSA stop date is relatively straightforward. The 2026 Medicare & You handbook says you can avoid a tax penalty by making your last HSA contribution the month before you turn 65, and if your birthday is on the first day of the month, by making your last contribution 2 months before you turn 65.[5] This is the simple branch because coverage timing is not reaching backward from a much later filing date.

2. You work past 65 and delay Part A because you want to keep contributing

This is where the real money often sits. If you are still working, still on an HSA-eligible high-deductible plan, and still collecting employer contributions, delaying Part A can be rational. The catch is that the contribution clock does not stop on the day you mentally retire. It stops based on when Medicare coverage starts.[1][4]

Medicare's "Working past 65" guidance gives the operational answer directly: if you have an HSA, you and your employer should stop contributing 6 months before you retire or apply for Social Security benefits, so that you avoid a tax penalty.[4] The 2026 handbook frames the same rule more specifically. If you wait to sign up for Medicare 6 or more months after turning 65, you can avoid a tax penalty by stopping HSA contributions 6 months before the month you apply for Medicare.[5]

That is the branch most people miss because the form they are thinking about is a Medicare form, while the penalty they create shows up as an HSA excess-contribution problem on the tax side.[1][2][5]

3. You try to maximize one last year with the last-month rule

Publication 969 allows a saver who is an eligible individual on the first day of the last month of the tax year to be treated as eligible for the entire year for contribution purposes. That is the HSA last-month rule.[1] Used carefully, it can raise the permitted contribution for a year in which coverage started late.

Used sloppily near Medicare enrollment, it creates a second timing trap. Publication 969 says the testing period for the last-month rule runs from that last month through the last day of the 12th month following it. If you fail to remain an eligible individual during that period for reasons other than death or disability, the excess amount is pulled into income and faces a 10% additional tax.[1]

That means a saver who leans on the last-month rule shortly before Medicare starts can create two separate problems at once: prorated HSA eligibility for the Medicare months, and last-month-rule recapture if the testing period is broken.[1] The setup can look clever in November and expensive by the next filing season.

Six numeric anchors

  1. Age 65 is the hinge: that is the standard Medicare eligibility age for this planning problem, and the age at which the extra 20% penalty on nonmedical HSA withdrawals disappears.[1][3]
  2. Up to 6 months of retroactive Part A coverage can apply when someone over 65 signs up later.[2][3]
  3. 7 months is the standard Initial Enrollment Period: 3 months before, the month of your 65th birthday, and 3 months after.[3]
  4. $1,000 is the HSA catch-up contribution for eligible individuals age 55 or older, but it matters only while Medicare has not started.[1]
  5. 6 months before applying is Medicare's conservative rule of thumb for stopping HSA contributions when enrollment is being delayed beyond 65.[4][5]
  6. 10% is the additional tax that can apply if the last-month rule later fails during its testing period.[1]

Those anchors show why this is a sequencing problem, not a yield problem.

Strongest counterweight

The strongest pushback is that many people should delay Part A. That is true. If you are still employed, still covered by an HSA-qualified plan, and still receiving employer money into the account, the value of continued HSA eligibility can easily outweigh the convenience of early Medicare enrollment.[4][5] The article is not arguing for early enrollment by default.

It is arguing for cleaner sequencing. Delaying Part A can be smart. Delaying the HSA stop date until the day you file can be careless if the retroactive window reaches backward into months that payroll already touched.[1][2][3]

Falsifier

This framework would be too cautious if Medicare or the IRS changed either side of the rule: if premium-free Part A no longer started retroactively for late filers over 65, or if Publication 969 stopped treating contributions made during the retroactive period as excess.[1][2][3] Without those two features acting together, the six-month stop rule would lose most of its force.

Watchlist

  1. The month you plan to apply for Social Security or Medicare Part A: once that month becomes real, the HSA stop date should be counted backward immediately, not approximated later.[2][4]
  2. Employer payroll timing: if HSA money is going in by paycheck, the safe move is to stop the deduction before the retroactive window can begin, not after HR catches up.[4][5]
  3. Any use of the last-month rule: if a late-year contribution strategy depends on remaining HSA-eligible through the testing period, a future Medicare start date can break the plan.[1]

Takeaway

For HSA savers over 65, the expensive mistake is usually not enrolling in Medicare. The expensive mistake is treating Medicare enrollment as a same-day event when the tax rules treat Part A as something that can reach backward.

That is why the edge in this decision is not "how much more can I squeeze into the HSA?" The edge is setting a stop date that respects the retroactive clock before the clock quietly rewrites the tax status of your last few contributions.

Sources

  1. Internal Revenue Service, Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans - HSA contribution rules, last-month rule, testing period, Medicare enrollment limit, catch-up contribution, and penalty treatment.
  2. Social Security Administration, "When to sign up for Medicare" - Part A coverage can begin up to 6 months before the month you apply if you are over 65, with an HSA warning.
  3. Medicare.gov, "When does Medicare coverage start?" - Initial Enrollment Period timing, first-of-the-month birthday rule, and late sign-up start dates for premium-free Part A.
  4. Medicare.gov, "Working past 65" - guidance to stop HSA contributions 6 months before retiring or applying for Social Security benefits.
  5. Medicare & You 2026, the official U.S. government Medicare handbook - HSA stop-date chart for Initial Enrollment Period and delayed-enrollment scenarios.