Does having an HSA mean I do not need to enroll in Medicare Part B?

    Last updated: March 2026

    Short Answer

    Having an HSA does not exempt you from Medicare Part B, and it does not change the rules about when to enroll. Any Medicare enrollment — including Part A — stops new HSA contributions. Your existing HSA funds are not lost and can still be spent on qualified medical expenses. Whether you need Part B and when to enroll depends on your employer coverage, employer size, whether you are actively working, and the risk of penalties or coverage gaps — not on your HSA status.

    Check Your Medicare Enrollment Timing

    Use the Medicare Intake tool to check your Medicare enrollment timing based on your age, coverage, and work status.

    What You Should Know

    HSA status does not determine Part B timing. Part B timing is governed by whether you have qualifying active employer coverage from a group health plan at an employer with 20 or more employees, whether you are actively working, and whether delaying would create a penalty or coverage gap. If your employer has fewer than 20 employees, Medicare is typically primary at 65, which means delaying Part B can create uncovered claims even if you have an HSA. Enrolling in any part of Medicare — Part A or Part B — makes you ineligible to make new HSA contributions.

    IRS rules prohibit anyone enrolled in Medicare from contributing to an HSA, regardless of which Medicare part triggers enrollment. Part A alone ends contribution eligibility, as does Part B alone. If you receive Social Security benefits at or after 65, Part A enrollment is automatic, which means HSA contributions must stop. If you are intentionally delaying Social Security and Medicare to keep making HSA contributions, that strategy requires meeting the qualifying active employer coverage rules for Part B delay — otherwise you risk a permanent Part B late enrollment penalty.

    Part A can be retroactive by up to 6 months when you apply — but no earlier than the month you turned 65. If you contributed to an HSA during that retroactive window, those contributions may be treated as excess by the IRS and may be subject to additional taxes. SSA warns of this when you apply. To avoid the retroactive overlap, stop HSA contributions at least 6 months before you intend to apply for Part A or Social Security.

    If your employer has fewer than 20 employees, Medicare is generally primary for Part B at age 65 under Medicare Secondary Payer rules. Delaying Part B in that situation can cause your employer plan to deny or reduce claims that Medicare should have paid. In that case, enrolling in Part B makes sense even if it ends HSA contributions. For employers with 20 or more employees and active job-based coverage, delaying Part B may be appropriate — but plan for the retroactive Part A window before later enrollment. Check with a tax professional or benefits administrator before making decisions about HSA contributions and Medicare enrollment timing.

    When This Question Matters

    • You have an HSA and are approaching age 65 or Medicare eligibility
    • You want to continue HSA contributions past 65 while working
    • You are deciding when to enroll in Part A and Part B relative to your HSA
    • You have an employer with fewer than 20 employees and are trying to understand payer order
    • You are delaying Social Security and want to understand how it affects Medicare and your HSA

    What Happens If You Get This Wrong

    If you continue HSA contributions after any Medicare enrollment begins, you may owe income tax plus a 6% excise tax on those excess contributions. Retroactive Part A can create this problem even if you did not intend to enroll retroactively. Assuming an HSA exempts you from Part B can result in missed enrollment windows, a permanent Part B penalty, or coverage gaps if your employer plan is not primary.

    Frequently Asked Questions