StructureX

Home › Tools

HSA contribution calculator

This page is for United States, federal rules (IRS); state income tax treatment is not covered

Pick the year and your coverage. Say which months you were covered, if you are 55 or older, and what your employer put in. You get your HSA limit and what is left.

Free tool · IRS Rev. Proc. 2026-24 and Publication 969 rules · federal only · runs in your browser · Updated 2026-11-28

In the United States, the 2027 federal HSA limit is $4,500 with self-only coverage and $9,000 with family coverage, plus $1,000 if you are 55 or older. If you are covered on December 1, the last-month rule gives you the whole year's limit. Otherwise you get one twelfth for each month you were covered on the 1st. Money your employer puts in counts against the limit.

StepAmount

How it works: the IRS sets one yearly limit for self-only coverage and one for family coverage. If you were covered on December 1, you get the whole year's limit (the last-month rule). If not, you get one twelfth for each month you were covered on the 1st. Age 55 adds $1,000. Money from your employer uses up part of the limit. United States federal rules only.

The formula

Yearly limit
the IRS number for the year and your coverage type, self-only or family
Months
months in which you were covered by a high deductible health plan on the 1st day of the month
Employer money
what your employer put in, including payroll deposits your employer makes from your pay before tax (a cafeteria plan)

Worked example (made-up numbers)

  1. A person in the United States with self-only coverage starts a high deductible plan on July 1, 2027 and keeps it through December. That is 6 months, and the person is covered on December 1.
  2. Without the last-month rule the limit would be $4,500 × 6 ÷ 12 = $2,250.
  3. With the last-month rule the limit is the whole $4,500, because the person was covered on December 1.
  4. The catch: the person must stay eligible through December 31, 2028, or $2,250 of it comes back into income with a 10% additional tax.

The 2027 limit is $4,500 with the last-month rule, and $2,250 without it.

What this assumes

Questions

How much can I put in an HSA in 2027?

$4,500 with self-only coverage or $9,000 with family coverage, plus $1,000 if you are 55 or older. See HSA contribution limits for 2027.

What is the last-month rule?

If you are covered by a high deductible plan on December 1, the IRS treats you as covered all year for the limit. You then have to stay eligible until the end of the next year. See the HSA last-month rule.

Do employer contributions count?

Yes. What your employer puts in uses up part of the limit. See does the HSA limit include employer contributions.

Does this include state tax?

No. It is federal only.

Reminder: this page is for United States, federal rules (IRS); state income tax treatment is not covered

Follow along

XTradingViewFacebook