๐Ÿ‡บ๐Ÿ‡ธ USC
Investing & Retirement
๐Ÿฅ

HSA Calculator

Project your health savings account growth & triple tax advantage

๐Ÿฅ HSA details

$

2025 federal income tax brackets (10% to 37%).

โœ…

Last updated June 2026

Method: Uses the verified 2025 IRS HSA contribution limits ($4,300 self-only, $8,550 family, +$1,000 catch-up at age 55+) and the 2025 federal income tax brackets (10%-37%) to estimate the tax saved on pre-tax contributions. Growth is projected at your chosen constant annual return.

Included: Final balance, total contributions, tax-free investment growth, a year-by-year schedule, and estimated federal income tax saved on contributions (the triple tax advantage).

Not included: Payroll FICA savings, state income tax (which varies by state), employer contribution timing, market volatility, and future changes to IRS limits. Figures are for tax year 2025 - this is an estimate, not tax advice.

HSA calculator: everything you need to know

Suppose you have family HDHP coverage and contribute the full 2025 limit of $8,550 every year for 20 years, earning a 6% average return. Your contributions add up to $171,000, but the account grows to roughly $333,000 - about $162,000 of tax-free investment growth. On top of that, contributing in the 24% bracket saves you around $41,000 in federal income tax along the way. That combination is what makes a health savings account one of the most tax-efficient accounts available, and exactly what this HSA calculator projects. All figures below are for tax year 2025 (filed in 2026).

2025 HSA contribution limits

The IRS sets the maximum you can contribute each year based on your coverage type, with an extra catch-up amount once you turn 55:

Coverage 2025 limit With 55+ catch-up
Self-only$4,300$5,300
Family$8,550$9,550

These caps include contributions from both you and your employer. Contributing more than the limit triggers a 6% excise tax on the excess each year until it is withdrawn, so the calculator projects only up to the cap.

How the tax saving is calculated

HSA contributions are pre-tax, so each dollar contributed lowers your taxable income by a dollar. The federal income tax you avoid equals your marginal tax rate:

Tax saved = Total contributions × Marginal tax rate

The 2025 federal brackets run 10%, 12%, 22%, 24%, 32%, 35% and 37%. If you contribute $8,550 in the 24% bracket, you save about $2,052 that year. Contributions made through payroll can also avoid the 7.65% in Social Security and Medicare (FICA) taxes - a benefit this calculator does not count, so your real saving may be a bit higher.

The triple tax advantage

An HSA is the only account taxed favorably at all three stages: contributions go in pre-tax, growth compounds tax-free, and withdrawals for qualified medical expenses come out tax-free. Investing the balance instead of spending it lets it grow like a retirement account, which is why many savers treat the HSA as a "stealth IRA" for healthcare costs in retirement.

HSA vs other retirement accounts

For 2025, the 401(k) employee limit is $23,500 and the IRA limit is $7,000 - far higher than the HSA. But neither offers tax-free withdrawals. Many advisors suggest funding your 401(k) up to the employer match, then maxing the HSA, then returning to the 401(k) or an IRA, precisely because of the HSA's unique triple advantage. If your goal is purely tax-free retirement income, compare the HSA against a Roth IRA, and for a full picture of when you can retire, run the numbers through the Retirement Calculator.

How to use this HSA calculator

You only need a few numbers to get a realistic long-term projection. Work through the inputs in order:

  1. Coverage type: choose self-only or family. This sets the maximum the calculator will let you contribute ($4,300 or $8,550 for 2025).
  2. Annual contribution: enter how much you (and your employer combined) plan to add each year, up to the IRS limit. To project the full triple advantage, use the cap.
  3. Age and catch-up: if you are 55 or older, add the $1,000 catch-up so the projection reflects the higher limit.
  4. Years to grow: pick how long the money stays invested - the longer the horizon, the more tax-free compounding dominates the result.
  5. Expected return: use a conservative long-run average (many people model 5%-7%). A higher assumption inflates the projection, so it is safer to be cautious.
  6. Marginal tax rate: select your federal bracket so the calculator can estimate the income tax you avoid on each year's contribution.

The result updates instantly: read the final balance, then compare your total contributions against the tax-free growth and the estimated federal tax saved. Together those three numbers show why the HSA is treated as a long-term investment account, not just a spending account.

Who this calculator is for

This tool is built for anyone enrolled in (or considering) a high-deductible health plan who wants to see the long-term payoff of investing an HSA. That includes:

  • HDHP enrollees deciding whether to spend their HSA each year or invest it for the future.
  • Retirement savers who have hit their 401(k) match and want the most tax-efficient next dollar.
  • People in their 30s-50s projecting a dedicated pot for healthcare costs in retirement.
  • FIRE and high-savers who treat the HSA as a "stealth IRA" and keep receipts to reimburse themselves later.
  • Anyone comparing plans at open enrollment who wants to weigh an HDHP-plus-HSA against a traditional plan.

A second worked example: self-only coverage from age 30

Suppose you have self-only HDHP coverage at age 30 and contribute the 2025 self-only limit of $4,300 every year until 65 - that is 35 years of contributions totaling $150,500. At a 6% average return, the account grows to roughly $508,000, meaning about $357,000 of completely tax-free investment growth. If you contributed in the 22% bracket, you also saved around $33,000 in federal income tax along the way. The lesson is that time, not the contribution amount, does most of the heavy lifting: starting a decade earlier can more than double the final balance because of compounding.

What changes the result the most

If you adjust the inputs and watch the projection move, a few factors clearly dominate:

  • Years invested: the single biggest lever - tax-free compounding rewards a long horizon more than anything else.
  • Annual return: the gap between a cash rate and a 6%-7% invested return is enormous over decades, which is why leaving the balance in cash is so costly. The Compound Interest Calculator shows the same effect on any balance.
  • Contribution amount: maxing the limit versus contributing half changes both the balance and the tax saved roughly proportionally.
  • Marginal tax rate: a higher bracket means each contributed dollar saves more income tax up front.
  • Catch-up contributions: the extra $1,000 a year from age 55 adds up meaningfully in the final decade before retirement.

Tips to grow your HSA faster

  • Invest, don't hoard cash: move the balance above your provider's cash minimum into low-cost index funds so it can compound tax-free.
  • Pay small bills out of pocket: if you can afford current medical costs, leave the HSA untouched and let it grow.
  • Keep your receipts: there is no deadline to reimburse yourself, so saved receipts let you withdraw tax-free years later.
  • Capture the employer contribution: it is free money toward the cap, but remember it counts against your annual limit.
  • Add the catch-up at 55: the extra $1,000 a year compounds during your highest-earning years.

Key terms explained

  • HDHP: a high-deductible health plan that meets the IRS minimum deductible and out-of-pocket limits - the only plan type that lets you fund an HSA.
  • Triple tax advantage: pre-tax contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses.
  • Qualified medical expense: a cost the IRS allows you to pay tax-free from an HSA, listed in Publication 502.
  • Catch-up contribution: an extra $1,000 per year you can add once you reach age 55.
  • Marginal tax rate: the rate on your last dollar of income, which equals the tax you save per dollar contributed.
  • Excess contribution: any amount over the annual cap, subject to a 6% excise tax until removed.

How the result is used in real life

The final balance is best read as a dedicated healthcare fund for your future. A 65-year-old couple can face well over $300,000 in out-of-pocket medical costs across retirement, and HSA withdrawals for Medicare premiums (Parts B and D), copays, prescriptions, and long-term-care insurance are tax-free. The projected balance tells you how close you are to self-funding those costs, while the tax saved figure shows the year-to-year cash-flow benefit you can redirect into other savings today - for example into a taxable brokerage account you can model with the Investment Calculator. After age 65, any leftover funds work like a traditional IRA - withdrawals for non-medical use are simply taxed as income with no penalty.

Limitations and assumptions

This calculator is a planning estimate, not tax or investment advice. Keep these assumptions in mind:

  • It assumes a constant annual return and constant contributions; real markets are volatile and your contributions may vary.
  • It estimates federal income tax only and does not include FICA savings on payroll contributions or state income tax, which differs by state.
  • It uses 2025 IRS limits and brackets held flat; both are adjusted for inflation in future years.
  • It does not model provider fees, cash-balance minimums, or the timing of employer contributions.
  • Your real benefit depends on your actual bracket, returns, and whether your withdrawals are for qualified medical expenses.

โš ๏ธ Common mistakes & edge cases

Over-contributing past the IRS limit

Employer contributions count toward your $4,300 or $8,550 cap. Going over triggers a 6% excise tax on the excess every year until you remove it. Track total contributions, not just your own.

Leaving the balance in cash

Many people let HSA money sit in a low-interest cash account. If you can pay current medical bills out of pocket, investing the balance lets it grow tax-free for decades - the whole point of this projection.

Contributing after enrolling in Medicare

Once you enroll in Medicare you can no longer contribute to an HSA. Contributions in months you are not HSA-eligible can create excess-contribution penalties, so stop before Medicare begins.

Forgetting state tax differs

A few states (such as California and New Jersey) tax HSA contributions and earnings at the state level. This calculator covers federal tax only - check your state's treatment before assuming the full triple advantage.

Note: This calculator gives an estimate, not tax advice. Your actual savings depend on your real marginal rate, employer contributions, investment returns and state tax rules.

❓ Frequently asked questions

What are the 2025 HSA contribution limits?

For tax year 2025, the IRS limits are $4,300 for self-only HDHP coverage and $8,550 for family coverage. If you are age 55 or older, you can add a $1,000 catch-up contribution. These limits include both your contributions and any made by your employer.

What is the HSA triple tax advantage?

An HSA is taxed favorably three times: (1) contributions are pre-tax, lowering your taxable income; (2) interest and investment earnings grow tax-free; and (3) withdrawals for qualified medical expenses are tax-free. No other account combines all three benefits, which is why HSAs are powerful long-term savings tools.

How much tax does an HSA save me?

Each dollar you contribute reduces your taxable income, so your savings equal your marginal tax rate. For example, $8,550 contributed in the 24% bracket saves about $2,052 in federal income tax for 2025. Contributions made through payroll can also avoid Social Security and Medicare (FICA) taxes, which this calculator does not include.

Can I invest my HSA money?

Yes. Many HSA providers let you invest the balance above a small cash threshold in mutual funds or ETFs, similar to a 401(k) or IRA. Investing rather than spending the balance lets the account grow tax-free for years, which is what this calculator projects.

What happens to my HSA after age 65?

After age 65 you can withdraw HSA funds for any purpose without the 20% penalty; non-medical withdrawals are simply taxed as ordinary income, much like a traditional IRA. Withdrawals for qualified medical expenses, including many Medicare premiums, remain completely tax-free at any age.

Do HSA funds expire at the end of the year?

No. Unlike a Flexible Spending Account (FSA), HSA balances roll over indefinitely and the account is yours to keep even if you change jobs or health plans. That portability is why an HSA can be invested and grown over decades.

Who is eligible to contribute to an HSA?

You must be enrolled in a qualifying high-deductible health plan (HDHP), have no other disqualifying coverage, not be enrolled in Medicare, and not be claimed as a dependent on someone else's return. Eligibility is determined month by month under IRS rules.

What is a high-deductible health plan (HDHP) for 2025?

For 2025 the IRS defines an HDHP as a plan with a minimum annual deductible of $1,650 for self-only coverage or $3,300 for family coverage, and a maximum out-of-pocket limit of $8,300 self-only or $16,600 family. You must be covered by a qualifying HDHP to open or contribute to an HSA. The plan can still cover certain preventive care before you meet the deductible.

What expenses count as qualified medical expenses for an HSA?

Qualified medical expenses are the costs the IRS lists in Publication 502, such as doctor and dentist visits, prescriptions, eyeglasses, mental-health care, and many medical supplies. Since 2020, over-the-counter medicines and menstrual products also qualify. Withdrawals for these are tax-free at any age; withdrawals for non-qualified expenses before age 65 are taxed and hit with a 20% penalty.

Can I use my HSA to pay for my spouse and dependents?

Yes. You can use HSA funds tax-free for the qualified medical expenses of your spouse and your tax dependents, even if they are not covered by your HDHP. The eligibility rules for contributing apply to you as the account holder, but spending can cover your whole family's qualified costs.

What is the last-month rule and how does it affect my limit?

Under the IRS last-month rule, if you are HSA-eligible on December 1, you are treated as eligible for the entire year and can contribute the full annual limit. However, you must stay HSA-eligible through a 13-month testing period (the following December); if you do not, the extra amount becomes taxable income plus a 10% penalty. The calculator assumes a full year of eligibility.

Should I save HSA receipts for years?

Many savers pay current medical bills out of pocket, invest the HSA, and keep the receipts. Because there is no deadline to reimburse yourself, you can withdraw tax-free years later up to the total of your past qualified expenses - letting the balance compound tax-free in the meantime. Keep digital copies of receipts and proof you were not otherwise reimbursed.

Can I roll over or transfer an old HSA?

Yes. You can move funds between HSA providers with a trustee-to-trustee transfer (unlimited, not taxed) or a 60-day rollover (limited to one per 12 months). A one-time qualified HSA funding distribution also lets you move money from an IRA into your HSA, subject to the annual limit. Transfers do not count against your yearly contribution cap.

๐Ÿ’ก Good to know

The HSA can act as a "stealth IRA"

After age 65 you can withdraw HSA money for any reason and pay only ordinary income tax - exactly like a traditional IRA - while withdrawals for qualified medical expenses stay tax-free. That makes a maxed, invested HSA one of the most flexible retirement accounts available.

Stop contributing before Medicare

Enrolling in Medicare (including Part A, which can start retroactively up to six months) ends your HSA eligibility. Contributing for months you are not eligible can trigger excess-contribution penalties, so plan the cutoff carefully if you work past 65.

You have until tax day to contribute

Like an IRA, you can make prior-year HSA contributions up to the federal tax-filing deadline (mid-April). If you find you had room left, you can still top up for 2025 in early 2026 and claim the deduction.

Related Calculators