HSA
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 type | Contributions | Growth | Withdrawals | |
|---|---|---|---|---|
| 401(k) Traditional | Pre-tax | Tax-free | Ordinary income | |
| 401(k) Roth | After-tax | Tax-free | Tax-free (qualifying) | |
| Traditional IRA | Deductible (income-limited) | Tax-free | Ordinary income | |
| Roth IRA | After-tax | Tax-free | Tax-free (qualifying) | |
| HSA | Deductible | Tax-free | Tax-free for qualified medical; ordinary income post-65 for any other use |
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
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.