A single enrollment decision can trigger unexpected tax penalties on your health savings account.

If you’re approaching Medicare eligibility while still contributing to a Health Savings Account (HSA), you’re managing one of the most overlooked and costly timing traps in retirement planning. The IRS’s 6-month lookback rule can turn perfectly legal HSA contributions into taxable excess contributions simply because of when you choose to enroll in Medicare.

Understanding this rule before you act can save you from a significant and entirely avoidable tax penalty.

What Is the 6-Month Lookback Rule?

When you enroll in Medicare Part A,  whether at 65 or later, Social Security automatically backdates your coverage by up to six months. This retroactive coverage is a built-in feature of the program, not an option you can decline.

The problem arises because you cannot contribute to an HSA during any month you are covered by Medicare. If Social Security retroactively enrolls you in Medicare for the previous six months, any HSA contributions you made during that period become excess contributions.

TAX CONSEQUENCE

Excess HSA contributions are subject to ordinary income tax PLUS a 20% excise penalty, even if the contributions were perfectly legal when you made them.

 

How the Rule Plays Out in Practice

Here’s a common scenario: You turn 65 in October and decide to delay Medicare enrollment because you’re still covered by your employer’s group plan. In April of the following year, you apply for Social Security benefits. Social Security retroactively enrolls you in Medicare Part A back to October, six months prior.

Any HSA contributions you made between October and April are now excess contributions. The IRS doesn’t care that you were eligible when you made them. The retroactive Medicare enrollment erases that eligibility in hindsight.

Key Numbers to Know

LOOKBACK WINDOW

6 Months

Max retroactive Medicare Part A coverage

EXCISE PENALTY

20%

Plus ordinary income tax on excess contributions

2025 HSA LIMIT

$4,300

Individual; $8,550 for family coverage

 

The Timeline You Need to Follow

6 Months Before Stop HSA Contributions

Stop all HSA contributions at least 6 full months before you plan to apply for Medicare or Social Security benefits.

3 Months Before Coordinate Employer Contributions

Notify HR to stop employer contributions to your HSA. Employer deposits count toward your excess contribution total.

Enrollment Date Apply for Medicare or Social Security

With contributions stopped 6 months prior, your HSA is fully protected from retroactive excess contribution penalties.

After Enrolling Continue Spending Your HSA Balance

You can no longer contribute, but you can still use existing HSA funds tax-free for qualified medical expenses.

 

What If You’re Already Enrolled in Social Security?

If you are receiving Social Security benefits when you turn 65, you are automatically enrolled in Medicare Part A. In this case, you must stop HSA contributions immediately upon turning 65. The lookback rule begins at your birthday, not your application date.

PLANNING TIP

If you want to maximize HSA contributions right up until Medicare enrollment, delay your Social Security application until after you turn 65 and plan your Medicare start date carefully. Work with a benefits counselor to map out the exact timing for your situation.

 

The Bottom Line

The 6-month lookback rule is one of the few Medicare traps that can hit savers who have done everything right. The remedy is simple — stop contributing to your HSA at least six months before enrolling, but the window is easy to miss if you’re not watching for it.

If you’re within two years of Medicare eligibility and still contributing to an HSA, put this rule on your calendar now. A brief pause in contributions is a small price to pay to protect years of tax-advantaged savings.

To schedule a no-cost, no-obligation one-on-one consultation, contact Powanda Insurance Agency.

This article is for informational purposes only and does not constitute legal, tax, or financial advice. Consult a qualified benefits advisor or tax professional for guidance specific to your situation.

We don’t offer every plan available in your area. Any information provided is limited to those plans we do offer. Please contact Medicare.gov, 1-800-MEDICARE, or your State Health Insurance Program to get information on all of your options.

Sign Up for Smart Medicare Insights—Stay Informed, Stay Ahead.

You have Successfully Subscribed!