The HSA calculator below projects how a Health Savings Account can grow over time and estimates the tax savings you pick up along the way, purely from your own contribution habits and an assumed investment return.
A Health Savings Account is one of the few accounts in the U.S. tax code with a genuine triple tax advantage: contributions go in pre-tax, growth is tax-free, and qualified withdrawals for medical expenses come out tax-free too. Arb Digital built this free HSA calculator so you can see, in plain numbers, what that advantage is actually worth to you over five, ten, or twenty years.
What This HSA Calculator Does
You enter your own annual contribution, any employer contribution, how many years you plan to let the account grow, an expected annual investment return, and your marginal tax rate. The calculator then projects your ending balance using compound growth, separates that balance into contributions versus investment growth, and estimates the total income tax you avoided by contributing pre-tax dollars instead of taking that money as ordinary taxable pay.
How to Use It
- Enter your annual contribution. This is the amount you personally put into the HSA each year, whether through payroll deduction or a direct deposit.
- Add any employer contribution. Many employers kick in a set amount each year on top of what you contribute β include it here since it also grows tax-free.
- Set your time horizon. Enter how many years you expect to leave the money invested before you need it for medical costs or retirement.
- Set an expected growth rate. If you invest your HSA balance rather than leaving it in cash, choose a conservative long-term average return.
- Enter your marginal tax rate. This is used to estimate how much income tax your contributions have shielded from taxation.
The Formula β How the Projection Is Calculated
Total contributions are simply your annual contribution plus your employer's contribution, multiplied by the number of years. To project the ending balance, the calculator treats each year's combined contribution as a deposit into a compounding account and applies your expected annual growth rate across the full time horizon, similar to a standard future-value-of-an-annuity calculation. Investment growth is the difference between that projected balance and your total contributions. Tax savings are estimated as your personal annual contribution multiplied by your marginal tax rate multiplied by the number of years, since pre-tax HSA contributions reduce the income you're taxed on in the year you make them. For current contribution limits and eligibility rules, see the IRS's official guidance in IRS Publication 969.
Why the HSA's Triple Tax Advantage Matters
Most retirement or savings accounts give you one or two of the three available tax breaks β a traditional 401(k) defers tax on the way in but taxes withdrawals, while a Roth IRA taxes contributions but not withdrawals. An HSA is the rare account that skips taxation at every stage, provided the money is eventually used for qualified medical expenses. That combination is why financial planners often describe a well-funded HSA as one of the most efficient long-term savings vehicles available to anyone with a high-deductible health plan, sometimes even ahead of additional retirement contributions once an employer match is captured elsewhere.
2025 Contribution Limits, Illustratively
For 2025, the IRS generally allows self-only HSA contributions up to roughly $4,150 and family coverage contributions up to roughly $8,300, with an additional catch-up contribution allowed for account holders age 55 and older. These figures are illustrative starting points in this calculator and change periodically, so always confirm the current-year limit before finalizing your contribution strategy. Contributing above the allowed limit can trigger an excise tax, so it's worth double-checking your combined employee and employer contributions against the annual cap.
Using an HSA as a Long-Term Investment Account
Many HSA holders spend down their balance each year to cover routine medical costs, which is a reasonable strategy but forgoes the account's biggest advantage: long-term compounding. An alternative approach is to pay smaller medical bills out of pocket when affordable, invest the HSA balance in a diversified portfolio, and let it grow for years or even decades. Because qualified medical receipts can be saved and reimbursed at any future date, some savers effectively use their HSA as a stealth retirement account, withdrawing decades' worth of accumulated growth tax-free against old medical expenses.
- Confirm your HSA is paired with an HSA-eligible high-deductible health plan.
- Invest idle cash above your comfort buffer rather than letting it sit uninvested.
- Keep digital copies of medical receipts to support future tax-free reimbursements.
A Real-World Growth Example
Consider someone contributing the full self-only limit of roughly $4,150 a year, with a modest $500 employer contribution, invested at an assumed 6% average annual return for 20 years. Because each year's contribution compounds on top of prior years' growth, the ending balance is meaningfully larger than simply multiplying the annual contribution by the number of years β the gap between total contributions and the final balance is entirely investment growth, and it tends to accelerate in the later years as the account base grows. Now compare that to someone who starts contributing at the same rate but ten years later: even though they still contribute for the remaining ten years, their ending balance is substantially smaller, not because they contributed less in total percentage terms, but because they lost a full decade of compounding on the earliest dollars. This is the core argument for starting HSA contributions as early as possible, even in small amounts, rather than waiting until a "better" financial moment that keeps getting pushed back.
HSA vs. Traditional Retirement Accounts
It's worth directly comparing an HSA to more familiar accounts like a 401(k) or IRA. A traditional 401(k) reduces your taxable income today but every dollar withdrawn in retirement is taxed as ordinary income. A Roth IRA works in reverse β you contribute after-tax dollars but withdrawals are tax-free. An HSA used for qualified medical expenses beats both, since it avoids taxation at contribution, growth, and withdrawal simultaneously. The tradeoff is flexibility: HSA funds are only penalty-free before age 65 when used for qualified medical costs, while a Roth IRA can be accessed for any purpose after certain conditions are met. Many financial planners suggest a contribution order of: capture any 401(k) employer match first, then max out HSA contributions, then return to maxing the 401(k) or IRA, precisely because the HSA's triple tax advantage is difficult to replicate anywhere else in the tax code.
Common Misconceptions About HSAs
A surprising number of people assume HSA funds disappear if unused by year-end, confusing it with a Flexible Spending Account β but HSA balances never expire and are fully portable between jobs and health plans. Others assume they need to spend HSA funds on medical costs the same year those costs are incurred; in reality, you can pay out of pocket now, save the receipt, and reimburse yourself tax-free from the HSA years or even decades later, as long as the expense was incurred after the HSA was opened. A third common misconception is that HSA investment options are limited to cash β most modern HSA providers now offer a real investment menu of mutual funds or ETFs once your cash balance crosses a minimum threshold, similar to a brokerage account, which is what allows the long-term compounding this calculator projects.
Arb Digital builds fast, high-converting websites and content for businesses of every kind β explore more free calculators to plan around your health coverage.
Try the FSA Calculator All Free ToolsCommon Mistakes to Avoid
- Contributing without HSA-eligible coverage β you must be enrolled in a qualifying high-deductible health plan to contribute.
- Overcontributing past the annual IRS limit, which can trigger a 6% excise tax on the excess.
- Leaving the entire balance in cash for decades and missing out on long-term compounding.
- Forgetting employer contributions count toward your total annual limit, not just what you personally deposit.
- Losing medical receipts needed to support a future tax-free reimbursement claim.
Related Free Tools From Arb Digital
Compare against the FSA calculator for a use-it-or-lose-it alternative, the health insurance calculator to estimate your marketplace premium, the deductible vs. premium calculator to see if a high-deductible plan makes sense for you, and the out-of-pocket max calculator for your worst-case annual spending. Browse every calculator in our free online tools hub.
Frequently Asked Questions
Generally, anyone enrolled in an HSA-eligible high-deductible health plan who isn't enrolled in Medicare and isn't claimed as a dependent on someone else's tax return.
Unlike an FSA, HSA balances roll over indefinitely β there's no use-it-or-lose-it deadline, and the account stays yours even if you change jobs or health plans.
Yes, but non-qualified withdrawals before age 65 are typically subject to income tax plus a 20% penalty. After 65, non-medical withdrawals are taxed as ordinary income without the penalty.
Yes. The IRS annual limit applies to combined employee and employer contributions, so both amounts together must stay under the yearly cap.
No. It's an illustrative assumption you control. Actual investment returns vary and are never guaranteed, and cash left uninvested typically earns little to nothing.
It multiplies your personal annual contribution by your marginal tax rate and by the number of years, representing income tax avoided on money contributed pre-tax.
This tool provides general estimates for educational purposes only and is not financial, tax, legal, or medical advice. Figures are illustrative; consult a licensed professional for decisions.