Guide
HSA Last-Month Rule and Testing Period Explained
If you are eligible on December 1, you can contribute the full-year amount, but you must stay eligible through the end of the following year.
By Iliya Iliev · Last verified November 2026
Normally your HSA contribution limit is prorated by the number of months you were eligible. The last-month rule is an exception. If you are an eligible individual on the first day of the last month of your tax year, which is December 1 for most people, you are treated as eligible for the entire year and can contribute the full annual amount for your type of coverage, according to IRS Publication 969.
The catch is the testing period. It starts with the last month of your tax year and ends on the last day of the 12th month after that month. For 2027 contributions, that is December 1, 2027 through December 31, 2028. You must remain an eligible individual throughout that period, which generally means keeping qualifying HDHP coverage and not becoming ineligible for another reason, such as Medicare enrollment.
If you fail the testing period for any reason other than death or disability, you must include in income the contributions that would not have been allowed without the last-month rule, and that amount is subject to a 10% additional tax (reported on Form 8889). For example, say you start self-only HDHP coverage on October 1, 2027. Your prorated 2027 limit is $4,500 × 3 ÷ 12 = $1,125, but under the last-month rule you could contribute $4,500. The $3,375 difference is the amount at risk: if you fail the testing period it becomes income in the year you fail, plus a 10% additional tax of $337.50.
Before you use the rule, think about whether you can stay covered for the full testing period. If you might leave your employer, lose HDHP coverage, or enroll in Medicare, a smaller prorated contribution may be the safer choice. If you have already lost coverage, see our guide on losing HDHP coverage mid-year for how the limit is prorated.
The rule only helps if you are eligible on that December 1 date. If you are not eligible then, your limit is the prorated amount, not the full-year amount. The HSA Eligibility Checker shows whether you qualify under your current coverage before you decide how much to contribute.
Run the numbers
HSA Contribution Calculator
Frequently asked questions
What is the HSA 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 people), you are treated as eligible for the whole year and can contribute the full annual limit for your coverage type, instead of a prorated amount.
How long is the HSA testing period?
It begins with the last month of the tax year and ends on the last day of the 12th month after it. For contributions made under the rule for 2027, the testing period runs from December 1, 2027 through December 31, 2028.
What happens if I fail the testing period?
Unless it is because of death or disability, you include in income the contributions you could not have made without the last-month rule, in the year you fail the test. That amount is also subject to a 10% additional tax, reported on Form 8889.
Are there exceptions to failing the testing period?
Yes. Becoming ineligible because of death or disability does not trigger the income inclusion or the additional tax under this rule.
Can I use the last-month rule if I am not eligible on December 1?
No. If you are not an eligible individual on that date, your contribution limit is prorated for the months you were eligible. See our guide on losing HDHP coverage mid-year.
This guide provides general information for informational purposes only, based on publicly published IRS guidance. It is not tax, legal, or financial advice. Verify your specific situation with a tax professional or your plan administrator.