Health Savings Accounts (HSAs) offer triple tax benefits that most retirement accounts cannot match. You contribute pre-tax dollars, earn tax-free growth, and make tax-free withdrawals for qualified medical expenses. But enrolling in Medicare at age 65 creates a compliance trap that catches many savers off guard.

The problem stems from Medicare's enrollment rules and HSA contribution rules colliding. Once you enroll in Medicare Part A, you become ineligible to contribute to an HSA going forward. The IRS considers Medicare enrollment incompatible with HSA eligibility because Medicare itself is considered coverage under an HSA-disqualifying plan. Many people do not realize this restriction exists until they attempt their first Medicare-year HSA contribution and face penalties.

Here is the timing issue. If you turn 65 and enroll in Medicare Part A, you cannot make HSA contributions for that tax year or any year after. The HSA custodian will reject contributions submitted after your Medicare effective date. The IRS will assess a 6 percent excise tax on nonqualified contributions, plus you lose the tax deduction entirely.

Your existing HSA balance remains untouched and usable. You can continue withdrawing from your HSA tax-free for qualified medical expenses throughout retirement. The restriction only prevents new contributions after Medicare enrollment.

The window to contribute closes fast. If you plan to delay Medicare enrollment, you can continue funding your HSA up until your actual enrollment date. Some workers delay Part A enrollment past 65 specifically to maximize final HSA contributions before the door closes. This strategy only works if you have employer health coverage that remains active and qualifies as an HSA-compatible plan.

If you turned 65 and already enrolled in Medicare, do not attempt to make HSA contributions. If you accidentally contributed after enrolling, contact your HSA custodian immediately. Many will