Start Calculating

🏥HSA Triple-Tax Advantage Calculator

An HSA is the only account that gives you a tax deduction going in, tax-free growth, and tax-free withdrawals for healthcare. Project your balance at retirement and see how many years of medical costs it could cover.

Your Numbers

Your Results

Projected HSA Balance at Retirement
$208,828
You Contributed
$83,000
Tax-Free Growth
$115,828
Healthcare Years Covered
~26.1 yrs
Triple tax advantage: Contributions reduce taxable income now, the balance grows tax-free, and withdrawals for qualified medical expenses are completely tax-free — the only account in the US tax code with all three benefits.

What Is HSA Triple-Tax Advantage?

A Health Savings Account (HSA) is the only account in the US tax code with three layers of tax advantage: contributions are tax-deductible (or pre-tax if made via payroll), the balance grows tax-free, and withdrawals for qualified medical expenses are tax-free. No other account type, not a 401(k), not a Roth IRA, matches all three simultaneously.

For early retirees, the HSA serves two roles. Before Medicare (age 65), it funds out-of-pocket healthcare costs tax-free, which is particularly valuable when self-employed or on marketplace insurance. After 65, it can be used for any expense, not just medical, functioning exactly like a traditional IRA with ordinary income taxes on non-medical withdrawals, while medical withdrawals remain permanently tax-free.

The numbers make a compelling case for treating the HSA as a long-term investment account rather than a spending account. Someone who contributes the family maximum ($8,300 in 2024) for 15 years from age 50 to 65, invests the full balance in a low-cost index fund at 7% growth, and pays all current medical expenses out of pocket would accumulate roughly $220,000 by retirement, all of it available tax-free for healthcare. Compare this to someone who spends the HSA each year and ends up with zero balance: the difference is $220,000 in tax-free healthcare purchasing power. Three practical moves for people who currently treat their HSA as a spending account: First, set up auto-invest within your HSA so contributions go directly into your chosen fund rather than sitting in cash. Second, open a folder (physical or digital) to save every medical receipt from this point forward, so you have documentation for future tax-free reimbursements. Third, if your employer's HSA has poor investment options or high fees, you can transfer the balance to a better custodian (Fidelity and Lively are frequently cited for zero fees and broad fund access) once annually without tax consequence.

How This Calculator Works

The calculator compounds your current balance and annual contributions at your expected return rate for your years to retirement, then divides the projected balance by your annual healthcare cost to show how many years of healthcare spending the account could cover.

Annual contribution
Limited to $4,150/individual or $8,300/family in 2024 (plus $1,000 catch-up if 55+). You must be enrolled in a High-Deductible Health Plan (HDHP) to contribute. You cannot contribute to an HSA if you're on Medicare.
Annual healthcare cost in retirement
Estimates vary widely. A single retiree might spend $4,000-7,000/year; a couple $8,000-14,000. This doesn't include Medicare premiums (roughly $2,000/person/year for standard Part B) or long-term care.

Personal Considerations

Most people who have access to an HSA through their employer treat it as a healthcare spending account rather than an investment account. They spend the balance each year on current medical costs and never invest it. This is the most common HSA mistake. Paying medical expenses out-of-pocket today while letting your HSA balance invest and compound, then reimbursing yourself years later (there's no deadline for reimbursement), is one of the most powerful legal tax arbitrage strategies available.

The 'pay now, reimburse later' strategy requires documentation: save every qualified medical receipt indefinitely. The IRS does not restrict how far back you can go for reimbursement, so a receipt from 2024 can be reimbursed in 2040 if you choose. This turns the HSA into a tax-free bucket you can tap at any time, for any amount, as long as you have sufficient prior unreimbursed medical expenses.

Mental accounting causes most people to underuse their HSA as an investment vehicle. The account is coded as 'healthcare money' and treated like a flexible spending account: money in, money out for medical bills. The triple-tax advantage makes the HSA more tax-efficient than any other account type for someone who can leave the money invested. Status quo bias keeps the default in place: most HSA accounts default to holding contributions in a low-yield cash account, and changing the investment settings requires an active decision that most account holders never make. If your HSA offers an investment option and you have other cash available to pay current medical expenses, investing the HSA balance and saving receipts for future reimbursement is one of the highest-return per-hour-of-effort decisions available in retirement planning.

If what you're feeling goes beyond what a calculator can help with, licensed clinicians are available at SanaNetwork.com, a referral network founded by this site's founder, Dr. Yoendry Torres.

Frequently Asked Questions

What qualifies as a medical expense for HSA withdrawals?

IRS Publication 502 has the full list. It includes premiums for Medicare Part B and Part D (but not Medigap), dental and vision care, prescription drugs, most medical procedures, and long-term care insurance premiums (subject to age-based limits). It does not include regular health insurance premiums unless you're receiving unemployment benefits.

Can I invest my HSA balance?

Most HSAs allow investing once your balance exceeds a threshold (often $1,000-2,000). Investment options vary by provider; some offer the same low-cost index funds available in 401(k) plans, while others offer only limited high-fee options. It's worth choosing or switching to an HSA provider with strong investment options.

What happens to my HSA if I leave my job?

Your HSA is yours permanently, regardless of employment status. Unlike an FSA, the balance rolls over indefinitely. If you change health insurance to a non-HDHP plan, you can no longer make new contributions but can still use the existing balance for qualified medical expenses.

Can my spouse use my HSA?

Yes. Qualified medical expenses for your spouse and tax dependents can be paid from your HSA even if they're not on your health plan.