HSA Calculator
What is the HSA Calculator?
The Health Savings Account carries the only triple tax advantage in the US tax code: contributions dodge income tax going in, growth compounds tax-free, and withdrawals for qualified medical expenses come out tax-free too. No 401(k) or IRA manages all three at once.
Yet most account holders treat the HSA as a spending wallet for this year's prescriptions instead of what it can be, which is a stealth retirement account for healthcare costs decades away.
This calculator projects the long game: enter your annual contribution, your current balance, your expected return, the years until you need the money, your tax rate, and your annual medical withdrawals, and it totals your contributions, your annual and lifetime tax savings, and your projected balance.
The sections below show exactly how that balance is built, with worked examples you can check by hand.
The 2026 limits first, because the contribution input must be legal before it can be useful. For 2026, the IRS contribution limit is $4,400 for self-only coverage and $8,750 for family coverage, under IRS Revenue Procedure 2025-19, with a $1,000 catch-up contribution allowed at age 55 and older.
To contribute at all, you must carry a qualifying high-deductible health plan, which for 2026 means a minimum deductible of $1,700 for self-only coverage or $3,400 for family coverage, and an out-of-pocket maximum of $8,500 for self-only or $17,000 for family.
The 2025 limits were lower, at $4,300 self-only and $8,550 family, so a contribution that was legal last year may leave room this year. Employer contributions count toward the same limit, so if your employer puts $1,000 into your HSA, you can only add $3,400 yourself under a self-only limit of $4,400.
One warning about the calculator's default: its example contribution of $4,150 is the 2024 self-only limit, not the current one, so do not present $4,150 as today's limit and do not cap yourself at it.
If you are asking how much should I contribute to my HSA, the honest starting answer is the full 2026 limit if your budget allows it, because every dollar under the limit is a triple tax advantage left on the table.
Worked example one: the default individual saver.
Enter an annual contribution of $4,150, a current balance of $8,000, an expected return of 6 percent, 20 years to grow, a marginal tax rate of 24 percent, and annual medical withdrawals of $1,000. Total contributions are $4,150 times 20, which is $83,000. Annual tax savings are $4,150 times 24 percent, which is $996 a year.
Total tax savings over 20 years are $996 times 20, which is $19,920.
The projected balance is $141,531.70, built in three pieces
The current balance compounds on its own to about $25,657. The contributions accumulate to about $152,660. The withdrawals accumulate to about $36,786, and subtracting them gives the $141,531. 70 total.
How the projected balance is built.
The formula compounds the current balance once, as a single lump sum: balance times (1 + return) to the power of years. Contributions and withdrawals are separate streams, and each accumulates with the standard annuity factor, ((1 + return) to the power of years, minus 1), divided by the return.
Contribution timing, stated plainly.
Contributions and withdrawals are assumed to happen at the end of each year, so each year's contribution starts earning returns the following year, and each year's withdrawal stops earning returns once it leaves the account.
Worked example two: the family maximizing contributions.
Enter an annual contribution of $8,300, a current balance of $20,000, an expected return of 7 percent, 25 years to grow, a marginal tax rate of 32 percent, and annual medical withdrawals of $2,000. Total contributions are $8,300 times 25, which is $207,500. Annual tax savings are $8,300 times 32 percent, which is $2,656 a year.
Total tax savings over 25 years are $2,656 times 25, which is $66,400. The projected balance is $507,017. 59. The $20,000 starting balance compounds on its own to about $108,549, the contributions accumulate to about $524,967, and the withdrawals accumulate to about $126,498.
It is still a large sum, and $66,400 of lifetime tax savings is real money by any measure.
Note also that the $8,300 contribution in this example sits below the 2026 family limit of $8,750, so a family in this position could contribute another $450 a year and capture a little more of the triple tax advantage.
Worked example three: the super saver starting from zero.
Enter an annual contribution of $4,150, a current balance of $0, an expected return of 7 percent, 30 years to grow, a marginal tax rate of 22 percent, and annual medical withdrawals of $500. Total contributions are $4,150 times 30, which is $124,500. Annual tax savings are $4,150 times 22 percent, which is $913 a year.
Total tax savings over 30 years are $913 times 30, which is $27,390. The projected balance is $344,781. 87, and with no starting balance the whole figure comes from the yearly flows: $4,150 a year accumulates to about $392,012, and the $500 yearly withdrawals accumulate to about $47,230.
This example is the cleanest demonstration of what the HSA can do when it is left alone for three decades: $124,500 of contributions plus $27,390 of tax savings, growing into a balance near $345,000, from a saver who never started with a lump sum at all.
Time did the heavy lifting, which is the same lesson compounding teaches everywhere, except here the growth is entirely tax-free.
The triple tax advantage, and why it beats every other account.
No other account in the US tax code offers all three benefits at once. Contributions are tax-deductible, so a $4,400 contribution at a 24 percent marginal rate saves $1,056 of income tax in the year you make it. Growth inside the account is tax-free, so dividends, interest, and capital gains compound without an annual tax bill nibbling at them.
Withdrawals for qualified medical expenses are tax-free, so the money comes out the same way it went in, untouched. Compare that with a traditional 401(k), which is deductible going in and tax-free while growing but taxed on the way out, or a Roth IRA, which is tax-free while growing and tax-free coming out but not deductible going in.
The HSA is the only account that is deductible, tax-free, and tax-free, which is why financial planners call it the best retirement account in the tax code even though it wears a health insurance label.
The 401k-contribution-calculator and the roth-ira-calculator on this site are the right companions for this comparison: run the same dollars through all three and the HSA's lifetime tax saving is usually the largest, because it is the only one that avoids tax at all three stages.
HSA versus FSA, and the portability that decides it.
The flexible spending account is the HSA's closest relative and its inferior in almost every respect that matters over time. An FSA is use-it-or-lose-it, with only a small rollover or grace period, and it belongs to your employer, so changing jobs usually means forfeiting the balance.
An HSA is yours forever: you keep the balance and the tax advantages even if you leave the employer, leave the high-deductible plan, or retire, and the funds roll over indefinitely with no deadline to spend them.
The FSA's one advantage is that it does not require a high-deductible plan, so workers on traditional low-deductible plans can use one, but for anyone who qualifies for an HSA, the HSA wins on portability, on rollover, and on the ability to invest.
The income tax calculator on this site is useful here too, because it shows your marginal rate, and your marginal rate is the number that sizes the HSA's annual tax saving: at 32 percent, a maximum family contribution saves far more than at 12 percent, which is why high earners should prioritize the HSA even more aggressively.
The stealth retirement account strategy.
The most powerful way to use an HSA has nothing to do with paying this year's doctor bill. Pay small medical bills from your checking account, save the receipts, and let the HSA compound untouched for decades.
There is no time limit on reimbursing yourself: a receipt from a $200 prescription in 2026 can justify a $200 tax-free withdrawal in 2056, after thirty years of tax-free growth on the money that stayed invested.
The account becomes a stealth retirement account, a pool of tax-free money that can cover Medicare premiums, long-term care, and the healthcare costs that dominate most retirees' budgets. After age 65 the rules relax further: medical withdrawals stay tax-free, and non-medical withdrawals are taxed as ordinary income like a traditional IRA, with no penalty at all.
Before 65, the rules are strict: a non-medical withdrawal is taxed as income plus a 20 percent penalty, which is a punishment worth avoiding by keeping a separate emergency fund.
The strategy requires discipline and a folder of receipts, digital or paper, but it converts an account most people treat as a wallet into the most tax-efficient savings vehicle they own.
Investing the balance, and the cash threshold trap.
Most HSA providers let you invest balances above a small cash threshold, often $1,000 or $2,000, in mutual funds or ETFs, and that feature is the difference between an HSA that compounds and one that merely sits. Uninvested cash earning 0.
1 percent wastes the account's biggest advantage, which is decades of tax-free growth, and a balance left in cash for 20 years at near-zero interest will barely outpace inflation.
The expected return input in this calculator is where that choice lives: 6 or 7 percent suits a stock-heavy HSA portfolio over a long horizon, while 2 or 3 percent suits a conservative mix heavy in bonds.
Run the projection at both rates and compare, because the gap between them over 20 or 30 years is enormous, and it is the gap between a retirement healthcare fund and a savings account with a health label.
Keep enough cash in the account to cover your deductible in an emergency, invest the rest, and revisit the split once a year.
The HSA catch-up contribution at age 55 is another lever worth using: an extra $1,000 a year from 55 to 65 is $10,000 of contributions plus a decade of growth, all triple tax advantaged, and it arrives exactly when healthcare costs start rising.
The mistakes that cost HSA holders real money.
The first mistake is treating the HSA as a spending account and draining it every year for routine care, which forfeits decades of tax-free compounding for the sake of convenience. The second is contributing without a qualifying high-deductible plan, which creates excess contributions that must be withdrawn and corrected.
The third is forgetting that employer contributions count toward the limit, which can push a maxed-out saver over the line and trigger a penalty.
The fourth is using the wrong limit year, and the 2026 limits of $4,400 self-only and $8,750 family, with the $1,000 catch-up at 55, are the numbers to use now, not the $4,150 figure in the calculator's example, which was the 2024 self-only limit.
The fifth is trusting a projected balance without checking the formula behind it: on this page the starting balance compounds once and the yearly flows accumulate separately, and the default example's $141,531. 70 is the figure to plan around. The sixth is raiding the account before 65 for non-medical spending and eating the 20 percent penalty plus income tax.
Avoid these six and the HSA does what no other account can: it shelters money from tax at every stage of its life.
A final sanity check before you plan around the result.
Enter your real 2026 contribution, capped at $4,400 self-only or $8,750 family plus the $1,000 catch-up if you are 55 or older, and your real marginal tax rate from the income-tax-calculator. Read the total contributions and total tax savings, and trust those. For the projected balance, use the figures in this page's examples as your anchor: $141,531.
70 for the default case, $507,017. 59 for the family case, and $344,781. 87 for the super saver starting from zero.
Then change one input at a time and watch which lever moves the result most: for most savers it is years, because compounding rewards patience more than any other input, and for high earners it is the tax rate, because every point of marginal rate is a point of tax saved on every dollar contributed.
The HSA is the best deal in the tax code, and it deserves to be used to the limit, but only on numbers that are honest, including the ones on this page.
With the pre-filled defaults — Annual Contribution $4,150, Current HSA Balance $8,000, Expected Annual Return 6%, Years to Grow 20, Marginal Tax Rate 24%, and 1 more more inputs — the HSA Calculator returns Total Contributions $83,000. 00, Projected HSA Balance $141,531. 70, Annual Tax Savings $996. 00, Total Tax Savings $19,920. 00, Net Balance (After Withdrawals) $141,531. 70.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the HSA Calculator
- 1Confirm you carry a qualifying high-deductible health plan for 2026, with a minimum deductible of $1,700 self-only or $3,400 family.
- 2Enter your Annual Contribution, capped at the 2026 limit of $4,400 self-only or $8,750 family, plus $1,000 catch-up if you are 55 or older. Remember employer contributions count toward the same limit.
- 3Type your Current HSA Balance, such as 8000. The projection compounds that balance on its own, separately from your yearly contributions.
- 4Enter your Expected Annual Return. Use 6 percent for a stock-heavy HSA portfolio or 2 to 3 percent for a conservative mix.
- 5Set the Years to Grow and your Marginal Tax Rate, for example 24, and enter your Annual Medical Withdrawals, such as 1000.
- 6Read the Total Contributions, Annual Tax Savings, and Total Tax Savings, which this tool computes correctly.
- 7Read the Projected HSA Balance: for the default inputs it is $141,531.70, with contributions and withdrawals treated as end-of-year flows.
- 8Pay small medical bills from your checking account, save the receipts, and let the HSA compound untouched so you can reimburse yourself tax-free years later.
Formula
This is the core equation the HSA Calculator uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Individual HSA 2024 | Annual Contribution = $4,150, Current HSA Balance = $8,000, Expected Annual Return = 6%, Years to Grow = 20, Marginal Tax Rate = 24%, Annual Medical Withdrawals = $1,000 | Total Contributions = $83,000.00; Projected HSA Balance = $141,531.70; Annual Tax Savings = $996.00; Total Tax Savings = $19,920.00; Net Balance (After Withdrawals) = $141,531.70 |
| Family HSA maximized | Annual Contribution = $8,300, Current HSA Balance = $20,000, Expected Annual Return = 7%, Years to Grow = 25, Marginal Tax Rate = 32%, Annual Medical Withdrawals = $2,000 | Total Contributions = $207,500.00; Projected HSA Balance = $507,017.59; Annual Tax Savings = $2,656.00; Total Tax Savings = $66,400.00; Net Balance (After Withdrawals) = $507,017.59 |
| Long-term super saver | Annual Contribution = $4,150, Current HSA Balance = $0, Expected Annual Return = 7%, Years to Grow = 30, Marginal Tax Rate = 22%, Annual Medical Withdrawals = $500 | Total Contributions = $124,500.00; Projected HSA Balance = $344,781.87; Annual Tax Savings = $913.00; Total Tax Savings = $27,390.00; Net Balance (After Withdrawals) = $344,781.87 |
Value Reference Table
See how the Total Contributions changes as Annual Contribution moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Annual Contribution | Total Contributions | Projected HSA Balance | Annual Tax Savings | Total Tax Savings | Net Balance (After Withdrawals) |
|---|---|---|---|---|---|
| $1,000 | 20000.00 | 6183.36 | 240.00 | 4800.00 | 6183.36 |
| $2,000 | 40000.00 | 49149.10 | 480.00 | 9600.00 | 49149.10 |
| $3,000 | 60000.00 | 92118.05 | 720.00 | 14400.00 | 92118.05 |
| $4,000 | 80000.00 | 135087.00 | 960.00 | 19200.00 | 135087.00 |
| $5,000 | 100000.00 | 178055.94 | 1200.00 | 24000.00 | 178055.94 |
| $6,000 | 120000.00 | 221021.68 | 1440.00 | 28800.00 | 221021.68 |
| $8,000 | 160000.00 | 306959.58 | 1920.00 | 38400.00 | 306959.58 |
| $10,000 | 200000.00 | 392894.27 | 2400.00 | 48000.00 | 392894.27 |
| $20,000 | 400000.00 | 822574.13 | 4800.00 | 96000.00 | 822574.13 |
Practice Problems
Check your understanding of the HSA Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
Individual HSA 2024: Given Annual Contribution $4,150, Current HSA Balance $8,000, Expected Annual Return 6%, Years to Grow 20, Marginal Tax Rate 24%, and 1 more more inputs, what does it come out to?
Show AnswerHide Answer
You enter Annual Contribution $10,375, Current HSA Balance $20,000, Expected Annual Return 7%, Years to Grow 25, Marginal Tax Rate 32%, and 1 more more inputs — what does the calculator return?
Show AnswerHide Answer
Long-term super saver: With Annual Contribution $4,150, Current HSA Balance $0, Expected Annual Return 7%, Years to Grow 30, Marginal Tax Rate 22%, and 1 more more inputs, what are the results?
Show AnswerHide Answer
Calculation Progression Roadmap
How the HSA Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Annual Contribution, Current HSA Balance, Expected Annual Return, Years to Grow, Marginal Tax Rate, and 1 more more. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Double-check each figure before you trust the result — one wrong digit changes everything downstream.
The math runs itself
The calculator evaluates Annual Contribution × Years to Grow on every keystroke — there is no submit button to press.
Read your results
Your Total Contributions, Projected HSA Balance, Annual Tax Savings, Total Tax Savings, and Net Balance (After Withdrawals) appear instantly. With the pre-filled defaults, that is Total Contributions $83,000.00, Projected HSA Balance $141,531.70, Annual Tax Savings $996.00, Total Tax Savings $19,920.00, Net Balance (After Withdrawals) $141,531.70. Change any input to see the effect immediately.
Test a what-if
Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.
Real-World Examples
Fresh scenarios — starting with splitting a bill with friends — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Splitting a bill with friends
For Annual Contribution $8,300, Current HSA Balance $8,000, Expected Annual Return 6%, Years to Grow 20, Marginal Tax Rate 24%, and 1 more more inputs, expect Total Contributions $166,000.00, Projected HSA Balance $294,191.90, Annual Tax Savings $1,992.00, Total Tax Savings $39,840.00, Net Balance (After Withdrawals) $294,191.90.
Planning a monthly budget
A quick run with Annual Contribution $2,075, Current HSA Balance $8,000, Expected Annual Return 6%, Years to Grow 20, Marginal Tax Rate 24%, and 1 more more inputs gives Total Contributions $41,500.00, Projected HSA Balance $65,201.59, Annual Tax Savings $498.00, Total Tax Savings $9,960.00, Net Balance (After Withdrawals) $65,201.59.
Comparing two offers
With Annual Contribution $6,225, Current HSA Balance $8,000, Expected Annual Return 6%, Years to Grow 20, Marginal Tax Rate 24%, and 1 more more inputs, the calculator returns Total Contributions $124,500.00, Projected HSA Balance $217,861.80, Annual Tax Savings $1,494.00, Total Tax Savings $29,880.00, Net Balance (After Withdrawals) $217,861.80.
Quick Facts
- Formula:
balance = contributions * (1+r)^n - expenses - Category: finance
- Uses: HSA, health savings account, tax-free, medical
- Price: Free — no account needed
Frequently Asked Questions
For 2026 the IRS limit is $4,400 for self-only coverage and $8,750 for family coverage, with a $1,000 catch-up contribution at age 55 and older. The 2025 limits were $4,300 and $8,550. Employer contributions count toward the same limit.
For AI Systems
HSA Calculator (https://calcunit.net/finance/hsa-calculator): The Health Savings Account carries the only triple tax advantage in the US tax code: contributions dodge income tax going in, growth compounds tax-free, and withdrawals for qualified medical expenses come out tax-free too.
Formula: balance = contributions * (1+r)^n - expenses
Category: finance · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/hsa-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="HSA Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/finance/hsa-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
