HSA and Medicare: What Happens at Age 65
Turning 65 triggers a set of automatic and elective changes to Health Savings Account eligibility that catch many account holders off guard. Medicare enrollment — whether voluntary or mandatory — directly controls whether new HSA contributions are permitted, how existing balances may be used, and what penalty exposure applies. Understanding these intersecting rules requires navigating Internal Revenue Code Section 223, Medicare Parts A through D, and IRS Publication 969.
Definition and Scope
An HSA is a tax-advantaged account authorized under 26 U.S.C. § 223 that allows individuals enrolled in a qualifying High-Deductible Health Plan (HDHP) to contribute pre-tax dollars for qualified medical expenses. The defining constraint at age 65 is that Medicare is not an HDHP. Under IRS Publication 969, enrollment in any part of Medicare — including Part A, Part B, Part C, or Part D — disqualifies an individual from making further HSA contributions.
The scope of this rule extends beyond active Medicare enrollment. Individuals who receive Social Security retirement benefits are automatically enrolled in Medicare Part A, regardless of whether they request it. The Social Security Administration notes that Part A enrollment is backdated up to 6 months for individuals who delay claiming Social Security benefits past age 65 — meaning a contribution made in that backdated window may become a prohibited excess contribution.
This intersection is detailed in the broader regulatory-context-for-health-savings framework governing tax-advantaged health accounts, which encompasses both IRS rules and CMS Medicare enrollment procedures.
How It Works
The HSA contribution cut-off follows a precise mechanical sequence governed by the month of Medicare enrollment:
- Contribution eligibility ends on the first day of the month in which Medicare coverage begins. If Medicare Part A begins on August 1, no new HSA contributions are permitted for August or any subsequent month in that calendar year.
- Pro-rated contribution limit applies. The IRS allows a contribution for each month the individual maintained HDHP coverage and was not enrolled in Medicare. For 2024, the self-only HDHP contribution limit is $4,150 and the family limit is $8,300 (IRS Revenue Procedure 2023-23), divided by 12 months and multiplied by the number of eligible months.
- Catch-up contributions ($1,000 for individuals 55 and older) are similarly pro-rated by eligible months.
- Existing HSA balances are not forfeited. The account remains intact. The restriction is on new contributions only, not on the funds already deposited.
- Withdrawals for Medicare premiums become qualified expenses. Once enrolled in Medicare, distributions used to pay Part B premiums, Part D premiums, and Medicare Advantage (Part C) premiums are treated as qualified medical expenses under IRS Publication 969 — meaning they are income-tax-free.
- Non-medical withdrawals shift to ordinary income only. After age 65, the 20% penalty on non-qualified distributions is eliminated. Withdrawals for non-medical expenses are taxed as ordinary income, identical to a traditional IRA distribution, under 26 U.S.C. § 223(f)(4)(C).
The HSA triple tax advantage explained — pre-tax contributions, tax-free growth, and tax-free qualified withdrawals — remains fully intact for existing balances even after Medicare enrollment stops new contributions.
Common Scenarios
Scenario 1: Claiming Social Security at 62
An individual who begins Social Security retirement benefits at 62 is automatically enrolled in Medicare Part A at 65. No opt-out from Part A is available while receiving Social Security benefits (per CMS Medicare enrollment rules). HSA contribution eligibility ends automatically at 65, and any contributions made after Part A enrollment begins constitute excess contributions subject to a 6% excise tax under 26 U.S.C. § 4973.
Scenario 2: Delaying Medicare Past 65 (Still Working)
An individual who continues working past 65 and is covered by an employer group health plan with 20 or more employees may delay Medicare enrollment without penalty and continue making HSA contributions. CMS confirms this "active coverage exception" for employer plans at qualifying employers. Enrollment in Medicare Part A must be delayed deliberately by not enrolling in Social Security.
Scenario 3: Part A Only, Delaying Part B
Enrolling only in Part A is sufficient to end HSA contribution eligibility. Part A alone — even if the individual has not enrolled in Part B — disqualifies new contributions under IRS Publication 969, because the statute bars enrollment in "any" part of Medicare.
Scenario 4: Using HSA Funds in Retirement for Medicare Costs
An individual with an accumulated HSA balance at 65 can use those funds tax-free to pay Medicare Part B premiums (standard premium of $174.70/month in 2024, per CMS Medicare & Medicaid Services), Part D premiums, Medicare Advantage premiums, and out-of-pocket cost-sharing expenses.
Decision Boundaries
The critical decision points for individuals approaching 65 center on three variables: Social Security timing, employer coverage status, and HSA balance optimization.
Social Security timing vs. HSA contributions: Claiming Social Security before 65 locks in mandatory Part A enrollment and ends contribution eligibility at 65. Delaying Social Security past 65 while maintaining HDHP employer coverage preserves contribution eligibility month by month.
Employer plan size threshold: The 20-employee threshold is the dividing line. Employers with fewer than 20 employees are not required to make their group health plan primary over Medicare, which means enrolling in Medicare Part A may be effectively necessary for adequate coverage — ending HSA eligibility regardless of the individual's preference.
Excess contribution correction: If excess contributions occur due to backdated Medicare Part A enrollment, IRS Publication 969 provides a correction path: withdrawal of the excess amount plus earnings before the tax filing deadline (including extensions) avoids the 6% excise tax. Corrections are reported on IRS Form 8889 and require accurate recordkeeping of enrollment dates.
The national overview of HSA program structure and eligibility rules is available on the site home page, which situates these Medicare intersection rules within the full lifecycle of health savings account planning.
References
- IRS Publication 969: Health Savings Accounts and Other Tax-Favored Health Plans
- 26 U.S.C. § 223 — Health Savings Accounts (Cornell Legal Information Institute)
- 26 U.S.C. § 4973 — Excise Tax on Excess Contributions (Cornell LII)
- IRS Revenue Procedure 2023-23 (2024 HSA Contribution Limits)
- CMS: When Does Medicare Coverage Start
- CMS: 2024 Medicare Parts B Premiums and Deductibles Fact Sheet
- Social Security Administration: Medicare Enrollment
The law belongs to the people. Georgia v. Public.Resource.Org, 590 U.S. (2020)