A health savings account, or HSA, can be a valuable way to save on taxes while building a reserve for medical emergencies. But once you turn 65 and enroll in Medicare, the rules for contributing to an HSA change.
Signing up for Medicare does not affect the funds already in your HSA, but it can limit your ability to add new money to the account.
Why Medicare enrollment changes HSA eligibility
In most cases, enrolling in Medicare means you can no longer make HSA contributions. HSAs are meant for people covered by an HSA-eligible high-deductible health plan, and Medicare does not meet that requirement.
You do not have to close out your HSA or withdraw the money already invested there. You can still make tax-free withdrawals for qualified medical expenses, and many Medicare-related costs qualify. One important exception: the IRS says Medigap premiums are not eligible for tax-free HSA withdrawals.
The timing issue: Medicare Part A can apply retroactively
Your 65th birthday is not the only date that matters when figuring out how Medicare affects your HSA. People who enroll in premium-free Part A after age 65 may have coverage retroactively start as much as six months before they sign up or apply for Social Security benefits. That retroactive coverage never begins earlier than the month you turn 65, but it is still an important factor for HSA contributions.
Medicare.gov advises people to stop HSA contributions six months before retiring or applying for benefits to avoid a tax penalty. This is often called the six-month look-back.
What to do before and after age 65
If you are still working, it is wise to contact HR or your benefits administrator before you turn 65. That can help you understand how to manage HSA contributions and avoid problems tied to Medicare’s six-month look-back. You should also ask your employer to stop HSA contributions before your Medicare enrollment begins.
Workers who receive Social Security while still employed should check whether they are already enrolled in Medicare. People who are 65 and collecting Social Security are automatically enrolled in Medicare Part A and Part B. In that case, the Medicare card is typically mailed about three months before the 65th birthday.
Anyone who is enrolled in Medicare should stop HSA contributions right away, though withdrawals do not have to happen immediately. A tax professional can help resolve any excess contributions and can also guide families where one spouse is Medicare-eligible and the other is not.
If you remain eligible to contribute to an HSA, it is often worth taking advantage of it because HSAs offer a triple tax benefit. The IRS has set the contribution limit at $4,400 a year for self-only coverage and $8,750 for family coverage. Those limits rise to $4,500 and $9,000, respectively, in 2027.
More from Digilifetrends
Medicare Has Costs at Every Step — and You Can Remove a Retirement-Related Surcharge
Medicare is not free. For most enrollees, Part B alone is expected to cost $209.40 a month in 2027, and that is before adding drug coverage, deductibles, or any supplemental…
3 min read · Published 2026-11-29Retiring at 64 With $1.46 Million, He Faces Social Security Earnings Limits — But a First-Year Exception Protects $15,600 in Benefits
A man carefully reviews financial papers in his kitchen, a familiar scene for people dealing with unexpected bills. It highlights why every financial document should be checked…
4 min read · Published 2026-11-29At 78, After a Career in Construction, He May Need Nursing Home Care: How $700,000 Could Shrink Under Medicaid Rules, Leaving $162,660 for His Wife
Medicare only pays for limited short-term skilled care, so a couple with $700,000 could have to spend about $535,000 before Medicaid steps in, while preserving $162,660 for the…
5 min read · Published 2026-11-28