I'm approaching 65; will continue working for a large company; will not be taking Social Security; have a high deductible insurance plan through my company which I will continue using (so will not sign-up for Medicare at this time); and am contributing the maximum to my HSA.

As far as I can tell, I am eligible to defer enrolling in Medicare A and B and to continue contributing to my HSA up until six months prior to enrolling in Medicare Part A (because coverage is retroactive to six months before enrolling).

My question is this: if I keep contributing to my HSA with the intention of stopping six months before retiring and suddenly get laid off and have to go on Medicare, will I still have to pay the tax penalty for contributing to an HSA while on Medicare?

1 Answer 1


First, I want to restate some of the premises of your question (which are correct):

  1. Medicare coverage disqualifies an individual from being eligible to contribute to an HSA.

  2. If you delay enrollment in Medicare until after age 65, when you do finally enroll your coverage is applied retroactively to 6 months before you enroll.

Yes, those six months are significant, as you will be considered a non-eligible individual for contributing to an HSA for those months. Remember, however, that the HSA contribution limits are prorated based on the number of months in the year that you are an eligible individual. Therefore, when you do finally know when you will enroll (and when you retroactively became ineligible), you can calculate your prorated contribution limit for the tax year and see if you went over or not.

If you find that you have already contributed more than your limit, you can do an excess contribution withdrawal for the extra amount, provided that you catch it before April 15 of the following year.

For example, if you are laid off in February 2020 and enroll in Medicare, you will be retroactively enrolled in Medicare since August 2019. You would be completely ineligible in 2020 to contribute, so if you had contributed already in 2020, you can do an excess contribution withdrawal to get it all back. For 2019, you will have a prorated HSA contribution limit, so you can calculate what that is and do an excess contribution withdrawal for any amount that you contributed over that, and you have until April 15, 2020 to do so and report it correctly on your 2019 tax return.

At this point, you may realize that there is a window of time where you could be stuck. Let's say that you don't get any notice, but you are laid off May 1, 2020 and enroll in Medicare at that time. Going back 6 months, you had retroactively become ineligible for HSA contributions as of November 1, 2019, but you already contributed the max in 2019 and it is too late to do an excess contribution for 2019. In this case, you will be subject to the excise tax on your excess contribution of 6% on the excess amount. This excise tax is 6% for each year that the excess amount remains in your HSA. That means that although it is too late to withdraw it for 2019, you still need to do an excess contribution withdrawal on that amount in 2020, or else you will need to pay an additional 6% excise tax.

An article on HSA Edge agrees with this assessment of the situation.

The 6% tax is only on the excess amount. So if you had contributed the maximum family coverage amount of $7,000 plus the $1,000 "over 55" bonus in 2019 and then find out too late that you were ineligible beginning on November 1, 2019, then $1,333 would be considered in excess and the penalty would be $80. That's essentially the worst-case scenario. You can avoid this risk by simply reducing the amount of your contributions. If instead of contributing the full year amount in 2019, you only contributed 5/6 of the limit, there would be no penalty due in the worst-case scenario described above.

One final thing to note: The retroactive HSA-ineligibility can also affect the testing period for the last-month rule. If you have been HSA-eligible for a while, this doesn't affect you, but if you used the last-month rule recently and are currently in the testing period, losing coverage for the end of the year can have additional negative consequences.

  • Thank you for this thorough answer and for the links. I am relieved. I have been contributing to my HSA for years so judging from what you wrote, I don't think the last-month rule applies. Just FYI, I'm planning to retire no later than early 2020, so shouldn't get stuck in that window you described. Cheers.
    – Liam
    Commented Jan 16, 2019 at 23:42
  • 1
    @Liam The only window where you might have an issue would be between April and June of this year (2019), but if you think the odds of being laid off are low, I certainly wouldn't worry about it. As I said, the worst case would be about $80 (and a lot of paperwork.) Also, remember that this bad scenario is only if you are given no notice of your situation. If you know ahead of time when the date will be, you can adjust things before it is too late. And I agree, the last-month rule concern I wrote about does not apply to you.
    – Ben Miller
    Commented Jan 16, 2019 at 23:47
  • Ben, I don't turn 65 until February of this year and I read somewhere that the period of ineligibility is six months prior to starting Medicare but only for any period after becoming eligible for Medicare, which is at 65. So if that's correct, then I'm in the clear even if I get laid off this year between April and June, right?
    – Liam
    Commented Jan 17, 2019 at 0:21
  • 1
    @Liam Yes, I believe you are correct.
    – Ben Miller
    Commented Jan 17, 2019 at 0:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .