A $1,000 medical bill takes $1,000 from a health savings account (HSA) when the expense qualifies. Paying that same bill from a pretax retirement account can require a larger withdrawal because some of the money goes to taxes. That’s where the HSA triple tax advantage makes a difference. Comparing the two withdrawals shows when an HSA can stretch retirement savings further and how a 401(k) match can change the math.

How the HSA triple tax advantage works

Contributions can lower taxable income

Eligible contributions you make directly to an HSA can reduce your federal taxable income. The deduction is available even if you take the standard deduction. Qualifying employer contributions and contributions through an employer’s pretax payroll plan are generally excluded from taxable income upfront. IRS Publication 969 explains how the two contribution methods are treated.

Earnings grow without annual federal income tax

Interest and investment gains inside the account aren’t subject to federal income tax as they accumulate. Unspent money carries over each year and stays in the account until you use it. That gives money set aside for future medical bills time to earn interest or potentially grow through investments.

Qualified medical withdrawals are tax-free

The federal tax break applies to the entire qualified withdrawal, including any earnings it contains. HSA funds can pay or reimburse eligible medical expenses incurred after the account was established. If insurance covers part of a bill, only the unreimbursed portion qualifies.

HSA vs. a traditional 401(k) or IRA

Compare what $1,000 buys after federal taxes

A traditional 401(k) or a deductible traditional IRA contribution can also provide an upfront tax break. Federal income tax on investment earnings is generally deferred until withdrawal. Pretax money is generally taxable when withdrawn even if it pays a medical bill. A traditional IRA with nondeductible contributions can have a partly tax-free withdrawal.

Suppose a retiree takes out $1,000 for a qualified medical bill. The HSA covers the full $1,000 without federal income tax. A fully taxable traditional retirement withdrawal leaves $780 if the entire amount is taxed at an assumed federal marginal rate of 22%. That leaves $220 of the bill unpaid. The example excludes state taxes and any additional taxes on early withdrawals.

Account for nonmedical spending and employer matching

A nonmedical HSA withdrawal generally incurs federal income tax plus an additional 20% tax before age 65. Once the account holder reaches 65, the additional tax no longer applies. The nonmedical withdrawal still counts as taxable income.

A 401(k) match changes the comparison before either account earns a dollar. If an employer matches 50 cents per dollar on the full $1,000 you contribute, the employer adds $500. The plan’s vesting rules determine when those employer dollars are yours to keep. Factor in the 401(k) match and vesting terms when comparing where the next dollar goes.

Who can contribute to an HSA and how much?

Check coverage and Medicare status

HSA contribution eligibility depends on your coverage and tax status. Generally, you need an HSA-eligible health plan on the first day of the month. Disqualifying additional coverage or Medicare enrollment can prevent you from contributing for that month. You also must be ineligible to be claimed as someone else’s tax dependent. Under expanded IRS rules for 2026, qualifying bronze and catastrophic Marketplace plans count as HSA-compatible coverage.

Check the annual limit and employer contributions

The 2026 HSA limits are $4,400 for self-only coverage and $8,750 for family coverage. The 2027 limits rise to $4,500 and $9,000, respectively. Eligible account holders who are 55 or older by year-end can contribute an additional $1,000.

Employer contributions count toward the same annual limit as your own. If you qualify for the full 2026 self-only limit and your employer puts in $1,000, you can contribute up to $3,400 yourself before any catch-up amount.

How to use an HSA for current and future medical bills

You can pay a qualified bill from your HSA now or pay out of pocket and reimburse yourself later. If cash flow allows, delaying reimbursement gives the money more time to earn interest or remain invested. The IRS sets no reimbursement deadline for qualified expenses incurred after the HSA was established.

Keep the itemized bill and proof of payment if you plan to reimburse yourself later. Your records should show that the expense qualified, that no other source paid or reimbursed it and that you never claimed it as an itemized deduction.

Frequently asked questions

Can I contribute to an HSA and a 401(k) in the same year?

You can contribute to both if you meet each account’s eligibility rules. The two accounts have separate annual contribution limits.

Can I deduct an HSA contribution if I take the standard deduction?

Eligible direct contributions are deductible even when you take the standard deduction. Payroll contributions already excluded from taxable income do not qualify for a second deduction.

Can I keep using my HSA after enrolling in Medicare?

You can still use the existing balance for qualified medical expenses. Your contribution limit becomes zero starting the first month you’re enrolled in Medicare.

Can I use my HSA to pay Medicare premiums?

Once you reach 65, you can use HSA funds tax-free for certain Medicare premiums. Medigap premiums do not qualify for tax-free reimbursement from an HSA.

Conclusion

The HSA triple tax advantage goes furthest when the money pays for qualified medical bills. If you’re eligible to contribute, weigh those expected costs alongside the value of any employer 401(k) match.

This comparison covers general U.S. federal tax rules and is for informational purposes only.