HSA Calculator

Calculate how much your HSA (Health Savings Account) saves in taxes each year and projects your balance at retirement.

Investing 🇺🇸 USA ✅ Free · No sign-up
📂 Category Investing
🌐 Market USA
🎯 Formula Standard Formula
🔒 Privacy No data stored
⚡ Updates Real-time
📱 Device Any screen size
🏥 HSA Calculator (2025–2026)
USA · 2026 IRS Limits ($4,400 / $8,750) · Triple Tax Free
2026 HDHP min deductible: $1,700 · max OOP: $8,500
Age 55+ adds $1,000 catch-up contribution
$
2026 combined IRS max (you + employer): $4,400
$
Counts toward the IRS annual limit ($4,400/$8,750)
$
Amount withdrawn each year for current healthcare
%
Use 7% for a diversified stock index fund
HSA Balance at Retirement —

HSA Calculator: Model Your Triple-Tax-Free Savings & Retirement Balance

No retirement account in America—not a 401(k), Traditional IRA, or Roth IRA—matches the tax treatment of a Health Savings Account (HSA). When funded through employer payroll deductions alongside an eligible High-Deductible Health Plan (HDHP), an HSA delivers a genuine triple tax advantage: contributions dodge federal income tax and 7.65% FICA payroll taxes going in, investments compound 100% tax-free for decades, and withdrawals for qualified medical expenses come out completely tax-free at any age. Use our HSA calculator to estimate your annual tax break, lifetime tax savings, and projected HSA investment balance at retirement.

What Is an HSA Calculator?

An HSA calculator projects both the immediate paycheck tax relief and the multi-decade compounding power of treating your Health Savings Account as a stealth retirement portfolio rather than a spend-it-all checking account. Unlike a Healthcare Flexible Spending Account (FSA), which enforces “use-it-or-lose-it” annual forfeiture rules, HSA dollars belong to you permanently, roll over every calendar year, travel with you when you switch jobs, and can be invested in low-cost S&P 500 or total-market ETFs.

Take Devon and Priya, both age 35 in Minneapolis, enrolled in a Family HDHP. Their employer deposits $1,000/year into their HSA, and they contribute $7,550 via payroll to reach an $8,550 annual family contribution (or up to $8,750 under the 2026 IRS family cap). They spend $1,000/year from the account on dental and prescription copays and invest the remaining $7,550/year in an equity index fund earning 7%. Sitting in the 24% federal bracket, they cut their federal and FICA taxes by $2,390 every year while building a $763,101 tax-free healthcare war chest by age 65.

How the HSA Calculator Works — Formula & Step-by-Step Example

The calculator separates your annual cash flow into tax savings (earned on your employee payroll contribution) and net invested capital (your contribution plus employer seed money minus current-year medical withdrawals):

Annual Tax Saved = Employee Contribution × (Marginal Federal Rate + 0.0765 FICA)
Net Annual Invested = (Employee Contribution + Employer Contribution) − Annual Medical Withdrawn
Year(k) Balance = [Year(k−1) Balance + Net Annual Invested] × (1 + r)

Using Devon and Priya’s numbers (Age = 35, Retire = 65, Employee = $7,550, Employer = $1,000, Medical = $1,000, Bracket = 24%, Return = 7%):

  • Federal Income Tax Saved: $7,550 × 24% = $1,812.00/yr
  • FICA Payroll Tax Saved (6.2% SS + 1.45% Medicare): $7,550 × 7.65% = $577.58/yr
  • Total Annual Tax Savings: $2,389.58/yr ($71,687 saved across 30 years—plus state income tax savings in 48 states, excluding California and New Jersey)
  • Net Annual Amount Kept Invested: ($7,550 + $1,000) − $1,000 = $7,550/yr
  • Projected HSA Balance at Age 65: $7,550 compounded over 30 years at 7% = $763,101

Want to see how payroll HSA deductions boost your biweekly net pay right away? Plug the per-paycheck amount into our Paycheck Calculator.

2025 & 2026 IRS HSA Contribution Limits and HDHP Eligibility Rules

To contribute a single dollar to an HSA, you must be enrolled in an HSA-qualified High-Deductible Health Plan, have no disqualifying first-dollar health coverage (such as a general-purpose spouse FSA or Medicare Part A/B), and not be claimed as a tax dependent. Notice that employer contributions count toward the same IRS annual ceiling:

IRS HSA / HDHP Threshold 2025 Tax Year 2026 Tax Year Key IRS Compliance Detail
Self-Only HSA Contribution Max $4,300 $4,400 Combined employee + employer limit
Family HSA Contribution Max $8,550 $8,750 Covers employee + at least one covered dependent
Age 55+ Catch-Up Contribution +$1,000 +$1,000 If both spouses are 55+, second spouse uses a separate HSA
HDHP Minimum Annual Deductible $1,650 self / $3,300 family $1,700 self / $3,400 family Preventive care can still be covered 100% pre-deductible
HDHP Max Out-of-Pocket Cap $8,300 self / $16,600 family $8,500 self / $17,000 family In-network deductibles, copays, and coinsurance cap

The “Shoebox Receipt” Strategy & Age-65 Retirement Rules

Financial planners routinely prioritize maxing an HSA right after capturing an employer 401(k) match—even ahead of extra 401(k) or Roth IRA deposits—for two reasons. First, pre-tax 401(k) deferrals still incur 7.65% Social Security and Medicare tax (for earners below the $176,100 Social Security wage base in 2025 / $184,500 in 2026), whereas Section 125 cafeteria-plan HSA payroll deductions avoid FICA completely. Making a direct bank transfer to Fidelity instead of routing contributions through your employer’s payroll forfeits up to $654/year in FICA savings on a family contribution.

Second, the IRS sets no time deadline on reimbursing yourself for qualified medical expenses incurred after your HSA was established. If you pay $2,500 out of pocket for orthodontics or glasses in 2026 using a 2% cash-back credit card, digitally archive the itemized receipt and EOB, and leave that $2,500 invested inside your HSA at 7% for 25 years, it compounds to $13,569—and you can still pull out your $2,500 reimbursement tax-free in 2051. Better yet, once you turn 65, the steep 20% non-medical withdrawal penalty disappears completely: medical withdrawals (including Medicare Part B, Part D, and Medicare Advantage premiums, though not Medigap) remain 100% tax-free, while non-medical withdrawals are simply taxed as ordinary income like a Traditional IRA with zero Required Minimum Distributions.

Common Mistakes People Make With the HSA Calculator

  • Forgetting that employer seed money reduces your personal contribution cap: If your company deposits $1,000 into your family HSA in 2025 (when the IRS family limit is $8,550) and you also set payroll deductions to $8,550, your $1,000 excess triggers a 6% IRS excise tax every year until removed before the April tax deadline.
  • Leaving 100% of the HSA in default cash paying 0.15% APY: Roughly four out of five HSA holders never turn on auto-investing once they cross their custodian’s $1,000 cash threshold. Over 25 years, investing $4,000/yr at 7% yields $270,706 versus just $101,945 in a 0.15% cash sweep—sacrificing $168,761 of tax-free wealth.
  • Contributing to an HSA within 6 months of applying for Medicare after age 65: Medicare Part A coverage is retroactive up to six months (no earlier than your 65th birthday month) when you apply after 65 or claim Social Security. Contributing to an HSA during that 6-month lookback window creates retroactive disqualified months and IRS penalties.

Dial in your contribution and medical spending assumptions in the calculator above, then fold your projected HSA balance into our FIRE Calculator to map out your complete retirement healthcare buffer.

Related Calculators: Roth IRA Calculator · Paycheck Calculator · Retirement Calculator

How to Use This Calculator

Formula: Annual Tax Savings = Contribution × (Federal Marginal Rate + 7.65% FICA); Retirement HSA = Sum over t years of [(Prior Balance + Net Unspent Contribution) × (1 + r)]
  1. Choose your Coverage Type—Self-Only HDHP or Family HDHP—so the calculator applies the right IRS annual contribution cap.
  2. Enter Your Age and target Retirement Age; if you are 55 or older, you qualify for an extra $1,000 annual catch-up contribution.
  3. Input your planned Annual Contribution and any Employer Contribution (remember that both combined cannot exceed the IRS annual limit).
  4. Estimate Annual Medical Expenses you expect to withdraw from the HSA each year (enter $0 if paying out of pocket to let your full HSA stay invested).
  5. Select your marginal federal Tax Bracket and Expected Investment Return (7% for a diversified stock index fund) to view annual tax savings and retirement value.

Frequently Asked Questions