Picture a 66-year-old project engineer in the Energy Corridor who is still on his company’s high-deductible health plan, still maxing out his Health Savings Account every January, and still feeling no rush to touch Medicare because his group coverage is solid. Picture a nurse manager at a Texas Medical Center hospital who turned 65 last spring, plans to work two more years, and likes the triple tax advantage her HSA gives her too much to give it up. Picture a small-business owner in Spring Branch — past 65, no boss, no big employer plan, paying for her own HDHP — who finally decides to start Social Security to bring in some monthly income while she keeps the business running. Three very different Houston workers. All three are sitting on the same quiet trap: Medicare’s 6-month HSA rule.
Here is the direct answer, before anything else. If you are past 65 and you contribute to an HSA, you must stop your HSA contributions at least six months before the month you enroll in any part of Medicare — or before you file for Social Security after 65, because that filing automatically signs you up for Medicare Part A. The reason is a federal quirk that catches thousands of working seniors every year: when you enroll in premium-free Part A after age 65, your coverage does not start on your application date. It back-dates up to six months (but never before the month you turned 65). Because you cannot legally contribute to an HSA for any month you are enrolled in Medicare, those retroactive months turn contributions you already made into excess contributions — and excess contributions carry a 6% IRS excise tax for every year they sit in the account.
This guide walks Houston workers approaching or past 65 through exactly how the rule works, how to time your last contribution, how to pro-rate your annual limit, how to fix an overcontribution if it already happened, and what you can still do with your HSA dollars once Medicare begins. The figures here are verified against the IRS and Medicare.gov. Where the timing gets personal — your group plan, your Social Security plans, your spouse’s HSA — that is where Wise Insurance Agency sits down with Houston families and works it out at the kitchen table. This is information, not tax advice, so pair it with your tax professional or our team before you make the call.
- Stop HSA contributions at least 6 months before you enroll in Medicare or file for Social Security after 65 — that is the practical core of the rule.
- Premium-free Part A back-dates up to 6 months (but never before the month you turned 65) when you enroll after your 65th birthday.
- Filing for Social Security after 65 auto-enrolls you in Part A — you cannot keep one without the other once benefits start.
- Any month you are enrolled in any part of Medicare, you are not HSA-eligible — so contributions in the retroactive months become excess.
- Excess contributions face a 6% excise tax per year until corrected; the 2026 limits are $4,400 self-only / $8,750 family, plus a $1,000 age-55 catch-up.
- You can still spend existing HSA funds after Medicare — including for Part B, Part D, and Medicare Advantage premiums — you just can’t add new money.
What this guide covers
- Why you can’t contribute to an HSA once you’re enrolled in any part of Medicare
- The Part A 6-month retroactive rule, explained on a Houston timeline
- How claiming Social Security after 65 auto-enrolls you in Part A
- The “stop 6 months before you apply” rule in practice
- The 6% excise tax and how to fix an overcontribution
- Pro-rating your annual limit: the last-month rule and testing period
- How a spouse’s HSA is affected (and how it isn’t)
- What you can still do with HSA funds after Medicare starts
- A Houston worked example, start to finish
- Frequently asked questions
Why you can’t contribute to an HSA once you’re enrolled in any part of Medicare
Start with the rule that everything else hangs on. To contribute to a Health Savings Account, the IRS requires you to be an HSA-eligible individual. One of the conditions of eligibility is that you have no other disqualifying health coverage — and Medicare counts as disqualifying coverage. The moment you are enrolled in Medicare, you are no longer an eligible individual, and your right to make new HSA contributions ends. This is spelled out in IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans.
Two points trip people up here. First, it is any part of Medicare — Part A alone is enough. Many Houston workers assume that because they only have premium-free Part A and never signed up for Part B, they are still in the clear. They are not. Part A by itself disqualifies you. Second, the disqualification is measured month by month. HSA eligibility is determined on the first day of each month, so if you are enrolled in Medicare on the first of a given month, you are not eligible to contribute for that month at all.
That monthly structure matters enormously once you combine it with the retroactive start date, which we cover next. It is the reason a single application in, say, August can reach backward and disqualify contributions you made as far back as February. If you want a refresher on how Medicare’s parts fit together before going further, our Medicare overview and Medicare Eligibility pages lay out the basics.
The Part A 6-month retroactive rule, explained on a Houston timeline
This is the mechanism that turns a simple rule into a tax trap. When you enroll in premium-free Part A after the month you turned 65, the Social Security Administration does not start your coverage on the day you apply. It back-dates your Part A entitlement by up to six months — but never earlier than the first day of the month you turned 65. The retroactive start is automatic; you do not get to decline it.
Walk it through on a Houston calendar. Say you turned 65 in January 2026 but kept working and kept your employer HDHP, so you delayed Medicare. In August 2026 you decide to enroll in Part A. The SSA back-dates your Part A entitlement six months — to February 2026. That means you were, for HSA purposes, enrolled in Medicare from February forward. Every HSA contribution you made for February through August is now an excess contribution, even though when you made them you believed you were eligible.
The chart below shows that lookback on a timeline so you can see how far back a single application reaches.
Two boundaries keep this from being even worse. The lookback is capped at six months, and it can never reach before the month you turned 65. So if you turned 65 in May 2026 and apply in August 2026, the back-date only goes to May (three months), not all the way to February — because you weren’t even eligible for premium-free Part A before 65. The closer your application is to your 65th birthday, the shorter the reach.
How claiming Social Security after 65 auto-enrolls you in Part A
Here is the part that surprises the most Houston workers, because it has nothing to do with filling out a Medicare form. If you are past 65 and you file for Social Security retirement benefits, the Social Security Administration automatically enrolls you in premium-free Part A. You do not get to take the monthly Social Security check and decline Part A — the two are linked once you start benefits after 65. And because Part A back-dates, your HSA eligibility can end retroactively the moment your benefits begin.
This catches the self-employed and small-business owners especially hard. The Spring Branch business owner from our opening doesn’t think of herself as “going on Medicare” — she just wants the income. But the day she files for Social Security, she is enrolled in Part A, it back-dates up to six months, and any HSA contributions she made in that window are now excess. The Social Security Administration explains the benefit-and-Medicare linkage in its Medicare benefits overview.
The same logic applies if you delayed Social Security to grow the benefit and then file at, say, 67 or 68. The back-date still applies (capped at six months), so the “stop contributing six months early” discipline matters at any age past 65, not just at 65 exactly.
The “stop 6 months before you apply” rule in practice
Put the last two sections together and you get a single, memorable planning rule: count back six months from the month your Medicare or Social Security will begin, and stop all HSA contributions by then. Because the back-date can reach six months, stopping six months before your enrollment month guarantees that no contribution lands in a month Medicare will retroactively claim.
For most Houston workers there are two clean scenarios:
- You plan to enroll in Medicare or claim Social Security in a known future month. Stop HSA contributions six full months before that month. If you’ll retire and go on Medicare in December, your last HSA-eligible contribution month is May (and you should pro-rate that year — see section 6).
- You’re keeping employer coverage indefinitely and delaying Medicare. You can keep contributing as long as you remain HSA-eligible and have not enrolled in any part of Medicare. But the day you decide to enroll, remember the six-month reach: contributions in the prior six months may already be excess. Plan the stop date before you submit anything.
Workers with qualifying employer coverage past 65 generally enroll later through a Special Enrollment Period (SEP) rather than the Initial Enrollment Period (IEP) — the seven-month window around your 65th birthday. The SEP lets you delay Part B (and sometimes Part A) without a late penalty while you keep group coverage. Whichever window applies, the HSA stop-date math is the same: six months ahead of when Part A will actually begin. Our employer health insurance page and the broader health insurance overview explain how group coverage interacts with Medicare timing, and we coordinate it directly at our North Houston office and our South Houston office.
| Your situation | When Part A begins | Last safe HSA contribution month |
|---|---|---|
| Retire & go on Medicare Dec 2026 | December 2026 | May 2026 (pro-rate the year) |
| File for Social Security Sept 2026 (age 66) | Back-dated up to March 2026 | February 2026 |
| Turned 65 in July, apply for Part A in Oct | Back-dated to July (capped at 65) | June 2026 |
| Keep employer HDHP, delay Medicare via SEP | Not yet enrolled | Ongoing — until 6 months before you apply |
The 6% excise tax and how to fix an overcontribution
If money lands in your HSA for a month you turn out not to be eligible, that money is an excess contribution. The IRS imposes a 6% excise tax on excess contributions, and — this is the part that stings — the tax applies for each year the excess amount remains in the account. Leave it sitting there and you pay 6% again the next year, and the next. It is reported on IRS Form 5329, and the rule is detailed in IRS Publication 969.
The good news: you can fix it, and if you act in time you can avoid the 6% entirely. There are two main repair paths.
- Withdraw the excess (plus its earnings) before your tax filing deadline. If you remove the excess contribution and any earnings it generated before your federal return’s due date (including extensions) for that year, you avoid the 6% excise tax on it. The withdrawn earnings are included in your taxable income for the year, but the 6% penalty is avoided.
- Absorb the excess in a future eligible year. If you don’t withdraw it, the excess can be “used up” by contributing less than your limit in a later year when you are eligible — but you owe the 6% for every year the excess remained before that happens. For someone heading permanently into Medicare, this path usually doesn’t apply, because they won’t have future eligible years; withdrawal is typically the cleaner fix.
Because the correction interacts with earnings calculations, your tax return, and the exact filing deadline, this is the moment to loop in a tax professional or our team. The donut below illustrates how a one-year, uncorrected excess gets taxed.
Pro-rating your annual limit: the last-month rule and testing period
The year you transition to Medicare is rarely a full HSA-eligible year, so the IRS lets you contribute a pro-rated amount based on the months you actually were eligible. The annual limit is divided by 12 and multiplied by the number of months you were an eligible individual on the first day of the month. The 2026 limits — verified against IRS Rev. Proc. 2025-19 — are $4,400 for self-only and $8,750 for family coverage, plus the $1,000 catch-up if you’re 55 or older.
So if you were HSA-eligible for six months of 2026 with self-only coverage, your pro-rated limit is 6/12 of $4,400 = $2,200 (plus 6/12 of the $1,000 catch-up = $500 if you’re 55+). Contribute more than that and the rest is excess. The bar chart shows how the self-only limit shrinks with each month of Medicare enrollment.
There is a tempting shortcut called the last-month rule. It says that if you are HSA-eligible on December 1 of a year, you may contribute the full annual amount for that year — no pro-rating. The catch is the testing period: you must remain HSA-eligible through December 31 of the following year. If you fail the testing period — and going on Medicare is the classic way to fail it — the extra amount you contributed above your true pro-rated limit becomes taxable income, plus a 10% additional tax.
| 2026 HSA figure | Amount | Source / status |
|---|---|---|
| Self-only contribution limit | $4,400 | IRS Rev. Proc. 2025-19 (verified 2026) |
| Family contribution limit | $8,750 | IRS Rev. Proc. 2025-19 (verified 2026) |
| Age-55 catch-up | $1,000 | Statutory, fixed (verified 2026) |
| HDHP minimum deductible (self / family) | $1,700 / $3,400 | IRS Rev. Proc. 2025-19 (verified 2026) |
| HDHP out-of-pocket max (self / family) | $8,500 / $17,000 | IRS Rev. Proc. 2025-19 (verified 2026) |
| Excise tax on excess contributions | 6% per year | IRS Publication 969 (stable rule) |
How a spouse’s HSA is affected (and how it isn’t)
An HSA is an individual account — there is no such thing as a joint HSA, even for married couples. That distinction does the heavy lifting here. When one spouse enrolls in Medicare, it ends that spouse’s contribution eligibility, but it does not automatically end the other spouse’s.
Take a common Houston household: a 66-year-old husband goes on Medicare while his 62-year-old wife is still working and covered under a family HDHP. The husband must stop contributing to his HSA. But the wife, if she remains HSA-eligible (covered by a qualifying HDHP, not enrolled in Medicare, not claimed as a dependent), can keep contributing to her own HSA — and because the family is still under family HDHP coverage, she may contribute up to the family limit in her account, plus her own $1,000 catch-up once she is 55.
A few nuances Houston couples should keep straight:
- The catch-up is per individual and must go in that individual’s own account. A wife cannot deposit her husband’s catch-up into her HSA, and vice versa. Once the husband is on Medicare, his catch-up opportunity simply ends.
- The family limit can be split between spouses’ accounts by agreement, but the combined total cannot exceed the family limit.
- The still-eligible spouse can pay the Medicare spouse’s qualified expenses from her HSA, including some of his Medicare costs (more on that next).
What you can still do with HSA funds after Medicare starts
This is the reassuring part, and it is worth stating plainly because so many people assume Medicare “freezes” the HSA. It does not. Once you’re on Medicare you simply stop adding money — but the balance remains yours to spend tax-free on qualified medical expenses for the rest of your life. In fact, an HSA becomes one of the more useful accounts you can carry into retirement, because Medicare opens up several premium categories you can pay from it.
Per IRS Publication 969, once you are 65 or older you can use HSA funds tax-free to pay:
- Medicare Part B premiums (the monthly medical-insurance premium).
- Medicare Part D prescription drug plan premiums.
- Medicare Advantage (Part C) plan premiums — yes, you can pay an MA premium from the HSA.
- Out-of-pocket costs — deductibles, copays, coinsurance, and many other qualified medical expenses.
| Expense after Medicare starts | HSA tax-free? | Notes |
|---|---|---|
| Medicare Part B premium | Yes | Allowed once you are 65+ |
| Medicare Part D premium | Yes | Prescription drug plan premium |
| Medicare Advantage (Part C) premium | Yes | Allowed once you are 65+ |
| Medicare Supplement (Medigap) premium | No | Generally not an HSA-eligible expense |
| Deductibles, copays, coinsurance | Yes | Qualified medical expenses |
| New HSA contributions | Not allowed | Contribution eligibility ends at Medicare enrollment |
One important exception to know: you generally cannot use HSA funds to pay Medicare Supplement (Medigap) premiums tax-free. Part B, Part D, and Medicare Advantage premiums qualify; Medigap premiums do not. If you’re weighing Medicare Advantage against a Medigap-plus-Part-D approach, that HSA-premium difference is one more factor — and it’s exactly the kind of trade-off we map out on our Medicare Plans page and in person.
A Houston worked example, start to finish
Let’s make it concrete with the Energy Corridor engineer from our opening. Call him David. He turned 65 in January 2026, kept his employer HDHP with family coverage, and planned to keep working and contributing to his HSA. In early 2026 he set up automatic contributions and, by August, had deposited about $5,100 toward the family limit (he was also planning to add his $1,000 catch-up).
In August 2026, David’s wife encourages him to “just get on Part A — it’s premium-free, why not have it as backup?” He applies. Here’s what actually happens:
- Part A back-dates to February 2026 — six months before his August application (and after his January 65th birthday, so the full six months apply).
- His HSA-eligible months in 2026 shrink to one: January only. February through December he is treated as Medicare-enrolled.
- His true 2026 limit is 1/12 of the family limit: $8,750 ÷ 12 = about $729, plus 1/12 of his $1,000 catch-up (about $83) = roughly $812.
- His excess contribution is about $4,288 ($5,100 contributed minus ~$812 allowed). Left uncorrected, that’s a 6% excise tax of roughly $257 for 2026 — and again each year it remains.
What David should have done — and what we would have walked him through before he touched that application — was either (a) delay the Part A application and keep contributing as an eligible individual under his employer plan, or (b) if he genuinely wanted Part A in August, stop his HSA contributions back in February and limit his 2026 deposit to the one eligible month. Either path avoids the excess entirely.
If David already over-contributed, the fix is to withdraw the excess plus earnings before his 2026 federal filing deadline (including extensions) to sidestep the 6% — coordinated with his tax professional. This is the precise kind of timing question where a short conversation before you act saves a real headache. For where Medicare fits in the broader picture, see our Medicare hub.
Near 65 and still funding an HSA? Let’s get the timing right before you apply.
Wise Insurance Agency helps Houston workers coordinate Medicare enrollment, Social Security timing, and HSA contributions so a 6-month lookback doesn’t turn good-faith deposits into an IRS excise tax. We’ll map your stop date with you.
Call our Houston offices 832-400-6538Frequently asked questions
How many months before Medicare do I need to stop HSA contributions?
I only have premium-free Part A, not Part B. Can I still contribute to my HSA?
What happens if I already contributed too much because Part A back-dated?
Does claiming Social Security really sign me up for Medicare?
Can my spouse keep contributing to their HSA after I go on Medicare?
What are the 2026 HSA contribution limits?
Should I use the last-month rule the year I turn 65?
Can I use my HSA to pay Medicare premiums?
Sources
- IRS — Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans (accessed June 2026).
- IRS — Rev. Proc. 2025-19: 2026 inflation-adjusted HSA and HDHP amounts (accessed June 2026).
- Medicare.gov — When does Medicare coverage start (Part A retroactive enrollment) (accessed June 2026).
- Social Security Administration — Medicare benefits and automatic Part A enrollment (accessed June 2026).
- CMS — Health Savings Accounts and Medicare (accessed June 2026).
- Kaiser Family Foundation — Medicare program and enrollment resources (accessed June 2026).
- Medicare.gov — Initial Enrollment Period and Special Enrollment Period rules (accessed June 2026).
Wise Insurance Agency is a licensed insurance agency in the State of Texas. This article is general information, not tax or legal advice; HSA and Medicare rules are technical and fact-specific, so confirm your situation with a qualified tax professional or our team before you act. We do not offer every plan available in your area. Any information we provide is limited to those plans we do offer in your area. Please contact Medicare.gov, 1-800-MEDICARE, or your local State Health Insurance Assistance Program (SHIP) to get information on all of your options. Contribution limits, HDHP thresholds, and Medicare enrollment rules change over time; figures here reflect IRS and Medicare program data as of the date this article was written.