Term · Health Savings Account

HSA

Published May 9, 2026
Definition

A Health Savings Account is a tax-advantaged account available to individuals enrolled in High-Deductible Health Plan (HDHP) coverage. Contributions are deductible (or pre-tax via payroll). Growth is tax-free. Distributions for qualified medical expenses are tax-free at any age. After age 65, distributions for any purpose are taxed as ordinary income with no penalty. The combination is the only triple-tax advantage in the US tax code.

HSAs were created by the Medicare Modernization Act of 2003 as a tax-advantaged complement to HDHP coverage. The original intent was to support consumer-directed healthcare; the practical effect for tax-aware households has been to create a stealth retirement account whose tax efficiency exceeds any other vehicle.

The triple-tax advantage works as follows: contributions to an HSA reduce taxable income (above-the-line deduction or pre-tax via §125 cafeteria plan); the HSA's investment returns accumulate tax-free; qualified-medical-expense distributions are tax-free regardless of when made. Compare to a 401(k) or Traditional IRA (deductible contributions, tax-free growth, ordinary-income distributions) or a Roth IRA (after-tax contributions, tax-free growth, tax-free distributions). The HSA dominates both for medical-expense-related withdrawals.

The stealth-retirement-account use case exploits a specific HSA rule: the account can reimburse qualified medical expenses paid in any prior year (no time limit), so long as the expenses were incurred after the HSA was established and weren't claimed for tax purposes elsewhere. A 35-year-old who pays $50,000 of qualified medical expenses out-of-pocket over the next 30 years and keeps the receipts has $50,000 of future tax-free withdrawal capacity, redeemable at any future date. Combined with the tax-free growth on the HSA balance during the deferral period, the strategy produces tax-free retirement-income in a way no other account can match.

HSA eligibility requires HDHP coverage as defined annually by the IRS. Contributions limits in 2025 are $4,300 (self-only) or $8,550 (family), with $1,000 catch-up after age 55. Eligibility is determined month-by-month; the 'last month rule' allows full-year contributions if eligibility holds in December and continues for the following 12 months (testing-period rule). Medicare enrollment ends contribution eligibility (typically at age 65), although existing HSA balances can continue to be used.

For wealth-tech platforms, HSAs are routinely undermodeled. The spending-tier vs. investment-tier distinction is often missed; the qualified-expense-reimbursement deferral mechanism is essentially never modeled in mass-market planning software; the Medicare-enrollment transition is often hardcoded incorrectly. The [HSA investment & triple-tax-advantage modeling](/articles/hsa-investment-modeling-synthetic) article covers the data shapes in depth.

 Account typeContributionsGrowthWithdrawals
401(k) TraditionalPre-taxTax-freeOrdinary income
401(k) RothAfter-taxTax-freeTax-free (qualifying)
Traditional IRADeductible (income-limited)Tax-freeOrdinary income
Roth IRAAfter-taxTax-freeTax-free (qualifying)
HSADeductibleTax-freeTax-free for qualified medical; ordinary income post-65 for any other use
Why this matters for synthetic data

HSA-aware synthetic data needs the spending-tier vs. investment-tier distinction, eligibility-history tracking at the month grain, qualified-medical-expense-ledger tracking for the deferral strategy, and Medicare-enrollment dates for contribution termination. A test corpus that treats HSAs as simple cash accounts misses the most distinctive features of the account type.

Common pitfalls

  • Conflating HSA with FSA (Flexible Spending Account) — FSA has use-it-or-lose-it (mostly) and has different tax treatment.
  • Missing the Medicare-enrollment termination — contributions cease at Medicare enrollment, even if HDHP coverage continues.
  • Treating qualified-expense receipts as immediately reimbursed — tax-aware households defer reimbursement; the platform has to support the receipt-ledger model.
  • Forgetting state-level treatment variations — California and New Jersey don't recognize HSAs at the state level.

Examples

HSA as stealth retirement account

Customer contributes $4,000/year to HSA from age 30 to age 65 (35 years × $4,000 = $140,000 cumulative contributions). Account invested in 70/30 stocks/bonds, earning ~7% real annual. By age 65, account value is approximately $620,000. Customer paid roughly $80,000 of qualified medical expenses out-of-pocket during the 35-year window and kept the receipts. At age 65: $80,000 of receipt-bound tax-free withdrawal capacity + $540,000 of post-65 IRA-equivalent withdrawal capacity (taxable as ordinary income). Effective tax-deferred + tax-free retirement vehicle that exceeds any IRA equivalent.

Frequently asked questions

How is an HSA different from an FSA?+
Three differences: (1) HSAs require HDHP coverage; FSAs don't. (2) HSAs are owned by the individual; FSAs are owned by the employer (and lost at separation, with limited COBRA-style continuation). (3) HSAs have no use-it-or-lose-it provision; balances roll over indefinitely. The key practical implication: HSAs are real wealth-building accounts, FSAs are annual-budget mechanisms.
What counts as a qualified medical expense?+
IRC §213(d) defines the categories: medical care, prescription drugs (including over-the-counter when prescribed), dental care, vision care, mental health care, long-term care premiums (within IRS limits by age), Medicare premiums (Parts B, D, Medicare Advantage). Cosmetic procedures and general health items typically don't qualify. The IRS Publication 502 has the authoritative list.
Can an HSA hold investment positions like an IRA?+
Yes, at HSA custodians that support investment products. Most HSA custodians (Fidelity, HSA Bank, Lively, etc.) offer investment options once a minimum spending-tier balance ($1,000-$2,000 typically) is reached. Investment options vary by custodian — some offer broad mutual-fund and ETF access, some offer self-directed brokerage. Investment-tier returns are tax-free under the same HSA rules as cash.