Home › Calculators › HSA Calculator

HSA Calculator

A health savings account (HSA) can be tax-free going in, while growing and when spent on qualified medical costs. Enter what you and your employer contribute, your tax rates, the medical costs you expect to pay from the account and an investment return to see how much tax you save and how large your HSA could grow.

Last updated:

Contributions
$
$/ yr
$

Enter this year's IRS limit for your coverage (self-only or family), including any catch-up.

$
Taxes
%
%

Use 0 in states that tax HSA contributions.

Spending & growth
$/ yr
% / yr
% / yr
years
Enter your values to see the result.
Advertisement
Advertisement

How to use the HSA Calculator

  1. Enter your yearly contribution, your employer's contribution and any current balance.
  2. Optionally enter this year's contribution limit to get a warning if you go over.
  3. Enter your federal and state tax rates and tick payroll if you contribute through work.
  4. Add the medical costs you expect to pay from the HSA, the investment return and the number of years.
  5. Read your tax savings and projected balance, and see the year-by-year table.

How the HSA projection works

  • Tax savings per year = your contribution × (federal rate + state rate + 7.65% FICA if through payroll)
  • Each year: balance = (start balance + your and employer contributions − medical costs paid) × (1 + return)
  • If medical costs exceed the money in the account, the shortfall is shown as out of pocket.

Example: $3,000 from you and $500 from your employer each year, 22% federal and 5% state tax through payroll, $1,000 of medical costs a year rising 3%, and a 6% return. You save $1,039.50 in tax every year, and after 20 years the HSA holds about $87,000 even after paying for your care.

Tax saved per $1,000 contributed

Federal rateNo state tax, not payrollNo state tax, payroll5% state, payroll
10%$100$176.50$226.50
12%$120$196.50$246.50
22%$220$296.50$346.50
24%$240$316.50$366.50
32%$320$396.50$446.50
35%$350$426.50$476.50

FICA savings apply only to contributions made through an employer's payroll (a cafeteria plan), not to contributions you make directly and deduct on your tax return.

Compare with other tax-advantaged accounts using the traditional vs Roth calculator and the 401(k) calculator.

Frequently asked questions

What is the triple tax advantage of an HSA?

Contributions are tax-deductible (or pre-tax through payroll), investment growth is not taxed, and withdrawals for qualified medical expenses are tax-free. No other common US account gets all three benefits at the same time.

How much tax does an HSA save?

Roughly your contribution × your marginal tax rate. Through payroll you also avoid the 7.65% Social Security and Medicare (FICA) tax. For example, $3,000 at a 22% federal and 5% state rate via payroll saves $3,000 × 34.65% = $1,039.50 a year.

Who can contribute to an HSA?

You need to be covered by an HSA-eligible high-deductible health plan (HDHP) and have no other disqualifying coverage, such as Medicare. The IRS sets yearly contribution limits for self-only and family coverage, with an extra catch-up amount from age 55; enter the current limit in the calculator.

Do all states give a tax break on HSA contributions?

No. A few states, notably California and New Jersey, tax HSA contributions and earnings at the state level. If you live in one of them, enter 0% for the state tax rate.

Should I invest my HSA or use it for medical bills?

If you can afford to pay current medical costs out of pocket, investing the HSA lets it grow tax-free for longer, and you can reimburse yourself later for qualified expenses as long as you keep the receipts. If you need the money now, using it for care still gives you the tax savings on contributions.

What happens to my HSA after 65?

After 65 you can withdraw for any purpose without the 20% penalty; non-medical withdrawals are taxed as income, like a traditional IRA, while medical withdrawals stay tax-free. The money is yours even if you change jobs or health plans.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Traditional vs Roth IRA CalculatorCompare the after-tax value of a Traditional and a Roth IRA and see which wins and by how much.401(k) CalculatorProject your 401(k) balance with employer match and growth.Retirement CalculatorProject retirement savings and see your shortfall or surplus.401k Employer Match CalculatorWork out your 401k employer match, total contribution, vesting and match left on the table.EMI CalculatorMonthly EMI, total interest and month-by-month schedule, reducing or flat rate.SIP CalculatorMaturity value, invested amount and returns of a monthly SIP, with optional annual step-up.Compound Interest CalculatorSee how savings and investments grow over time.Savings Goal CalculatorMonthly deposit needed to reach a savings goal by a deadline.Inflation CalculatorValue of a dollar between any two years using US CPI data.CAGR CalculatorCompound annual growth rate, or solve for a target end value.FIRE CalculatorFind your FIRE number, years to financial independence and Coast FIRE target.Simple Interest CalculatorCalculate simple interest and final amount, or solve for principal, rate or time.APY CalculatorTurn an interest rate into APY and project savings growth with monthly deposits.CD CalculatorFind a CD's maturity value, interest earned, APY vs APR and early-withdrawal penalty.ROI CalculatorWork out ROI and annualized ROI, and compare up to three investments side by side.Investment Return CalculatorProject investment growth with monthly contributions, nominal vs real after inflation.Dividend CalculatorProject dividend income with yield, dividend growth and DRIP reinvestment over time.Net Worth CalculatorList assets and debts by category to get your net worth, debt ratio, donut charts and history.Credit Card Interest CalculatorSee how long minimum payments take, the total interest and how much a fixed payment saves.EOQ CalculatorEconomic order quantity, orders per year, reorder point, safety stock and a total cost curve.Rental Yield CalculatorCalculate gross and net rental yield for a buy-to-let or rental property.Roth IRA CalculatorProject your Roth IRA balance at retirement with contribution limits, catch-up and growth.Present Value CalculatorFind what a future sum or a series of payments is worth today at a discount rate.Future Value CalculatorCalculate the future value of savings with compounding, regular payments and payment timing.NPV CalculatorCalculate net present value, PV table, profitability index and payback from cash flows.IRR CalculatorFind the internal rate of return of cash flows, with an NPV profile chart and optional MIRR.Rule of 72 CalculatorEstimate how long money takes to double with the rule of 72, 70 and 69.3 vs. the exact answer.Annuity CalculatorCalculate annuity payouts from a lump sum, or how an annuity grows with regular contributions.Savings CalculatorSee how savings grow with an initial deposit, monthly deposits and compound interest.Interest Rate CalculatorSolve a loan's interest rate (APR) from the amount, payment and term using Newton's method.Yield to Maturity CalculatorFind a bond's yield to maturity, current yield and yield to call from its price and coupon.Bond Price CalculatorPrice a bond from its coupon, yield and term, with premium or discount and a cash flow table.Stock Average CalculatorAverage cost of several stock buys, plus how many shares to buy to reach a target average.Position Size CalculatorHow many shares or units to trade so a stop-loss risks only a set share of your account.EPS CalculatorBasic and diluted earnings per share from net income, preferred dividends and share count.CAPM CalculatorExpected return from the risk-free rate, beta and market return using the CAPM formula.Effective Annual Rate CalculatorConvert a nominal rate to the effective annual rate (EAR / APY) for any compounding, or back.Dividend Reinvestment CalculatorProject a DRIP: portfolio value, shares and income with and without reinvesting dividends.Expense Ratio CalculatorSee how much fund fees cost over time and compare up to 3 expense ratios.Fibonacci Retracement CalculatorFibonacci retracement and extension price levels from a swing high and low.Pip Value CalculatorForex pip value per lot and for any number of pips, in your account currency.Lump Sum vs Payments CalculatorCompare a lump sum with periodic payments: present value, best option and break-even rate.Millionaire CalculatorSee when your savings will reach $1 million or any goal, with inflation adjustment.Opportunity Cost CalculatorCompare buying now with investing the money: see the future value you give up.Portfolio Rebalancing CalculatorBuy and sell amounts to bring each holding back to its target allocation.PPF CalculatorPPF maturity amount and interest for 15 years or with 5-year extensions, year by year.Recurring Deposit CalculatorRD maturity value and interest with quarterly compounding and a monthly breakdown.Real Rate of Return CalculatorInflation-adjusted and after-tax real return using the Fisher equation.Risk Reward Ratio CalculatorRisk, reward, R:R ratio and break-even win rate from entry, stop loss and take profit.Sharpe Ratio CalculatorSharpe and Sortino ratios from a return and volatility, or from a list of returns.Employee Stock Option CalculatorVested options, exercise cost, intrinsic value and potential gain from your grant.Stock Split CalculatorNew share count, price and cost basis after a forward or reverse stock split.SWP CalculatorSystematic withdrawal plan: yearly balance, total withdrawn and when the corpus runs out.Treasury Bill CalculatorT-bill price, discount rate, investment rate (bond equivalent yield) and interest earned.XIRR CalculatorAnnualized return (XIRR) for investments and withdrawals on irregular dates.Crypto ConverterConvert Bitcoin, Ethereum and top coins to USD, EUR and each other with live prices.Dividend Yield CalculatorFind a stock's dividend yield, yield on cost and the income your shares pay each year.Financial Calculator (TVM)BA II Plus-style TVM solver: find N, I/Y, PV, PMT or FV, with BGN/END and amortization.Traditional IRA CalculatorProject a traditional IRA to retirement and compare its after-tax value with a taxable account.Roth Conversion CalculatorShould you convert a traditional IRA to Roth? Compare after-tax values and find the break-even.S&P 500 Return CalculatorHistorical S&P 500 return between any two years, with dividends, inflation and CAGR.AGI CalculatorCalculate adjusted gross income from income sources and adjustments, plus MAGI for Roth and ACA.Asset Allocation CalculatorSuggested stock, bond and cash mix by age, risk tolerance and time horizon, with dollar amounts.CD Ladder CalculatorBuild a CD ladder: maturity schedule, blended yield and interest earned by year.Convertible Note & SAFE CalculatorSAFE and convertible note conversion: cap, discount and interest to shares and ownership %.Cost of Raising a Child CalculatorYearly and total cost of raising a child to 18 by category, income level and inflation.Crypto Mining CalculatorMining profit per day and month from hashrate, power, electricity cost, pool fee and difficulty.Crypto Staking CalculatorEstimate staking rewards in coins and dollars from APR or APY, compounding, validator fee and price.
See all 127 Investing & Retirement Calculators →