HSA contributions for prior year — can I still count them for 2025?

I maxed out my HSA through payroll last year but then switched jobs in October and lost my HDHP coverage. In January I dropped an extra lump sum into my HSA directly thinking it would still count for 2025, but now my tax software is flagging it as an excess contribution. I already filed an extension so I have until October 15 but I want to fix this before then. The 1099-SA shows distributions too because I used some of the account for a dentist bill. Is the January deposit definitely too late to count as a prior-year contribution, or is there a window I'm missing? And does the excess change how I fill out Form 8889?

38 comments

Are you sure the custodian coded that January deposit as a prior-year contribution? Most HSA custodians let you designate a contribution as "prior year" up until the original April 15 deadline — not the extended one, the actual April 15. If you made the deposit in January and told the custodian it was for 2025, and they accepted it before April 15, 2026, it counts for 2025. If you never designated it, it defaults to the current year. I had almost this exact situation and uploaded my 5498 and 1099-SA to taxr.ai — it walked through every line of Form 8889 against my actual numbers and flagged where my custodian had coded things. Worth checking your 5498 when it arrives to see which year the custodian reported the contribution under.

Tara R.

Author

I never actually told them which year — I just transferred the money in. So it probably defaulted to 2026. Can I call the custodian and ask them to recode it retroactively if it's still before April 15?

Yes, most custodians will do that over the phone or through a secure message before the deadline. Get it in writing from them afterward so you have a paper trail if the IRS ever asks why your 1099-SA and 5498 look the way they do.

What was your HDHP coverage status on December 1, 2025? That matters a lot here. If you weren't enrolled in a qualifying high-deductible plan on the first day of December, your annual contribution limit for 2025 is prorated — you only get credit for the months you actually had HDHP coverage. The Form 8889 instructions walk through the monthly calculation. If you went over that prorated limit, the excess is taxable and hits an additional penalty unless an exception applies. The instructions are at irs.gov under the PDF for Form 8889.

Tara R.

Author

Lost HDHP coverage when I left that job in October, so I had it January through September — nine months. That's what I figured would be my limit but I didn't do the math carefully before making the extra deposit.

Nine months of self-only or family coverage? That changes the per-month figure. Run the Part I limit on Form 8889 line by line using the instructions — the monthly limit is the annual statutory maximum divided by 12, times the number of eligible months. Whatever you're over is the excess. It doesn't go on line 17b, which is for non-qualified distributions; it's kept out of your deduction in Part I and, if not withdrawn by your filing deadline, gets the 6% excise tax on Form 5329 Part VII.

Did you already use the HSA funds for the dentist before you realized there might be an excess? Because that changes what you can do. If the money is still sitting in the account you can withdraw the excess contribution plus any earnings on it before your filing deadline (October 15 with your extension) and avoid the excise tax. If you already spent it, the options are different.

Tara R.

Author

The dentist payment came out of funds that were already in there before the new deposit, so the new deposit is still sitting there. Good to know I might be able to pull it back.

Then you have time. Ask the custodian for a "return of excess contribution" before October 15. They should send a corrected 1099-SA reflecting the returned amount and earnings. Keep that for your records.

Just want to flag something on the Form 8889 side. Part II line 14a is where total distributions from your 1099-SA box 1 go. Line 15 is only the portion used for qualified medical expenses. The dentist bill should be a qualified expense so that part isn't taxable. The piece to watch is your excess contribution — it doesn't go on line 17b, which is the 20% additional tax on distributions not used for medical expenses. The Part I limit keeps the excess out of your deduction, and excess not withdrawn in time triggers the additional tax on Form 5329, not directly on 8889.

Does your extension actually cover the HSA contribution deadline though? I want to make sure I understand this right. The extension is for filing the return but the contribution itself still had to be in by April 15, right? Or does the extended deadline help at all?

The contribution deadline for a prior year is April 15 of the following year, full stop. The Form 4868 extension moves your filing deadline to October 15 but it does not extend the HSA contribution window. So any contribution after April 15 goes to the new year no matter what.

That's what I thought but I've seen conflicting things online. Good to have it confirmed — the form instructions and the HSA custodian's guidance should both say the same thing.

Have you checked whether your employer's payroll contributions plus your own lump sum together exceeded the limit even for nine months of coverage? Employer contributions count toward the same annual cap. A lot of people miss that the payroll deductions from both jobs combined are already eating into the same ceiling you're calculating against.

Tara R.

Author

Oh I didn't think about contributions from the first employer separately from mine. I'll pull the W-2 box 12 code W amount and add it all up. That could make the excess even larger than I thought.

Exactly — box 12 code W on the W-2 is the employer-plus-employee payroll total. Add that to any direct contributions and compare to your prorated limit from Form 8889 Part I.

When I ran into an HSA mess a couple years back — excess, a mid-year plan change, distributions all tangled up — I had Taxr read through my 1099-SA, 5498, and both W-2s at once. It pulled out what belonged on each line of Form 8889 Part I and Part II and showed me exactly where the excess was coming from before I called the custodian. Saved me from filing a return with the wrong HSA deduction in Part I. Useful if you want to check the math before October 15.

Tara R.

Author

Thanks, I'll try that before I finalize everything. I want to have the right number confirmed before I call the custodian about the return of excess.

What happens if someone doesn't catch the excess and just files with the inflated contribution on 8889? Does the IRS flag it automatically?

The IRS matches the 5498 from the custodian against what you report on Form 8889. If your contributions exceed your calculated limit, the mismatch can trigger a notice. The excess that isn't withdrawn by the deadline stays in income, and Form 5329 is where the additional tax gets calculated. Missing it usually means a CP2000 or similar later.

Is the additional tax on Form 5329 the same as the penalty on non-qualified distributions, or is it a separate thing? I always get those two confused.

They're separate. The 20% additional tax on Part II of Form 8889 (line 17b) hits non-qualified distributions — money you took out for non-medical things. The excise tax on excess contributions comes from Form 5329 Part VII. Different rules, different forms, same result of owing more if you don't fix it before the deadline.

Got it, that actually clears it up. So excess contributions that are still in the account at year end go to 5329, and spending the money on non-medical expenses hits 8889 line 17b first.

One thing I'd double-check: did you have any months with both an HSA-eligible HDHP and an FSA through one of your employers? A general-purpose FSA from a spouse's employer can disqualify HSA contributions for those months even if you personally had an HDHP. It's a detail that doesn't come up often but it's real.

Tara R.

Author

No FSA situation here, just the HDHP through my own employer. But good to know that's a thing — I wouldn't have thought to ask about a spouse's FSA.

Does the return of excess process change anything on the Form 8889 you file? Like do you report the original amount and then subtract the returned piece, or do you just report net?

You report only the net contribution that actually stays in the account after the return of excess. The custodian will issue a corrected 1099-SA that includes the returned amount and earnings as a distribution, and those earnings show up as income. The Form 8889 instructions walk through where each piece lands.

Are there any situations where the testing period rule extends things? I remember reading something about a last-month rule where if you're covered on December 1 you can contribute the full year amount, but then you have to stay covered through the following year or some of it gets recaptured.

You're thinking of the last-month rule — if you're HSA-eligible on December 1, you can contribute the full annual limit regardless of how many months you were actually eligible. But you then have to remain eligible through the end of the following year (the testing period). If you don't, the extra amount you contributed under that rule gets included in income plus the additional tax. Since this poster lost coverage in October, December 1 coverage isn't in play here.

Tara R.

Author

Right, I definitely wasn't covered December 1 so that rule doesn't help me. Good to understand it for future years though.

So to make sure I'm following: the poster needs to (1) confirm how the custodian coded the January deposit, (2) calculate the actual prorated limit on Form 8889 Part I using nine months of coverage, (3) add up employer payroll contributions from box 12 code W plus direct deposits to see the true total, and (4) if there's an excess, request a return of excess plus earnings from the custodian before October 15. That the right sequence?

That's the order I'd follow. I'd add: get written confirmation from the custodian after each call, and hold the corrected 1099-SA they send after the return of excess — you'll need it when you finalize Form 8889 and potentially Form 5329.

Tara R.

Author

Thanks — writing that list down now. I'll start with the custodian call tomorrow to find out how the January deposit was coded.

Does a corrected 5498 come automatically after the custodian processes the return of excess, or do you have to request it?

Custodians generally issue a corrected 5498 on their own after processing a return of excess, but the timing can be slow — sometimes it comes in May or June. If you file your return before it arrives, make sure your Form 8889 reflects the corrected numbers. Keep the return-of-excess confirmation from the custodian as backup documentation.

Worth noting: if the excess was entirely from payroll (box 12 code W) and the employer already corrected it through payroll before year end, it may not appear as an excess on the 5498 at all. That's a different situation from a direct deposit made outside payroll. Just flagging it in case the numbers on the W-2 and 5498 don't match what you expect.

Has anyone dealt with a case where the custodian refuses to recode a contribution to the prior year after it was deposited without a designation? Wondering what the fallback is.

If the custodian won't recode it, your only option is to treat the deposit as a current-year contribution and figure out whether it creates an excess for 2026 based on your eligibility then. You can't force a prior-year designation after the fact — the custodian controls the coding and the IRS relies on the 5498 they file. That's why getting the designation in before April 15 matters so much.