For many people, turning 65 no longer means turning in a retirement badge. 

You may still work, still have coverage through your employer’s health plan or a private plan, or, if you’ve already retired, still contribute to a health savings account (HSA) if you remain eligible to make HSA contributions. But age 65 adds an important factor to the equation: Medicare. 

Once your Medicare coverage begins, you can no longer contribute to your HSA. Because Medicare Part A coverage can take effect retroactively, the timing of your HSA contributions, Medicare enrollment, and Social Security benefits can matter more than you might expect. 

Your HSA Doesn’t End at 65 

First, it’s important to separate two things: You can keep the HSA, but you can’t keep contributing to it once Medicare coverage begins. 

Money already in your HSA remains yours. After you enroll in Medicare, you can continue to use your HSA funds tax-free for qualified medical expenses, such as deductibles, copayments, coinsurance, and certain premiums. Qualifying premiums include Medicare Part B, Part D, and Medicare Advantage premiums, but generally not Medicare supplement (Medigap) premiums. You can also reimburse yourself for qualified expenses you’ve incurred after the HSA was established, as long as you keep records. 

After 65, you can withdraw HSA funds for nonmedical expenses without the 20% penalty, although you’ll owe income tax on those withdrawals, similar to traditional IRA distributions. 

That makes an HSA useful well beyond your working years. The challenge is figuring out when your contribution window actually closes. 

Why Working Past 65 Can Be Different 

If you or your spouse still works at 65 and you have qualifying employer group health coverage, you may be able to delay Medicare Part B without incurring a late-enrollment penalty. Generally, you can wait to enroll in Part B until you stop working or lose that employer coverage. At that point, you have an eight-month Special Enrollment Period that begins the month after your employment or group coverage ends, whichever happens first. Couples who retire at different times may need to work through these decisions separately for each spouse. 

For HSA owners, that creates an interesting planning opportunity. If you have coverage through an HSA-eligible high-deductible health plan and otherwise remain eligible, continuing to work could mean continuing to build the account. 

But preserving HSA eligibility shouldn’t be your only consideration, and there’s a critical caveat: You can’t contribute to an HSA once you are enrolled in Medicare. So the question isn’t simply, “I’m 65. Can I still contribute to my HSA?” The better question is, “When will my Medicare coverage actually begin?” 

Employer Size Can Matter 

If you work for an employer with fewer than 20 employees, Medicare generally becomes the primary payer for covered services once you’re eligible, and your employer plan generally pays second. That means delaying Medicare simply to preserve HSA contributions could leave you with a coverage gap. 

If your employer has 20 or more employees, the employer’s group health plan generally pays first. That may allow you to delay Medicare and continue making HSA contributions while you keep working, assuming you otherwise remain eligible.  

In other words, you can’t consider your HSA strategy separately from the way your employer’s health plan coordinates with Medicare. Ask your benefits administrator to confirm how your plan works. 

The Social Security Connection 

If you want to keep contributing to your HSA while working past 65, you may also need to delay Social Security retirement benefits. Receiving or applying for Social Security benefits can result in Medicare enrollment, which can affect your eligibility to make HSA contributions. If you apply for Social Security after age 65, Medicare Part A may also take effect retroactively. 

The Six-Month Rule Is the Big HSA Timing Issue 

Perhaps the most important HSA consideration is Medicare Part A’s potential retroactive coverage. When you enroll in Part A after 65, your coverage can go back up to six months, though not earlier than the month you first become eligible for Medicare. For this reason, Medicare.gov suggests that you and your employer consider stopping HSA contributions at least six months before you apply for Medicare to help avoid a tax penalty. 

Imagine you’re 67, still working, and making regular HSA contributions through an HSA-eligible employer plan. You decide to start Social Security. Because your Part A coverage can take effect retroactively, you could have Medicare coverage for months when you were still making HSA contributions. 

The IRS may then treat those contributions as excess contributions, which could trigger tax consequences, including a 6% excise tax for each year the excess remains in the account. Also, in the year your Medicare coverage begins, your annual contribution limit generally must be adjusted based on the number of months you were eligible to contribute to an HSA before Medicare coverage began, including any retroactive Medicare coverage. 

Remember to look beyond your own paycheck. Medicare.gov specifically says that you and your employer should stop contributing to your HSA six months before you retire or apply for Social Security benefits. 

A Shift in Strategy, Not an End 

The transition to Medicare doesn’t end your HSA strategy. It changes the focus: 

  • Before Medicare: Focus on contributing and building the account. 
  • After Medicare: Focus on using the account strategically for eligible healthcare expenses. 

A Pre-Medicare HSA Checklist 

If you’re approaching 65 and still working, consider reviewing the following with your benefits administrator and tax professional: 

  1. Confirm your health plan. Make sure you understand whether your employer’s plan qualifies as group health coverage and remains HSA-eligible. 
  1. Ask who pays first. Employer size can affect whether your employer plan or Medicare is the primary payer. 
  1. Decide when you want to claim Social Security. Starting Social Security can trigger Medicare Part A enrollment and affect your HSA contribution eligibility. 
  1. Determine your Medicare effective date. Don’t assume Medicare begins simply because you turn 65. 
  1. Plan your HSA contribution cutoff. Medicare.gov recommends stopping HSA contributions six months before you retire or apply for Social Security.  
  1. Stop employer contributions, too. Make sure your payroll or benefits department knows when HSA contributions need to end. 
  1. Keep your HSA after Medicare. You don’t have to spend the account simply because you enroll in Medicare. Your existing balance remains available for eligible expenses. 

The Bottom Line for HSA Owners 

Working past 65 can give you more time to save, but once Medicare enters the picture, your HSA strategy needs to change. The key is understanding how the timing of Medicare, Social Security, retirement, employer coverage, and HSA contributions fit together. 

Don’t treat Medicare enrollment as an isolated decision. Coordinate with your employer’s benefits administrator and, when appropriate, a tax professional. The exact rules depend on your circumstances, and a mistake involving Medicare’s retroactive coverage can affect HSA contributions you thought were valid. 

This is intended for informational purposes only. You should not assume that any discussion or information contained in this document serves as the receipt of, or as a substitute for, personalized investment or tax advice from Savant. Please consult your investment or tax professional, benefits administrator, or other appropriate professional advisors regarding your unique situation.

Author Chase A. Hutter Financial Advisor CFP®

Chase has been involved in the financial services industry since 2014. He earned a bachelor’s degree in finance with a minor in pre-law and history from Southern Illinois University-Edwardsville.

About Savant Wealth Management

Savant Wealth Management is a leading independent, nationally recognized, fee-only firm. As a trusted advisor, Savant Wealth Management offers investment management, financial planning, retirement plan and family office services to financially established individuals and institutions. Savant also offers corporate accounting, tax preparation, payroll and consulting through its affiliate, Savant Accounting & Business Advisory.

©2026 Savant Capital, LLC dba Savant Wealth Management. All rights reserved.

Savant Wealth Management (“Savant”) is an SEC registered investment adviser headquartered in Rockford, Illinois. Past performance may not be indicative of future results. Different types of investments involve varying degrees of risk. Therefore, it should not be assumed that future performance of any specific investment or investment strategy, including the investments and/or investment strategies recommended and/or undertaken by Savant, or any non-investment related services, will be profitable, equal any historical performance levels, be suitable for your portfolio or individual situation, or prove successful. Please see our Important Disclosures.

Contact