The HSA and the Roth IRA are the two most powerful tax-advantaged accounts available to individuals. But if you can only max out one, which should it be?
Short answer: max the HSA first. The math is not close.
Triple vs. Double Tax Advantage
The Roth IRA offers a double tax advantage: your contributions grow tax-free, and withdrawals in retirement are tax-free. You pay tax on the money going in, but never again after that.
The HSA offers a triple tax advantage: contributions are tax-deductible going in, growth is tax-free, and qualified medical withdrawals are tax-free coming out. You never pay tax at any stage.
| Feature | HSA | Roth IRA |
|---|---|---|
| Tax on contributions | Deductible (pre-tax) | After-tax |
| Tax on growth | None | None |
| Tax on withdrawals | None (qualified medical) | None (after age 59.5) |
| 2026 contribution limit | $4,300 / $8,550 family | $7,000 ($8,000 if 55+) |
| Income limit | None | $161,000 single / $240,000 married |
| Required distributions | None | None |
| Penalty-free for non-medical before 65 | No (20% + income tax) | Contributions: yes. Earnings: no. |
The Optimal Savings Sequence
If you are deciding where to put your next dollar, here is the order most financial planners recommend:
401(k) up to employer match
Free money. Always capture the full match before anything else.
HSA to the max
The triple tax advantage makes this the most tax-efficient account in the U.S. tax code. Every dollar here saves you more than a dollar anywhere else. If you are using the shoebox strategy, it doubles as a stealth retirement account.
Roth IRA to the max
After your HSA is maxed, the Roth is next. Tax-free growth and no required minimum distributions make it the best pure retirement account.
Back to the 401(k)
Fill up the remaining 401(k) space. The tax-deferred growth is still excellent, even with taxes on withdrawal.
After 65: HSA Becomes a Super Roth
Here is where the HSA pulls further ahead. After age 65, the 20% penalty for non-medical withdrawals disappears. You still owe income tax on non-medical withdrawals, but that makes the HSA functionally identical to a traditional IRA for non-medical spending - while still being completely tax-free for medical spending.
Fidelity estimates the average 65-year-old couple will spend $157,500 on healthcare in retirement. Medicare premiums alone run $170+/month per person. All of those costs are qualified HSA expenses - meaning decades of HSA growth can be withdrawn 100% tax-free when you need it most.
A Roth IRA can also fund healthcare tax-free, but it does not get the upfront deduction. Every dollar that went into the Roth was already taxed. The HSA dollar was never taxed at all.
When the Roth IRA Wins
The Roth has one clear advantage: flexibility. You can withdraw Roth contributions (not earnings) at any time, for any reason, with no tax or penalty. That makes it a better emergency fund backstop than the HSA, where non-medical withdrawals before 65 carry a steep penalty.
The Roth also wins if you are not eligible for an HSA. You need a High Deductible Health Plan to contribute to an HSA. If your employer only offers traditional health plans, the Roth is your best tax-free option.
And unlike the HSA, the Roth has no restriction on what you spend the money on in retirement. After 59.5, any withdrawal is tax-free regardless of purpose. The HSA is only tax-free for medical expenses (though after 65, non-medical withdrawals are penalty-free).
The Math: $4,300/Year for 25 Years
Assume you max a self-only HSA ($4,300/year) at 7% annual returns for 25 years.
| Account | Tax on Contribution | Balance at 25 Years | After-Tax Value (Medical Use) | After-Tax Value (Non-Medical) |
|---|---|---|---|---|
| HSA | $0 | $293,000 | $293,000 | $220,000 (after 22% tax, post-65) |
| Roth IRA | $946/yr at 22% | $256,000 (net of tax drag on contributions) | $256,000 | $256,000 |
The HSA puts $37,000 more into the account because contributions are pre-tax. For medical spending in retirement, the HSA wins outright. For non-medical spending, the Roth is slightly better because HSA non-medical withdrawals are taxed. But healthcare costs dominate most retirement budgets.
Max both. The combined strategy - HSA for medical expenses, Roth for everything else - creates two pools of completely tax-free money in retirement. Use the shoebox growth calculator to see what your HSA could be worth by the time you retire.
The HSA's triple tax advantage makes it objectively more tax-efficient than the Roth IRA for every dollar contributed. Max your HSA first, then fund the Roth. If you can max both, you will retire with two tax-free income streams - one for healthcare, one for everything else.
This content is for educational purposes only and is not tax, legal, or financial advice. Consult a qualified tax professional for guidance specific to your situation.