HSA Contribution Limit Calculator
Legal basis: IRC §223 (health savings accounts) · checked 2026-10-04 · Rates and limits change — verify the current figures.
A health savings account, governed by IRC Section 223, is the most tax-favored savings vehicle in the US tax code: contributions are deductible, growth is untaxed, and withdrawals for qualified medical expenses are tax-free. But the tax benefit only works inside strict limits. You must be covered by a high-deductible health plan (HDHP), have no other disqualifying medical coverage, and not be enrolled in Medicare, and the amount you may contribute each year is capped by statute and adjusted annually for inflation.
The annual limit depends on your coverage tier: one figure for self-only HDHP coverage and a larger figure for family coverage. Anyone who is 55 or older by the end of the year may add a catch-up contribution on top of the base limit, and each spouse with an HSA can add their own catch-up from age 55. These dollar limits are set by the Treasury each year, so this calculator treats them as inputs rather than hard-coded facts; the defaults are illustrative and should be verified against the current-year IRS figures.
Coverage for only part of the year changes the math. The default rule is monthly proration: you get one-twelfth of the annual limit for each month you are HSA-eligible on the first day of the month. If you are covered by an HDHP on December 1, the last-month rule instead lets you contribute the full annual amount for that year - but you must stay eligible through the end of the following year's testing period, or the excess becomes taxable income plus a penalty. Enrolling in Medicare mid-year is the classic trap, since eligibility stops the first month you are entitled to Part A.
This calculator shows both methods side by side. Enter your coverage tier, the number of months you were eligible, your age, and the current-year limits, and it will show the prorated limit, the catch-up, and the last-month-rule alternative so you can see which path applies and how much room is left in your account.
Calculate
How the math works
- Base limit = self-only limit or family limit depending on your HDHP coverage tier on the first day of the month.
- Prorated limit = annual limit × (months of eligibility ÷ 12); the catch-up at 55+ is added in full once you qualify for the year.
- Last-month rule: if you were HDHP-covered on December 1, you may contribute the full annual limit, subject to the 12-month testing period.
- Limits are set annually by the Treasury; enter the current-year figures from IRS Notice or Publication 969.
Frequently asked questions
Who can contribute to an HSA?
How much can I contribute each year?
How does the 55+ catch-up work?
What if I only had HDHP coverage for part of the year?
Does enrolling in Medicare stop my contributions?
What if I overcontribute?
Can I still use the money after I stop contributing?
This calculator is an educational estimate, not tax or financial advice. HSA limits, catch-up amounts, and eligibility rules change annually, and the defaults here must be verified against the current-year IRS figures. Confirm your situation with a CPA or fiduciary adviser before contributing.