Medicare and HSAs: What Happens at Age 65?

Written by: 
Matt Kiggins
Last updated: 
Nov 1, 2026

HSA eligibility

Medicare enrollment generally ends eligibility to contribute to an HSA for those months, even if you retain an HSA-qualified employer plan.

You can generally keep and use funds already accumulated in the account.

Retroactive Part A

Premium-free Part A can sometimes be retroactive up to six months after age 65, but not before eligibility.

Contributions made during retroactively covered months can become excess contributions. Confirm effective dates with Social Security.

Working past 65

Delaying Part B alone does not protect HSA eligibility if Part A is already active.

Our agency reviews employer coverage and retirement date. HSA participants should also check employer and payroll contribution dates.

Using existing funds

Medicare enrollment does not require closing an HSA. Existing funds may be used for qualified expenses.

After 65, nonmedical withdrawals generally avoid the additional 20% tax but may be taxable. Medigap premiums generally are not qualified HSA expenses.

Retirement example

Imagine retiring in February after working beyond 65. Applying for Part A shortly before retirement may result in retroactive coverage.

Stopping HSA contributions only on the last day of work could be too late. This is an illustration, not individualized tax advice.

Common errors

Do not assume a high-deductible employer plan preserves HSA contribution eligibility once Medicare starts.

Do not assume delaying Part B is enough if Part A is active. Seek tax advice about any excess contributions.

A planning checklist

Record Medicare enrollment, Social Security benefits, employer coverage, retirement date, and planned HSA contributions.

Consult IRS Publication 969 and when to apply for Medicare.

The difference between owning an HSA and contributing to one

An HSA balance belongs to the account holder and does not disappear when Medicare begins. You can generally keep the account and use accumulated funds for qualified medical expenses.

Making new contributions is a different issue. Medicare enrollment generally disqualifies you from HSA contributions for months in which you are covered by Medicare, even if your employer still offers an HSA-qualified health plan.

This distinction matters when payroll deductions continue automatically. Employees should verify not only their own deductions but also employer contributions made on their behalf.

How Part A retroactivity creates a hidden timing issue

Premium-free Part A can sometimes start retroactively for up to six months when a person applies after age 65, subject to eligibility limits. A retroactive start date can reach into months when HSA contributions were already made.

Imagine applying for Medicare in December while expecting Part A to begin that month. If entitlement is backdated, some contributions made earlier in the year may fall in months when the person was no longer HSA-eligible.

Do not assume the retroactive period will always be exactly six months. The actual Medicare effective date and first month of eligibility determine the relevant period.

How Social Security benefits affect the decision

Some people are enrolled in Medicare automatically because they already receive Social Security benefits. This can change the options available for someone hoping to preserve HSA contribution eligibility.

A person who plans to delay Medicare while working should check whether Part A is already active. Delaying only Part B is not sufficient if Part A enrollment has already disqualified HSA contributions.

Before changing Social Security or Medicare elections, confirm the applicable rules directly with the Social Security Administration. These decisions can have consequences beyond the HSA.

What counts as an eligible HSA expense after 65

Existing HSA funds can generally be used for qualified medical expenses under IRS rules. Some Medicare premiums may qualify, but Medigap premiums generally do not.

After age 65, nonmedical HSA withdrawals generally avoid the additional 20% tax applied to younger account holders, but the withdrawal can still be included in taxable income.

Retain receipts and records for qualified expenses. Review IRS Publication 969 and consult a tax professional if you are unsure whether a particular premium or expense qualifies.

A practical retirement timeline

Start by identifying the date your employer coverage ends and the date you want Medicare to begin.

Then determine whether Part A might be backdated and how that affects the final month you can contribute to an HSA.

Ask payroll for the dates of the final employee and employer contributions. A contribution deposited after retirement can still relate to a particular tax year or eligibility period, so timing should be reviewed carefully.

Coordinate with Social Security and a qualified tax adviser before applying. A written timeline is more reliable than assuming that contributions can continue until your last day of work.

What to do if contributions were made in error

If Medicare enrollment makes some HSA contributions ineligible, the account holder may need to address excess contributions under IRS rules. The proper correction depends on the tax year and other facts.

Do not assume withdrawing any amount immediately is always the correct solution. Corrective distributions, earnings, and filing deadlines can matter.

Ask your HSA custodian and tax adviser about the appropriate process. Keep Medicare effective-date records, payroll statements, and account contribution history.

Questions to ask before enrolling in Medicare

Ask whether you are already entitled to Part A, whether you receive Social Security benefits, and whether your employer health plan qualifies for HSA contributions.

Confirm the expected Part A and Part B effective dates, possible retroactivity, and the last planned employer contribution. Review the effect on any spouse or dependents covered by the employer plan.

Because the rules combine Medicare and tax law, obtain individual tax guidance before making a contribution decision.

A worked contribution-timing example

Imagine a Texas employee who is 67 and expects to retire on December 31. The employee contributes to an HSA through payroll and plans to apply for Medicare near retirement.

If premium-free Part A is backdated, the employee may have been ineligible for HSA contributions during months before December. The final permissible contribution month depends on the actual Medicare effective date and IRS eligibility rules.

The employee should confirm the Part A date with Social Security, identify all employee and employer HSA deposits, and ask a tax professional whether any contributions need correction.

This is a hypothetical scenario, not a recommendation to stop contributions on a particular date. Individual circumstances can change the analysis.

Why the employer's contribution matters

An employer may contribute to an HSA annually, monthly, or at other intervals. Those amounts count toward the contribution limit just as employee contributions do.

If Medicare enrollment changes eligibility partway through the year, reviewing only payroll deductions can miss employer deposits. Ask benefits administration for the contribution schedule and year-to-date total.

Also check whether the employer plan remains in force after Medicare begins. Keeping employer insurance and remaining eligible to contribute to an HSA are different questions.

A recordkeeping checklist for tax season

Keep your Medicare award or enrollment notice showing effective dates, HSA statements, payroll contribution records, and any employer contribution confirmation.

Retain receipts for qualified medical expenses paid from the HSA. If you take a nonmedical withdrawal after age 65, understand the possible income tax consequences.

If you discover excess contributions, consult the HSA custodian and tax professional promptly about applicable corrective procedures and filing deadlines.

Frequently Asked Questions

Can I contribute to an HSA after enrolling in Medicare Part A?

Generally no. Medicare enrollment makes you ineligible to contribute to an HSA for months you are covered, even if you keep an HSA-qualified employer plan.

Can I keep using money already in my HSA?

Yes. Medicare enrollment does not require you to close your HSA. You can generally use existing funds for qualified medical expenses.

Can Medicare Part A coverage start retroactively?

Yes. Premium-free Part A can sometimes start up to six months before the application date, but never before you were eligible. Retroactive coverage can affect earlier HSA contributions.

Does delaying Part B let me keep contributing to an HSA?

Not if you are already enrolled in Part A. Enrollment in any Medicare part generally disqualifies HSA contributions for those months.

Can I use HSA money to pay Medicare premiums?

Some Medicare premiums may qualify as HSA medical expenses under IRS rules. Medigap premiums generally do not qualify. Review IRS Publication 969 or consult a tax professional.

What happens if I accidentally contribute after Medicare begins?

You may have excess contributions that need correction under IRS rules. Contact your HSA custodian and tax adviser promptly about the amount and applicable deadlines.

Do employer HSA contributions count after I turn 65?

Yes. Employer and employee contributions both count toward HSA limits and can cause excess contributions if made for months when you are ineligible.

How far ahead should I plan before retiring?

Review Medicare effective dates, potential Part A retroactivity, and your last HSA contributions well before applying. Confirm the dates with Social Security and a tax professional.

Texas Medicare Insurance Advisor- Matt Kiggins
Matt Kiggins
Texas Medicare Insurance Advisor- Matt Kiggins
floridainsuranceguide.com

With nearly 15 years of experience in the insurance industry, Matt Kiggins is the Senior Editor at Texas Insurance Guide and a seasoned Health & Life Agent licensed in multiple states, including Texas (#1585860). He is also the co-founder of Policy Guide, a respected insurance agency based in Pensacola, FL. Matt has built his career on one simple principle: people deserve clear, honest guidance when making some of life’s most important healthcare decisions.

Read Full Bio
Texas Medicare Insurance Advisor- Matt Kiggins
Matt Kiggins
Senior Editor
Floridainsuranceguide.com

Texas

Need Help?

Call to speak with a licensed insurance agent now.

(888) 414-4547

Shop for plans online

Find Plans
Get Quote