Skip to content

Planning

HSA calculator

Estimate HSA tax savings, year-by-year balance growth, and retirement projections from contributions, employer deposits, medical spending, and investment returns—using 2025 IRS limits.

How this calculator works

A Health Savings Account (HSA) combines tax-free contributions, tax-free investment growth, and tax-free withdrawals for qualified medical expenses—the so-called triple tax advantage. No other mainstream account offers all three benefits in one place when used as intended.

This calculator models your annual HSA contributions (personal and employer), expected medical spending paid from the account, and long-term investment growth to project a balance at retirement. Each year in the projection:

  1. Start with your current HSA balance (if any).
  2. Add total contributions—employee payroll deferrals plus employer deposits.
  3. Subtract expected qualified medical expenses paid from the HSA that year.
  4. Apply your investment return rate to the end-of-year balance.

Tax savings this year combine federal income tax avoided on contributions plus FICA payroll tax (7.65%) avoided on personal payroll deferrals. Adjust the marginal federal rate input to match your bracket; FICA applies automatically on the employee portion in this model.

2025 IRS limits shown in the calculator: $4,300 self-only, $8,550 family, plus $1,000 catch-up if age 55 or older. Employer contributions count toward the same annual limit. Contributions above your limit trigger a warning but do not block the estimate—correct excess before filing.

Unlike an FSA, HSA funds roll over indefinitely and stay with you when you change jobs or health plans. You must be enrolled in a qualifying high-deductible health plan (HDHP) to contribute; eligibility rules also exclude most people enrolled in Medicare or claimed as another person's dependent.

This is a planning tool—not tax, legal, or medical advice. State tax treatment of HSAs varies; this model focuses on federal income and payroll tax savings.

Pair with the paycheck calculator for per-period take-home pay, the 401(k) contribution calculator to compare retirement vehicles, and the retirement projection calculator for broader portfolio planning.

What affects the result

HSA outcomes depend on contribution level, spending habits, investment choices, and time horizon.

  • Contribution level — Maximizing tax-advantaged space accelerates growth but requires HDHP eligibility and cash flow to cover medical costs outside the HSA if you pay current bills from pocket intentionally.
  • Employer seed money — Employer HSA contributions count toward the annual limit and boost inflows each year. They generally reduce taxable wages for income tax but follow plan rules for FICA.
  • Medical spending — Paying routine costs from the HSA uses pre-tax dollars for qualified expenses but reduces the balance available to invest. Some savers pay out of pocket, invest the HSA, and reimburse later with documented receipts.
  • Investment return — Unused balances invested for years compound tax-free. Conservative return assumptions (4–6%) reduce projection risk versus optimistic equity assumptions.
  • Years until retirement — Longer horizons amplify compounding. After 65, non-medical withdrawals are taxed as ordinary income without penalty—similar to a traditional IRA, though not identical in all rules.
  • Marginal tax rate — Higher brackets increase estimated savings from contributions and the value of tax-free growth versus taxable brokerage investing.

The invest-and-grow strategy—contributing the max while minimizing HSA withdrawals—builds a supplemental medical fund for retirement when Medicare and supplemental insurance do not cover everything.

Real-world examples

Example 1: Max self-only contribution. You contribute $4,300 (2025 self-only limit), your employer adds $500, spend $1,200 on qualified medical bills, and earn 6% on the invested balance. Tax savings this year reflect federal tax on $4,800 of contributions plus FICA savings on your $4,300 payroll deferral.

Example 2: Family coverage with catch-up. Family limit $8,550 plus $1,000 catch-up at age 55+ supports $9,550 total contributions when eligible. Higher inflows increase both annual tax savings and projected retirement balance if medical spending stays moderate.

Example 3: Low spend, high invest. A couple contributes the family max but spends only $500 per year from the HSA, investing the rest at 6% for 20 years. The year-by-year table shows how low withdrawals plus steady contributions build a substantial medical reserve.

Example 4: Paycheck tradeoff. Maxing HSA payroll deferrals reduces take-home pay today but lowers current taxes. Compare net pay impact with the paycheck calculator before committing to the full limit.

Example 5: Triple tax advantage vs. taxable. Tax-free growth on $30,000 over a long projection might avoid roughly $6,600 in federal tax at a 22% marginal rate on equivalent taxable growth—the calculator's breakdown illustrates why HSAs reward long hold periods for medical use.

Common mistakes

Confusing HSA with FSA. FSAs often have use-it-or-lose-it rules within the plan year (with limited carryover). HSAs require HDHP eligibility but roll over forever and can be invested.

Forgetting the combined limit. Employer plus employee contributions cannot exceed the IRS annual maximum for your coverage tier. Track employer seeds in your planning.

Ignoring investment fees. HSA providers charge maintenance fees; fund expense ratios reduce net returns. This calculator uses a single return input—adjust downward for costs.

Assuming unlimited non-medical use before 65. Non-qualified withdrawals before 65 generally face a 20% penalty plus income tax unless an exception applies.

Skipping receipt documentation. If you pay medical bills out of pocket and invest the HSA, keep receipts to reimburse yourself tax-free years later.

Overlooking HDHP out-of-pocket costs. A maxed HSA does not replace the need for emergency savings to cover the HDHP deductible before insurance pays.

When to use this calculator

Use this tool during open enrollment when comparing an HDHP with HSA option to traditional plans, when deciding payroll contribution level vs. paying medical costs out of pocket, or when projecting the HSA as a supplemental retirement medical fund.

Combine results with the retirement projection calculator for total nest egg context and the budget calculator to fit HSA contributions into monthly cash flow after housing and debt payments.

Skip this estimate if you are not HSA-eligible, need precise state tax modeling, or want per-expense qualified expense analysis—consult plan documents and a tax advisor instead.

Related calculators

Related guides

FAQ

What is an HSA and who qualifies?

A Health Savings Account is a tax-advantaged account for people enrolled in a qualifying high-deductible health plan (HDHP). You must be HDHP-eligible and cannot be enrolled in Medicare or claimed as someone else’s dependent in most cases.

What is the difference between an HSA and FSA?

An HSA is owned by you, rolls over every year, and can be invested for the long term. A Flexible Spending Account is usually use-it-or-lose-it within the plan year (with limited carryover or grace periods) and is employer-owned.

Can I invest my HSA balance?

Many HSA providers let you invest cash above a spending threshold in mutual funds or other investments. Investment earnings grow tax-free when used for qualified medical expenses.

What happens to my HSA if I change health plans?

The account stays yours. You can keep the balance and use it for qualified medical expenses even if you later switch to a non-HDHP—you just cannot make new contributions unless you are HDHP-eligible again.

Can I use my HSA for non-medical expenses?

After age 65, non-medical withdrawals are taxed as ordinary income with no penalty (similar to a traditional IRA). Before 65, non-medical withdrawals face income tax plus a 20% penalty unless an exception applies.

What are the 2025 HSA contribution limits?

For 2025, the IRS limit is $4,300 for self-only HDHP coverage and $8,550 for family coverage. People age 55 or older can contribute an additional $1,000 catch-up amount.

Does this calculator include state tax savings?

No. Most states follow federal HSA tax treatment, but rules vary. This model estimates federal income tax and payroll FICA savings only.

Are employer HSA contributions included?

Yes. Employer contributions count toward your annual limit and are generally excluded from federal income tax. They typically do not reduce FICA for the employee in this estimate.