Home › Guides › Markets & the economy
The HSA last-month rule
This page is for United States, federal rules (IRS); state income tax treatment is not covered
Start a high deductible plan in July and you can still put in the whole year's HSA limit. The IRS calls it the last-month rule. It comes with a catch that lasts until the end of the next year.
The short answer
Without the rule, your HSA limit is one twelfth of the yearly limit for each month you were covered. With the rule, the main test is this: were you covered by an HSA-eligible plan on December 1? If yes, you get the whole year's limit, even if the plan began that day.
| United States, federal, 2027 | Self-only coverage | Family coverage |
|---|---|---|
| Whole-year limit | $4,500 | $9,000 |
| One month's share, without the rule | $375 | $750 |
Source: irs.gov. This page covers United States federal rules from the IRS. State income tax is not covered. The yearly numbers are on the HSA contribution limits for 2027 page. Try your own months in the HSA contribution calculator.
What the IRS says, word for word
The sources are IRS Publication 969 and the Instructions for Form 8889, both the 2025 editions (federal, 2025 returns). They are the editions on irs.gov as of November 28, 2026. The 2027 amounts come from Rev. Proc. 2026-24.
"Under the last-month rule, if you are an eligible individual on the first day of the last month of your tax year (December 1 for most taxpayers), you are considered an eligible individual for the entire year." — IRS Publication 969 (2025)
For most people the tax year is the calendar year, so the last month is December.
"You are treated as having the same HDHP coverage for the entire year as you had on the first day of the last month if you didn't otherwise have coverage." — IRS Publication 969 (2025)
An HDHP is a high deductible health plan. The words mean this: the months you had no plan are treated as if you had the plan you hold on December 1.
Without the rule: one twelfth a month
The IRS counts a month only if you were an eligible individual on the first day of it:
"You must be, or be considered, an eligible individual on the first day of a month to take an HSA deduction for that month (see Last-month rule next)." — IRS Instructions for Form 8889 (2025)
So a plan that starts on June 1 counts June. A plan that starts on June 15 counts from July.
Here is the 2027 limit by months, for a person who was not covered on December 1. Say coverage ran from January and ended after the month shown.
| Months covered on the 1st | Self-only, United States, 2027 | Family, United States, 2027 |
|---|---|---|
| 3 | $1,125 | $2,250 |
| 6 | $2,250 | $4,500 |
| 9 | $3,375 | $6,750 |
| 11 | $4,125 | $8,250 |
Hypothetical: a July start
Say a person in the United States with self-only coverage starts an HSA-eligible plan on July 1, 2027, and still has it on December 1.
| Step | Amount |
|---|---|
| Months covered on the 1st (July to December) | 6 |
| Limit by months: $4,500 × 6 ÷ 12 | $2,250 |
| Limit with the last-month rule | $4,500 |
The rule adds $2,250. Now the catch.
The testing period
Taking the full limit puts you on a clock.
"If contributions were made to your HSA based on you being an eligible individual for the entire year under the last-month rule, you must remain an eligible individual during the testing period." — IRS Publication 969 (2025)
"For the last-month rule, the testing period begins with the last month of your tax year and ends on the last day of the 12th month following that month (for example, December 1, 2025, through December 31, 2026)." — IRS Publication 969 (2025)
The IRS example is for 2025. Run the same words for 2027 and the testing period is December 1, 2027 through December 31, 2028.
What failing the test costs
"If you fail to remain an eligible individual during the testing period, for reasons other than death or becoming disabled, you will have to include in income the total contributions made to your HSA that wouldn't have been made except for the last-month rule." — IRS Publication 969 (2025)
"You include this amount in your income in the year in which you fail to be an eligible individual. This amount is also subject to a 10% additional tax." — IRS Publication 969 (2025)
Two things to notice. The tax lands in the year you lose eligibility, not the year you made the deposit. And death or becoming disabled does not trigger it.
The IRS shows the math in its own example (a 2025 case with a family plan from December 1, so the IRS limit was $8,550):
"You would include $7,837.50 ($8,550.00 - $712.50) in your gross income on your 2026 tax return. Also, a 10% additional tax applies to this amount." — IRS Publication 969 (2025)
The $712.50 is one month's share of $8,550. The rest came only from the rule.
Hypothetical: the same math in 2027
Say a person starts family coverage on December 1, 2027, puts in the full $9,000, and loses eligibility in June 2028.
| Step | Amount |
|---|---|
| Limit with the last-month rule (United States, 2027, family) | $9,000 |
| Limit by months: $9,000 × 1 ÷ 12 | $750 |
| Comes back into 2028 income | $8,250 |
| Plus the 10% additional tax | on that $8,250 |
If the person had put in less than $9,000, only the part above $750 would count. The calculator shows the most that could come back.
If your coverage type changed
The rule looks at December 1, not at the year as a whole.
"If you had family HDHP coverage on the first day of the last month of your tax year, your contribution limit for 2025 is $8,550 even if you changed coverage during the year." — IRS Publication 969 (2025)
The IRS example: a person with self-only coverage who switches to family on November 1 gets the full family limit for the year. The testing period applies to the part above the month-by-month total.
Going the other way is different. If a person had family coverage and was on self-only coverage on December 1, the IRS says the limit is the greater of two figures: the month-by-month total or the self-only maximum. The calculator does not figure that case.
Age 55 and the rule
"If you are an eligible individual who is age 55 or older at the end of your tax year, your contribution limit is increased by $1,000." — IRS Publication 969 (2025)
For the Form 8889 chart the $1,000 is counted month by month. Under the last-month rule you are treated as eligible all year, so the whole $1,000 applies. A 55-year-old in the United States with self-only coverage on December 1, 2027 has a federal limit of $5,500.
Married couples
"If either spouse has family HDHP coverage, both spouses are treated as having family HDHP coverage." — IRS Publication 969 (2025)
"After that reduction, the contribution limit is split equally between the spouses unless you agree on a different division." — IRS Publication 969 (2025)
The $1,000 is not split:
"Each spouse must make the additional contribution to their own HSA." — IRS Publication 969 (2025)
So two spouses with their own HSAs, both 55 or older, with a family plan, have a United States federal limit for 2027 of $9,000 plus $2,000, or $11,000, between them.
Employer money and Medicare
What your employer puts in uses up part of the limit.
"You must reduce the amount you or any other person can contribute to your HSA by the amount of any contributions made by your employer that are excludable from your income." — IRS Publication 969 (2025)
And Medicare ends the HSA limit:
"Beginning with the first month you are enrolled in Medicare, your contribution limit is zero." — IRS Publication 969 (2025)
That rule is why the last-month rule does nothing for a person who is already on Medicare in December. More in HSA after 65.
Questions
What is the HSA last-month rule?
If you are an eligible individual on December 1, the IRS treats you as eligible for the whole year, so you get the whole year's limit.
How long is the HSA testing period?
From the first day of the last month of your tax year to the end of the 12th month after it. For 2027, that is December 1, 2027 through December 31, 2028.
What happens if I fail the testing period?
Unless it is because of death or becoming disabled, the contributions you made only because of the last-month rule come back into your income in that year, with a 10% additional tax.
Does the last-month rule work if I switch from self-only to family coverage?
Yes. If you have family coverage on December 1, the family limit applies for the whole year, per Publication 969.
Does the rule work if my plan starts on December 15?
The IRS test is the first day of the last month. A plan that starts December 15 is not in place on December 1.
Does my employer's money count toward the limit?
Yes. It reduces the amount you can put in. See does the HSA limit include employer contributions?
Reminder: this page is for United States, federal rules (IRS); state income tax treatment is not covered
Follow along