Can I Contribute to an HSA After 65?
Short answer. You can contribute to an HSA after Medicare age only until the first month you are entitled to Medicare; 26 U.S.C. §223(b)(7) then sets the limit to zero.
You can contribute to an HSA after 65 only for as long as you are not entitled to Medicare. 26 U.S.C. §223(b)(7) sets the HSA contribution limit to zero for the first month an individual is entitled to benefits under Medicare and for every month after. The trigger is Medicare entitlement, not a birthday, so someone past 65 who has not enrolled in any part of Medicare and is still covered by a qualifying high-deductible health plan can keep contributing, and someone who enrolls early has stopped their own eligibility at whatever age that happens.
The rule is simple to state and easy to get wrong in both directions, because Medicare entitlement does not line up with the birthday and can be made retroactive.
Why does Medicare entitlement end HSA contributions?
Medicare entitlement ends HSA contributions because the statute defines an eligible individual as someone covered by a high-deductible health plan and not by other disqualifying coverage, and 26 U.S.C. §223(b)(7) names Medicare specifically. From the first month you are entitled to Medicare benefits, your contribution limit for that month is zero.
IRS Publication 969 says the same thing in plain terms: beginning with the first month you are enrolled in Medicare, your contribution limit is zero. Entitlement to Part A alone is enough. Many people take Part A at 65 because it is premium free, without realizing that doing so ends their HSA contributions.
Can I keep contributing to an HSA if I work past 65?
You can keep contributing to an HSA if you work past 65, provided you delay all parts of Medicare, including Part A, and stay covered by a qualifying high-deductible plan. Medicare eligibility begins at 65 under 42 U.S.C. §426(a), but eligibility is not entitlement. Entitlement requires enrolling, and a worker with employer coverage can defer that.
The condition that catches people is Part A. Because it is premium free, many workers take it at 65 while keeping employer coverage, and that enrollment alone ends HSA contributions. A worker who wants to keep funding an HSA has to defer Part A as well as Part B, and should confirm the enrollment dates with Social Security before contributing for the year.
If it helps to have the numbers in one place, I keep them all in the Ultimate Retirement Guide.
What happens if Medicare is applied retroactively?
If Medicare Part A is applied retroactively, contributions made during the retroactive months become excess contributions. Part A enrollment after you first become eligible can be backdated, and the months it reaches back into are months you were entitled to Medicare, so under 26 U.S.C. §223(b)(7) your limit for those months was zero all along.
IRS Publication 969 states it directly: contributions made during any period of retroactive Medicare coverage are excess contributions. The practical rule is to stop HSA contributions before the enrollment date by at least as many months as the retroactive period can reach, and to check the exact dates against your own enrollment rather than a general figure.
Can I prorate HSA contributions in the year I enroll in Medicare?
You can prorate HSA contributions in the year you enroll in Medicare, because the limit under 26 U.S.C. §223(b) is computed month by month. Each month before your first month of Medicare entitlement carries one-twelfth of the annual limit, including any catch-up amount, and each month from entitlement on carries zero.
Publication 969 walks through that proration. A contribution made early in the year for the full annual amount, followed by Medicare enrollment mid-year, produces an excess for the months after entitlement and has to be withdrawn, with its earnings, by the tax filing deadline to avoid the excise tax on excess contributions.
Does losing the right to contribute change what the HSA can pay for?
Losing the right to contribute does not change what the HSA can pay for. Once contributions stop, the balance stays in the account, keeps growing, and can be spent on qualified medical expenses at any later time with no tax. After 65, those expenses include Medicare premiums other than a Medigap policy, under 26 U.S.C. §223(d)(2)(C) and Publication 969.
So the end of contributions is the end of adding to the account, not the end of using it. What happens to an HSA at 65 covers the rest of what changes at Medicare age, including the end of the additional tax on non-medical withdrawals, and are HSA withdrawals taxable after 65 covers the tax on taking money out.
Frequently asked questions
Can I still contribute to an HSA after I turn 65?
Yes, you can contribute to an HSA, but only for as long as you are not entitled to Medicare. The contribution limit is zero for the first month you are entitled to Medicare and every month after. The trigger is Medicare entitlement, not a birthday, so someone past Medicare age who has not enrolled and still has a qualifying high-deductible plan can keep contributing.
Does taking Medicare Part A stop my HSA contributions?
Yes. Entitlement to Part A alone ends contributions, and many people take Part A because it is premium free without realizing that. A worker who wants to keep funding an HSA has to defer Part A as well as Part B, and should confirm the enrollment dates with Social Security before contributing.
What if Medicare Part A is backdated after I contributed to my HSA?
Contributions made during the retroactive months become excess contributions, because your limit for those months was zero all along. IRS Publication 969 states this directly. The practical rule is to stop contributing before the enrollment date by at least as many months as the retroactive period can reach.
Can I prorate HSA contributions in the year I enroll in Medicare?
Yes. The limit is computed month by month, so each month before your first month of Medicare entitlement carries one-twelfth of the annual limit, including any catch-up amount. Each month from entitlement on carries zero. An excess has to be withdrawn, with its earnings, by the tax filing deadline to avoid the excise tax.
Can I still spend my HSA after I stop contributing?
Yes. Once contributions stop, the balance stays in the account, keeps growing, and can be spent on qualified medical expenses at any later time with no tax. After Medicare age, those expenses include Medicare premiums other than a Medigap policy.
Sources (1)
Example case study. Details are changed and some examples combine more than one household. Nothing here is a recommendation, and your own numbers will be different.
