HSA Calculator

A Health Savings Account (HSA) is the only account with triple tax benefits: tax-deductible contributions, tax-free growth, and tax-free withdrawals for healthcare. Invested strategically, it becomes a powerful retirement healthcare fund — this calculator shows exactly how much yours will cover.

Enter your current balance, annual contribution, investment return, and years until retirement to see your HSA balance and retirement healthcare coverage.

HSA Balance at Retirement
Years of Healthcare Covered
Total Tax Savings (contributions)
Investment Growth on Contributions
Total Contributions
Equivalent Taxable Savings Needed

The HSA Triple Tax Advantage — and Why It Matters

The HSA is the most tax-efficient savings vehicle available to most Americans — but it's dramatically underused. Most people treat their HSA like a flexible spending account (FSA): contribute, spend on current medical bills, repeat. That misses the real power of the HSA as a long-term retirement savings vehicle.

The triple tax advantage means: (1) Contributions are pre-tax (or tax-deductible if you contribute directly), reducing your taxable income today. At a 24% marginal rate, contributing $4,300 saves you $1,032 in federal taxes immediately. (2) Investment growth is completely tax-free — no annual taxes on dividends or capital gains. (3) Withdrawals for qualified medical expenses are tax-free. Compare this to a traditional IRA, which is tax-deductible going in but taxed on withdrawal, or a Roth IRA, which is taxed going in but tax-free on qualified withdrawal. The HSA beats both for healthcare spending specifically.

The Optimal HSA Strategy: Pay Out of Pocket, Invest Everything

The most powerful HSA approach: pay all current medical expenses out-of-pocket (from your regular checking account or emergency fund), save the receipts, and invest the full HSA contribution in low-cost index funds. The IRS has no statute of limitations on HSA reimbursements — you can pay a medical bill in 2026 and reimburse yourself from the HSA in 2045 with decades of tax-free growth between. This turns the HSA into a stealth retirement account.

HSA Growth — $4,300/yr Contribution, 7% Return
Years Invested Total Contributed Balance Years of $8K/yr Healthcare
5 years$21,500$24,9003.1 years
10 years$43,000$59,4007.4 years
20 years$86,000$179,80022.5 years
30 years$129,000$430,70053.8 years

2026 Contribution Limits

For 2026, the IRS allows contributions of $4,300 for individual HDHP coverage and $8,550 for family coverage. If you're 55 or older, you can make an additional $1,000 catch-up contribution (individual: $5,300, family: $9,550). You must be enrolled in a qualifying High-Deductible Health Plan (HDHP) to contribute — you cannot contribute to an HSA while enrolled in Medicare or a non-HDHP plan. Employer HSA contributions count toward these annual limits.

HSA After Age 65

Once you turn 65, the penalty for non-medical withdrawals disappears — you can use HSA funds for anything without a 20% penalty. Non-healthcare withdrawals after 65 are taxed as ordinary income (like a traditional IRA withdrawal). Healthcare withdrawals remain completely tax-free. This makes the post-65 HSA essentially a hybrid: a tax-free healthcare account AND a traditional IRA backup. Medicare Part B, Part D, and Medigap premiums all qualify as HSA-eligible expenses after 65.

Max out the HSA before maxing a Roth IRA. Both grow tax-free, but the HSA also reduces taxable income today (Roth contributions don't). For healthcare spending specifically, the HSA is strictly better. The recommended order: get the 401k employer match → max the HSA → max the Roth IRA → contribute more to the 401k. This sequence captures the triple tax advantage before using standard retirement accounts.

For a comprehensive guide to HSA strategy, read our article on using your HSA as a retirement account. To understand the differences between an HSA and FSA, see HSA vs. FSA.

Frequently Asked Questions

What is an HSA?

A Health Savings Account (HSA) is a tax-advantaged account for people enrolled in a High-Deductible Health Plan (HDHP). It has a unique triple tax advantage: contributions are tax-deductible, growth is tax-free, and withdrawals are tax-free for qualified medical expenses. Unspent balances roll over indefinitely — unlike FSA funds which expire. HSAs can be invested in mutual funds and ETFs for long-term growth.

What are the 2026 HSA contribution limits?

For 2026: $4,300 for individual HDHP coverage, $8,550 for family coverage. If you're 55+, add a $1,000 catch-up contribution. You must be enrolled in a qualifying HDHP and not enrolled in Medicare to contribute. Employer contributions count toward these limits.

Can I invest my HSA funds?

Yes. Most HSA providers allow you to invest balances above a cash threshold (typically $1,000–$2,000) in mutual funds or ETFs. Invested HSA funds grow completely tax-free. The long-term strategy: invest the maximum annual contribution in a diversified index fund, pay current medical costs out-of-pocket, and save receipts to reimburse yourself tax-free decades later.

What happens to HSA money after age 65?

After 65, the 20% penalty for non-medical withdrawals disappears. Non-healthcare withdrawals are taxed as ordinary income (like a traditional IRA). Healthcare withdrawals remain permanently tax-free. Medicare Part B, D, and Medigap premiums qualify as HSA-eligible expenses. This makes the HSA a hybrid: tax-free healthcare account and ordinary IRA-equivalent backup fund.

How much does retirement healthcare cost?

Fidelity estimates a 65-year-old couple needs approximately $330,000 (today's dollars) for retirement healthcare — roughly $165,000 per person. This includes Medicare premiums, cost-sharing, and out-of-pocket expenses but typically excludes long-term care. Healthcare costs inflate at 5%–6%/year, so projections for workers retiring in 20–30 years are substantially higher. HSAs invested long-term are one of the best tools to meet these costs.

Related Calculators

Formula sources & accuracy standards: Calculator Methodology · Editorial Policy