Skip to content

Medicare

HSA and Medicare: When to Stop Contributing

Stop contributing to your HSA in the month before Medicare starts, and if you sign up for Social Security or Part A after 65, remember Part A is backdated up to six months, so stop six months before you apply. Enter your birthday and application month for your last contribution month and prorated limit.

IRS 2026 and 2027 HSA limits Verified October 23, 2026

Your details

Date of birth

Your HSA coverage

Results update as you type. We don’t save what you enter; shared links keep it after the “#”, which never reaches our servers.

Last month you can contribute

February 2027

Part A will start March 2027 — backdated up to 6 months from your application. Your 2027 limit shrinks to $916.

Part A coverage starts

March 2027

Eligible months in 2027

2

Prorated 2027 limit

$916

of $5,500 incl. catch-up

The 6-month look-back trap

Applying for Social Security after 65 enrolls you in Part A retroactively. Contributions made in those backdated months are excess contributions — withdraw them before your tax deadline to avoid a 6% excise tax.

Show the math

You can’t contribute to an HSA for any month you’re enrolled in Medicare. Part A taken after 65 is backdated up to 6 months, never before the month you turned 65. The yearly limit is prorated by the months you were eligible; the $1,000 catch-up for 55+ is included. Money already in the HSA can still be spent tax-free on qualified costs, including Medicare premiums.

Next stepLining up Medicare dates?Your sign-up window and when coverage starts each month.
Email these results

When does Medicare end HSA contributions?

You can't contribute for any month you're enrolled in Medicare. The trap is timing: when you apply for Social Security or Part A after 65, Part A is backdated up to six months — never before the month you turned 65 — so contributions in those months become excess. (IRS Publication 969)

Example: you turn 66 and apply in June. Part A starts in December of the previous year, so your last eligible month was November, and the prior year's limit is prorated to eleven-twelfths.

Limit 2026 2027
Self-only $4,400 $4,500
Family $8,750 $9,000
Catch-up (55+) $1,000 $1,000

(IRS Rev. Proc. 2026-24)

Red piggy bank, a symbol of health savings
Photo: Mikhail Nilov / Pexels

HSA After 65: What You Can Still Spend It On

Your HSA keeps working after Medicare. You can spend it tax-free on qualified medical costs, and after 65 that list includes Medicare premiums: Part B, Part D, Medicare Advantage and the IRMAA surcharges. It does not include Medigap premiums.

  • Deductibles, copays, dental, vision and hearing aids
  • Part B and Part D premiums, including IRMAA
  • A portion of long-term care insurance premiums, up to age-based limits

After 65, withdrawals for anything else are taxed as income but no longer carry the 20% penalty.

Senior woman doing yoga on a mat at home
Photo: Kampus Production / Pexels

Our take: keep the HSA as your Medicare-premium fund

Stop contributions on time, then let the balance pay Part B premiums for years — tax-free money for a bill you'll have anyway. Line up your dates with the Medicare sign-up window, avoid the Part B late penalty, and see what your 401(k) still allows on the catch-up contribution calculator. Still working at 65? The employer-plan rules for Medicare at 65 explain when you can delay.

Frequently asked questions

Can my spouse keep contributing after I'm on Medicare?

If your spouse isn't on Medicare and has HSA-eligible coverage, they can keep contributing to their own HSA, including the family limit if the plan covers you both.

What if I only take Part A?

Any part of Medicare ends HSA eligibility, including premium-free Part A alone. That's the most common way people still working at 65 trip over this rule.

I contributed during the backdated months. How do I fix it?

Ask your HSA custodian to return the excess contribution and its earnings before your tax-filing deadline. Otherwise a 6% excise tax applies every year it stays in.

Can I still reimburse old medical bills?

Yes. Expenses you incurred after the HSA was opened can be reimbursed tax-free at any time, even years later and after Medicare starts.

Sources

Primary sources only. We re-check them whenever an agency publishes new figures.

  1. IRS
  2. IRS
  3. IRS
  4. CMS

Did this answer your question?

Where people go next