SwitchWize decision guide

HSA or Roth IRA: which should get your next dollar?

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.

SwitchWize Research DeskUpdated August 15, 2026Data checked August 15, 20269 min read

What you can expect

  • No login required
  • No credit pull
  • Assumptions shown
  • Sources included

Quick answer

Claim every dollar of employer HSA money first, because it is forfeited otherwise. Then fill the HSA through payroll, where the same take-home budget buys the most. Then the Roth. The order matters more than the choice.

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.

How we calculated this

Test your situation

See your result in dollars

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.

%

Over a lifetime this is higher for most people than they expect. It is the assumption that decides how strong the HSA is.

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 breakdown

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.

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

What matters most

Most spendable from the same budget

HSA

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.

Flexibility about what the money is for

Roth IRA

Roth money is not tied to medical spending. HSA money used for anything else is taxed, and penalised before the penalty-free age.

Tax treatment at its best

HSA

Contributions, growth and qualified medical withdrawals are all untaxed. No other account does all three.

Side-by-side comparison

Tax going in

This is why a fixed take-home budget buys more inside an HSA.

HSA
None, and no payroll tax either when contributed through payroll
Roth IRA
Paid in full first

Tax while growing

HSA
None
Roth IRA
None

Tax coming out

HSA
None for qualified medical expenses; taxed otherwise
Roth IRA
None on a qualified withdrawal

What the money can be used for

HSA
Anything, but only medical use is untaxed
Roth IRA
Anything, with no restriction

Who can contribute

HSA
Only those on an eligible high-deductible health plan
Roth IRA
Anyone under the income limit

Employer contributions

HSA
Common, and forfeited if unclaimed
Roth IRA
Not a feature

What could go wrong

Health savings account

What needs to work
Your health plan makes you eligible, and the money eventually goes on qualified medical expenses.
Common problem
Leaving the balance in cash rather than investing it, or drawing on it early for something unrelated to healthcare.
What it could cost
A non-medical withdrawal before 65 is taxed as income and penalised a further 20%, which turns the best account here into the worst.
How to prepare
Not reversible once withdrawn. Receipts for past medical costs can be reimbursed later, which is why keeping them matters.

Roth IRA

What needs to work
You stay under the income limit and leave the earnings alone until 59½.
Common problem
Filling the Roth first while an employer HSA contribution goes unclaimed, which forfeits money outright.
What it could cost
The forfeited employer contribution, plus the payroll tax the HSA route would have saved.
How to prepare
Contributions can be withdrawn at any time. The forfeited employer money cannot be recovered.

A simple backup plan

Employer money, then HSA, then Roth

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.

  1. 1Claim every dollar of employer HSA money. It is forfeited if you do not, and no tax treatment beats a guaranteed contribution.
  2. 2Fill the rest of the HSA through payroll, where the contribution escapes payroll tax as well as income tax.
  3. 3Put whatever budget remains into the Roth IRA, up to your remaining room.
  4. 4Keep receipts for medical costs you pay from cash flow. They can be reimbursed from the HSA years later, which is what makes the account so flexible in practice.
  5. 5Invest the HSA balance rather than leaving it in cash, or the tax advantage has nothing to work on.

Educational illustration only. The right amount depends on your needs and timing.

What to do next

  1. Question 1

    Are you on an HSA-eligible health plan?

    Yes: The HSA is available, so check for employer money first.

    No: The Roth takes this budget. Confirm eligibility rather than assuming it.

  2. Question 2

    Is there employer HSA money you have not claimed?

    Yes: Claim it before anything else on this page.

    No: Fill the HSA through payroll next.

  3. Question 3

    Will most of this eventually go on medical care?

    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.

Plain-text decision tree. Are you on an HSA-eligible health plan? If yes, The HSA is available, so check for employer money first. If no, The Roth takes this budget. Confirm eligibility rather than assuming it. Is there employer HSA money you have not claimed? If yes, Claim it before anything else on this page. If no, Fill the HSA through payroll next. Will most of this eventually go on medical care? If yes, The HSA is the strongest account available to you. If no, It still works as a retirement account after 65, but the Roth is more flexible.

When to check again

  • The IRS publishes new contribution limits, which happens annually.
  • You change health plan, which can start or stop HSA eligibility.
  • Your employer changes what it contributes.
  • You turn 55, when the catch-up contribution begins.

Methodology

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.

  • Account and investment fees are not modelled. Some HSAs charge them and the difference matters on small balances.
  • HSA eligibility depends on your health plan meeting the IRS definition, which this does not check for you.
  • State tax treatment of HSAs is not modelled and differs in a small number of states.
  • The contribution limit is a combined annual limit across employer and employee money, which is why employer contributions reduce your room.
  • This is education, not tax advice.

Reviewed when the IRS publishes new limits, and quarterly otherwise. Editorial conclusions do not depend on affiliate availability.

Sources

Frequently asked questions

Is an HSA better than a Roth IRA?

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.

What are the 2026 HSA contribution limits?

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.

Does my employer contribution count against my limit?

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.

What happens if I use HSA money for something other than medical expenses?

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.

Why does contributing through payroll matter?

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.

Should I pay current medical bills from the HSA?

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.

What if I am not HSA-eligible?

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.

Continue the decision