How to use this hsa vs fsa vs 401(k) calculator
Americans get three tax-advantaged accounts for health and retirement money, and they behave very differently. The HSA is the clear winner for anyone eligible, but it is also the least well understood, so the comparison is worth doing properly.
What each one is
- HSA — a Health Savings Account attached to a high-deductible health plan. You contribute pre-tax, it grows tax-free, and you can invest it. It is portable between employers and it is yours. At 65, unused balance becomes tax-free ordinary income.
- FSA — a Flexible Spending Account through your employer. Contributions are pre-tax, but the money is in a use-it-or-lose-it account with a grace period and, sometimes, a small carryover. You cannot invest it and it does not roll over.
- 401(k) — a retirement account with a contribution limit of $24,500 for 2026, an employer match, and either pre-tax or Roth treatment. Contributions are locked until 59½ without penalty, except for plan loans.
Why the HSA wins when you can use it
Run the comparison with realistic numbers. Contributing $3,000 to each, plus a $1,000 employer HSA contribution and a $1,500 401(k) match, over 30 years at a 6% return, with 24% tax now and 25% later:
- HSA: the $4,000 grows to about $22,974 tax-free. If you use 60% of it for medical expenses, that portion is untaxed and the rest is taxed at 25% when you take it at 65, leaving roughly $20,677.
- FSA: $3,000 of pre-tax money spent on medical costs, with no growth and roughly 15% typically forfeited.
- 401(k): the $4,500 grows to about $25,846 and is taxed at 25% on withdrawal, leaving about $19,384.
The HSA wins because it combines a current-year deduction with tax-free growth and no expiry. The FSA wins on simplicity and current-year use, which is exactly what someone with a large medical bill this year should prioritise.
The eligibility question comes first
None of this applies unless you are eligible. An HSA requires enrolment in a qualified high-deductible health plan, which in 2026 means a deductible of at least $1,800 for self-only coverage or $3,600 for family coverage. Most employer plans are PPOs with much lower deductibles, so a large share of employees cannot open one at all. If your plan does not qualify, the comparison is between the FSA and the 401(k), and the 401(k) wins on almost every measure except a large current-year medical bill.
The general-purpose FSA conflict
Having both an HSA and a general-purpose FSA disqualifies you from contributing to the HSA, because both would be reimbursing the same expenses. A limited-purpose FSA — covering only dental and vision — is compatible and is the standard pairing. This catches people who join a general FSA at open enrolment and then discover they have to drop the HSA mid-year and correct their contributions.
The use-it-or-lose-it workaround
HSA holders routinely avoid the FSA problem entirely by paying claims out of pocket, keeping the receipts, and reimbursing themselves later. Since the HSA is an account, not a spending card, you can reimburse yourself for any qualified expense incurred after the HSA was opened — including expenses from years ago. The receipts become an asset. This is the single most useful tactic for anyone with an HSA and a year of high medical costs.
The order to use them in
If you can do all of these, the order is: capture the full 401(k) match first, then max the HSA (especially if you are near 65, where it becomes a retirement account), then the 401(k) limit, then the FSA if you have predictable expenses you cannot afford to pay out of pocket. The FSA comes last because it is the only one that expires.