Families enrolled in high-deductible health plans can move money into a health savings account and never owe federal income tax on those dollars when they pay for qualified medical costs. That protection applies at both ends of the transaction: contributions reduce taxable income, and withdrawals for eligible expenses are excluded from gross income. The rule is written directly into the Internal Revenue Code at Section 223, a statute that Congress added through the Medicare Prescription Drug, Improvement, and Modernization Act of 2003. With out-of-pocket medical bills continuing to strain household budgets, the tax treatment of HSA funds carries real financial weight for millions of account holders.
How Section 223 shields HSA dollars from federal tax
The statutory text is direct. Section 223(f) of the Internal Revenue Code states that amounts distributed from an HSA and used exclusively to pay qualified medical expenses are not includible in gross income. That sentence is the legal foundation for the claim that properly used HSA withdrawals escape federal income tax. The preliminary edition of the statute remains in effect as of June 21, 2026, according to the Office of the Law Revision Counsel of the U.S. House of Representatives.
The flip side is equally clear. Nonqualified distributions, meaning withdrawals spent on anything other than eligible medical costs, are includible in gross income and generally subject to an additional tax. The IRS reinforced that distinction in Notice 2004-2, published in Internal Revenue Bulletin 2004-02, which laid out question-and-answer guidance shortly after Congress created HSAs through Section 223. The agency’s own Internal Revenue Manual at section 21.6.5 tells enforcement staff that amounts not used exclusively for qualified medical expenses face an additional 20 percent tax, a penalty steep enough to discourage casual misuse and to underscore that HSAs are meant for healthcare spending, not general savings.
Why the double-sided tax exclusion changes household decisions
The structure of the HSA tax benefit is sometimes described as a triple tax advantage: contributions are deductible or pre-tax, growth inside the account is tax-free, and withdrawals for qualified medical expenses are excluded from income. An investor bulletin published by the SEC frames the accounts in exactly those terms, positioning HSAs as distinct from other tax-advantaged vehicles that typically tax money on at least one end of the cycle.
That design creates a direct incentive for account holders to route medical spending through their HSA rather than paying out of pocket and claiming a deduction. IRS Publication 502 for the 2025 tax year makes the boundary explicit: expenses already paid with tax-free HSA distributions cannot also be claimed as deductible medical expenses. The agency blocks double benefits, which confirms that the tax-free treatment on qualified withdrawals is the primary channel Congress intended for HSA holders to reduce their medical cost burden.
One testable question is whether this tax structure measurably shifts how households allocate spending on healthcare. In principle, matching anonymized IRS distribution records against Census medical expenditure surveys over a five-year window could reveal whether HSA holders spend differently than comparable households without accounts. No publicly available dataset currently links those two sources at scale, which leaves the behavioral impact of the tax benefit largely unmeasured at the federal level. Policymakers therefore rely on indirect evidence, such as plan enrollment trends and survey responses, rather than hard administrative data on how the tax exclusion changes real-world choices.
Gaps in enforcement data and state-level conformity
The federal statute and related IRS guidance are explicit about when HSA money is tax-free and when it is penalized, but the government releases little granular information on how often taxpayers run afoul of those rules. Public IRS statistics do not routinely break out the number of returns reporting nonqualified HSA distributions, the volume of related 20 percent penalties, or the frequency of audits focused on Section 223 compliance. Without that detail, it is difficult for outside researchers to gauge whether enforcement is primarily educational, penalty-driven, or largely reactive when obvious errors surface during examinations.
Internal instructions to IRS employees, reflected in the service’s manual, emphasize the mechanical steps for handling HSA-related issues: verifying that a taxpayer was eligible to contribute, confirming that distributions match reported medical expenses when documentation is requested, and applying the additional tax when withdrawals were not used exclusively for qualified costs. What remains opaque is how consistently those procedures are applied in practice and whether resource constraints limit the number of HSA cases that receive close scrutiny. The absence of systematic enforcement statistics creates a blind spot for lawmakers evaluating whether the current penalty structure is sufficient to deter abuse without ensnaring good-faith users who make recordkeeping mistakes.
State-level conformity adds another layer of complexity. While the federal government sets the baseline rules for HSAs through Section 223, individual states decide whether to follow those rules for their own income tax systems. Some states fully conform, excluding HSA contributions and qualified withdrawals from taxable income just as the federal code does. Others partially conform or decouple, taxing contributions, earnings, or both even when the money is sheltered at the federal level. For families living in nonconforming states, the headline promise that HSA dollars “are never taxed” is only partly true: the account still delivers federal benefits, but state income tax may quietly erode a portion of the advantage.
Those differences matter most for households with high medical costs and significant HSA balances. A state that taxes contributions or investment gains effectively reduces the long-term value of using an HSA as a supplemental retirement or emergency healthcare fund. Yet state revenue departments, like their federal counterpart, publish limited detail on how many taxpayers claim HSA-related adjustments or how often enforcement actions target improper withdrawals. Until more comprehensive data are available, debates over HSAs will continue to rest on clear statutory promises, scattered administrative guidance, and only partial visibility into how the accounts are used on the ground.



