IRS Rules Governing HSAs
Health Savings Accounts are governed by a specific cluster of Internal Revenue Code provisions, principally IRC §223, which sets the statutory framework for eligibility, contribution limits, qualified distributions, and penalties. Understanding these rules determines whether contributions are deductible, whether withdrawals escape taxation, and what consequences follow from noncompliance. The IRS publishes updated guidance annually, most accessibly through IRS Publication 969, which consolidates HSA rules alongside those for Flexible Spending Arrangements and Health Reimbursement Arrangements.
Definition and scope
An HSA is a tax-exempt trust or custodial account established under IRC §223 for the purpose of paying qualified medical expenses. The IRS defines three structural conditions that must all be satisfied simultaneously: the account holder must be covered by a High-Deductible Health Plan (HDHP) as defined in IRC §223(c)(2), must not be enrolled in Medicare, and must not be claimed as a dependent on another person's tax return.
The scope of federal HSA regulation spans the full lifecycle of the account — from the moment of first contribution through investment growth, qualified and non-qualified distributions, tax reporting on IRS Form 8889, and the treatment of the account after the holder's death. The regulatory context for health savings at the federal level is anchored primarily in the Internal Revenue Code rather than in insurance law, which distinguishes HSAs from employer-sponsored group health plans regulated under ERISA.
The IRS adjusts HDHP and HSA thresholds annually for inflation. For 2024, the IRS set the minimum HDHP deductible at $1,600 for self-only coverage and $3,200 for family coverage (IRS Revenue Procedure 2023-23). The out-of-pocket maximum for HDHP qualification is capped at $8,050 for self-only and $16,100 for family coverage in 2024.
How it works
The IRS framework operates through a layered set of rules that govern each phase of an HSA's existence.
Contribution rules
- Eligibility window: Contributions are permitted only for months in which the account holder is HSA-eligible on the first day of that month.
- Annual limits: For 2024, the IRS set the contribution ceiling at $4,150 for self-only HDHP coverage and $8,300 for family HDHP coverage (IRS Rev. Proc. 2023-23).
- Catch-up contributions: Individuals aged 55 or older may contribute an additional $1,000 per year above the standard limit, a figure set by statute in IRC §223(b)(3) and not adjusted for inflation.
- Last-month rule: An individual who becomes eligible on December 1 may contribute the full annual amount as if eligible for the entire year, but must remain eligible through the following December 31 (the testing period) or face tax and a 10% penalty on the excess.
- Employer contributions: Employer contributions count toward the annual limit. They are excluded from the employee's gross income under IRC §106(d) and do not appear as wages on Form W-2.
- Deductibility: Contributions made by the account holder directly are deductible on Form 1040 as an above-the-line deduction under IRC §62(a)(19), regardless of whether the taxpayer itemizes.
Distribution rules
Distributions for qualified medical expenses are excluded from gross income. Non-qualified distributions are subject to ordinary income tax plus a 20% excise tax penalty under IRC §223(f)(4)(A). The 20% penalty is waived if the account holder is 65 or older, disabled, or deceased — at which point non-qualified distributions are still taxable as ordinary income but escape the additional penalty.
Investment growth: Earnings within an HSA — interest, dividends, capital gains — accumulate tax-free and are not taxable upon distribution if used for qualified expenses, forming the core of the HSA triple tax advantage.
Common scenarios
Scenario 1: Excess contributions
If total contributions from all sources exceed the annual statutory limit, the excess is included in gross income and subject to a 6% excise tax under IRC §4973 for each year the excess remains in the account. The corrective procedure is to withdraw the excess plus net income attributable to it before the tax filing deadline (including extensions). Detailed correction mechanics are covered in excess contribution correction procedures.
Scenario 2: Mid-year loss of eligibility
An account holder who enrolls in Medicare or is added to a spouse's non-HDHP plan mid-year becomes ineligible as of the first day of that month. Contributions made for ineligible months must be treated as excess contributions. Under the last-month rule, if eligibility ends before the close of the testing period, the full-year contribution becomes partially non-deductible and subject to the 10% testing-period penalty.
Scenario 3: Death of the account holder
When an HSA holder dies and the designated beneficiary is a spouse, the account transfers to the spouse as their own HSA, retaining full tax-exempt status under IRC §223(f)(8)(B). If the beneficiary is not the spouse, the account ceases to be an HSA as of the date of death, and its fair market value becomes taxable income to the beneficiary in that tax year.
Scenario 4: HSA and Limited-Purpose FSA combination
The IRS permits an HSA-eligible individual to simultaneously hold a Limited-Purpose FSA, which is restricted to dental and vision expenses. This does not disqualify HSA eligibility because it does not constitute disqualifying coverage under IRC §223(c)(1)(B).
Decision boundaries
The following distinctions carry direct tax consequences under IRS rules:
HDHP vs. non-HDHP coverage: Only HDHP coverage, as defined in IRC §223(c)(2), confers HSA eligibility. A plan that meets premium thresholds but provides pre-deductible benefits for non-preventive services disqualifies the holder. The IRS has clarified in Notice 2004-2 that "preventive care" safe harbor services may be covered below the deductible without disqualifying the HDHP.
Self-only vs. family coverage: The distinction is not whether dependents are enrolled, but which HDHP tier the account holder's plan falls under. An individual on a self-only HDHP whose spouse holds a family HDHP may each contribute at their respective limits, but the family limit applies per household when both spouses are covered under the same family HDHP (IRS Publication 969, "Limit for Married Individuals").
Qualified vs. non-qualified expenses: The IRS defines qualified medical expenses by reference to IRC §213(d), which encompasses expenses for diagnosis, cure, mitigation, treatment, or prevention of disease. Cosmetic procedures and general health expenses without a medical diagnosis are excluded. The HSA qualified medical expenses framework distinguishes expenses the IRS will accept from those that trigger the 20% penalty.
Age-based penalty structure: Below age 65, non-qualified withdrawals face ordinary income tax plus the 20% penalty. At age 65 and beyond, the 20% penalty disappears, and the account functions analogously to a Traditional IRA for non-medical withdrawals — taxable but penalty-free. This boundary is central to the HSA as a retirement savings vehicle strategy discussed in detail elsewhere on this site.
References
- IRS Publication 969: Health Savings Accounts and Other Tax-Favored Health Plans
- IRC §223 — Health Savings Accounts (via Cornell LII)
- IRS Revenue Procedure 2023-23 — 2024 HSA Inflation Adjustments
- IRS Notice 2004-2 — HSA Guidance Q&A
- IRS Form 8889 and Instructions
- IRC §213 — Medical, Dental, etc. Expenses (via Cornell LII)
- IRC §4973 — Excise Tax on Excess Contributions (via Cornell LII)
The law belongs to the people. Georgia v. Public.Resource.Org, 590 U.S. (2020)