HarborPlain

HSA Contribution Limit Calculator

Started an HDHP partway through the year, or switched to family coverage when the baby arrived? This works out your real HSA contribution limit — the safe sum-of-months figure and the full-year amount the last-month rule allows, side by side, with the testing-period trap spelled out. Uses the official 2025 and 2026 IRS numbers.

Educational estimate, not tax advice — the last-month rule and family-coverage rules have exceptions; confirm with IRS Pub 969 or a tax professional before contributing.

Tax year
HDHP coverage
July

The first month you’re eligible on the 1st. Coverage that takes effect mid-month doesn’t count that month — e.g. effective June 15 → start at July.

Your 2026 contribution limit

$8,750

The figure Form 8889 reports — the greater ofthe sum-of-months limit and, if you’re eligible on Dec 1, the full-year limit. This is a combined cap across all sources (including any employer contribution).

Sum-of-months

$4,375

Safe — 6 eligible months, no testing period.

Last-month rule

$8,750

Full-year limit — $4,375 more, testing period applies.

⚠ Testing period applies

Using the last-month rule to contribute the full $8,750 means you must stay HSA-eligible through December 31, 2027. If you don’t, the extra $4,375 is added back to your income plus a 10% penalty tax. The sum-of-months $4,375 carries no such condition.

Eligibility by month (coverage on the 1st)

Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Self-only Family Not eligible

2026 HDHP minimums (to qualify)

Deductible at least $1,700 (self-only) / $3,400 (family); out-of-pocket max no more than $8,500 / $17,000. A plan below the deductible or above the OOP cap isn’t an HSA-qualifying HDHP.

Before you contribute — common traps

  • One combined cap. The limit covers all sources — your contributions plus any employer or payroll contribution count against it.
  • Medicare zeroes it out. Enrolling in Medicare (including Part A) drops your limit to zero from that month, and there’s a 6-month retroactive lookback — stop contributing 6 months before you apply for Medicare or Social Security.
  • Excess is taxed yearly. Contributing over the limit triggers a 6% excise tax (IRC §4973) each year until you correct it.
  • Spouses need separate HSAs. A catch-up can only go in the account of the person who’s 55+, so each spouse needs their own HSA to use their own catch-up.
  • State tax may differ. California and New Jersey don’t conform — HSA contributions are after-tax for state income tax there.

Sources. 2026 limits: Rev. Proc. 2025-19 irs.gov. Catch-up is the statutory $1,000 (IRC §223(b)(3), not indexed). Proration, the last-month rule, and the testing period follow IRS Publication 969. Figures last reviewed July 2026.

Educational estimate only — not tax advice. The last-month rule testing period and family-coverage rules have exceptions; confirm with IRS Pub 969 or a tax professional before contributing.

How we calculate this

The calculator applies the HSA rules from IRS Publication 969 to your own dates, and reports both numbers Form 8889 asks you to compare.

First, the sum-of-months limit.HSA eligibility is tested on the first day of each month (IRC §223(c)(1)(A)). A month counts toward your limit only if you were an eligible individual on that 1st, and the coverage type that applies for the month is whatever you had on the 1st. Your prorated limit is the sum, across qualifying months, of the annual limit for that month’s coverage divided by twelve. The 55-and-over $1,000 catch-up is prorated the same way. This figure is always safe — it carries no strings.

Second, the last-month rule.Under IRC §223(b)(8), if you’re an eligible individual on December 1, you may be treated as eligible for all twelve months at your December-1 coverage type — letting you contribute the full annual limit. The price is a testing period: you must stay HSA-eligible through December 31 of the followingyear. Fall short and the amount you contributed beyond the sum-of-months limit is added to your gross income and charged an additional 10% tax. Because a mid-year switch to family coverage that’s in place on December 1 lets the whole year count at the family rate, the rule is especially relevant to new parents — but so is its testing period.

What gets reported.Form 8889 has you take the greater of the sum-of-months limit and, if you’re eligible on December 1, the full-year limit — so the headline figure is that greater number, and the tool shows the trade-off plainly. Remember the limit is a single combined cap across all sources, so any employer or payroll contribution comes out of it first.

The 2026 contribution limits (self-only $4,400, family $8,750) are from Rev. Proc. 2025-19; the 2025 limits (self-only $4,300, family $8,550) from Rev. Proc. 2024-25. The $1,000 catch-up is fixed by statute (IRC §223(b)(3)) and not inflation-indexed. Figures last reviewed July 2026.

How to use the result

If you’ll comfortably keep your HDHP for another full year, the last-month rule’s full-year figure is usually the one to aim for — more tax-advantaged saving for the same year. If your coverage might change (a new job, a plan switch, Medicare on the horizon), the sum-of-months figure is the amount you can contribute with no testing period hanging over it. When in doubt, the safe number is the one without the asterisk.

A new baby is often the moment two of these decisions land at once — a switch to family coverage and a fresh look at long-term saving. Once your HSA is sized, our Baby Cost Calculator shows what the first year actually costs, and the 529 vs UTMA Comparator helps with the education account that often comes next.

Frequently asked questions

By default your limit is prorated by the sum-of-months method. The IRS tests eligibility on the first day of each month, so a month only counts if you were HSA-eligible on the 1st — coverage that takes effect on June 15, for example, makes July your first counting month, not June. Your limit is then the sum, over each qualifying month, of that year's annual limit for your coverage type divided by twelve. For 2026 that's $366.67 a month for self-only and $729.17 a month for family. Six qualifying months of self-only coverage in 2026 gives $2,200.

If you're HSA-eligible on December 1, the last-month rule lets you be treated as eligible for the entire year — so you can contribute the full annual limit even if you were only covered for part of it. It's genuinely useful, but it isn't free: it comes with a testing period. You must remain HSA-eligible through December 31 of the following year. If you don't, the amount you contributed above what the sum-of-months method would have allowed gets added back to your taxable income and hit with an extra 10% tax. The calculator shows both figures side by side so you can weigh the full-year amount against the safe, no-strings sum-of-months amount.

Each month is valued by the coverage you had on its first day, so months on self-only use the self-only rate and months on family use the family rate. But if you have family coverage on December 1, the last-month rule can let you contribute the full family limit for the whole year — provided you meet the testing period. The IRS's own example: self-only for most of the year, switching to family coverage that's in place on December 1, allows the full family limit. The calculator reports the greater of the two methods, exactly as Form 8889 does.

Yes. The limit is a single combined cap across every source. Anything your employer puts in — including matching or wellness contributions and anything you route through payroll — counts toward the same limit, so subtract it before deciding how much to add yourself. Going over the limit triggers a 6% excise tax (IRC §4973) for each year the excess stays in the account, so it's worth getting right.

If you're 55 or older during the year you can add a $1,000 catch-up. It's fixed by statute and, unlike the main limits, is not adjusted for inflation — it's been $1,000 for years and is the same for 2025 and 2026. It prorates the same way as the base limit under the sum-of-months method. One catch that surprises couples: the catch-up can only go into the HSA of the person who is 55+, so if both spouses want to make catch-up contributions, each needs their own HSA in their own name.

Enrolling in Medicare — including premium-free Part A — ends your HSA eligibility, and your contribution limit drops to zero starting the month you enroll. Watch the six-month retroactive rule: when you claim Social Security or enroll after 65, Part A coverage is backdated up to six months, so you should generally stop HSA contributions six months before you apply. Contributions made during a period Medicare retroactively covers become excess contributions.

No. The calculator runs entirely in your browser and stores nothing on our servers — there's no email box and no sign-up. Your inputs are only reflected in the page's web address so you can bookmark, share, or print your result; clear the link and they're gone.

Educational estimate only — not tax advice. HSA rules have exceptions this tool doesn’t model (mid-month coverage changes, Medicare timing, marriage and divorce, and more), and the last-month rule’s testing period can turn a bigger contribution into a tax bill. Confirm your own limit against IRS Publication 969 or with a qualified tax professional before contributing. HarborPlain explains the math; the decisions are yours.