Back to all tools

Guide 04 of 08

What if I lose HDHP coverage mid-year?

Your contribution limit gets prorated, and existing HSA funds stay yours regardless.

By Iliya Iliev · Last verified October 2026

Losing HDHP coverage partway through the year doesn't affect the money already in your HSA — that balance remains yours permanently, continues growing tax-free, and can still be spent on qualified medical expenses at any point in the future, even after you're no longer HSA-eligible. What changes is your ability to make new contributions going forward.

By default, the IRS prorates your annual contribution limit based on the number of months you were HSA-eligible on the first day of that month. If you had family HDHP coverage for six months of the year and then lost it, you're generally limited to contributing 6/12 of the full annual family limit for that year, not the full amount, unless you separately qualify under another rule.

Worked example (2026 limits). Sam has family HDHP coverage from January 1 and loses it on June 30 after changing jobs, and does not regain HDHP coverage before December 1. Sam was eligible on the first day of January through June, which is 6 months, so the monthly method gives $8,750 × 6 ÷ 12 = $4,375. Sam's payroll deferrals and employer deposits have already reached $5,000, so the excess is $5,000 − $4,375 = $625. If Sam withdraws the $625 plus its earnings before the 2026 tax filing deadline (April 15, 2027, or later with an extension), there is no 6% excise tax. If the $625 stays in the account, the tax is 6% × $625 = $37.50 for 2026, and again for each later year it remains.

The one major exception is the "last-month rule": if you were HSA-eligible on December 1 of a given year, you can contribute the full annual limit for that year regardless of how many months you were actually covered. The tradeoff is a testing period — you must remain HSA-eligible for the entire following calendar year (through December 31). If you lose HDHP coverage again during that testing period for any reason other than death or disability, the amount you contributed beyond the prorated limit becomes taxable income in the year you fail the test, plus a 10% additional tax.

Common triggers for losing HDHP coverage mid-year include a job change to an employer offering only traditional health plans, enrolling in Medicare (which immediately ends HSA eligibility), gaining other disqualifying coverage such as a spouse's non-HDHP plan or a general-purpose FSA, or a plan design change that drops your deductible below the statutory HDHP minimum.

If this happens to you, the practical steps are: stop new contributions once you know your eligibility end date, recalculate your prorated limit for the months you were actually covered, and correct any contributions already made beyond that new limit before the tax filing deadline to avoid the 6% excise tax on excess contributions. Recalculating your limit before you contribute further is the simplest way to avoid an unwind later.

Source

Checked against the source documents above. Report an error.

Run the numbers

HSA Contribution Calculator

Frequently asked questions

Can I still contribute to my HSA for the months I was covered, even after my coverage ends?

Yes — and this is easy to miss. Losing HDHP coverage mid-year doesn't close the window on the months you were eligible. You can still contribute for those months right up until your tax filing deadline, generally April 15 of the following year, even though you're no longer eligible on the day you make the deposit. So if you were covered January through June, you can fund that prorated portion after the fact — it didn't have to go in during those months. Just don't contribute for months you weren't eligible, or you'll create an excess contribution.

If I lose HDHP coverage and then get it back later the same year, how does my limit work?

Your limit is worked out month by month, based on whether you were HSA-eligible on the first day of each month. Eligible months count; ineligible ones don't. If you were covered January through March, lost coverage April through August, then had a qualifying HDHP again starting September 1, you'd count seven eligible months (January, February, March, September, October, November and December). With family coverage in 2026, that works out to $8,750 × 7 ÷ 12 = $5,104.17. If the new coverage started later in September, September wouldn't count and you'd have six months. A mid-year gap lowers your prorated limit but doesn't disqualify the months on either side of it. One exception can raise that number: if you are eligible on December 1, the last-month rule lets you contribute the full-year limit for the coverage you have that day ($8,750 for family coverage in 2026). You must then stay eligible through December 31 of the following year, or the extra amount becomes taxable income plus a 10% additional tax.

Do I have to withdraw my money or close my HSA when I lose HDHP coverage?

No — and since this is the most common worry, it's worth saying plainly. Your HSA balance is yours permanently. Losing HDHP coverage only stops new contributions; it doesn't touch the money already in the account. Those funds keep growing tax-free and can still be spent tax-free on qualified medical expenses for the rest of your life, whether or not you're ever HSA-eligible again. You don't need to close the account or move the money.

What happens to my HSA if I enroll in Medicare?

Enrolling in any part of Medicare — including premium-free Part A — ends your HSA eligibility going forward, so you'll need to stop contributing. There's a trap worth knowing: if you enroll after 65, Part A can be backdated up to six months (but never earlier than the month you first became eligible). Any HSA contributions during those retroactive months become excess contributions, subject to a 6% excise tax if you don't remove them by your tax deadline. The safe move is to stop HSA contributions at least six months before you apply for Medicare. Your existing balance stays yours and can even pay Medicare premiums.

This guide provides general information for informational purposes only, based on publicly published IRS guidance. It is not tax, legal, or financial advice. Verify your specific situation with a tax professional or your plan administrator.

More guides