Publication time reported by BabyLoveGrowth, shown in Mountain time. This is not an independently measured first appearance on this website.

HSA and Medicare: Rules, Penalties and Smart Moves at 65

You can keep spending the money in your health savings account after you sign up for Medicare, but you can no longer add to it. Once you are enrolled in Medicare, your contribution limit drops to zero, and because Part A can reach back up to six months, the safe move is to stop contributing about six months before you enroll. Here is how the rules work, what a mistake costs, and how to plan the handoff from a high-deductible plan to Medicare.
SimplyinsuranceforyouMake Your Medicare Transition ClearSimply Insurance offers personalized guidance comparing Medicare and health insurance options, with ongoing support for enrollment, claims, and annual reviews.Explore insurance guidanceTL;DR
- Enrolling in Medicare ends your right to contribute to an HSA. Your contribution limit becomes zero starting with the first month of enrollment.
- Part A can be retroactive for up to six months, so stop contributions six months before you apply, or you risk excess contributions and a tax penalty.
- The money already in the account stays yours and can be spent tax-free on qualified medical expenses, including Part B premiums.
- Medigap premiums are not a qualified HSA expense. Part B, Part D and Medicare Advantage premiums generally are for people 65 and older.
- If you keep working past 65 on an employer high-deductible plan, whether to delay Medicare depends on your employer’s size and your Social Security timing.
Table of Contents
- Why Medicare and an HSA do not mix
- When to stop contributing: the six-month rule
- What happens if you contribute too much
- What you can still do with the money in your HSA
- Should you delay Medicare to keep funding your HSA?
- A simple timeline for the handoff
- Other coverage questions that come up
- Our perspective
- Get the timing right with a local broker
- FAQ
- Sources
Why Medicare and an HSA do not mix
An HSA is built for people whose only health coverage is a high-deductible health plan (HDHP). To contribute, you generally need HDHP coverage, no other disqualifying health coverage, no Medicare enrollment, and you cannot be claimed as a dependent on someone else’s return. Those are the requirements listed in IRS Publication 969.
The IRS has explained the logic in a letter to a member of Congress: Medicare provides coverage outside the high-deductible structure, so someone enrolled in it no longer fits the profile an HSA was designed for.
The rule is about enrollment, not age. Turning 65 does not end HSA eligibility by itself. Being enrolled in Medicare does. That distinction matters because many people work past 65 and are not yet on Medicare, and because Part A can start on its own in some situations (more on that below).
When to stop contributing: the six-month rule
The part that catches people is Medicare Part A’s retroactive coverage. If you apply for Medicare (or Social Security benefits, which triggers automatic Part A enrollment) after your 65th birthday month, Part A coverage can begin up to six months back. The IRS describes it this way: Part A entitlement starts the month you turn 65 if you file within six months, and otherwise reaches back up to six months (IRS letter 16-0082).
Any HSA money put in during that retroactive window counts as an excess contribution, per Publication 969.
A worked example
Say you turn 65 in June and keep your employer HDHP. You decide in December to take Social Security and Medicare Part A. Your Part A could be backdated six months to June. Everything you and your employer contributed to your HSA from June onward is now excess.

The cleaner path is to count back six months from the month you plan to apply and make your last contribution before that. If you plan to apply in June, your last contribution should be in December of the prior year.
Don’t forget your employer’s money
Contributions from your employer count toward the same limit and the same eligibility test. If payroll keeps funding your HSA after your Medicare start date, those dollars are excess too. Tell your benefits office your planned Medicare date well ahead of time so they can stop the deposits.
The part-year limit
In the year you enroll, you are only eligible for the months before Medicare begins, so the annual limit is prorated. For reference, the 2026 limits are $4,400 for self-only coverage and $8,750 for family coverage, plus a $1,000 catch-up for people 55 and older. Those are full-year figures, so do not assume you can contribute the full amount in your Medicare year. A tax professional can work out the exact monthly proration for your situation.
What happens if you contribute too much
An excess contribution is fixable if you act in time. The IRS says you may withdraw excess contributions and the net income attributable to them without penalty by your tax return due date, including extensions. Excess amounts left in the account are subject to an excise tax under Section 4973.
In practice:
- Work out your Medicare start date, including any retroactive Part A months.
- Add up everything contributed from that month forward, yours and your employer’s.
- Ask your HSA custodian for an excess contribution withdrawal, which should include the earnings on those dollars.
- Tell your tax preparer, because the earnings are reported as income and the amounts need to show up correctly on Form 8889.
There is no separate “HSA Medicare penalty” on the books. The consequence is the excise tax on excess contributions, plus the lost tax benefit. That is why timing the stop date matters more than anything else in this article.
A separate penalty is one you should not confuse with this one: Medicare’s own late enrollment penalties for Part B and Part D. Delaying Medicare to keep funding an HSA can trigger those if you do not have qualifying coverage. We cover them in Medicare late enrollment penalties.
What you can still do with the money in your HSA
Enrolling in Medicare does not freeze or shrink your account. The money already in your HSA stays in your account, and you can keep withdrawing it tax-free for qualified medical expenses at any time. You can also keep investing it, if your custodian offers that.
Medicare premiums you can pay
For people 65 and older, HSA funds can pay Medicare Part B premiums and other health insurance premiums tax-free, but not Medicare supplement (Medigap) policies. Here is how that sorts out by part of Medicare:
Expense Paid tax-free from an HSA at 65+? Part B premium Yes Part D premium Yes, as a health insurance premium for someone 65 or older Medicare Advantage (Part C) premium Yes, as a health insurance premium for someone 65 or older Medigap (Plan G, Plan N, etc.) premium No Deductibles, copays and coinsurance Yes Prescription drugs, hearing aids YesThe deductibles, copayments, coinsurance, hearing aids and prescription drugs entries come from the CMS description of qualified expenses. The IRS is the final word on edge cases, so check the Form 8889 instructions or ask your tax preparer.
One practical point: Part A is premium-free for most people, so there is usually no premium to pay there. If you owe multiple Part A deductibles in a year because of repeated hospital stays, an HSA is a handy way to cover them tax-free. We explain how that happens in avoiding multiple Part A deductibles.
Understanding which HSA dollars are safe to spend matters, and so does keeping records. Tax-free HSA withdrawals are only tax-free when the expense is eligible, so save receipts and statements in case of an audit.
The spouse question
Can you pay your spouse’s Medicare premiums from your HSA? The IRS answer depends on your age. If you are the account beneficiary and you are under 65, Medicare premiums for a spouse or dependent who is 65 or older are generally not qualified medical expenses. So a 60-year-old with an older spouse on Medicare generally cannot use the HSA for the spouse’s premiums. The rules differ once the account holder is 65 or older, so confirm your specific case with a tax professional before paying a spouse’s premium from the account.
Why Medigap is excluded
It surprises many people that the supplement plan, the one most associated with covering Medicare’s gaps, is the one premium an HSA cannot cover. Medigap sits in a separate category from the Medicare premiums themselves. If you are choosing between a Medigap plan and Medicare Advantage, the HSA treatment is one small input among many. Our comparison of Medicare Advantage vs. Medigap lays out the larger tradeoffs.
Should you delay Medicare to keep funding your HSA?
Some people want to keep contributing, especially with a $1,000 catch-up available after 55. The answer is rarely a simple yes.
According to Medicare Interactive, delaying Social Security benefits lets you avoid automatic Part A enrollment and potentially continue HSA contributions if you keep HDHP coverage. But if you work for a company with fewer than 20 employees, Medicare is primary, and delaying may leave you with little or no effective coverage. Whether delay makes sense depends on your circumstances.
Here are the questions that decide it:
- How big is your employer? At a small employer, Medicare generally pays first, so skipping it can leave gaps. At a larger employer, your group plan is typically primary, and you may be able to delay Part B without a penalty.
- Are you collecting Social Security? Claiming benefits triggers automatic Part A enrollment, which ends HSA eligibility.
- Is Part A truly free for you? Most people have it premium-free, which is a reason many do not delay it, but you must weigh that against HSA tax savings.
- What is the real value of the contribution? Estimate the tax saved on a prorated contribution against the risk of a coverage gap or late penalty.
If you are working past 65, read Medicare and working past 65 and the Medicare special enrollment guide, which explains the window you get when employer coverage ends. If you plan to bridge with COBRA, read how COBRA interacts with Medicare at 65 first, because COBRA does not pause your Part B clock.
A simple timeline for the handoff
Use this order if you have an HSA and a Medicare date coming up.
- 12 months out: Confirm your birthday month, your employer size, and whether you will claim Social Security. Look at your initial enrollment window.
- About 7 to 8 months before you apply: Decide your application month and count back six months. That is your last contribution month. Notify payroll.
- Before the stop date: Consider whether to fund the account to the prorated limit while you are still eligible.
- Enrollment month: Sign up for Part A and Part B, and pick a drug plan and either Medicare Advantage or a supplement.
- After enrollment: Start paying Part B and other eligible premiums from the HSA if that fits your budget, and keep records.
- Tax season: Make sure Form 8889 reflects your Medicare start date and the months you were eligible.
Other coverage questions that come up
If you are under 65 and not on Medicare, an HSA remains available with an HDHP. Interest has grown around catastrophic plans gaining HSA access in 2026, which we cover in our catastrophic plan article.
If your employer offers an HSA alongside a plan and you enroll in Medicare, some plans offer a health reimbursement arrangement (HRA) instead. For example, the federal employee program says that if you are enrolled in Medicare and not eligible for an HSA, the plan provides an HRA. Ask your own benefits office what your employer does.
If you want to understand the four parts first, our guide to Medicare Parts A, B, C and D is a good starting point.
Our perspective
We meet people every year who did everything right with their HSA for decades and then tripped over the last step. Usually it is not carelessness. It is that nobody told them Part A can be backdated, or that their employer kept making deposits after the Medicare start date.
Our advice is plain. Treat the HSA as a tool you built for retirement health costs, not something Medicare takes away. The balance keeps working for you. What changes is that new money stops going in, so the key task is choosing your stop date on purpose instead of by accident.

The second mistake we see is letting the HSA drive the whole Medicare decision. A few thousand dollars of tax savings is real, but it should not push you into a coverage gap, a late enrollment penalty, or a plan that does not fit your doctors and prescriptions. Pick the coverage first, then fit the HSA around it.
We are independent brokers, so we compare plans across several carriers and can walk through your timeline with you. We stay with clients after enrollment too, through claims questions and annual reviews. We are not tax advisors, so we work alongside your CPA on the HSA side.
— Zach
Get the timing right with a local broker
If you are in Castle Pines or elsewhere in Colorado and your 65th birthday is coming, we can map your Medicare start date, check how it affects your HSA, and compare Medicare Advantage, Medigap and drug plan options side by side. There is no cost to you for our guidance. Start with our Medicare planning help or see all our services. If you already know you want a supplement, our Medigap plans page is the place to begin, and our Part D page covers prescription coverage.
FAQ
Can I contribute to an HSA if I am on Medicare?
No. Once you are enrolled in Medicare, your HSA contribution limit is zero, starting with the first month of enrollment (IRS Publication 969). You can still spend what is already in the account. If you accidentally contribute, you can withdraw the excess and its earnings by your tax filing deadline, including extensions, to avoid the excise tax.
Can I use my HSA to pay Medicare premiums?
Yes, in most cases if you are 65 or older. HSA funds can pay Part B and other health insurance premiums tax-free, but not Medigap premiums, according to the federal guidance on HSAs. Check the IRS Form 8889 instructions or your tax preparer for your specific situation.
What is the HSA Medicare penalty?
There is no standalone penalty. If you contribute while ineligible, the excess is subject to a Section 4973 excise tax unless you withdraw it, with its earnings, by your return due date including extensions (IRS letter 16-0082). Separately, delaying Medicare can bring late enrollment penalties if you lack qualifying coverage.
What happens to my HSA balance when I enroll in Medicare?
Nothing happens to the balance. It stays in your account, and you can withdraw it tax-free at any time for qualified medical expenses (CMS). You simply cannot add new contributions while you are enrolled.
Can I pay my spouse’s Medicare premiums from my HSA?
It depends on your age. If you are under 65, premiums for a spouse who is 65 or older are generally not qualified expenses (Form 8889 instructions). If you are 65 or older, ask a tax professional to confirm how the rules apply to your household before you pay.
Sources
- IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
- IRS letter 16-0082 on HSAs and Medicare
- IRS Instructions for Form 8889
- CMS: What’s a Health Savings Account?
- OPM: Health Savings Accounts
- Medicare Interactive: Health Savings Accounts and Medicare
