I grew up around a family business where timing mistakes were rarely “small.” A loan payment a day late, a seed shipment a week early, a tax estimate missed by a month. The dollars added up fast. HSA eligibility after 65 has that same vibe: it is not complicated because the concept is hard, it is complicated because the timing can bite you.
Here’s the clean rule for contributions: enrolling in any part of Medicare ends your ability to make new HSA contributions. That includes Medicare Part A, even if you do not sign up for Part B yet. And Part A can start retroactively, which surprises a lot of still-working owners.

The rule
To contribute to a Health Savings Account (HSA), you must be HSA-eligible for each month you contribute. One of the big eligibility requirements is that you cannot have other non-qualifying health coverage.
Medicare counts as other coverage. Once your Medicare coverage is effective, you are no longer eligible to contribute to an HSA for those months.
This is true if you enroll in:
- Medicare Part A (hospital insurance)
- Medicare Part B (medical insurance)
- Medicare Advantage (Part C)
- Medicare prescription coverage (Part D)
Many people think, “I’m only taking Part A because it’s free.” But for HSA purposes, Part A is still Medicare.
A common scenario
Let’s use a common BizWoven reader situation.
Monica owns a small marketing firm in Chicago. She turns 65 in October, plans to keep working, and stays on her company’s high-deductible health plan (HDHP). She has been contributing to her HSA every month through payroll.
Monica has two key decisions:
- Delay Medicare (so she can keep contributing to her HSA), or
- Enroll in Medicare (and stop HSA contributions starting when Medicare coverage begins)
If Monica enrolls in any part of Medicare, she needs to stop making HSA contributions as of the month Medicare coverage starts. If she does not, she can end up with excess contributions and some very avoidable tax paperwork.
The Part A timing trap
Here is where the timing gets tricky.
Social Security often triggers Part A
If you claim Social Security retirement benefits at 65 or later, you are typically automatically enrolled in Medicare Part A. Many people are also enrolled in Part B unless they actively decline Part B during the enrollment process.
The key HSA point is simple: if Part A turns on while you are still working and contributing to an HSA, you have a problem. And for most people, you cannot keep Social Security retirement benefits and decline Part A. That is why this one catches business owners off guard.
Part A can be retroactive
If you delay Medicare past 65 and later enroll, Part A often begins retroactively for up to 6 months, but not earlier than the month you turned 65. This retroactivity most commonly applies for people who are eligible for premium-free Part A and enroll after 65. If you are in a less common situation, the effective date rules can differ, so verify your dates.
That means you can do everything “right” in real time and still find out later that your Part A start date was backdated, making some prior HSA contributions ineligible.
Practical planning rule I use with clients: If you plan to enroll in Medicare and you are over 65, consider stopping HSA contributions at least 6 months before you apply for Medicare or start Social Security, unless you have confirmed retroactivity will not apply in your situation.

When to stop
Think in months. HSA eligibility is measured month by month, and in general you are eligible to contribute for a given month only if you are HSA-eligible on the first day of that month. In practice, this creates prorated contribution limits in the year you start Medicare.
Part A
Stop HSA contributions starting the first month you are covered by Part A. If Part A is retroactive, you need to treat the retroactive effective month as the month your HSA eligibility ended.
Part B
Stop HSA contributions starting the first month Part B is effective. Many people enroll in Part B at 65 when they leave employer coverage. Others delay it. Either way, the HSA contribution line stops when Part B starts.
Part C and Part D
Same principle. The month the coverage is effective is the month you stop being eligible to contribute to an HSA.
One important nuance: You can stop contributing but you do not have to close the HSA.
What happens to your HSA money
This is the part that usually brings relief.
Your HSA is still yours. Medicare enrollment only stops new contributions. The funds already in the account can stay invested or in cash, and you can keep using the account under the normal HSA rules.
After you’re on Medicare, many people use their HSA as a dedicated healthcare reserve for expenses like:
- Medicare Part B, Part D, and Medicare Advantage premiums
- Copays, coinsurance, and deductibles
- Dental and vision expenses that qualify
- Long-term care premiums within IRS limits
One common surprise: HSA funds generally cannot be used to pay Medigap (Medicare supplement) premiums.
You can also still take distributions later. If the distribution is for qualified medical expenses, it stays tax-free. If it is not for qualified medical expenses, it is taxable, and after age 65 the extra 20% penalty generally does not apply. You still owe ordinary income tax on non-qualified withdrawals.
If you contributed by mistake
If you contributed to your HSA for months when you were not eligible due to Medicare coverage, the IRS typically treats those as excess contributions.
That does not mean you are doomed. It means you should act quickly.
Fixes to discuss
- Adjust payroll contributions immediately so the issue stops growing. If contributions were made through payroll, you may need your employer and payroll provider involved, not just the HSA custodian.
- Remove excess contributions (and associated earnings) to clean it up. To avoid the 6% excise tax, the excess generally needs to be withdrawn by the tax filing deadline (including extensions) for the year of the excess.
- Document the Medicare effective date, especially if Part A was retroactive, so your correction matches the months you were actually ineligible.
Because retroactive Part A is a frequent cause, I also recommend pulling your Medicare effective dates directly from Social Security or Medicare documentation and keeping it with your tax records.
How to plan at 65
If you are still working at 65 and covered by an HDHP, your best path depends on your bigger picture: cash flow, spouse coverage, the size of your employer, prescription needs, and whether you plan to claim Social Security soon.
From an HSA standpoint, here are practical planning steps:
- Before 65: Decide whether you want to delay Medicare to keep contributing to your HSA.
- If you delay Medicare: Confirm you are not being automatically enrolled in Part A (this commonly happens when you start Social Security).
- Before you delay Part B: Check the late-enrollment penalty rules and employer-size rules. In general, people at employers with 20+ employees often have the cleanest ability to delay Part B without penalties, but verify your specific situation.
- 6 months before applying for Medicare after 65: Consider stopping HSA contributions to reduce the risk of retroactive Part A issues.
- When Medicare begins: Stop all employee and employer HSA contributions for months you are covered.
If you own your business and run payroll, remember that employer contributions count too. It is not just what you personally elected from your paycheck.
FAQ
Can I keep my HSA if I enroll in Medicare?
Yes. You keep the account and can continue to use the money for qualified medical expenses. You just cannot contribute new money once Medicare coverage begins.
Does Part A count even if I am still on my employer plan?
Yes. Having Part A means you have Medicare coverage, which makes you ineligible to contribute to an HSA. You may be able to keep your employer coverage, but you should stop HSA contributions as of the month Part A is effective.
If I delay Medicare, can I keep contributing past 65?
Potentially, yes, as long as you remain HSA-eligible and are not enrolled in any part of Medicare. The biggest watch-out is automatic or retroactive Part A enrollment.
What if Medicare backdates my Part A start date?
Then your HSA eligibility ends as of that backdated month. You may need to correct contributions made for months that are now considered ineligible.
The bottom line
Medicare does not take your HSA away. It simply closes the door on new contributions starting the month Medicare coverage begins.
The key is to treat Medicare enrollment as a firm line in the sand, and to plan for retroactive Part A if you are enrolling after 65 or starting Social Security. If you are approaching 65 and still working, a 10-minute planning conversation with your benefits admin, payroll provider, HSA custodian, or tax pro can save you from a very annoying correction later.