HSA Calculator — Triple-Tax-Shield Lifetime Value · IRS 2026 Limits
Model the lifetime tax advantage of a Health Savings Account: pre-tax contribution, tax-free growth, tax-free medical withdrawal — versus 401(k)-only and taxable-brokerage paths.
- Instant result
- Private — nothing saved
- Works on any device
- AI insight included
HSA Calculator
You might also need
So is the HSA actually worth it? — short answer first
Yes — for almost any saver in a marginal bracket of 22% or higher, the HSA is the most tax-efficient account in the entire US tax code. It is the only account with all three tax shields stacked: pre-tax in (federal + state + FICA when via payroll), tax-free growth (no annual capital gains), and tax-free out for qualified medical. The calculator above quantifies the lifetime advantage in dollars vs. a 401(k)-only path and a taxable-brokerage path, with a decision score 0-100. Standard order: 401(k) match → max HSA → rest of 401(k) → Roth IRA → taxable.
What This Calculator Does
Quantifies the lifetime tax advantage of contributing to a Health Savings Account vs. two counterfactuals: a 401(k)-only path (taxed at withdrawal) and a taxable brokerage account (no tax shields). Inputs: HDHP coverage type, annual contribution, age, federal + state marginal rates, expected return, and time horizon. Outputs: total advantage in dollars, year-by-year future-value chart for all three paths, and a decision score that rolls in your tax bracket, horizon, and age into a single suitability number.
Behind the math is a discipline most online HSA calculators skip: separating the three shields explicitly. The pre-tax shield is your contribution × combined marginal rate, applied each year. The growth shield is the LTCG you would have paid in a taxable account on the same gains. The withdrawal shield is the federal tax you would have paid on a 401(k) withdrawal of the same balance. Sum all three over your horizon → total lifetime advantage.
The Math / Formula / How It Works
The three shields don't all kick in at the same moment. The pre-tax shield is realized every year you contribute (your paycheck is bigger by the contribution × combined rate). The growth shield accumulates silently across all the years your HSA is invested (no annual 1099 to file, no LTCG drag at rebalancing). The withdrawal shield is realized at retirement when you spend the balance on qualified medical (tax-free) or non-medical at 65+ (taxed-as-ordinary, but no penalty).
For high earners with long horizons, the growth + withdrawal shields together typically exceed the pre-tax shield by year 15-20 — the compounding makes the HSA dominate even accounts with comparable upfront tax treatment. This is why the “stealth IRA” strategy (pay current medical out of pocket, save receipts, let HSA grow untouched until retirement) is the highest-leverage HSA play.
How to Use This Calculator
- Pick HDHP coverage. Self-only ($4,300 cap) or Family ($8,550 cap). Must be enrolled in a qualifying High-Deductible Health Plan for the entire month to contribute for that month. 2026 minimum HDHP deductible: $1,650 self / $3,300 family.
- Enter annual contribution.Total of your contribution + any employer contribution. Age 55+ adds a $1,000 catch-up to the cap (must go in your own account, not a spouse’s). Excess contributions face a 6% annual excise tax until corrected.
- Enter your age. Drives catch-up eligibility, time-horizon defaults, and Medicare-cutoff warnings. HSA contributions stop the month you enroll in Medicare (typically age 65) — but the existing balance retains its triple shield.
- Enter federal + state marginal rates.Federal: your top 2026 bracket (10/12/22/24/32/35/37%). State: 0 in no-income-tax states (AK, FL, NV, NH, SD, TN, TX, WA, WY) and in CA/NJ where HSA contributions aren’t state-deductible.
- Enter expected return + years to spend.7% is a typical 60/40 portfolio assumption. Long horizons (25+ years) compound the triple shield dramatically. Most HSA providers require a $1,000-$2,000 invested-balance minimum before unlocking index funds.
- Read the verdict. Total lifetime advantage + decision score 0-100 + 3-line counterfactual chart (HSA vs 401k-only vs taxable). Above 75 = exceptional case; 45-74 = workable; under 45 = verify HDHP premium savings cover any out-of-pocket spend before committing.
Three Worked Examples
Example 1 — High earner, long horizon, family coverage
Age 32, family HDHP, $8,550/yr contribution, 32% federal + 9% state (NY), 7% return, 33-year horizon. Combined marginal rate (incl. FICA): 48.65%. Annual pre-tax shield: $4,160/yr. Future value at retirement: ~$1,028,000. Lifetime advantage: ~$590,000 over the 33-year horizon vs. taxable. Decision score: 95/100 — exceptional case. The strategy: pay current medical out of pocket, save receipts, treat HSA as a stealth IRA.
Example 2 — Mid-career, mid-bracket, self-only coverage
Age 45, self-only HDHP, $4,300/yr contribution, 24% federal + 5% state, 7% return, 20-year horizon. Combined marginal rate: 36.65%. Annual pre-tax shield: $1,576/yr. Future value at retirement: ~$176,000. Lifetime advantage: ~$74,000 over the 20-year horizon. Decision score: 75/100 — strong case. Bonus: at 55 (10 years in), unlock the $1,000/yr catch-up.
Example 3 — Late starter, low bracket, family coverage
Age 58, family HDHP, $9,550/yr contribution (incl. catch-up), 12% federal + 0% state (FL), 5% return, 7-year horizon. Combined marginal rate: 19.65%. Annual pre-tax shield: $1,876/yr. Future value at retirement: ~$78,000. Lifetime advantage: ~$22,000. Decision score: 55/100 — workable but verify HDHP premium savings vs PPO before committing. The shorter horizon and lower bracket reduce the per-year value, but the post-65 Medicare-premium reimbursement use case still makes the balance worthwhile.
Common Mistakes
- Spending the HSA on current medical instead of investing it.The compounding tax-free growth is 90% of the HSA’s lifetime value. If you can pay current medical out-of-pocket from cashflow, do that — let the HSA grow. Save receipts (just photograph them in a dated folder) for tax-free reimbursement decades later.
- Leaving funds in cash instead of investing.Every HSA provider has an investment threshold (typically $1,000-$2,000) above which you can move funds to index funds. Money sitting in cash earns near-zero. Switch providers if your employer’s HSA charges fees and limits funds — your HSA is portable; it doesn’t have to live with your employer.
- Using HSA dollars for non-medical expenses before 65. Non-medical use under 65 incurs a 20% penalty PLUS ordinary income tax— much worse than a 401(k) early withdrawal (10% penalty). After 65, the penalty disappears; non-medical use is taxed-as-ordinary like a traditional 401(k). The brutal under-65 penalty is intentional: it’s why HSA is locked to medical use.
- Forgetting Medicare disqualifies HSA contributions. The month you enroll in Medicare (Part A is automatic at 65 for most), you can no longer contribute to an HSA. Existing balance is fine, but new contributions stop. If you plan to work past 65, delay Social Security to 70 to delay automatic Medicare enrollment AND keep contributing.
- Contributing in CA or NJ without adjusting the state-shield expectation.California and New Jersey are the only two states that tax HSA contributions as state income. Set state rate to 0 in the calculator if you live there. The HSA is still very worthwhile (federal + FICA shield + tax-free growth + medical out), just slightly less than the calculator’s combined-shield default suggests.
- Pairing HSA with the wrong HDHP. The HSA only works if the HDHP is genuinely cheaper than your PPO alternative once you factor in the deductible, out-of-pocket max, and your typical annual medical spend. For families with chronic conditions or expected major medical (planned surgery, pregnancy), a low-deductible PPO often wins despite the HSA shield. Run the numbers both ways.
Methodology & Sources
Pre-tax shield = contribution × (federal marginal + state marginal + 7.65% FICA). The FICA shield (Social Security 6.2% + Medicare 1.45%) only applies when contributions are made via payroll deduction under a Section 125 cafeteria plan. Direct HSA contributions outside payroll skip FICA but still get the federal + state shield. State shield does not apply in CA or NJ.
Growth shield = total lifetime growth × 15% LTCG. This approximates the long-term capital gains tax drag a taxable brokerage would face on the same growth. For high earners in the 20% LTCG bracket (income >$520K MFJ in 2026), the growth shield is even larger than calculated.
Withdrawal shield = future value × federal marginal rate. This models the difference between a tax-free HSA medical withdrawal and a taxed 401(k) withdrawal at the same future balance. Assumes 100% medical use (the most common case at retirement when long-term care + Medicare premiums + dental + vision + hearing typically exceed lifetime HSA balance).
How to Read the Verdict
- Decision score 85+: maximize the HSA.Exceptional triple-shield value. Combination of high marginal rate + long horizon. Pay current medical out of pocket and let the HSA grow as a stealth IRA. Switch HSA providers if your employer’s plan charges fees.
- Decision score 65-84: strong HSA case.Fund to the limit if cash flow allows. Even if you spend some of it on current medical, the pre-tax shield alone beats taxable contribution at your bracket.
- Decision score 45-64: workable. HSA still beats 401(k)-only at the margin, but verify your HDHP is actually cheaper than the PPO alternative before committing. Run the HDHP-vs-PPO compare with your typical annual medical spend.
- Decision score under 45: marginal. Either your bracket is low, your horizon is short, or your contribution is small. The HSA still works, just not as dramatically. Make sure the HDHP premium savings exceed any predictable out-of-pocket medical spend.
Once you have a verdict, run the Retirement Savings Calculator to see how the HSA fits with your full retirement target, then Roth vs Traditional 401(k) for the next-tier-up retirement decision. For deeper HSA scenarios (employer-match modeling, bracket-shifting), the HSA Triple-Tax Optimizer from Phase O adds those layers.
Sources & Methodology
The formulas, thresholds, and benchmarks behind this calculator are anchored to the primary sources below. Where a study or agency document is the underlying authority, we link straight to it — not a summary or republished version.
- IRS Publication 969 — Health Savings Accounts and Other Tax-Favored Health Plans· Internal Revenue Service
Authoritative federal HSA guide — eligibility, contribution limits, qualified-expense rules, withdrawal taxation.
Accessed
- IRS Revenue Procedure 2025-19 (HSA limits 2026)· Internal Revenue Service
Annual inflation-adjusted contribution limits: $4,300 self / $8,550 family for 2026, plus minimum HDHP deductibles.
Accessed
- IRS Publication 502 — Medical and Dental Expenses· Internal Revenue Service
Definitive list of qualified medical expenses eligible for tax-free HSA reimbursement. Updated annually.
Accessed
- Devenir HSA Research Report 2024· Devenir Group — HSA industry research
Industry benchmark report on HSA balances, investment adoption, and growth — used for typical-account calibration.
Accessed
- Vanguard — How America Saves 2024 (HSA section)· Vanguard Group
Cross-account savings benchmarks used to validate the HSA-vs-401(k) comparative framing in the calculator's counterfactual.
Accessed
Frequently Asked Questions
The most common questions we get about this calculator — each answer is kept under 60 words so you can scan.
What is an HSA and why is it called 'triple tax-advantaged'?
A Health Savings Account is a tax-favored account paired with a qualifying High-Deductible Health Plan (HDHP). It's the only account in US tax code with three tax shields: contributions are pre-tax (federal + state + FICA when via payroll), growth is tax-free (no annual capital-gains drag), and qualified medical withdrawals are tax-free at any age. No other account stacks all three.What are the IRS 2026 HSA contribution limits?
Self-only HDHP coverage: $4,300/year. Family HDHP coverage: $8,550/year. Account holders age 55+ can add a $1,000 catch-up contribution annually (must be made to their own account, not a spouse's). Contributions can be made anytime before the tax-filing deadline (April 15, 2027 for 2026 contributions).Who is eligible to open and contribute to an HSA?
You must (1) be enrolled in an IRS-qualified High-Deductible Health Plan (2026 minimum deductible: $1,650 self / $3,300 family), (2) have no other non-HDHP health coverage, (3) not be enrolled in Medicare, and (4) not be claimed as a dependent on someone else's tax return. Eligibility is checked on the first day of each month.What's the difference between an HSA and an FSA?
Three big differences. (1) HSA funds roll over indefinitely; FSA funds are mostly use-it-or-lose-it (employer can allow $660 carryover for 2026). (2) HSA is yours forever even if you change jobs or insurance; FSA is forfeited at job change. (3) HSA can be invested for long-term growth; FSA generally cannot. HSAs require an HDHP; FSAs work with any plan.How does the HSA compare to a 401(k) or Roth IRA for retirement?
For qualified medical expenses (which most retirees have plenty of), the HSA wins outright — pre-tax in, tax-free growth, tax-free out. For non-medical use after age 65, the HSA is taxed like a traditional 401(k) on withdrawal but faces no 10% penalty — equivalent to traditional 401(k) treatment with the bonus that medical use makes it superior. Roth IRA wins only if you're confident your retirement bracket exceeds your contribution bracket.Can I invest my HSA balance like a 401(k)?
Yes, with most HSA providers — but typically only after your balance exceeds an investment threshold (usually $1,000-$2,000). Below that, funds sit in a cash-equivalent earning near-zero. Top providers (Fidelity, Lively, HealthEquity) offer index funds; some employer-mandated providers (HSA Bank, Optum) charge $3-$5/month investment fees. Switch providers if your employer's chosen HSA charges fees and limits funds.What happens to my HSA after I turn 65?
At 65, you can no longer contribute (Medicare enrollment disqualifies), but the account is yours and the triple-tax shield on existing balance remains. Qualified medical withdrawals stay tax-free. Non-medical withdrawals become taxable as ordinary income (but no 10% penalty — same as a traditional IRA at that age). Most retirees have enough lifetime medical spend (long-term care, Medicare premiums, dental, vision, hearing) to use the entire balance tax-free.Are HSA contributions deductible in California?
Federal deduction yes — California and New Jersey are the only two states that tax HSA contributions as state income (and tax growth and withdrawals as well). If you live in CA or NJ, set the state rate to 0 in the calculator — the federal-and-FICA shields still make the HSA worthwhile, but the per-year advantage is smaller than the calculator's combined-shield default suggests.What counts as a qualified medical expense for tax-free HSA withdrawal?
IRS Publication 502 lists 100+ qualifying expenses: doctor visits, hospital bills, prescription drugs, dental, vision (eyeglasses, LASIK), hearing aids, mental health counseling, addiction treatment, long-term care, Medicare premiums (Parts B, D, Advantage), and many more. Non-medical use before 65 incurs a 20% penalty PLUS ordinary income tax — much worse than a 401(k) early withdrawal.Can I save medical receipts and reimburse myself decades later?
Yes — and this is the highest-leverage HSA strategy. Pay current medical out-of-pocket, save the receipts, let the HSA grow untouched. Years later, you can reimburse yourself any amount up to your accumulated medical spend, tax-free. Receipts must be from after the HSA was opened. Photograph them, store in a folder labeled with year + amount. No statute of limitations on the reimbursement.What's the worst-case scenario if I open an HSA but don't need it?
Worst case: you contribute, never have medical expenses, and withdraw at 65 for non-medical use. That converts the HSA into the equivalent of a traditional 401(k) — pre-tax in, tax-deferred growth, taxed-as-ordinary on withdrawal. Still better than a taxable brokerage thanks to the pre-tax shield. The downside scenario floors at 'as good as a 401(k)' rather than 'lost money.'Should I max out the HSA before contributing to my 401(k)?
Standard order for most savers: (1) 401(k) up to employer match (free money), (2) max HSA, (3) back to 401(k) up to limit, (4) Roth IRA, (5) taxable brokerage. The HSA's triple shield typically beats the 401(k)'s double shield by 1.5-2× per dollar contributed for high earners with long horizons — but never skip the 401(k) match since it's a 50-100% instant return.