1Introduction
Quick Answer: Most articles on Medicare and HSA rules stop at “you cannot contribute once you are on Medicare.” The date that actually decides your tax bill is not your birthday and not your Medicare start date. It is the day you file the application.
Almost nobody gets caught by the rule itself. People get caught by the backdating. You sign up in June, Medicare quietly starts in December of the year before, and six months of payroll deposits you already made turn into excess contributions.
That is the gap this page closes. Every rule below comes from the IRS or from Medicare’s own pages, and every dollar figure is a published 2026 number. Companies cannot pay for placement in our rankings.
We do the same thing with every coverage question at DollarVisor and across our insurance comparison hub: find the official source, then show the math. The video below explains the six-month rule in plain terms. The calendars and dollar tables after it are ours.
The HSA 6-Month Rule: What Happens When You Enroll in Medicare at Age 65
Source video: Michael Ruger – Greenbush Financial Group on YouTube
2The Rule in One Line: Medicare Sets Your Limit to Zero
Quick Answer: IRS Publication 969 puts it in one sentence: beginning with the first month you are enrolled in Medicare, your contribution limit is zero. Any part of Medicare counts, including premium-free Part A. The rule also applies to months of retroactive coverage.
Three details inside that sentence do most of the damage.
- Part A alone is enough. People who take “free” Part A at 65 and keep employer coverage often assume nothing changed. Their HSA limit still went to zero.
- It is per month, not per year. You do not lose the whole year. You lose every month from your Medicare start date onward.
- It reaches backward. Publication 969 says plainly that if your enrollment is later backdated, contributions made during that retroactive period are excess.
Nothing else about the account changes. The balance stays yours, it keeps growing tax-free, and you can still spend it. If you need the ground rules first, start with our explainer on how an HSA and its triple tax advantage work. Only the contribution tap closes.
Not sure which month your Medicare actually starts?
The sign-up window you use decides the date, and the date decides your HSA limit. Check the Medicare enrollment deadlines →
3The Six-Month Lookback That Catches People
Quick Answer: Sign up for Part A after 65 and coverage starts six months back from your application date, though never before the month you turned 65. So Medicare.gov says to stop HSA contributions six months before you apply for Medicare or Social Security.
That instruction sits in writing on Medicare’s own working past 65 page: you and your employer should stop contributing six months before you retire or apply for benefits. The backdating itself is described on the when coverage starts page. Read the two together and the real deadline moves half a year earlier than most people plan for. The table shows where it lands.
| You apply in | Part A backdates to | Last month you could contribute | 2026 months allowed |
|---|---|---|---|
| March 2026 | September 2025 | August 2025 | 0 of 12 |
| June 2026 | December 2025 | November 2025 | 0 of 12 |
| September 2026 | March 2026 | February 2026 | 2 of 12 |
| December 2026 | June 2026 | May 2026 | 5 of 12 |
| March 2027 | September 2026 | August 2026 | 8 of 12 |
Source: DollarVisor calendar model applying the Medicare.gov six-month backdating rule and IRS Publication 969 to a beneficiary already past 65. Illustrative scenario. Licence.
Read the first two rows again. Applying in the first half of 2026 can wipe out the entire 2026 contribution year, because the backdate lands in the year before. Nothing in the paperwork warns you.
One relief: the backdate can never start before the month you turned 65. Someone who applies at 65 and three months only gets pushed back three months, not six.
4Your 2026 Contribution Cap, Month by Month
Quick Answer: In the year Medicare starts, your cap is the annual limit times your eligible months divided by twelve. For 2026 the annual limits are $4,400 self-only and $8,750 family, plus $1,000 catch-up once you are 55 or older.
Those limits come from IRS Revenue Procedure 2025-19. The catch-up prorates too, which is why the table below runs off $5,400 for a single filer aged 55-plus and $9,750 for family coverage. Budget it by the month, not by the headline number. That is the same discipline our 28/36 rule guide to what house you can afford applies to a salary.
| Medicare starts | Eligible months | Self-only cap | Family cap |
|---|---|---|---|
| January 2026 | 0 | $0 | $0 |
| February 2026 | 1 |
$450 |
$812.50 |
| April 2026 | 3 |
$1,350 |
$2,437.50 |
| July 2026 | 6 |
$2,700 |
$4,875 |
| October 2026 | 9 |
$4,050 |
$7,312.50 |
| Not in 2026 | 12 |
$5,400 |
$9,750 |
Source: DollarVisor proration model built on the 2026 limits in IRS Revenue Procedure 2025-19 plus the statutory $1,000 catch-up. Licence.
Publication 969 works the same example for 2025: someone who turned 65 in July and enrolled had a limit of $2,650, or $5,300 times six divided by twelve. Same arithmetic, newer numbers.
The trap is payroll. A single filer aged 55-plus putting away $450 a month hits $5,400 by December and blows a $2,700 July cap by June 30. Front-loaded plans fail even faster.
5What Overcontributing Actually Costs
Quick Answer: Excess contributions carry a 6% excise tax, and Publication 969 is clear that it applies to each tax year the excess stays in the account. It is not a one-time fine. It repeats every December 31 until you take the money out.
This is the only part of the Medicare and HSA overlap that carries a direct price tag. The grid below runs the 6% charge against realistic overshoots. Read across to see what waiting costs.
| Excess left in account | After 1 year | After 2 years | After 3 years | After 5 years |
|---|---|---|---|---|
| $900 (two months) | $54 | $108 | $162 | $270 |
| $1,800 (four months) | $108 | $216 | $324 | $540 |
| $2,700 (half a year) | $162 | $324 | $486 | $810 |
| $5,400 (full self-only year) | $324 | $648 | $972 | $1,620 |
| $9,750 (full family year) | $585 | $1,170 | $1,755 | $2,925 |
Source: DollarVisor calculation applying the 6% annual excise tax described in IRS Publication 969 to five excess amounts. Modeled projection. Licence.
Half a year of overcontributing costs $162 if you fix it late and $810 if you ignore it for five years. Fixed on time, it costs nothing.
There is a clean escape, and it has a deadline. Publication 969 lets you withdraw the excess plus any income it earned, with no excise tax on the amount you take out. You just have to do it by the due date of that year’s return, including extensions. The earnings get reported as other income. That is it.
Two things to watch. Employer contributions count toward the same cap, so a company match can push you over without you moving a dollar. And an excess that is not in your W-2 box 1 has to be reported as other income yourself.
Already contributed past your Medicare start date?
Tell us the application date and the deposits, and we will map the months that turned into excess and the deadline to pull them back. See what Medicare costs across Parts A to D →
6What Your HSA Can Still Pay Once Medicare Starts
Quick Answer: Publication 969 treats Medicare premiums as qualified medical expenses once you are 65 or older, with one named exception: Medigap. So Part B, Part D and Medicare Advantage premiums come out tax-free. Medicare supplement premiums do not.
This is where the Medicare and HSA relationship turns from a restriction into an asset. The 2026 prices below are from the CMS premiums and deductibles fact sheet, and the tax treatment is from Publication 969. For the wider list, see our guide to what counts as an HSA eligible expense.
| Cost | 2026 amount | Tax-free from HSA? |
|---|---|---|
| Part B standard premium | $202.90 a month ($2,434.80 a year) | Yes |
| Part B high-income surcharge (top band) | up to $689.90 a month total | Yes |
| Premium Part A (fewer than 30 quarters) | $565 a month ($311 reduced rate) | Yes |
| Part D premium and surcharge | plan premium plus $14.50 to $91.00 | Yes |
| Part A hospital deductible | $1,736 per benefit period | Yes |
| Part B deductible | $283 a year | Yes |
| Medigap premium | varies by state and carrier | No |
Source: CMS 2026 Medicare Parts A & B premiums and deductibles fact sheet, November 14, 2025, with HSA treatment per IRS Publication 969. Licence.
The Medigap line is the one that surprises people. Supplement premiums are the largest recurring Medicare bill for many households, and they are the one bill the account cannot cover tax-free. You can still withdraw the money to pay them after 65 — it just counts as ordinary income. Our breakdown of 2026 Medigap premiums by plan letter shows how large that gap gets.
Two more points worth knowing. Drug plan premiums are covered, so pairing the account with the right plan matters — our guide to how Part D costs, tiers and penalties work sets out the choices. And long-term care premiums qualify within age-based limits, which matters because Medicare itself pays so little of that bill, as our long-term care coverage guide explains.
7Working Past 65: How to Keep Contributing Legally
Quick Answer: Turning 65 does not force you onto Medicare. If you have qualifying job-based coverage, you can delay Part B without a late penalty, and if you also skip Part A you stay HSA-eligible and keep contributing at the full limit.
Medicare’s guidance is that with group coverage available to everyone at the company, you can wait until you or your spouse stop working to take Part B, penalty-free. The catch is that claiming Social Security at the same time auto-enrolls you in Part A. Our guide to whether you need to enroll while working past 65 walks through which employer plans qualify.
Four situations account for most of the Medicare and HSA confusion we see.
- You want to keep contributing. Delay both Part A and Part B, and do not claim Social Security. Confirm with your benefits administrator that your plan really is employer group coverage.
- You already took free Part A. Your limit is already zero. Stop deposits now and check whether the months since enrollment created an excess.
- Your spouse is on Medicare and you are not. You can still contribute the full family limit to your own account if you hold the HDHP coverage. Your spouse’s enrollment zeroes out their limit, not yours.
- You are about to retire. Set the stop date six months before your application, not your last day at work.
Once you do stop, the tax break does not vanish. After 65 the 20% penalty on non-medical withdrawals disappears entirely under Publication 969, so the account behaves like a traditional retirement account for anything else and stays tax-free for medical costs. If you are weighing where new savings should go instead, our comparison of HSA and FSA differences is the place to start.
Working past 65 with an HSA at your job?
Whether delaying Part B pays depends on the size of your employer and what its plan actually covers. Compare your coverage options side by side →
8Conclusion
Quick Answer: Pick the month you will apply for Medicare or Social Security. Count back six months. That is your last contribution month, and everything else about Medicare and HSA planning follows from it.
The rule is simple. The calendar is not, because it runs backward from a date you choose rather than forward from a birthday. Write the application date on a calendar first, then set payroll to match the prorated cap.
Then let the account do its second job. It cannot take deposits anymore, but it can pay the Part B premium, the Part D premium and the deductibles for the rest of your life, tax-free. Compare that against the rest of your bill in our breakdown of what Medicare costs across Parts A to D in 2026.
9Frequently Asked Questions
1. When exactly do I have to stop HSA contributions before Medicare?
Six months before you apply for Medicare or Social Security, if you are past 65. Medicare.gov states this directly on its working past 65 page. The reason is that Part A backdates up to six months from your application date, and your contribution limit is zero for every month Medicare covers, including retroactive months.
2. Can I contribute to an HSA if I only have Medicare Part A?
No. IRS Publication 969 says the limit goes to zero beginning with the first month you are enrolled in Medicare, and it does not carve out premium-free Part A. Many people take Part A at 65 without realizing it ends HSA eligibility, even when they keep full employer coverage alongside it.
3. What happens if I contributed after my Medicare start date?
Those deposits are excess contributions, taxed 6% for each year they stay in the account. You can avoid the tax entirely by withdrawing the excess plus any earnings it produced before the due date of that year’s return, including extensions. The earnings get reported as other income for the year you take them out.
4. Can I use HSA money to pay Medicare premiums?
Yes, once you are 65 or older. Part B, Part D and Medicare Advantage premiums are qualified medical expenses under Publication 969, so they come out tax-free. Medigap is the one exception the IRS names: Medicare supplement premiums are not qualified, no matter your age.
5. My spouse is on Medicare but I am not. Can I still contribute?
Yes. Eligibility is individual. If you hold the high-deductible family plan and are not enrolled in Medicare yourself, you can contribute the full 2026 family limit of $8,750, plus a $1,000 catch-up if you are 55 or older. Your spouse’s enrollment zeroes out their own limit, not yours.
Not sure if you stopped contributing in time?
Send us your Medicare application month and this year’s deposits. We will show your prorated cap, the exact months that became excess, and the deadline to withdraw them without the 6% tax.
This article is for information only and is not tax, financial, insurance or medical advice. See our disclaimer.