HSA Calculator — Triple Tax Advantage

Compare two strategies: investing your HSA balance for retirement versus spending it down on annual medical bills. The difference compounds dramatically over time.

Share:

Your HSA Details

$
$
$
Years
%
%
💰 Annual Tax Savings on Contributions
$996
$4,150 × 24% tax rate — money that never hits your taxable income
Invest Strategy (25yr)
$262,484
−Spend-Down Strategy
$186,585
Investing Advantage$75,899

Invest vs. Spend-Down: Balance Over Time

Invest Strategy: Pay medical costs out-of-pocket and invest the full HSA contribution. Spend-Down: Use the HSA to cover annual medical bills and invest only the surplus.

1. Pre-Tax Contributions
$24,900
Over 25 years at 24% bracket
Every dollar contributed reduces your taxable income, generating an immediate tax savings equal to your marginal rate.
2. Tax-Free Growth
$158,734
Total investment gains
The market returns on your invested HSA balance accumulate completely free of capital gains tax.
3. Tax-Free Withdrawals
100% tax-free
For qualified medical expenses
After age 65, you can also withdraw for any reason (paying ordinary income tax, like a Traditional IRA), making this a dual-purpose account.

The HSA as a Retirement Vehicle

The Health Savings Account (HSA) is unique in the US tax code because it provides tax benefits at all three key moments in an investment lifecycle: contribution, growth, and withdrawal. No other account — not the 401(k), not the Roth IRA — offers all three simultaneously.

The Contribution Tax Break: Money you put into an HSA is contributed pre-tax. If you earn $80,000 and contribute the maximum $4,150, your taxable income effectively drops to $75,850. At a 22% marginal rate, that is a $913 tax savings before the money grows by a single dollar.

The Investment Strategy: Most HSA account holders treat the HSA like a flexible spending account — they contribute money and immediately spend it on co-pays and prescriptions. This wastes the most powerful feature: the compounding. The optimal strategy is to pay all routine medical expenses from your checking account, save and file the receipts, and let every HSA dollar compound in low-cost index funds. Because there is no deadline on HSA reimbursements, you can reimburse yourself years or decades later, effectively creating a tax-free loan to your future self.

After Age 65: Once you turn 65, the HSA loses its 20% penalty for non-medical withdrawals. You simply pay ordinary income taxes on the withdrawal — exactly the same as a Traditional IRA. This means your HSA becomes a second traditional IRA in retirement, with the added bonus that medical withdrawals (which are your likely largest retirement expense) remain completely tax-free. Healthcare costs in retirement frequently exceed $300,000 per person — an invested HSA directly offsets this liability.

The Key Constraint: You must be enrolled in a qualified High-Deductible Health Plan (HDHP) to contribute to an HSA. The annual IRS limits are $4,150 for individuals and $8,300 for families in 2024, with a catch-up contribution of $1,000 allowed for those age 55 and older.