WhitmanTrading

Roth 401(k) vs HSA Investing

A Roth 401(k) takes contributions after tax and allows qualified withdrawals untaxed, so the shelter covers growth and the exit. An HSA can take contributions before tax through payroll and also allows untaxed withdrawals for medical costs, which shelters both ends rather than one.

Both of these shelter everything that happens inside them. The difference is at the entrance and the exit — and one of them manages to be untaxed at both, for one category of spending that almost everybody eventually has.

What each one is

A Roth 401(k) takes contributions after tax, shelters all growth, and allows qualified withdrawals without further tax. Roth 401(k) covers it.

An HSA can take contributions before tax, shelters all growth, and allows untaxed withdrawals for qualified medical costs — and the balance can be invested rather than left in cash. HSA investing covers that, and traditional IRA covers the deduction-now alternative.

One is sheltered at one end and the other at both. Whereas the Roth’s contribution is made from money already taxed, the health account’s can avoid tax going in and coming out, provided the money is eventually spent on medical care.

Where they differ

A long rising series with a marked untaxed exit.
Taxed in, sheltered throughout, untaxed out. Illustrative chart - not real market data.

How many ends are sheltered. The Roth shelters growth and the exit. The health account can shelter the contribution as well — and through payroll it also avoids payroll tax, which is a saving no retirement account offers at any income level.

A long rising series with both entry and exit marked as untaxed.
Untaxed in, sheltered throughout, untaxed out for one kind of spending. Illustrative chart - not real market data.

What the exit is conditional on. The Roth’s untaxed withdrawal requires age and holding conditions. The health account’s requires the money to go on qualified medical costs — a narrower condition, and one that most people meet eventually.

A stretch where two sheltered balances separate slightly.
Where the second layer of shelter shows up. Illustrative chart - not real market data.

What decides eligibility. The Roth depends on your employer offering the plan. The health account depends on the kind of health cover you hold, which can change when you change job — so eligibility can end abruptly for reasons unrelated to your finances.

Whether the money has a competing job. The Roth’s balance has one purpose. The health account’s is also the thing that pays a medical bill, so investing it is a statement that you can cover those costs from somewhere else.

Where they agree

A long rising series with a shaded sheltered region.
Both shelter growth completely while the money stays inside. Illustrative chart - not real market data.

Both shelter growth entirely. No tax on dividends, interest or gains while the money remains inside either.

Both are capped annually, and neither cap carries forward, so an unused year is gone.

Both are eaten by fund charges identically. Over thirty years, 5 basis points removes 1.5% of the final pot, 20 removes 5.8%, 75 removes 20.2% and 150 removes 36.5%.

And both sit through drawdowns. On this site’s shared series 95% of bars sat below a prior peak, with the longest wait for a new high at 73 bars.

Which one to use

A series showing the compounding effect of an annual charge.
What a 75-basis-point charge removes over thirty years. Illustrative chart - not real market data.

Fill the health account first when you can pay medical costs from cash flow. Both ends untaxed beats one end untaxed, and the payroll route adds a saving the Roth cannot offer. This is the strongest arrangement available, and it requires the money to be genuinely long-term.

A long rising series with an early withdrawal point marked.
Where the health balance is needed for its actual purpose. Illustrative chart - not real market data.

Fill the Roth first when the health balance is your only medical cushion. An invested balance is a promise not to need the money soon, and a medical bill does not wait for a good price to sell at.

Fill both if you are eligible and can afford to. The caps are separate and neither carries forward.

And take the payroll route for health contributions where the employer offers one, since it avoids a tax that nothing else on this page touches.

Why investing the health balance is the unusual part

A series annotated with the drag from an annual charge.
Costs remove the same share from either wrapper. Illustrative chart - not real market data.

Because the account was designed as a spending account and works best as a long-term one. Left in cash it shelters nothing worth sheltering; invested for decades it becomes the most tax-efficient holding most people have access to — and the provider often requires a minimum cash balance before allowing it.

A section of a series showing a sharp decline.
A forced sale during a decline is the risk of investing a reserve. Illustrative chart - not real market data.

And because the whole advantage is undone by a forced sale. If a bill arrives while the balance is down, the tax treatment saved nothing — which is why the cushion question comes before the tax question rather than after it.

The original data

Of the 24,971 videos in the search corpus, no title compares these two directly. Roth 401(k)s appear in 2 videos at a median of 285,738 views. Health savings accounts appear in 2 videos at a median of 133,454 views.

A series with several discontinuities, the largest marked.
A change of health cover can end eligibility without warning. Illustrative chart - not real market data.

Two videos each, and six-figure medians on both. These are the two largest demand-to-supply gaps in the entire corpus — enormous interest, almost nothing made — and the arrangement described here, using the health account as a long-term investment, appears in neither.

A rising series cut short at a decision point.
Eligible for both, with cash for medical bills. Which first? Illustrative chart - not real market data.

On the chart above the health account wins and it is not close. Sheltered at both ends, plus a payroll-tax saving the other cannot match.

When it fails

The characteristic failure is investing a health balance that is also the only money available for medical costs. The tax treatment is genuinely the best available and it is worth nothing if a bill forces a sale at a bad moment — on this site’s shared series 95% of bars sat below a prior peak and the longest wait for a new high was 73 bars, so selling into a decline is the ordinary case rather than bad luck. Cash is correct for a balance with a near-term job, and every tax argument on this page is downstream of that.

A second failure is assuming eligibility is permanent. It follows the health cover you hold, which changes with employment.

A third is leaving the balance in cash by default when the money genuinely is long-term, forfeiting the shelter that made the account valuable.

A fourth is ignoring the platform’s charges, which remove 20.2% of a thirty-year pot at 75 basis points regardless of the wrapper.

And a fifth is missing an employer match on the retirement side while optimising the health account, since a match outweighs everything discussed here.

Roth 401(k) covers the after-tax contribution and the access rules. HSA investing covers investing a health balance rather than spending it. And traditional IRA covers the deduction-now alternative.

What I actually do

The health account is the only wrapper that can avoid tax at both ends, and almost nobody uses it that way because the balance feels like it is for medical bills. If you can pay those from cash flow, leaving it invested is the most tax-efficient arrangement available.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.