HSA calculator

Project your health savings account at 65, the taxes your contributions save each year and how long the balance can pay health costs in retirement. Switch modes to check this year’s limit, a non-medical withdrawal or an HDHP against a PPO.

Health savings account calculator

You and your plan
yrs
$
%
Contributions
$
Growth and spending
$
$
%
yrs
$
%
Advancedinflation, cash, what if
%
$
%
$

What do I do next?

Want to see how your real portfolio compares? Track your actual progress toward your retirement goal in Snowball Analytics.
Result
—
Result
—
Result
—
Result
—
More resultsthe other figures and notes
Result
—

Result
—

Result
—

Year by year
AgeLimitAddedCostsBalance

Ready to track your investment Snowball?

Use this calculator to plan, and create a free Snowball Analytics account to track your actual portfolio performance.

No card required.

The HSA calculator helps you work out:

Limits applied each year

The self-only or family limit, the catch-up at 55 and your employer’s money are built in.

Three taxes, not one

Federal tax by bracket, FICA on payroll deposits and state tax, added up for the year.

Costs now and after 65

Medical bills paid along the way, then how many years of retirement costs the balance covers.

HDHP or PPO

A year of premiums and out-of-pocket costs for each plan, with the HSA money counted in.

How to use the HSA calculator

The calculator needs a few numbers you already know from your plan and pay stub. A health savings account holds money that you can put in before tax, grow and spend on qualified medical costs; the calculator adds the limits and the taxes around that.

  1. Enter your age and coverage: Your age, self-only or family coverage, the tax year and your filing status.
  2. Add the contribution, employer money and how you pay in: Use the maximum or your own amount, then pick payroll or direct deposits.
  3. Enter the balance and the medical costs: The balance today and the qualified costs you pay from the account each year.
  4. Set the return and when contributions stop: The expected return, the age you stop contributing and the health costs you expect after that.
  5. Read the results and try the other modes: The value, the tax saved and the years of costs covered; then this year’s limit, a withdrawal or the HDHP and PPO check.

The formula behind the HSA projection

The projection repeats one step each year: the balance grows by the return, and one twelfth of the year’s deposits less costs is added each month. Each year’s limit is the published one, and later years rise with the inflation you enter, rounded to $50. For the default case, $8,000 today and the maximum from 42, the balance at 65 is $245,793 ($139,290 in today’s dollars) after $36,618 of medical costs paid from the account, and the costs of $6,000 a year in today’s dollars are covered until age 84.

HSA contribution limits for 2024 to 2027

The check starts with your coverage on the first day of each month: self-only or family. The HSA contribution limits for 2026 are $4,400 and $8,750, and for 2025 they were $4,300 and $8,550. For 2027 the IRS set $4,500 and $9,000. Anyone who turns 55 in the year can add $1,000, and each spouse with a family plan adds it to their own account.

HSA contribution calculator 2025 and 2026 figures from IRS revenue procedures, with 2024 and 2027
YearSelf-onlyFamilyCatch-up at 55
2024$4,150$8,300$1,000
2025$4,300$8,550$1,000
2026$4,400$8,750$1,000
2027$4,500$9,000$1,000

A high deductible health plan must have a minimum deductible and a cap on out-of-pocket costs.

High deductible health plan limits, self-only / family
YearMinimum deductibleOut-of-pocket maximum
2025$1,650 / $3,300$8,300 / $16,600
2026$1,700 / $3,400$8,500 / $17,000
2027$1,750 / $3,500$8,700 / $17,400

Money from your employer counts toward the limit. If both spouses have family coverage, they share one family limit. Enrolling in Medicare ends the right to contribute. HSA tax savings for 2025 use the 2025 limit for contributions made up to the filing deadline in 2026.

Partial-year contributions and the last-month rule

A partial year gives one twelfth of the limit for each month of coverage: at 57 with seven months, ($4,500 + $1,000) × 7 ÷ 12 is $3,208. The last-month rule treats you as eligible all year if you are covered on December 1, but you must stay eligible through December 31 of the next year (the testing period), or the extra amount becomes income plus a 10% additional tax.

HSA contributions per pay period

The amount per pay period is what is left of the limit divided by the paychecks left. At 56 with family coverage, $1,000 contributed, $500 from the employer and 12 pay periods left in 2027, the room is $8,500 and each paycheck takes $708.33. To see an HSA deduction next to 401(k) and taxes on each paycheck, use the 401(k) paycheck calculator.

Excess HSA contributions and their earnings

An excess HSA contribution is the amount above your limit. It is taxed 6% each year it stays in the account, unless you withdraw it with its earnings by your tax filing deadline. The earnings follow the IRS method for IRAs: the excess times the adjusted closing balance minus the adjusted opening balance, divided by the adjusted opening balance. The result can be negative if the account lost value. With $1,000 of excess and balances of $10,000 and $10,600, the earnings are $60.

How much tax an HSA saves

HSA tax savings come from three taxes, though many people think only of the federal one. Through payroll, the contribution skips federal income tax, Social Security and Medicare tax and, in most states, state tax. Made on your own, it is a deduction on Form 8889 and FICA still applies. The HSA tax deduction comes off the top of your income, so the federal saving is your marginal rate.

Among tax-advantaged accounts, an HSA is the one where money can go in, grow and come out without federal tax when spent on qualified medical costs. The tax benefits add that tax-free growth and those tax-free withdrawals to the deduction. In the default case the first year saves $880 + $306 + $200 = $1,386. Some states do not follow the federal treatment; enter your own rate, or zero if your state exempts the contribution.

Social Security and Medicare taxes on HSA contributions

Skipping FICA understates the payroll saving. Social Security tax is 6.2% up to the wage base ($184,500 in 2026 and $192,300 in 2027) and Medicare tax is 1.45% on all wages. The tax break for high earners shrinks above the wage base, because the saving is then only the Medicare part.

How your HSA grows

HSA growth is what happens when the account is invested rather than spent, which matters because a balance left in cash can lose ground to rising costs. Many accounts hold a minimum in cash first, so the HSA investment return applies above that floor, while the cash part earns the cash rate. The calculator uses one return for the invested part. HSA savings are also checked against this year’s limit, with the tax each deposit saves.

Investing shows the gap between paying bills from the HSA and paying them out of pocket. With no medical costs paid from the account, the default balance at 65 is $315,388, against $245,793 when $1,000 a year comes out of it. Click a row to load a starting age.

HSA balance at 65 by starting age: self-only maximum from the 2027 limit, 6% return, no costs paid, future dollars
Start at ageContributedBalance at 65In today’s dollars
35$207,500$494,885$235,933
45$124,900$220,611$134,632
55$60,400$80,980$63,261

Using an HSA for health costs in retirement

The HSA retirement phase starts at the age you stop contributing. Qualified costs after 65 include Medicare Part B, Part D and Medicare Advantage premiums, though not Medigap premiums, and some long-term care premiums. The balance then pays your yearly health costs, grown by the health cost increase, until it runs short: age 84 in the default case.

After 65 a withdrawal for something else is taxed as income, though there is no 20% additional tax. Medical costs are often the largest bill in retirement, and they are what the balance is for. Signing up late for premium-free Part A starts coverage up to 6 months back (never before the month you turned 65), and the limit is zero from the first month you are entitled to Medicare, so deposits for those months may count as excess contributions. In retirement planning the HSA balance is one source among several: health care is one line of a retirement budget, and the retirement budget calculator puts it next to the others.

Taxes and the 20% penalty on non-medical withdrawals

The withdrawal penalty mode adds income tax and a 20% additional tax to an HSA withdrawal. Before 65 a withdrawal for anything but qualified medical costs is income plus 20%; after 65, or after disability or death, only the income tax applies. The tax uses your bracket, so a larger withdrawal can cross into the next one. On $5,000 taken at 42, the $1,000 penalty comes with $1,100 of federal and $250 of state tax, $2,350 in all for 2027.

Keep receipts: paying yourself back later for an old qualified cost is not a non-medical withdrawal.

HSA vs PPO cost comparison

The HSA vs PPO mode adds premiums and what you would pay out of pocket: the deductible, then the coinsurance up to the out-of-pocket maximum. With the default plans, $4,000 of care costs $5,320 on the HDHP and $5,800 on the PPO. The result depends most on how much care you use. The employer’s HSA deposit counts too: after $500 from the employer and $1,386 of tax saved, the HDHP at $4,000 of care is $3,434.00.

The comparison leaves out copays and networks, which can still change the answer, and money you do not spend this year stays in the account.

Assumptions

Deposits and costs are made in equal monthly parts and the return is constant. Limits after the last published year rise with the inflation you enter, rounded to $50, and the catch-up does not rise. Tax savings use the brackets and standard deduction of the tax year you pick, and payroll deposits skip FICA. After you stop contributing, costs are paid at the start of each year and are qualified, so they are not taxed.

Sources

Pages read on 3 December 2026.

How this HSA calculator compares

HSA calculators from account providers each answer one question; the table lists what each includes.

FeatureSnowball
Analytics
Schwab MoneyWiseHSA BankHealthEquityEmpower
Self-only or family coverageYesYesYesYesNo
Limits for a chosen tax yearYesYesNoYesNo
Catch-up at 55YesNoNoYesPartly
Employer contribution inside the limitYesNoNoYesNo
Amount left this year and per paycheckYesNoNoYesNo
Partial-year prorationYesNoNoYesNo
Current balanceYesYesNoNoYes
Medical costs paid from the HSAYesYesYesNoYes
Federal and state tax ratesYesPartlyYesPartlyNo
FICA savings on payroll depositsYesNoNoNoNo
Tax savings shown as a resultYesNoYesYesNo
Cash kept before investingYesNoNoNoYes
Sliders on inputsNoYesNoNoNo
Guided stepsNoNoNoYesNo
Year-by-year tableYesYesNoNoNo
ChartYesYesYesNoYes
Print or reportYesYesNoNoYes
shownPartly limited version not shown

Compared in November 2026 on the free public versions. ✕ means the feature is not shown among the inputs or results; "Partly" means a limited version, for example a mention in the text only. Tools change over time.

Frequently asked questions

It depends on the contribution, the medical costs you pay from it and the return. With $8,000 today, the 2027 maximum from age 42 and $500 a year from an employer, $1,000 of costs a year and a 6% return, the balance at 65 is $245,793, or $139,290 in today’s dollars at 2.5% inflation.
Federal tax at your bracket, FICA if you contribute through payroll, and state tax at the rate you enter. On $4,000 a year for a single filer earning $85,000 with a 5% state rate, the 2027 saving is $880 federal tax, $306 FICA and $200 state tax, $1,386 in all.
$4,400 for self-only coverage and $8,750 for family coverage, plus $1,000 from age 55. For 2027 the limits are $4,500 and $9,000. Money from your employer counts toward the same limit.
The calculator can show the limit and the tax effect of each amount, not the right amount for you. The inputs that matter are the limit, your employer’s deposit and the medical costs you expect this year.
After 65 the 20% additional tax no longer applies, qualified medical costs are never taxed, and other withdrawals are taxed as income. Medicare premiums can be paid from it. It holds only what you contribute, so it sits next to a retirement account, not in place of one. In the default example the balance pays $6,000 a year of today’s health costs until age 84.
Before 65 the withdrawal is taxed as income and a 20% additional tax is added. After 65, or after disability or death, only the income tax applies. At 42, $5,000 taken for non-medical costs costs $2,350 in 2027, of which $1,000 is the additional tax; from 65 it costs $1,350.
It depends on how much care you use, the premiums and the money your employer adds. With the default plans, a year with $4,000 of care costs $5,320 on the HDHP and $5,800 on the PPO; at $20,000 it is $8,520 and $9,000; at $500 it is $2,300 and $4,700. HSA money and tax savings come off the HDHP figure.
A 6% excise tax applies for each year the excess stays in the account. You can avoid it by withdrawing the excess and its earnings by your tax filing deadline. On an excess of $1,000 with an adjusted opening balance of $10,000 and a closing balance of $10,600, the earnings are $60, so $1,060 comes out.
An HSA earns two rates: the cash rate and the return on investments. Many accounts keep a minimum in cash before you can invest, and the calculator lets you set that amount and its rate.
Yes. Your own deposits and your employer’s together cannot pass the yearly limit. Employer contributions appear on your Form W-2, box 12, code W.
The account is yours. Without an HDHP you cannot add money, but you can keep spending it on qualified costs, and you can move it to another provider.

Explore the Snowball Analytics ecosystem

Dive deeper into the tools behind the tracker — from stock analysis to dividend planning

Dividend tracker

Automatically track payouts, calculate Yield on Cost, and project future passive income.

Explore dividend tracker →

Dividend rating

Avoid yield traps. Analyze financial health, payout ratio and sustainability.

Check dividend ratings →

Stock tracker

Monitor individual equities, price movements and 10-year company fundamentals.

Explore stock tracker →

Dividend calendar

See exactly when payouts hit your account across all global holdings.

View dividend calendar →

Dividend calculator

Project future passive income, simulate DRIP scenarios and visualize compounding.

Try dividend calculator →

Ex-dividend calendar

See upcoming ex-dividend and payment dates for your holdings.

View ex-dividend dates →

Your portfolio dashboard, anywhere

Take control of your investments with the Snowball Analytics mobile app. Everything you love about the web tracker, fully optimized for your smartphone.

Download on the App Store
★★★★★ 4.8
~4,200 ratings
Get it on Google Play
★★★★★ 4.8
~2,300 ratings
Home screen widgets for portfolio, performance, and gainers
Push notifications for market events
Deep dive into asset allocation & risk analytics
Secure, automated brokerage sync on the go
Snowball Analytics mobile app preview

Ready to track your investment Snowball?

Use this calculator to plan, and create a free Snowball Analytics account to track your actual portfolio performance.

No card required.