If you are approaching Medicare eligibility, enrolling in Medicare for the first time, or reviewing your coverage during Medicare Open Enrollment (October 15–December 7), it’s important to understand how Medicare may affect your ability to contribute to a Health Savings Account (HSA) and the tax advantages it provides.
While HSAs offer valuable tax advantages, enrolling in Medicare can impact your ability to contribute to your account and may have tax implications if not properly coordinated. Taking time to understand these rules can help you avoid costly mistakes and make more informed decisions about your healthcare and retirement planning.
HSA Overview
A Health Savings Account (HSA) is a tax-advantaged account that allows you to save money for qualified medical expenses. Contributions are either tax-deductible or made on a pre-tax basis through payroll deductions. Funds may grow tax-free, and generally withdrawals are also tax-free when used for qualified healthcare expenses.
Eligible expenses include deductibles, copays, prescription medications, and many dental and vision care costs. Once you reach age 65, you may use HSA funds for non-medical expenses without incurring the additional 20% penalty; however, ordinary income taxes will apply to withdrawals that are not used for qualified medical expenses.
There are annual limits on how much you can contribute. For 2026, individuals with self-only HDHP coverage can contribute up to $4,400, while those with family coverage can contribute up to $8,750. Individuals age 55 and older may make an additional $1,000 catch-up contribution.[1]
For the most current contribution limits and eligibility requirements, visit the IRS website.
Medicare and HSA Contributions
Once you enroll in Medicare Part A and/or Part B, you may continue using funds already accumulated in your HSA for qualified medical expenses. The account remains yours, and HSA funds may be used tax-free to pay many qualified Medicare-related healthcare costs, including Medicare Part B, Part D, and Medicare Advantage premiums. However, Medigap (Medicare Supplement) premiums are not considered qualified medical expenses for HSA purposes.
However, once you are enrolled in any part of Medicare, you are no longer eligible to make or receive HSA contributions. Individuals who plan to apply for Social Security after age 65 are generally advised to stop HSA contributions up to six months before applying, since Medicare Part A may be retroactive for up to six months (but not earlier than the month they first became eligible for Medicare).
Medicare, HSA, and Social Security
Avoiding Potential Pitfalls
If you are approaching Medicare eligibility and plan to apply for Social Security retirement benefits, it is generally important to stop contributing to your HSA at least six months before filing for Social Security.
Why? Applying for Social Security typically triggers enrollment in Medicare Part A. If you apply for Social Security after reaching full retirement age, Medicare Part A coverage may be granted retroactively for as many as six months (but no earlier than the month you turned 65). As a result, HSA contributions made during that retroactive Medicare coverage period may become excess contributions and could subject you to tax penalties.
If you are already receiving Social Security retirement benefits, you are generally automatically enrolled in Medicare Part A and are therefore ineligible to contribute to an HSA.
The only way to opt out of Medicare Part A in this situation would be to withdraw your Social Security application and repay all Social Security benefits received, as well as any Medicare benefits paid on your behalf. This is rarely practical and should be carefully evaluated before taking action.
If You Filed for Medicare but Want to Continue HSA Contributions
If you enrolled in Medicare Part A and later determine that you would prefer to continue making HSA contributions, you may be able to request withdrawal of your Medicare application under limited circumstances. Because the rules and timing requirements are specific, contact the Social Security Administration promptly to determine whether withdrawal is available in your situation.
Final Thoughts
Coordinating Medicare enrollment, Social Security claiming decisions, and HSA contribution strategies can be complicated. A mistimed decision may reduce your ability to make tax-advantaged HSA contributions or create unexpected tax reporting issues.
As Medicare Open Enrollment approaches, take the time to review how these moving pieces fit into your overall retirement and healthcare strategy. If you have questions about your specific situation or would like help evaluating your options, consider speaking with your financial advisor before making enrollment decisions.
[1] https://www.irs.gov/pub/irs-drop/rp-25-19.pdf