Introduction
A Health Savings Account (HSA) is a special account that lets you save money for medical costs while paying less in taxes. If you have a high-deductible health plan, an HSA is one of the best ways to grow your savings. The money you put in is tax-free, it grows tax-free, and you can take it out tax-free when you use it for health expenses.1 This HSA Calculator helps you see how much your account could grow over time. Just enter your yearly contributions, expected rate of return, and how long you plan to save. The calculator will show you your total savings, including tax benefits, so you can plan ahead and make smart choices with your money.
How to Use Our HSA Calculator
Enter your health savings account details below to see how much your HSA could grow over time, including tax savings and investment returns.
Annual Employee Contribution: Enter the amount you plan to put into your HSA yourself each year. Money your employer puts in goes in the Annual Employer Contribution box. Together, the two should not exceed the IRS contribution limit for your coverage type (individual or family).
Coverage Type: Select whether you have individual or family health insurance coverage. This determines your maximum yearly contribution limit.
Current HSA Balance: Enter the amount of money you already have saved in your HSA right now. If you are opening a new account, enter zero.
Expected Annual Return: Enter the percentage you expect your HSA investments to grow each year. From 1928 to 2025, the S&P 500 with dividends grew at a compound average of 10.02% a year, and 10-year US Treasury bonds at 4.53% a year.11 A mix of stocks and bonds falls between the two.
Federal Tax Rate: Enter your federal income tax bracket as a percentage. This is used to calculate how much you save in taxes by contributing to your HSA.
State Tax Rate: Enter your state income tax rate as a percentage. It is added to your federal rate for the tax you save on contributions. Enter zero if your state has no income tax, or if it taxes HSA contributions, as California and New Jersey do. California also taxes HSA earnings each year, so leave its rate out of the dividend and gains tax rate too.
Dividend Yield (%): Enter the yearly dividend yield of what you would hold in the taxable account. It is part of your annual return, not added to it. The default is the S&P Composite index's latest published yield in Robert Shiller's stock market data, its dividends over the past twelve months divided by its price.8 In June 2026 that was 1.10%.
Dividend & Gains Tax Rate: Enter your tax rate on qualified dividends and long-term capital gains, plus your state's rate. Qualified dividends are taxed at the lower capital gain rates.9 The taxable account pays this rate on its dividends each year, and on its growth above the cost basis when shares are sold, for a medical bill or at the end.7 Dividends that were already taxed count toward the cost basis, so they are not taxed twice. Add 3.8% if the net investment income tax applies to you: it applies when your modified adjusted gross income is over $200,000 if you are single or head of household, $250,000 if you are married filing jointly or a qualifying surviving spouse, or $125,000 if you are married filing separately.10
Number of Years: Enter how many years to project, from 1 to 50. A contribution is added in every year. You can't contribute once you are enrolled in Medicare, so a period that runs past that point counts contributions you won't be able to make. A longer time period means more growth from compound interest.
Est. Annual Medical Expenses: Enter the amount you expect to withdraw from your HSA each year to pay for qualified medical expenses. The amount grows each year by the Medical Cost Inflation rate. This reduces the balance that stays invested and grows over time.
What Is a Health Savings Account (HSA)?
A Health Savings Account, or HSA, is a special savings account that lets you set aside money before taxes to pay for qualified medical expenses. To contribute to one, you must be covered by a high-deductible health plan (HDHP).1 The money you put in, the growth it earns, and the money you take out for medical costs are all free from federal income tax.1 This is often called the "triple tax advantage," and it makes the HSA one of the most powerful savings tools available.
How the Triple Tax Advantage Works
The HSA gives you three separate tax benefits that work together to help your money grow faster:
- Tax-free contributions: The money you put into your HSA is deducted from your income before taxes are calculated.1 Contributions made through an employer's Section 125 cafeteria (payroll) plan are also exempt from Social Security and Medicare taxes.2 So is money your employer puts in.2
- Tax-free growth: Any interest, dividends, or investment gains your HSA earns are never taxed as long as the money stays in the account.1 In a regular brokerage account, you would owe tax on dividends each year.9 You would also owe tax on your gains when you sell.7
- Tax-free withdrawals: When you take money out to pay for qualified medical expenses (things like doctor visits, prescriptions, dental work, and vision care), you pay zero tax on those withdrawals.1
HSA Contribution Limits for 2026 and 2025
The IRS sets a maximum amount you can contribute to your HSA each year. For 2026, the limits are:
- Individual coverage: $4,400 per year.1
- Family coverage: $8,750 per year.1
- Catch-up contribution: If you are age 55 or older, you can add an extra $1,000 per year on top of the standard limit.1
For 2025, the limits were $4,300 for individual coverage and $8,550 for family coverage.1 These limits include both your own contributions and any money your employer puts in.1 So if your employer contributes $1,000 and you have individual coverage in 2026, you can only contribute up to $3,400 yourself.
HSA vs. a Regular Taxable Account
When you save money in a normal investment account, you deposit after-tax dollars, pay tax on dividends each year, and owe tax on your gains when you sell. With an HSA, you skip taxes at every step when used for medical expenses. Over 10, 20, or 30 years, this difference adds up to thousands of dollars in extra savings. The calculator above shows you exactly how much more your money can grow in an HSA compared to a taxable account with the same contributions and returns. In that account, your employer's contributions arrive as pay, after income tax and FICA. That account pays tax on its dividends each year at the dividend and gains tax rate you enter, and on its gains when shares are sold to pay medical bills or at the end of the period.
Why HSAs Are Great for Long-Term Savings
Many people use their HSA only for current medical bills, but the real power comes from investing your HSA for the long term. There is no rule that says you must spend your HSA money right away. The balance rolls over every year, and it never expires.1 If you can afford to pay small medical bills out of pocket now, you can let your HSA grow and use it later in retirement when medical costs are typically much higher. According to Fidelity's 2026 Retiree Health Care Cost Estimate, a 65-year-old individual may need $185,500 in after-tax savings to cover health care expenses in retirement, so a well-funded HSA is extremely valuable.3
The HSA works especially well alongside other tax-advantaged accounts. For example, you might maximize your 401k contributions for general retirement savings and your Roth IRA for tax-free retirement income, while using your HSA specifically to cover future healthcare costs. Together, these accounts create a powerful, diversified tax strategy.
After Age 65
Once you turn 65, your HSA becomes even more flexible. You can still withdraw money tax-free for qualified medical expenses, including Medicare premiums, but not premiums for a Medicare supplemental policy such as Medigap.1 If you withdraw money for non-medical purposes after age 65, you pay regular income tax on it but no penalty, much like a withdrawal from a traditional IRA.1 This makes the HSA a strong backup retirement account on top of its primary role as a medical savings tool. Once you enroll in Medicare, you can no longer contribute. Your contribution limit is zero starting with the first month you are enrolled.1
Key Rules to Remember
- To contribute to an HSA, you must be covered by a high-deductible health plan, have no other health coverage except the kinds the IRS permits, not be enrolled in Medicare, and not be someone who can be claimed as a dependent on another person's tax return.1
- If you withdraw money for non-medical expenses before age 65, you pay income tax plus a 20% penalty, unless you are disabled.1
- Keep receipts for all medical expenses in case you need to prove your withdrawals were qualified.1
- HSA funds belong to you, not your employer. If you change jobs, the money goes with you.1
- Not every state follows the federal tax treatment. California allows no deduction for HSA contributions and taxes HSA earnings in the year they are earned.6 New Jersey also taxes HSA contributions.
Building an emergency fund alongside your HSA is also a smart strategy. It ensures you can cover unexpected non-medical expenses without dipping into your tax-advantaged health savings.