Investing guide
How to Use an HSA Calculator
How an HSA calculator projects tax-free growth, applies the 2026 contribution limits, and shows why an invested HSA can be a retirement account.
Quick answer
What this calculator tells you
An HSA calculator looks like a simple savings projection, but it is really showing you the most under-used retirement account in the tax code. A health savings account carries three tax advantages at once, which the IRS spells out in Publication 969: contributions are deductible or pre-tax, the earnings grow tax-free, and withdrawals are tax-free when used for qualified medical expenses. No other account does all three.
This guide shows how the projection is built, why the gap between contributing and spending is where the growth lives, what the 2026 contribution limits are, and how to read the tax-savings figure. Every example uses the calculator's default inputs—a 35-year-old with $5,000 saved, contributing the $4,400 self-only maximum, earning 6% while spending $500 a year on medical costs, in a 24% tax bracket, projected to age 65. The surprising result is that a modest contribution becomes a six-figure balance, most of it growth that is never taxed.
Inputs that matter most
Start with documents rather than memory whenever possible. For this calculation, pay particular attention to:
- your current HSA balance and annual contribution
- your age now and the age you project to
- how much you spend from the HSA each year
- your expected return and marginal tax rate
Use values that describe the same point in time. Mixing an old balance with a new rate or an annual cost with a monthly figure can make a polished result unreliable.
When this calculator is most useful
Use this tool early enough to improve the decision, but late enough that the inputs are grounded in real information. It is particularly useful when:
- You want to see what your HSA could be worth if you invest it rather than spend it each year.
- You want to check whether your contribution is within the 2026 limit for your coverage.
- You want to understand the dollar value of the HSA's tax advantages over time.
- You are deciding whether to pay current medical costs out of pocket and let the HSA grow instead.
It is less useful when the key facts are unknown, the options use different time periods, or the decision turns mainly on eligibility, contract language, taxes, or risks the calculator does not model. In those situations, gather the missing documents first and treat any early result as a rough range.
How the calculation works
The model turns the entered assumptions into a consistent comparison. It does not fill in facts that were not requested, predict changing markets, or reproduce an institution's underwriting system. That boundary matters: mathematical precision is not the same thing as certainty.
The three tax advantages, with numbers
The HSA's power is that it is never taxed at any stage, provided withdrawals go to medical costs. Publication 969 lists all three benefits. In the default scenario they show up as:
- Deductible contributions: $4,400 a year for 30 years, worth about $31,680 in reduced tax at a 24% marginal rate.
- Tax-free growth: about $235,916 of earnings that are never taxed when used for qualified expenses.
- Tax-free withdrawals: the roughly $15,000 spent on medical costs along the way comes out untaxed.
No other account stacks all three. A traditional 401(k) defers tax but taxes withdrawals; a Roth taxes contributions. The HSA skips tax at every step, which is why a fully invested one is often described as the best retirement account most people overlook.
Why spending from the HSA costs more than it looks
The projection subtracts your medical spending each year, and that is where many people quietly lose the strategy. Every dollar withdrawn stops compounding for the rest of the projection:
- Spending $500 a year: projected balance about $357,916.
- Spending nothing and paying bills from cash: projected balance about $397,445.
- The difference: about $39,529, far more than the $15,000 actually spent, because the withdrawn dollars never got to grow.
If cash flow allows, the tax-optimal move is to contribute the maximum, invest it, and pay current medical bills from other money—keeping receipts, since the IRS lets you reimburse yourself for past qualified expenses later. That is how an HSA turns into a long-term account rather than a checking account for copays.
The 2026 limits and staying within them
The calculator applies the current contribution ceilings and warns when you exceed them, because over-contributing is penalized. For 2026 the IRS limits are:
- Self-only HDHP coverage: $4,400 for the year.
- Family HDHP coverage: $8,750 for the year.
- Age 55 or older: an extra $1,000 catch-up on top of either limit.
Contributions above your limit can face a 6% excise tax for each year the excess remains, so the calculator flags an over-limit amount. Remember too that you can only contribute while covered by an HSA-eligible high-deductible health plan, and that enrolling in Medicare ends HSA eligibility—details worth confirming in Publication 969 before maximizing.
Worked example
See the method in context
Take a 35-year-old with $5,000 in an HSA, contributing the $4,400 self-only maximum each year, earning 6%, spending $500 a year on medical costs, in a 24% bracket, projecting to age 65.
Over 30 years the account grows to about $357,916. Of that, $137,000 is money contributed, about $15,000 is spent on medical costs along the way, and about $235,916 is investment growth that is never taxed when used for qualified expenses. The contribution deductions are worth roughly $31,680 in reduced tax. Stop spending from the account and the balance rises to about $397,445.
After running the base case, change one important input at a time. A less favorable rate, cost, return, income, or holding period shows whether the conclusion is sturdy or depends on a narrow set of assumptions.
Build three scenarios, not one prediction
A single answer can create false confidence. Three deliberately different cases reveal both the likely range and the assumptions that deserve more investigation.
Conservative case
Lower the return and raise annual spending. Every dollar you withdraw for current costs is a dollar that stops compounding: spending $500 a year instead of nothing lowers the default projection from about $397,445 to about $357,916 over 30 years.
Expected case
Enter your real balance and contribution, a return net of fund fees, and your actual combined marginal rate for the tax-savings estimate. Choose the coverage type—self-only or family—that matches your HDHP.
Improved case
Contribute the full limit and pay small medical bills from cash so the HSA keeps compounding. Setting annual spending to zero raises the default balance from about $357,916 to about $397,445, an extra $39,529 of tax-free money.
Keep all unchanged inputs identical across the three runs. That discipline makes the comparison explainable and prevents several moving assumptions from hiding what actually changed the answer.
How to read the result
Look beyond the largest number on the screen. Review the breakdown, the time horizon, and any balance or cost that remains at the end of the comparison. Ask whether the result still fits cash flow and whether it changes under a conservative scenario.
The projection assumes a steady return, level contributions, and constant spending; real returns, medical costs, and tax rates vary, and the tax-savings figure is an estimate, not a filed deduction. The right next step is to confirm you have an HSA-eligible high-deductible health plan and check the current limits in IRS Publication 969.
Common mistakes to avoid
- Leaving the HSA in cash. The entire projection depends on investing it; cash earns almost nothing and forfeits the tax-free growth.
- Spending from the HSA for every small bill. Paying $500 a year from it drops the default balance by about $39,529 over 30 years versus leaving it to compound.
- Contributing over the limit. Above $4,400 self-only or $8,750 family (plus the $1,000 catch-up at 55+), the excess can face a 6% excise tax each year it stays in.
- Forgetting the HDHP requirement. You can only contribute while covered by an HSA-eligible high-deductible health plan.
- Overstating the tax rate. The savings figure scales directly with the marginal rate you enter, so an optimistic rate overstates the benefit.
- Treating medical receipts as use-it-or-lose-it. Unlike an FSA, HSA funds roll over and stay invested indefinitely.
Decision checklist
Before acting, work through these questions. A “no” does not automatically reject the option; it identifies where more evidence or a wider safety margin is needed.
- 1Do I have an HSA-eligible high-deductible health plan, which is required to contribute?
- 2Is my contribution within the 2026 limit for my coverage ($4,400 self-only or $8,750 family, plus $1,000 at age 55+)?
- 3Is my HSA actually invested, or sitting in cash earning almost nothing?
- 4Can I afford to pay current medical costs from other money so the HSA can grow?
- 5Is my marginal-rate assumption realistic, since it drives the tax-savings estimate?
Key terms in plain English
- Triple tax advantage
- The HSA's combination of deductible or pre-tax contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses—per IRS Publication 969, the only account with all three.
- HSA-eligible HDHP
- A high-deductible health plan that meets the IRS deductible and out-of-pocket rules. You must be covered by one (and have no disqualifying coverage) to contribute to an HSA.
- Contribution limit
- The most you can add in a year. For 2026 it is $4,400 for self-only coverage and $8,750 for family, with an extra $1,000 catch-up at age 55 or older.
- Qualified medical expenses
- The costs for which HSA withdrawals are tax-free, such as doctor visits, prescriptions, and dental and vision care. Non-qualified withdrawals of earnings are taxed, and penalized before age 65.
Frequently asked questions
How much will my HSA be worth?
It depends on your balance, contribution, return, and how much you spend along the way. The calculator grows the balance each year, adds your contribution, and subtracts your medical spending. With the defaults—$5,000 saved, $4,400 a year, 6% return, $500 a year spent, over 30 years—it projects about $357,916, of which about $235,916 is tax-free growth.
What are the 2026 HSA contribution limits?
For 2026 the limit is $4,400 for self-only HDHP coverage and $8,750 for family coverage, per the IRS. If you are 55 or older, you can add a $1,000 catch-up contribution. The calculator shows the applicable limit and flags a contribution that exceeds it, since over-contributing can trigger a 6% excise tax.
Why is an HSA called a triple-tax-advantaged account?
Because it is taxed favorably at all three stages, which IRS Publication 969 describes: you get a deduction (or pre-tax payroll treatment) for contributions, the earnings grow tax-free, and withdrawals are tax-free when used for qualified medical expenses. A 401(k) or IRA gives you two of the three at most.
Should I invest my HSA or keep it in cash?
The projection assumes it is invested, which is where the growth comes from. Many HSAs sit in cash by default, earning little. If you can pay current medical bills from other money and leave the HSA invested, decades of tax-free compounding—about $235,916 of growth in the default scenario—is the whole point of the strategy.
What happens to the tax savings figure?
It estimates the value of the contribution deduction: your total contributions multiplied by your marginal tax rate. In the default scenario, $4,400 a year for 30 years at a 24% rate is about $31,680 of reduced tax over time. It is an estimate for planning, not a figure from a filed return, and your actual rate will vary year to year.
Can I use an HSA for retirement?
Effectively, yes. After age 65 you can withdraw HSA funds for any purpose without the 20% penalty, paying only ordinary income tax on non-medical withdrawals—similar to a traditional IRA—while medical withdrawals stay tax-free. That flexibility, plus the tax-free growth, is why many savers treat a fully invested HSA as a supplemental retirement account.
What does this calculator leave out?
It assumes a constant return, level contributions, and steady spending, none of which hold exactly in real life. It does not model changes in the limits, investment fees beyond your return assumption, state tax treatment (a few states tax HSAs), or the rules for losing HSA eligibility. Treat the projection as a direction, and confirm current rules in IRS Publication 969.
Source and editorial note
For current background, review IRS Publication 969: Health Savings Accounts and Other Tax-Favored Health Plans. Official rules and product documents control when they differ from this educational explanation.
Need help with unfamiliar language? Use the financial calculator glossary for definitions and links to related tools.
Prepared by Loan Lyze Editorial under our editorial policy. This article explains a calculator; it is not financial, tax, legal, insurance, or investment advice.