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.
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.
| Step | Amount |
|---|
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
- If covered on December 1: limit = yearly limit (last-month rule)
- Otherwise: limit = yearly limit × months covered on the 1st ÷ 12
- Age 55 or older: add $1,000 (also × months ÷ 12 when the last-month rule does not apply)
- Left to put in = limit − employer money − what you put in
- 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)
- 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.
- Without the last-month rule the limit would be $4,500 × 6 ÷ 12 = $2,250.
- With the last-month rule the limit is the whole $4,500, because the person was covered on December 1.
- 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
- Rules come from IRS Publication 969 (2025) and the Instructions for Form 8889 (2025), the editions on irs.gov. The 2027 amounts come from Rev. Proc. 2026-24 and the 2026 amounts from Rev. Proc. 2025-19. United States federal rules only.
- A month counts if you were covered by a high deductible health plan on the 1st day of it. Coverage that starts on the 15th counts from the next month.
- The months you were covered are one unbroken stretch, and the tool assumes one type of coverage in every month. If you changed from self-only to family and you are covered on December 1, choose family, as the IRS Publication 969 tip says. A change from family to self-only is not figured.
- You are not enrolled in Medicare and not claimed as someone else's dependent. The IRS sets the limit to zero from the first month you are in Medicare.
- The spouse split is for two spouses who are both eligible with their own HSAs. It assumes your spouse was covered in the same months. The IRS splits the family limit equally unless you agree on a different split, and the $1,000 extra is not split.
- The HDHP check uses only the two dollar lines from the Revenue Procedure: the minimum deductible and the maximum out-of-pocket amount. State income tax, rollovers and IRA funding transfers are not figured.
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