HSA Triple-Tax Calculator
Compare the HSA triple-tax advantage against a Traditional 401k and a taxable brokerage account over your investment horizon. See how much the tax-free growth adds up.
HSA advantage over traditional
$86,243
After 30 years: HSA $392,012 vs Traditional $305,770 vs Taxable $253,836.
HSA final value
$392,012
Traditional (after-tax)
$305,770
Taxable (after cap gains)
$253,836
- All three accounts receive the same gross annual contribution. The HSA and Traditional 401k both start from the pre-tax amount; the taxable brokerage starts from the after-tax equivalent.
- HSA: contributions are pre-tax, growth is tax-free, qualified medical withdrawals are tax-free — true triple advantage. Non-medical withdrawals after 65 are taxed as ordinary income (same as a 401k).
- Traditional 401k / IRA: contributions are pre-tax, growth is tax-deferred, withdrawals are taxed at the retirement rate. After-tax value =
balance × (1 − retirementRate). - Taxable brokerage: contributions are after-tax. Annual tax drag is approximated at 30% of the return taxed at the current ordinary rate (models dividend income and short-term turnover). Long-term gains on withdrawal are taxed at the capital-gains rate.
- This model shows the advantage when the HSA is invested for growth and used as a retirement account — not when funds are withdrawn immediately for medical expenses. Keeping receipts and reimbursing yourself decades later is a legal and tax-efficient strategy often called "HSA hacking."
The HSA triple tax advantage
A Health Savings Account (HSA) is the only account in the US tax code that offers three simultaneous tax benefits: contributions are pre-tax (reducing your taxable income), growth is tax-free (no capital gains or dividend taxes), and withdrawals for qualified medical expenses are tax-free. No other account type — not a 401(k), not a Roth IRA, not a taxable brokerage account — offers all three.
This "triple tax advantage" makes the HSA extraordinarily powerful. Many people use it as a spending account for current medical bills and miss the bigger opportunity. The real strategy: pay current medical bills out of pocket, invest the HSA contributions in growth assets, and let it compound tax-free for decades. After age 65, you can withdraw for any reason (paying only ordinary income tax on non-medical withdrawals), making it functionally identical to a Traditional IRA — but still better because medical withdrawals remain 100% tax-free.
Why it matters to your money
Medical expenses are one of the leading causes of bankruptcy in the US. An HSA protects you from that risk while simultaneously building long-term wealth. The tax savings alone can be worth thousands per year, and over a 30-year investment horizon, the tax-free compounding can add tens of thousands to your final balance compared to a taxable account.
Read the full explainer on HSAs for a deeper dive into eligibility, contribution limits, investment options, and the "save receipts and reimburse yourself later" strategy.
Rules of thumb
- Max it if you can: The 2025 HSA contribution limit is $4,300 (individual) or $8,550 (family). If your employer also contributes, count that toward the limit.
- Invest, don't just spend: Once your HSA balance exceeds the provider's investment threshold (typically $1,000–$2,000), move it into index funds. A $300/month HSA investment at 7% for 30 years grows to over $350,000 tax-free.
- You need an HDHP: You must be enrolled in a High Deductible Health Plan to contribute. Compare HDHP premiums vs. out-of-pocket costs against PPO plans — sometimes the HDHP saves thousands even if you use the HSA aggressively.
Frequently asked questions
- What is the HSA triple tax advantage?
- An HSA offers three tax benefits: contributions are pre-tax (reducing taxable income), growth is tax-free, and withdrawals for qualified medical expenses are tax-free. No other account type offers all three simultaneously.
- Who is eligible for an HSA?
- You must be enrolled in a High Deductible Health Plan (HDHP) to contribute to an HSA. In 2025, HDHPs have a minimum deductible of $1,650 (individual) or $3,300 (family), with out-of-pocket maximums of $8,300 and $16,600 respectively.
- Can I invest my HSA balance?
- Yes — and this is what makes it powerful. Once your balance exceeds the minimum threshold (typically $1,000–$2,000), most HSA providers let you invest in mutual funds or ETFs. The invested portion grows tax-free, just like a Roth IRA.
- What happens to HSA money after age 65?
- After 65, you can withdraw HSA funds for any reason without penalty (though non-medical withdrawals are taxed as ordinary income, like a traditional IRA). For medical expenses, withdrawals remain completely tax-free — making the HSA better than a 401k for healthcare costs.