
As you approach the age of 65 while still working, you may be considering the benefits of Medicare compared to your employer’s group health coverage. One of the most common questions we get from customers is, “How does Medicare affect HSAs?”. We’ll outline what the different parts of Medicare mean for Health Savings Account contributions, and how to weigh the decision between enrolling in Medicare while working.
An HSA is a tax-advantaged savings account designed to help individuals with high-deductible health plans (HDHPs) save for medical expenses. Contributions made to an HSA are tax-deductible, earnings grow tax-free, and withdrawals used for qualified medical expenses are also tax-free.
You can think of this as a special savings account just for medical expenses. These qualified expenses includes things like doctor visits, prescriptions, and even some dental and vision care. Because these are only available in high-deductible health insurance plans, it means you’ll pay more out of pocket before your insurance kicks in.
Medicare Part A (Hospital Insurance) is considered “disqualifying coverage” for HSA purposes. Per IRS regulations, once you are enrolled in any part of Medicare, you can no longer contribute to an HSA.
However, Medicare enrollment can be different depending on if you are actively working or you are withdrawing Social Security benefits. See the following scenarios below:
If you have already started receiving Social Security benefits, the government will automatically enroll you in Medicare Part A when you turn 65.
If you are 65 or older, still working, and covered by a qualifying High Deductible Health Plan (HDHP), you have more flexibility:
The 6-month backdating rule is important to know, as this is the specific time period in which you have to stop contributing to your HSA — even before you actually enroll in Medicare Part A or Part B. This is because Medicare Part A coverage is backdated six months. If you continue to contribute to your HSA during this time period, you could face tax penalties.

If you wish to continue contributing to your HSA and want to delay your Medicare Part A enrollment, you must meet specific requirements. Firstly, you need to be eligible for Social Security benefits but have not filed to withdraw them yet. If you are not drawing out Social Security, you can maintain your HSA eligibility and continue contributing to it until you decide to stop working.
Medicare Part B (Medical Insurance) is optional and covers services such as doctor visits, outpatient care, and medical supplies. However, enrolling in Medicare Part B generally disqualifies you from contributing to a Health Savings Account (HSA). This is because to be eligible for an HSA, you must not have any other health insurance coverage besides a high-deductible health plan (HDHP), and Medicare Part B is considered other insurance.
Note: You can’t use HSA funds to pay for Medigap premiums.
It is important to note that if you enroll in any Medicare prescription drug coverage (Part D), you are no longer eligible to contribute to your HSA. Medicare Part D is considered creditable prescription drug coverage, which means that having it disqualifies you from contributing to your HSA. However, you can still use your existing HSA funds to cover prescription drug expenses.
Enrolling in Medicare can have implications for your Health Savings Account, depending on the specific Medicare parts you choose to enroll in. It is crucial to carefully consider your options, taking into account your current HSA contributions, employer contributions, and medical coverage needs to make an informed decision that aligns with your financial goals and healthcare requirements.
Enrollment in a plan may be limited to certain times of the year unless you qualify for a Special Enrollment Period or you are in your Medicare Initial Enrollment Period.
Find your personalized Medicare recommendation in just 2 minutes
Question 1 of 10
Please log in to view assigned tenants.