HSA Investment Growth Calculator: Project Savings and Tax Effects
Use this guide to understand the assumptions, inputs, results, and next steps behind the calculator.
Created by Luis Gonzalez · Last updated September 2, 2026
A Health Savings Account (HSA) can grow through contributions and investment returns while funding eligible healthcare expenses. This calculator projects an HSA balance from your current age to retirement, adjusts the future balance for inflation, and estimates tax effects using your federal bracket, state tax rate, and share of withdrawals used for qualified medical expenses.
The tax estimates are illustrations, not a personalized tax calculation. Federal HSA rules generally allow tax-free contributions or deductions, tax-free growth, and tax-free withdrawals for qualified medical expenses. State treatment can differ, and the calculator’s simplified tax model does not reproduce every federal or state rule. See IRS Publication 969 before using the result to make tax or withdrawal decisions.
Default projection: $482,783 at age 65
The defaults start with $5,000 at age 35, add $4,400 each year for 30 years, and assume a 7% annual investment return. The calculator reports $132,000 in added contributions and $345,783 in investment growth, for a projected age-65 balance of $482,783.
The arithmetic behind the contribution total is $4,400 × 30 = $132,000. The projected balance is $5,000 starting balance + $132,000 contributions + $345,783 modeled growth = $482,783. At 2.5% inflation over 30 years, the result is $230,163 in today’s dollars. That is an estimate of purchasing power, not a separate balance.
| Projection scenario | Starting balance | Annual contribution | Years | Return assumption | Approximate ending balance |
|---|---|---|---|---|---|
| Shorter horizon | $5,000 | $4,400 | 20 | 7% | $220,000 |
| Default horizon | $5,000 | $4,400 | 30 | 7% | $483,000 |
| Lower return | $5,000 | $4,400 | 30 | 5% | $360,000 |
| Higher return | $5,000 | $4,400 | 30 | 9% | $660,000 |
These comparison values are rounded illustrations using the calculator’s contribution-before-growth sequence. They show how time and return assumptions change the projection; they are not guaranteed results. Returns in real markets vary from year to year, and a steady-return model does not capture that sequence risk.
Formula: contributions, growth, and inflation
Balance after each year =
(balance at start of year + annual contribution) × (1 + annual return)
Total contributions =
annual contribution × years of contributions
Inflation-adjusted balance =
projected balance ÷ (1 + inflation rate) ^ years to retirement
The calculator adds the annual contribution before applying that year’s return. With 30 years of $4,400 contributions, total deposits are $4,400 × 30 = $132,000. The reported ending balance is $482,783; subtracting the $5,000 starting balance and $132,000 deposits gives $482,783 − $5,000 − $132,000 = $345,783 in modeled investment growth.
How the tax estimate is built
The defaults use a 24% federal tax bracket, a 5% state tax rate, and 75% of the projected balance for qualified medical withdrawals. The calculator applies the combined marginal rate of 24% + 5% = 29% to total contributions of $132,000, producing estimated contribution tax savings of $132,000 × 29% = $38,280.
It then estimates qualified medical withdrawals as $482,783 × 75% = about $362,087. Applying the 24% federal bracket gives approximately $362,087 × 24% = $86,901 in estimated withdrawal tax savings. Adding $38,280 + $86,901 produces the calculator’s $125,181 estimate of total lifetime tax savings.
This estimate is a model, not an IRS calculation of the tax you would otherwise owe. It applies a constant tax bracket to all contributions, does not model deduction timing or payroll-tax treatment, and does not apply the state tax rate to the withdrawal savings. It also treats the selected share of the balance as qualified medical withdrawals. Actual eligible expenses, account withdrawals, tax brackets, and state rules will differ.
HSA funds can remain invested, but investment choices and fees affect realized results. Some account providers require a minimum cash balance before investing. Check fees, investment options, and access to cash before choosing an allocation. For a separate look at annual contribution limits, use the HSA contribution calculator.
HSA rules that affect retirement planning
For 2026, the HSA contribution limit is $4,400 for self-only coverage and $8,750 for family coverage, with an additional $1,000 catch-up contribution generally available to eligible account holders age 55 or older. Employer contributions count toward the limit. HSA contribution eligibility generally requires qualifying HDHP coverage and no disqualifying coverage; Medicare enrollment generally prevents new contributions. Consult the IRS HSA rules for eligibility and tax details.
Qualified medical withdrawals are generally federally tax-free. Nonqualified withdrawals are usually taxable, and before age 65 they generally face an additional 20% tax, subject to exceptions. After age 65, the additional tax generally no longer applies to nonmedical withdrawals, but those withdrawals remain taxable as income. This makes an HSA different from a Roth IRA, even though both can provide tax-free qualified withdrawals.
An HSA can help pay healthcare expenses in retirement, but it should not replace a broader healthcare budget. If you may retire before Medicare, compare insurance costs with the ACA Marketplace subsidy calculator and the early-retirement health insurance bridge calculator. You can compare employer coverage with the retiree health benefit value calculator or review FEHB versus Medicare.
For saving outside an HSA, compare the 401(k) calculator and Roth IRA calculator. A TSP growth calculator may be useful for federal employees. To understand how medical costs affect retirement spending, review the retirement healthcare cost guide.
Frequently asked questions
Is the calculator’s projected balance guaranteed?
No. The result assumes the same annual return every year and does not account for investment fees or market volatility. Actual balances depend on returns, contribution timing, withdrawals, and account costs.
Are HSA withdrawals always tax-free?
No. Federal tax-free treatment generally applies to qualified medical expenses. Nonqualified withdrawals are typically taxable, with an additional tax often applying before age 65. State treatment can differ.
Does the calculator’s tax-savings estimate equal my actual tax savings?
No. It applies simplified rates to modeled contributions and withdrawals. It does not account for every deduction, payroll tax, state rule, eligible expense, or change in your tax bracket.
Should I use my HSA for current medical bills or invest it?
Paying current bills from the HSA preserves less money for future growth but can reduce pressure on other cash. Investing may support future costs, but exposes the balance to investment risk. Compare both approaches against your cash reserves and expected medical spending.
Why is the inflation-adjusted result lower than the projected balance?
The future balance is divided by cumulative inflation to express its approximate purchasing power in today’s dollars. It does not mean that inflation removes money from the HSA.
Can I keep contributing after I enroll in Medicare?
Generally, Medicare enrollment ends eligibility to make new HSA contributions for the applicable period. Existing HSA funds can still be used for qualified expenses. Check timing with the IRS and Medicare before contributing.
Next steps
Confirm your annual contribution eligibility, include employer deposits in your limit, and test more than one return and inflation assumption. Compare the HSA’s healthcare role with other retirement accounts and the cost of coverage before Medicare. Use the HSA contribution calculator to check the cap, then treat the growth and tax figures as scenarios—not promises.