Skip to content
← Back to Blog

The $82,320 Cost of Moving Your HSA to Cash for 3 Years Over AI Bubble Fears (2026 Math)

"Should I move my HSA to cash before the AI bubble pops?"

That's the question a lot of people are quietly typing into search bars right now. Mr. Money Mustache's recent piece, "Will the AI Bubble Destroy our Retirement?", put words to a feeling a lot of investors have been carrying since the market kept climbing to "super-duper-crazy" levels. And if you've spent years building an invested HSA balance — one of the few accounts that gives you a full deduction on the way in, tax-free growth the whole way through, and tax-free withdrawals for qualified medical expenses — the idea of watching a chunk of it evaporate in a correction is uncomfortable.

So some people do something that feels safe: they move the whole HSA balance to the cash sweep account "until things settle down." It feels responsible. It's also, historically, one of the more expensive decisions you can make with a long-horizon account — and the actual cost is calculable, not a vibe. Let's run it.

The worked example: Jordan's $112,000 decision

Say you're Jordan, 45, self-employed, maxing the family HDHP contribution limit each year. Over 12 years of investing your HSA balance in a total market index fund, you've built it up to $112,000. You're 20 years from 65, when Medicare coordination becomes relevant and your HSA strategy needs to shift anyway (more on that below).

After reading about AI valuations, you decide to move that $112,000 into your HSA's cash account, which is currently paying 4.00% APY, and stay there for three years "to be safe," planning to move back into the market once things look calmer.

Here's what that costs, isolating just this one decision (contributions and their own growth are a separate question — see the triple-tax calculator breakdown for how those compound on top of this):

If you'd stayed fully invested at a long-run average return of roughly 9% nominal for all 20 years: $112,000 × 1.09²⁰ ≈ $627,650

If you move to cash at 4.00% for 3 years, then back to the market for the remaining 17 years: $112,000 × 1.04³ × 1.09¹⁷ ≈ $545,330

The gap: $82,320.

That's the price of a 3-year "wait and see" — not because cash is a bad rate (4.00% is a genuinely decent HSA cash yield right now, better than most bank savings accounts), but because it's being compared against 17 fewer years of compounding at the higher rate inside an account you don't touch until 65. This is the same mechanism behind the $146,112 gap between HSA cash and invested balances — except here it's triggered by a temporary panic move, not a starting allocation choice.

This is the kind of analysis Trivexano runs for you — so you don't have to build the compounding spreadsheet yourself every time a headline spooks you.

How the cost scales with how long you stay in cash

The longer the "wait and see" period, the steeper the cost, because you're not just missing 3 years of higher return — you're missing 3 years of higher return compounding on top of itself for the rest of the horizon. Using Jordan's same $112,000 starting balance and 20-year horizon:

Years in cash before returning to equitiesBalance at year 20Cost vs. staying invested
0 (stayed invested)$627,650—
1 year$598,820$28,830
2 years$571,310$56,340
3 years$545,330$82,320
5 years$496,395$131,255

Notice the cost isn't linear — it accelerates. Each additional year in cash isn't just losing that year's spread; it's losing the compounding of everything that would've built on top of it. This is why "I'll just sit out a couple years" almost always costs more than it feels like it should.

But this cuts both ways — here's the honest counterpoint

The math above assumes the market actually delivers something close to its long-run average over the full 20 years. If the AI bubble MMM is writing about actually bursts the way the dot-com bubble did in 2000-2002 — a roughly 49% peak-to-trough drawdown in the Nasdaq — and you happened to move to cash right before that drop, you'd have dodged real losses and could re-enter at cheaper prices.

The honest problem is timing. Nobody rings a bell at the top. MMM's piece makes a version of this same point: markets have looked "obviously overvalued" many times in history, and the people who got out based on that feeling frequently missed years of subsequent gains before the correction they were waiting for ever showed up — or it showed up smaller and later than expected. The data on professional and amateur market timers consistently shows most underperform simply staying invested, because the cost of being wrong about timing (missing the recovery) tends to outweigh the benefit of being right about timing (dodging the drop).

So the real question isn't "is a correction possible" — it almost always is, at some point. It's: do you have a specific, evidence-based reason to believe you can time both the exit and the re-entry correctly, or are you reacting to a headline? If it's the latter, the math above is the price tag on that reaction.

What August 2026's data actually says

Before you make this decision based on fear alone, it's worth checking what the underlying economy is actually doing, since that's a better recession signal than stock market valuation headlines alone. As of the August 2026 BLS release:

  • Unemployment: 4.1% — historically still a low, healthy number, not a recession-level reading
  • Payroll employment: +162,000 — solid monthly job growth, not contraction
  • Average hourly earnings: +$0.10 — modest wage growth, consistent with a cooling-but-not-cracking labor market
  • CPI: +0.4% for the month — elevated on a monthly basis (annualizes to something uncomfortably above the Fed's target if it persists), which matters because it erodes the real value of whatever you're earning on that 4.00% HSA cash yield

That last point matters more than people realize: cash isn't "safe" in the sense of preserving purchasing power if inflation keeps running hot. A 4.00% yield against 0.4% monthly CPI (roughly 4.8% annualized if sustained) means your "safe" cash position might barely be treading water in real terms, while equities have historically outpaced inflation over any 15-20 year window.

None of this proves the market won't correct. It just means the labor market data doesn't currently support "recession imminent" as the trigger for a defensive HSA move — which is a different question than "will valuations correct at some point," which is almost certainly yes, eventually, as it always has been.

What actually changes as you approach 65

There is a legitimate, non-panic reason to reduce your HSA's equity allocation as you get closer to 65 — it's just a glide path, not a full exit triggered by a headline. As you approach Medicare eligibility, a few things shift:

  1. You'll likely need to stop contributing 6 months before enrolling in Medicare to avoid a penalty — a mistake that's cost people real money, detailed in the $2,200 HSA Medicare lookback mistake.
  2. Your HSA becomes more flexible after 65 — non-medical withdrawals are taxed as ordinary income but no longer penalized, similar to a traditional 401(k), which changes how much volatility risk makes sense to carry.
  3. A shorter time horizon to a spending phase generally argues for gradually shifting a portion toward bonds or cash in the years right before 65 — but that's a planned, gradual rebalancing, not an all-at-once reaction to a September headline.

Run your own numbers before you move anything

Jordan's $112,000, 4.00% cash rate, and 9% long-run equity assumption are one example — your balance, your years-to-65, your actual HSA cash yield, and your honest read on how long you'd realistically stay in cash will all change the number. If you're 15 years out instead of 20, or your balance is $30,000 instead of $112,000, the dollar cost shrinks — but the percentage cost of the decision stays roughly the same.

You can model this for your specific situation at Trivexano — plug in your actual balance, your HSA's current cash rate, and your years to 65, and see the real cost of waiting it out versus staying invested, instead of guessing based on how the headlines feel this week.

Sources

Ready to optimize your HSA strategy?

Optimize Your HSA Strategy Free