Most spendable from the same budget
HSAFilling the HSA first is worth about $5,562 more than putting the whole budget in the Roth, largely because the employer money would otherwise be forfeited.
SwitchWize decision guide
These two are usually compared dollar for dollar, which is the wrong comparison. A payroll HSA contribution never passes through income tax or payroll tax, so a fixed take-home budget buys noticeably more inside an HSA than inside a Roth. Set against that, HSA money is only untaxed on the way out if it goes on qualified medical expenses. The honest answer is an order rather than a winner.
What you can expect
Quick answer
If hsa
The strongest tax treatment available on any account, provided the money eventually goes on qualified medical expenses and your health plan qualifies you.
If roth ira
Nearly as good on tax and far better on flexibility, because the money is not tied to medical spending and needs no particular health plan.
Key number to watch
You have assumed 100% of the HSA goes on qualified medical care. That assumption, not the rate of return, is what makes the HSA the strongest account here or merely a good one.
Test your situation
Change any number below to match your situation. No login is required, and your entries stay in this browser.
This depends on your health plan, not your income. If you are unsure, it is worth checking before ruling the HSA out.
After-tax dollars from your pay packet. This is the honest unit, because the two accounts consume it at different rates.
Money your employer puts in. Unclaimed, it is simply forfeited.
Your answer so far
Claim the employer HSA contribution of $500. It is forfeited if you do not. Then Fill the remaining $3,900 of HSA room, ideally through payroll so it escapes payroll tax too. Then Put the remaining $2,334 into the Roth IRA. On these assumptions that order is worth about $5,562 more than putting the whole budget into the Roth.
See the full breakdownClaim the employer HSA contribution of $500. It is forfeited if you do not. Then Fill the remaining $3,900 of HSA room, ideally through payroll so it escapes payroll tax too. Then Put the remaining $2,334 into the Roth IRA. On these assumptions that order is worth about $5,562 more than putting the whole budget into the Roth.
Health savings account
$14,111
spendable after 20 years
Roth IRA
$7,487
spendable after 20 years
Try a scenario
What could change this
You have assumed 100% of the HSA goes on qualified medical care. That assumption, not the rate of return, is what makes the HSA the strongest account here or merely a good one.
How certain: moderate
Your employer puts in $500 whether or not you optimise anything else. It is the only money here with a guaranteed return.
How certain: high
Filling the HSA first is worth about $5,562 more than putting the whole budget in the Roth, largely because the employer money would otherwise be forfeited.
Roth money is not tied to medical spending. HSA money used for anything else is taxed, and penalised before the penalty-free age.
Contributions, growth and qualified medical withdrawals are all untaxed. No other account does all three.
This is why a fixed take-home budget buys more inside an HSA.
This is an order of operations rather than a choice between two accounts. Getting the order right is worth more than getting the choice right.
Educational illustration only. The right amount depends on your needs and timing.
Question 1
Yes: The HSA is available, so check for employer money first.
No: The Roth takes this budget. Confirm eligibility rather than assuming it.
Question 2
Yes: Claim it before anything else on this page.
No: Fill the HSA through payroll next.
Question 3
Yes: The HSA is the strongest account available to you.
No: It still works as a retirement account after 65, but the Roth is more flexible.
The budget is take-home money. A payroll HSA contribution is grossed up by the income tax and payroll tax it avoids, so the same budget buys more inside the HSA; a direct contribution is grossed up by income tax only. Employer money is added first and reduces the room remaining. Whatever budget is left goes to the Roth, capped by your remaining room. Both balances grow at the same rate, then the HSA is taxed according to how it is used: nothing for qualified medical expenses, income tax for non-medical use after the penalty-free age, and income tax plus a 20% penalty before it.
Contribution limits, the catch-up amount and the penalty-free age come from the IRS figures for the selected tax year. Return, tax rates and the share spent on medical care are your assumptions and are labelled as such.
Reviewed when the IRS publishes new limits, and quarterly otherwise. Editorial conclusions do not depend on affiliate availability.
Eligibility, contribution limits, qualified expenses and the rules on non-medical distributions.
Annual IRA contribution limits.
Annual contribution limits and high-deductible plan thresholds.
On tax treatment alone, yes: contributions, growth and qualified medical withdrawals are all untaxed, and no other account manages all three. On flexibility, no, because only medical use is untaxed on the way out. That is why the honest answer is an order rather than a winner.
For 2026 the limits are $4,400 for self-only coverage and $8,750 for family coverage, with an extra $1,000 from age 55. That limit covers everything put in during the year, including whatever your employer contributes, which is why employer money reduces your own room.
Yes. The annual limit is a combined one, so an employer contribution reduces what you can add yourself. It is still the first money you should claim, because it is forfeited if you do not.
Before 65 it is taxed as income and penalised a further 20%. From 65 the penalty no longer applies and it is taxed as income, which makes it behave much like a traditional retirement account.
A payroll contribution avoids payroll tax as well as income tax. A contribution you make directly is deductible but still pays Social Security and Medicare tax, so the same take-home budget buys measurably less. The calculator above lets you compare the two routes.
Not if you can afford them from cash flow. There is no deadline for reimbursing yourself, so keeping the receipts and leaving the HSA invested lets the balance grow untaxed for years and still come out untaxed later.
Then this is settled and the Roth takes the budget. Eligibility depends on being enrolled in a qualifying high-deductible health plan without disqualifying other coverage, so it is worth confirming with your plan rather than assuming.