HSA Contribution Calculator: Check Your Annual Limit and Retirement Projection
Use this guide to understand the assumptions, inputs, results, and next steps behind the calculator.
Created by Luis Gonzalez · Last updated August 8, 2026
A Health Savings Account (HSA) can combine tax advantages with long-term investing, but contribution eligibility depends on your health coverage and the months you qualify. This calculator estimates your annual contribution limit and projects account growth to retirement using your balance, planned annual contribution, investment return, and inflation assumptions.
An HSA is not the same as a flexible spending account. It belongs to you and can remain invested when you change employers or retire. Qualified medical withdrawals are generally tax-free under federal rules, but eligibility, contribution limits, and state tax treatment matter. Read the IRS HSA guidance and verify your individual eligibility before contributing.
Enter coverage, eligible months, and savings assumptions
Choose self-only or family coverage, then enter the number of months you were eligible for HSA contributions while covered by an eligible high-deductible health plan (HDHP). Add your current balance, annual contribution, age, planned retirement age, investment return, and inflation rate.
The calculator uses the 2026 contribution limit for the coverage type, prorates it by eligible months, and adds a $1,000 catch-up allowance when you are age 55 or older. It limits the modeled annual deposit to the calculated maximum. Employer contributions count toward the annual limit, so include them when deciding how much you can contribute personally.
2026 contribution limits and eligibility
For 2026, the HSA contribution limit is $4,400 for self-only coverage and $8,750 for family coverage. Eligible account holders age 55 or older can generally contribute an additional $1,000 catch-up contribution. The catch-up is individual, so each eligible spouse must contribute to their own HSA to use it. Check the IRS’s current HSA information for eligibility conditions and annual limit updates.
The calculator prorates the limit by eligible months. For example, 6 eligible months of family coverage gives $8,750 × 6 ÷ 12 = $4,375 before any age-based catch-up. The calculator’s age test adds the catch-up when the entered current age is 55 or older; it does not determine whether every other tax-law eligibility condition is met.
| Example coverage situation | Base 2026 limit | Eligible months | Calculator’s prorated maximum before catch-up |
|---|---|---|---|
| Self-only HDHP coverage for 12 months | $4,400 | 12 | $4,400 |
| Family HDHP coverage for 6 months | $8,750 | 6 | $4,375 |
| Family HDHP coverage for 9 months | $8,750 | 9 | $6,563 |
| Self-only coverage for 12 months, age 55 or older | $4,400 | 12 | $5,400 including $1,000 catch-up |
Eligibility can depend on more than the plan’s deductible. Generally, you must have qualifying HDHP coverage and cannot have disqualifying other coverage, be enrolled in Medicare, or be claimed as another taxpayer’s dependent. Special rules can apply to midyear coverage changes and the last-month rule. Ask a tax professional or consult IRS Publication 969 if your circumstances are not straightforward.
Understand the projection and its limits
The projection runs from your current age up to retirement age. It adds the modeled contribution during each year before retirement and applies the assumed investment return to the balance in the calculator’s annual sequence. A longer time horizon or higher contribution can increase projected growth, but investment returns are not guaranteed.
The “in today’s dollars” result discounts the projected future balance for the inflation rate. It is a purchasing-power estimate, not a second account balance. The calculation assumes a steady return and inflation rate rather than market volatility, fees, contribution timing changes, or withdrawals for medical expenses.
An HSA can be used for qualified medical expenses before retirement. Using the account for current bills may reduce the balance available to grow, while paying eligible expenses out of pocket and keeping receipts may preserve invested funds if you later reimburse yourself under applicable rules. That strategy requires careful records and enough cash flow to pay bills now. Compare long-term investing with the HSA investment growth calculator.
Formula: contribution cap and future value
Prorated contribution limit =
annual limit for coverage type × eligible months ÷ 12
Allowed annual contribution =
the lower of planned contribution or prorated limit
Inflation-adjusted balance =
projected future HSA balance ÷ (1 + inflation rate) ^ years to retirement
With 6 eligible months of family coverage, the prorated cap is $8,750 × 6 ÷ 12 = $4,375. If your planned contribution is $5,000, the calculator uses the lower amount, $4,375, before any applicable catch-up. This cap is a contribution limit, not a guarantee that the account will reach a particular retirement balance.
Coordinate HSA savings with other accounts
HSA contributions may be made by you or your employer, but both count toward the annual limit. Employer deposits can reduce the amount you can contribute yourself. Payroll contributions may receive different tax treatment from direct contributions, so check how your employer handles deposits and your tax filing.
An HSA is designed for healthcare spending, even though it can also support retirement. After age 65, nonmedical withdrawals are generally subject to ordinary income tax but not the additional 20% tax that usually applies to nonqualified withdrawals before age 65. Qualified medical withdrawals remain tax-free under federal rules. Medicare enrollment generally ends eligibility to make new HSA contributions, even though existing HSA funds can still be used for eligible expenses. The IRS HSA publication explains these conditions.
Compare HSA saving with workplace plan contributions rather than treating the accounts as interchangeable. The 403(b) contribution calculator can estimate a workplace-plan deposit, while the Roth 401(k) contribution calculator can help compare pretax and Roth salary deferrals. If you have a SIMPLE plan, use the SIMPLE IRA contribution calculator. For federal employees, the TSP contribution calculator offers a separate workplace-plan estimate.
Healthcare is a major retirement budget item. Consider the ACA Marketplace subsidy calculator if you expect to retire before Medicare, and compare coverage costs with the COBRA cost calculator. Other useful comparisons include an HRA calculator and an FSA retirement calculator.
Frequently asked questions
Can I contribute to an HSA if I am enrolled in Medicare?
Generally, you cannot make new HSA contributions for months when you are enrolled in Medicare. You can usually continue using existing HSA funds for eligible expenses. Check the timing of Medicare enrollment because it can affect contribution eligibility.
Do employer contributions count toward my HSA limit?
Yes. Employer deposits generally count toward the annual contribution limit. Reduce your own contributions accordingly to avoid exceeding the limit.
Does the calculator guarantee the projected balance?
No. The projection uses a constant annual return and does not predict market performance. Actual account value can be higher or lower, especially when investments fluctuate.
Should I spend HSA funds now or invest them for later?
That depends on cash flow, investment risk, and your ability to pay medical bills from other resources. Spending HSA funds now can avoid selling investments, while leaving them invested may support future healthcare costs. Keep receipts if you plan to seek reimbursement later and confirm that expenses meet IRS requirements.
Can I use HSA money for nonmedical expenses after age 65?
Generally, yes, but nonqualified withdrawals are taxable as income. Qualified medical withdrawals remain tax-free under federal rules. Before age 65, nonqualified withdrawals usually also face a 20% additional tax, subject to exceptions.
What if I was eligible for only part of the year?
Enter the eligible number of months. The calculator prorates the annual limit by months, but special tax rules can affect some midyear situations. Check IRS guidance before making a contribution based only on a simple monthly calculation.
Next steps
Confirm your plan’s HSA eligibility and 2026 contribution limit, then account for employer deposits before setting a payroll amount. Test different contribution levels and investment assumptions, and compare the result with your expected healthcare budget. The HSA investment growth calculator focuses on compounding and modeled tax effects, while this calculator focuses on the contribution cap and retirement projection.