The HSA Triple Tax Advantage: A Worked Example of Contributions, Growth, and Withdrawals

October 21, 2026

A health savings account (HSA) is a US account available to people enrolled in a qualifying high-deductible health plan. It is often called a triple tax-advantaged account: contributions are made pre-tax (or are tax-deductible), the money grows tax-free, and withdrawals are tax-free when used for qualified medical expenses. No other mainstream account offers all three, which is why some planners rank the HSA above even the 401(k) and IRA for those who are eligible.

Contribution limits, eligible plans, and rules change each year, so check the current figures from the IRS. The example here uses a round $3,000 per year for illustration.

Skip the math and get your answer instantly:

Open the Savings Calculator →

The Three Benefits in Numbers

Suppose you contribute $3,000 through payroll. At a 24% federal income tax rate, you save $720 in income tax. Payroll contributions are also exempt from Social Security and Medicare taxes (7.65%), saving about $230 more, for total savings near $950, or about 32% of the contribution. Many states also exempt HSA contributions, though a few do not.

The money can be invested in funds. If you contribute $3,000 each year for 20 years and earn 7% annually, the balance grows to about $122,985, of which $60,000 was contributed. Withdrawals for qualified medical expenses are tax-free, so none of that growth is taxed.

YearsTotal contributed ($3,000/yr)Balance at 7%Tax saved on contributions (about 32%)
10$30,000$41,449$9,600
20$60,000$122,985$19,200
30$90,000$283,382$28,800

Using the HSA as a Long-Term Account

You can pay medical bills out of pocket today and let the HSA invest, keeping receipts as proof of expenses. Later, even decades later, you can reimburse yourself tax-free for those past qualified expenses, as long as they were incurred after the HSA was opened. This turns the account into a flexible reserve. After age 65, you can withdraw for any purpose without penalty, paying ordinary income tax like a traditional IRA, while medical withdrawals remain tax-free. Healthcare is among the largest costs in retirement, so a tax-free fund for it is valuable.

Check whether your HSA provider offers low-cost investment options and keep fees low.

Eligibility and Cautions

You need a qualifying high-deductible health plan, cannot be enrolled in Medicare, and cannot be claimed as a dependent. Non-qualified withdrawals before 65 are taxed and carry a 20% penalty. High-deductible plans mean you pay more out of pocket before insurance covers costs, so ensure you can afford the deductible. A plan with lower premiums may cost more in a year with high medical needs. Compare total expected costs, including premiums and employer HSA contributions.

Spouses and family coverage have higher contribution limits. If you are 55 or older, a catch-up contribution is allowed.

Where the HSA Fits in Your Priorities

A common order for eligible savers: contribute to the employer retirement plan enough to capture the full match; then fully fund the HSA; then return to the 401(k) or IRA. The HSA can save more tax than either alternative because of the combination of benefits. If you rely on the HSA to pay current medical bills, keep a cash portion for upcoming expenses and invest the rest.

Frequently Asked Questions

What is the triple tax advantage of an HSA?

Pre-tax contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses.

Who can contribute to an HSA?

People covered by a qualifying high-deductible health plan who are not enrolled in Medicare.

Can I use HSA money for non-medical expenses?

Before 65, withdrawals are taxed and penalized. After 65, they are taxed as ordinary income without penalty.

Can I invest my HSA?

Yes, many providers offer mutual funds once you reach a minimum cash balance.

Do HSA funds expire at year-end?

No. The balance rolls over and belongs to you.