Finance calculators

HSA Calculator

Updated Sep 10, 2026 By Infinity Calculator
Coverage & Eligibility
2026 IRS Max: $4,400 (Individual)
Adds $1,000 to maximum annual contribution limit.
$4,400
Base: $4,400 + Catch-up: $0
Contribution Details
Your current HSA account balance. $0 if new.
Balance must be $0 or greater
Your annual contribution (excluding employer).
Exceeds IRS maximum
Amount your employer contributes annually.
Combined contributions exceed IRS max
Out-of-pocket qualified medical expenses/year.
Must be $0 or greater
Growth & Tax Assumptions
Time horizon: 1 – 50 years.
Enter a value between 1 and 50
Average annual rate of return on investments.
Enter a value between 0% and 20%
Your federal marginal income tax bracket.
Enter a value between 0% and 50%
Your state income tax rate. Enter 0 if none.
Enter a value between 0% and 15%
Social Security + Medicare (typically 7.65%).
Enter a value between 0% and 15%
Payroll contributions avoid FICA. Direct contributions do not.
Increase contributions each year by this %.
Expected annual increase in medical costs.

Estimated Total Tax Savings Over 20 Years
$0
HSA's Triple Tax Advantage: Tax-Free In, Tax-Free Growth, Tax-Free Out
Tax-Free Contributions
$0
Income tax (plus FICA via payroll) saved on contributions
Tax-Free Growth
$0
Capital gains & dividends tax avoided
Tax-Free Withdrawals
$0
Tax avoided on withdrawn gains (already counted in growth)

HSA Projection Summary

Ending HSA Balance
$0
Total Contributions
$0
Total Employer Contributions
$0
Total Investment Growth
$0
Total Medical Withdrawals
$0
Net Deposits (After Withdrawals)
$0
Effective Annual Tax Savings
$0
Total Tax Savings
$0
HSA vs. Taxable Account Comparison
HSA (Triple Tax Advantage)
Ending Balance$0
Total Tax Savings$0
Effective Value$0
HSA Advantage
$0
Taxable Account (No Tax Benefits)
Ending Balance$0
Taxes Paid$0
Effective Value$0
HSA Balance Growth Over Time
Annual Tax Savings Breakdown
Ending Balance Composition
Year-by-Year Breakdown
Year Employee Contrib. Employer Contrib. Medical Expense Investment Growth Tax Savings HSA Balance Taxable Balance

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 HSA Contribution: Enter the total amount of money you plan to put into your HSA each year. This 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.

Annual Rate of Return: Enter the percentage you expect your HSA investments to grow each year. A reasonable starting assumption for a balanced portfolio is between 5% and 7%.

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. HSA contributions are tax-free in most states, so this helps estimate your full tax savings. Enter zero if your state has no income tax.

Years Until Retirement: Enter the number of years you plan to keep saving in your HSA. A longer time period means more growth from compound interest.

Annual HSA Spending: Enter the amount you expect to withdraw from your HSA each year to pay for medical expenses. 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
  • 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 taxes on those gains each year.
  • 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 savings or investment account, you deposit after-tax dollars, pay taxes on any earnings each year, and still owe taxes when you withdraw. 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.

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.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.

Key Rules to Remember

  • You must have a high-deductible health plan to contribute to an HSA.1
  • If you withdraw money for non-medical expenses before age 65, you pay income tax plus a 20% penalty.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
  • Most states follow the federal tax treatment, but not all. 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.


Formulas used

HSA Balance (Year-End)
B_t = \left(B_{t-1} + C_t^{\text{emp}} + C_t^{\text{er}}\right) \times (1 + r) - M_t
Contribution Tax Savings (Per Year)
S_t^{\text{contrib}} = C_t^{\text{emp}} \times \begin{cases} \tau_f + \tau_s + \tau_{\text{FICA}}, & \text{if payroll (Sec.\ 125)} \\ \tau_f + \tau_s, & \text{otherwise} \end{cases}
Growth Tax Savings (Per Year)
S_t^{\text{growth}} = G_t \times (\tau_f + \tau_s), \quad G_t = B_t' \times r
Tax-Free Withdrawal Savings (Per Year)
S_t^{\text{withdraw}} = M_t \times \frac{B_t' - \text{Basis}_t}{B_t'} \times (\tau_f + \tau_s)
Taxable Account Balance (Comparison)
T_t = \left(T_{t-1} + (C_t^{\text{emp}} + C_t^{\text{er}})(1 - \tau_c)\right) \times \left(1 + r(1 - \tau_f - \tau_s)\right) - M_t
HSA Advantage Over Taxable Account
\text{Advantage} = \left(B_N + \sum_{t=1}^{N} S_t^{\text{contrib}} + S_t^{\text{growth}}\right) - T_N
Annual Contribution & Medical Escalation
C_t^{\text{emp}} = C_1^{\text{emp}} \times (1 + g_c)^{t-1}, \quad M_t = M_1 \times (1 + g_m)^{t-1}

Frequently asked questions

What is an HSA Calculator?

An HSA Calculator is a tool that shows you how much money your Health Savings Account could grow over time. You enter your contributions, investment return rate, tax rates, and time horizon. The calculator then shows your projected balance, tax savings, and how your HSA compares to a regular taxable account.

How is the triple tax savings amount calculated?

The calculator adds up three types of tax savings. First, it multiplies your contributions by your combined federal, state, and FICA tax rates to find contribution tax savings. Second, it multiplies your investment growth by your income tax rate to find growth tax savings. Third, it multiplies your qualified medical withdrawals by your income tax rate to find withdrawal tax savings. The total of all three is your triple tax savings.

What should I enter for expected annual return?

This is the average yearly return you expect from your HSA investments. If you invest in a mix of stocks and bonds, 5% to 7% is a reasonable starting assumption. If you keep your HSA in a basic savings account, use a lower number like 1% to 2%. The default is 6%.

What is the medical cost inflation field for?

Medical costs tend to go up each year. The medical cost inflation field lets you set the rate at which your annual medical expenses will grow. The default is 3%.

What is the FICA tax rate and why does it matter?

FICA stands for Federal Insurance Contributions Act. It covers Social Security and Medicare taxes. For most workers, the employee share is 6.2% for Social Security plus 1.45% for Medicare.4 That adds up to 7.65%. When you contribute to an HSA through your employer's Section 125 cafeteria plan, that money is not subject to FICA taxes.2 Contributions you make on your own, outside such a plan, do not get this break.2

What if my state does not have income tax?

Enter 0% in the state tax rate field. The calculator will only use your federal and FICA rates to figure your tax savings. States like Texas, Florida, and Nevada have no state income tax.5

What happens if my combined contributions exceed the IRS limit?

The calculator will show an error message if your employee and employer contributions together go over the IRS maximum. You need to lower one or both amounts before the calculator will run. In real life, excess contributions are generally subject to a 6% excise tax for each year they remain in the account.1


Sources

  1. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans. Internal Revenue Service. 2025. Accessed September 10, 2026.
  2. Publication 15 (2026), (Circular E), Employer's Tax Guide. Internal Revenue Service. 2026;Health savings accounts (HSAs) and medical savings accounts (MSAs). Accessed September 10, 2026.
  3. How to plan for rising health care costs. Fidelity Investments. 2026. Accessed September 10, 2026.
  4. Topic no. 751, Social Security and Medicare withholding rates. Internal Revenue Service. Accessed September 10, 2026.
  5. 2025 State Income Tax Rates and Brackets. Tax Foundation. 2025. Accessed September 10, 2026.
  6. 2025 Instructions for Schedule CA (540). California Franchise Tax Board. 2025;Line 2, Taxable Interest; Line 13, Health Savings Account Deduction. Accessed September 10, 2026.