Bottom Line: You cannot make new contributions to a Health Savings Account (HSA) once youโre enrolled in Medicare (any part). But you can continue to use the funds youโve already accumulated, and you gain additional flexibility in how distributions are treated after age 65.
Overview: HSA Eligibility and Medicare
A Health Savings Account (HSA) gives triple tax benefits โ deductible contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses โ but you must be covered by a qualifying High Deductible Health Plan (HDHP) and not have disqualifying coverage (like Medicare) to contribute.
Once you enroll in Medicare (Part A, B, C, or D), contributions stop because Medicare is no longer an HDHP and therefore disqualifies you from making further HSA contributions.
โก๏ธ Many people receive Medicare Part A automatically when they start Social Security benefits at age 65, which also ends eligibility to contribute.
Can You Contribute While Working Past 65?
If you are still working past age 65 and are enrolled in an HDHP that qualifies for an HSA and you havenโt enrolled in Medicare, you can continue contributing. The key conditions are:
- You remain covered under an HDHP;
- Youโre not enrolled in any part of Medicare; and
- You otherwise meet IRS eligibility rules.
Many retirees choose to delay Medicare enrollment (and sometimes Social Security) so they can continue making HSA contributions for a short period โ but this requires careful coordination with benefits and tax rules.
What Happens If You Contribute After You Enroll in Medicare?
If you contribute to your HSA after Medicare coverage begins, those contributions are considered ineligible and cause an excess contribution, which can trigger:
- A 6% excise tax on the excess amount for each year it remains in the HSA; and
- The requirement to withdraw the excess amount (plus earnings) to avoid further penalties.
This means careful planning is important if you’re close to Medicare age or delaying enrollment.
How Much Can You Contribute the Year You Turn 65?
In the year you reach age 65 and enroll in Medicare:
- Your annual HSA contribution limit may be prorated based on the number of months you were eligible under an HDHP before Medicare coverage began.
- Delaying Medicare enrollment can affect your eligible months.
Always confirm contribution limits with your plan administrator and consider tax implications when planning contributions around the year of Medicare enrollment.
Using HSA Funds After 65
While you canโt contribute after Medicare enrollment, your existing HSA assets remain yours and may be used:
- Tax-free for qualified medical expenses, including deductibles, co-pays, prescription drugs, vision and dental care. Additionally, you can use your HSA to reimburse Medicare Parts B and D premiums and Medicare Advantage costs;
- For non-medical expenses after age 65 without the usual 20% penalty (but such withdrawals are taxable like distributions from a traditional IRA). This should be avoided, if possible.
This makes an HSA a flexible part of retirement expense planning.
Planning Considerations for Retirees
Before age 65, an HSA can be an efficient way to build tax-advantaged savings for future healthcare needs. Once youโre approaching Medicare eligibility:
- Coordinate your HDHP coverage, Social Security timing, and Medicare enrollment;
- Understand proration rules for your final year of HSA eligibility; and
- Be mindful of potential tax penalties for excess contributions.
Many retirees find HSA coordination fits into broader decisions about retirement income sequencing and tax planning โ see our guide on Retirement Tax Planning for related context.
Related Resources
- Retirement Income Planning Hub โ How income flows in retirement
- Required Minimum Distributions (RMDs) & Timing โ Distribution sequencing considerations
- How to Reduce IRMAA โ Medicare Premium planning
- Social Security Timing Decisions โ Strategies around benefit start ages
Frequently Asked Questions (Retiree Focused)
Q: Can I still use my HSA to pay Medicare premiums?
Yes. After age 65, you can use your existing HSA funds to pay for qualified medical expenses, which include many Medicare premiums (Part B, Part D, Medicare Advantage).
Q: Is there any penalty if I withdraw HSA funds for non-medical expenses after age 65?
No penalty applies after age 65, but withdrawals for non-medical expenses are taxable as ordinary income.
Q: What if I delay enrolling in Medicare to keep contributing to my HSA?
You may remain HSA-eligible if you delay Medicare enrollment and maintain HDHP coverage โ but retroactive Medicare coverage (up to six months) can catch you if you later enroll, making careful timing essential.
Q: Does enrolling in just Medicare Part A trigger the contribution restriction?
Yes. Enrollment in any part of Medicare โ including Part A โ ends your eligibility to contribute to an HSA.
If youโre approaching Medicare eligibility or are already managing multiple sources of retirement income, coordinating HSA rules, tax timing, and Medicare decisions can make a meaningful difference in your long-term planning. If youโd like a second look at your situation from a planning-first perspective, consider scheduling a conversation: Request an Introductory Conversation.



