What Should You Do With an HSA Before Enrolling in Medicare?
You have a Medicare application date in mind. HSA contributions are still being deposited into the account with every paycheck. Then you learn that Medicare Part A may begin before the date you apply.
That backward reach can turn otherwise routine deposits into excess contributions. The first job is to identify the last month in which you remain eligible to contribute.
What changes when Medicare begins?
You cannot contribute to an HSA for a month in which you are enrolled in Medicare. Medicare advises people with delayed enrollment to stop HSA contributions when retroactive Part A could apply.[1] That includes deposits from the employee and employer.
The recommended buffer is six months before retirement. The same buffer applies before applying for Social Security benefits. It also applies before applying for Railroad Retirement Board benefits.[1]
The timing deserves care because premium-free Part A may begin retroactively for as many as six months. It cannot begin before the month you turned 65.[2]
The application date, coverage date, and final eligible contribution month may therefore be different. Put all three on one page before changing payroll or filing an enrollment form.
How do you find the contribution stop date?
Begin with the expected Medicare effective date. Ask Social Security to confirm whether Part A will be retroactive in your situation. Then count backward to the first month of Medicare coverage.
IRS guidance sets the HSA contribution limit at zero, beginning with the first month of Medicare enrollment. That rule includes months covered by a retroactive enrollment.[3]
Use a simple timeline with four entries:
- Your Medicare application date.
- The expected effective date for Part A and Part B.
- The last allowed month for employee and employer HSA contributions.
- The payroll date by which both contributions must stop.
Check the timeline with the benefits team and the HSA custodian. A six-month buffer is a practical starting point for someone enrolling after 65, but the exact result depends on age and the effective date.[4]
If contributions may already overlap Medicare coverage, pause new deposits. Ask the custodian about correction procedures. Ask a tax professional to review the tax result. Do not assume that spending the amount removes the tax issue.
Does the account disappear after enrollment?
The contribution door closes; the account does not. You still own the HSA and can use its balance after Medicare begins.
Choose a job for the account based on the balance and likely health expenses. EBRI data show that accountholders vary widely in how they contribute, take distributions, and invest.[5] An aggregate pattern cannot select the right approach for you.
Some households keep enough cash for near-term qualified expenses and invest the remainder. Others use the account regularly. Review the custodian’s cash requirement and investment menu. Do this before leaving the employer plan.
Which retirement expenses can the HSA pay?
Qualified medical expenses can still be reimbursed tax-free. An HSA may also cover certain Medicare premiums after age 65. Medigap premiums are not qualified HSA expenses under the IRS rules.[3]
HealthEquity notes that an HSA can pay qualified retirement medical expenses. It can also pay certain Part B and Part D premiums. Medicare Advantage premiums may also qualify.[6] The account has no required distribution age.
Keep receipts and record which person incurred each expense. Before reimbursing an older expense, confirm that it was incurred after the HSA was established and was not reimbursed elsewhere.
After age 65, a nonmedical withdrawal avoids the additional 20% tax, but the distribution is generally taxable.[3] That flexibility does not make every withdrawal equally useful. Compare a taxable HSA withdrawal with the other cash available for the expense.
Dovetail Principle: Financial Decisions Need to Fit Together
Medicare determines when contributions must end. Payroll carries out the change. A Social Security application may affect the Medicare date.
A coordinated timeline protects the last eligible contributions and gives the existing balance a continuing job. The account can remain part of the plan even when new deposits stop.
Where should you begin?
Write down when you expect to apply for Medicare and Social Security. Confirm the expected Part A effective date. Then ask payroll how much lead time it needs to stop both employee and employer HSA deposits.
Save the confirmation with the final HSA contribution record. Next, decide how much of the account should remain available for near-term expenses and whether the investment choices still fit. HSAs can hold cash or investments for future qualified expenses.[7] Investment options depend on the provider.
For help coordinating health coverage with the rest of the retirement income plan, see Retirement Income Planning.
Related Reading: Turning 65 While You or Your Spouse Is Still Working: When Does Medicare Begin?
About the author
Ross Marino, CFP®, CeFT®, is the Founder & CEO of Dovetail Financial and creator of Human-First Financial Guidance®. He helps people nearing or living in retirement connect their lives and wealth so that financial decisions become clearer, more personal, and easier to navigate.
Notes
- Working past 65, Medicare.gov.
- When does Medicare coverage start?, Medicare.gov.
- Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans, Internal Revenue Service, 2025.
- HSAs and Medicare: Diagnose the possible pitfalls, Fidelity Investments, July 10, 2026.
- Health Savings Account Balances, Contributions, Distributions, and Other Vital Statistics, 2023, Employee Benefit Research Institute, Jun 5, 2025.
- HSA — Account use and eligibility, HealthEquity, November 7, 2025.
- What Is an HSA? A Guide to Health Savings Accounts, Charles Schwab, November 4, 2025.
Disclosure
This content is provided by Dovetail Financial Group LLC (“Dovetail Financial”) for informational and educational purposes only. It is not intended as, and should not be construed as, individualized investment, tax, legal, or accounting advice; a recommendation to buy or sell any security; or a recommendation to adopt any investment strategy. Because each person’s situation is unique, readers should consult their own financial, tax, and legal professionals before taking action based on this content. Information contained herein is believed to be reliable, but its accuracy or completeness is not guaranteed. Any opinions expressed are current as of the date of publication and are subject to change without notice. All investing involves risk, including the possible loss of principal. Asset allocation and diversification do not guarantee profits or protect against losses in declining markets. Past performance is not a guarantee of future results. Dovetail Financial Group LLC is a registered investment adviser. Registration does not imply a certain level of skill or training. Additional information about Dovetail Financial Group LLC, including Form ADV Part 2A and Form CRS, is available at adviserinfo.sec.gov. © 2026 Dovetail Financial Group LLC. All rights reserved.