What Happens If I Accidentally Contribute to an HSA When I Wasn't Actually Eligible?

By The Penny Plan Editorial Team Published July 13, 2026 7 min read

A job change, a switch to a spouse’s health plan, or picking up Medicare partway through the year — any of these can quietly end HSA eligibility while the payroll contribution keeps going in the background, unnoticed until tax time raises the question of whether that money was ever allowed to be there.

The short answer

Contributions made to a health savings account during a period of ineligibility are generally considered “excess contributions,” and they typically need to be withdrawn, along with any earnings on that amount, before the tax filing deadline to avoid a penalty tax. Catching the mistake early and correcting it properly is usually far simpler than leaving it in the account and dealing with the penalty later.

What actually creates ineligibility

Eligibility to contribute to an HSA generally depends on being enrolled in a qualifying high-deductible health plan and not having other disqualifying coverage, such as being claimed as a dependent, enrolling in Medicare, or gaining coverage under a spouse’s plan that doesn’t qualify. Because eligibility is often tracked month by month, a change partway through the year can mean only part of an annual contribution limit was ever actually available, even if payroll deductions continued at the same rate all year. This is a related but separate question from what happens to money already sitting in an HSA after switching to a plan that doesn’t qualify, since existing funds and new contributions are treated differently.

Why the excess amount matters

Contributions made beyond what someone was actually eligible for are subject to an excise tax if they aren’t corrected, calculated as a percentage of the excess amount, and this penalty can apply again in following years if the excess isn’t withdrawn. Because the tax applies annually until it’s fixed, an unaddressed mistake from one year can keep generating a small penalty each year after, which is part of why catching it early matters.

Steps generally involved in fixing it

If it isn’t caught until later

If an excess contribution isn’t withdrawn in time, it’s still possible to fix it in a later year, but the penalty tax may apply for each year the excess remained in the account. Some people choose to simply treat the excess as a future year’s contribution instead of withdrawing it, which is sometimes an option depending on the specific rules and how much room is available under future contribution limits, though this generally still means the excise tax applies for the year the excess wasn’t corrected. It’s also worth watching for the account’s own year-end tax paperwork, since a missing or delayed form from the HSA administrator is its own separate headache, similar to what to do when an expected tax form from a bank never shows up.

Keeping this from happening again

Because eligibility can change with a new job, a new health plan, or a life event like marriage or a spouse’s open enrollment, it’s worth double-checking HSA eligibility whenever any of those changes happen, rather than assuming payroll deductions will automatically stop or adjust on their own. Keeping documentation of coverage changes is also useful, in the same way general tax recordkeeping matters for other financial documents, and it’s a good habit to build alongside knowing how strict a workplace FSA’s own deadlines tend to be, since both accounts come with rules that are easy to miss until a mistake surfaces.

Putting it in perspective

An accidental HSA contribution made during a period of ineligibility is a fixable mistake, but the fix depends on catching it and correcting it properly, usually by withdrawing the excess and any earnings before the filing deadline. Anyone unsure whether a specific situation counts as ineligible, or how to handle a correction, is generally better off checking with the HSA administrator or a tax professional than guessing.