HSA Triple-Tax Calculator: 5 Inputs That Turn $8,750 Into $358,710 (and When Medicare at 65 Changes the Answer)
It's September 19, 2026. Picture a 41-year-old with family HDHP coverage who has put $0 into an HSA this year. They're in the 24% federal bracket, and they're deciding whether to catch up on the $8,750 family limit or spend the cash elsewhere. Payroll contributions have to run through the remaining paychecks. That's roughly seven or eight biweekly checks, so check your own calendar, which works out to $1,094 to $1,250 per paycheck.
Most people decide this by feel: "HSAs are good, I think." I ran the numbers on my own situation before deciding, and I've been walking friends through the same math since. The result depends on five inputs, and swapping one of them can flip the answer. Below is the formula, a worked example, and where it breaks.
What the latest numbers say (and what they don't)
The Bureau of Labor Statistics' Major Economic Indicators page shows August 2026 at +0.4% CPI, 4.1% unemployment, +162,000 payroll jobs (preliminary), and +$0.10 average hourly earnings (preliminary).
Here's how I read those for an HSA decision:
- A $0.10/hour raise is small next to the HSA. For someone working 2,080 hours, it's about $208 a year before tax. The payroll-route tax savings on a full family HSA is $2,769 (calculated below). That's about 13 times the raise.
- A 0.4% monthly CPI reading isn't a forecast. Repeated for twelve months it would compound to roughly 4.9%. One month doesn't do that, but it's a reminder that cash sitting in an HSA at a low rate can lose purchasing power.
- Mortgage rates are on hold for now. NerdWallet's Mortgage Rates Today, Friday, September 18 reported no change as bond markets digested the week's Fed news. If you're weighing extra principal payments against HSA money, I've used a 7% mortgage as a labeled example below. Swap in your own rate.
None of this tells you what to do. It just shows the pay-raise and rate backdrop isn't going to solve the problem for you.
The 5-input formula
Input 1: Your contribution. The 2026 limits are $4,400 self-only and $8,750 family, plus $1,000 if you're 55 or older.
Input 2: Your marginal federal rate. Use your marginal bracket, not your average rate.
Input 3: Your payroll-tax treatment. Contributions through an employer's cafeteria plan also skip the 7.65% FICA tax. Contributions made on your own and deducted at filing skip income tax only. Some states (California and New Jersey, for example) don't conform, so check yours.
Input 4: Your return and time horizon. These drive the tax-free growth.
Input 5: Your withdrawal plan. Qualified medical spending comes out tax-free. Non-medical withdrawals after 65 are taxed as ordinary income.
The year-one formula is simple:
Year-one savings = contribution × (federal rate + 7.65% if payroll)
The growth formula for level yearly contributions at the end of each year is:
Balance = contribution × ((1 + r)ⁿ − 1) ÷ r
Here r is the annual return and n is the number of years.
Year-one savings at three brackets ($8,750 family limit, payroll route)
| Bracket | Income-tax savings | FICA savings (7.65%) | Total year-one |
|---|---|---|---|
| 22% | $1,925 | $669 | $2,594 |
| 24% | $2,100 | $669 | $2,769 |
| 32% | $2,800 | $669 | $3,469 |
For self-only coverage at $4,400 and the 24% bracket, the same formula gives $1,393. I walk through the bracket-by-bracket version in HSA triple-tax advantage formula: exact savings at 22%, 24%, and 32%.
This is the kind of analysis Trivexano runs for you, so you don't have to build the spreadsheet yourself.
Worked example: $8,750 a year for 20 years at 7%
Take the 41-year-old above and assume a 7% annual return. That's an assumption for illustration, not a forecast. Contributions are level at $8,750 a year for 20 years.
HSA (payroll route):
- Balance = 8,750 × ((1.07²⁰ − 1) ÷ 0.07) = 8,750 × 40.995 = $358,710
- You contributed $175,000. Growth is about $183,710.
- If it all goes to qualified medical costs, none of it is taxed.
Same paycheck dollars in a taxable account:
- $8,750 of gross pay leaves $5,981 after 24% income tax and 7.65% FICA (a 31.65% haircut).
- $5,981 a year for 20 years at 7% grows to about $245,179.
- Basis is $119,613, so gains are about $125,566. At 15% long-term capital gains, tax is about $18,835, leaving about $226,344.
The gap: $358,710 − $226,344 = $132,366.
That comparison is generous to the taxable account. It assumes no yearly tax drag on dividends and no rebalancing taxes, and real accounts usually have both.
Here's the honest counter-case. If you withdraw the HSA for non-medical spending after 65 at a 24% retirement bracket, you'd keep 76%:
- $358,710 × 0.76 = $272,620
- That's still $46,276 ahead of the taxable account, but the lead shrinks by nearly two-thirds.
A retirement bracket of 12% or 32% would move that number materially. Your numbers will differ based on your specific situation. Bracket, state tax, and years to go are the biggest levers.
Sensitivity: return rate and horizon
$8,750 a year, payroll route:
| Horizon | Contributed | At 4% | At 7% | At 10% |
|---|---|---|---|---|
| 10 years | $87,500 | $105,053 | $120,894 | $139,452 |
| 20 years | $175,000 | $260,558 | $358,710 | $501,156 |
| 30 years | $262,500 | $490,872 | $826,532 | $1,438,338 |
Time matters more than return. Going from 20 to 30 years at 7% adds about $468,000. Going from 7% to 10% at 20 years adds about $142,000. If you're 55, the 30-year column isn't yours, and the 10-year row is much more relevant. For a fuller version of the 30-year math, see How $8,750 a year becomes $826,000 tax-free over 30 years.
Where else could that money go?
Mortgage paydown (using a 7% example)
Send $5,981 of after-tax money to principal at 7% for 20 years and you avoid about $23,143 in interest-plus-principal growth. The same paycheck through the HSA at 7% reaches $33,860 if spent on medical costs.
The break-even is the useful number. The HSA's investment return only needs to be about 5.0% to match a 7% mortgage paydown if withdrawals are tax-free. If you plan to take non-medical withdrawals at 24%, the break-even rises to about 6.4%.
The trade-offs are real, though. Mortgage paydown is a guaranteed return and an HSA isn't. Extra principal is also illiquid. For the full bracket-by-bracket comparison, see the Fed-hike mortgage checklist.
"Free money" for a home purchase
NerdWallet's Locked Out: Should You Take 'Free Money' to Buy a Home? says homebuying assistance can lower upfront costs but comes with trade-offs. The math question is what the strings cost. As a labeled example, if an assistance program comes with a loan rate 0.25% higher on a $300,000 mortgage, that's about $750 a year in extra interest at the start. Add that to any repayment or recapture terms, and compare the total to the HSA's year-one savings of $2,769. Neither option automatically wins.
Travel rewards
NerdWallet's How I Earned 1 Million Points With My Family Cruise Booking is a good reminder that rewards are a percentage of spending you were already going to do. As an illustrative assumption, 5 miles per dollar on $8,750 of spending at 1.2 cents per mile is about $525. That's real value, but it doesn't compete with a $2,769 tax saving on a dollar you'd otherwise pay in tax. For a deeper head-to-head, see Chase Sapphire's 100,000-point offer vs. the HSA triple-tax advantage.
Side income
NerdWallet's Quiz: What's the Best Way to Make Money? is about side hustles, and side hustles matter here for a specific reason. If you're self-employed, your HSA deduction cuts income tax but not self-employment tax. That's the difference between the $2,769 payroll figure and $2,100 at 24%, a gap of $669. Details are in the self-employed HSA deduction breakdown.
You can model this for your specific situation at Trivexano.
Investment allocation for the HSA balance
Here's the framework I used for allocation. It's a starting point, not a recommendation for you.
- Cash buffer first. For 2026, the IRS minimum family HDHP deductible is $3,400. Your plan's is probably higher. Keep at least your expected out-of-pocket costs for the year in cash.
- Invest the rest. In year one of the family example, that's $8,750 − $3,400 = $5,350 invested.
- Price the buffer. Holding $3,400 at 1% instead of 7% costs about $204 a year in foregone growth. That's insurance against selling investments at a bad time to cover a bill.
- Watch fees. HSA custodians often charge platform or fund fees. A 1% drag on the 20-year example shifts the balance materially. See the 1% advisor fee comparison.
If you leave the whole balance in cash for two decades, the growth column above shrinks toward your contributions alone. The $146,112 cash-account cost analysis covers that in detail.
Medicare at 65: where the formula can go negative
Once you're enrolled in Medicare, you can't keep contributing. The trap is timing. If you apply for Medicare Part A (or start Social Security) after 65, Part A coverage can be retroactive up to six months. Contributions made during those months can count as excess.
Example (labeled hypothetical): Say your eligibility effectively ends July 1, and you'd already contributed the full $8,750 family limit.
- Allowed contribution: 6 ÷ 12 × $8,750 = $4,375
- Excess: $4,375
- Excise tax: 6% × $4,375 = $262.50 per year until corrected
- Lost deduction on the excess at 24%: $1,050
The fix is usually to stop contributing about six months before you plan to enroll, then withdraw any excess before your tax deadline. The full rule and a more detailed worked case are in the 6-month lookback rule mistake. After you enroll, you can still spend the balance tax-free on qualified expenses, including Medicare premiums (other than Medigap).
Run your own numbers: the checklist
Before you set your payroll election, write down these seven values:
- Your coverage type and 2026 limit ($4,400, $8,750, or plus $1,000 if 55+)
- Your marginal federal bracket and state treatment
- Whether your contributions run through payroll (FICA savings) or on your own (income tax only)
- Years until you'd plausibly need the money, or until 65
- An assumed return range (try 4%, 7%, and 10%)
- Your competing uses: mortgage rate, assistance-program strings, rewards value
- Your Medicare enrollment date and the six-month lookback
For me, the surprise was how few of those numbers are fixed. The bracket, the horizon, and the Medicare date changed my answer more than the market did.
If you want to skip the spreadsheet, Trivexano lets you plug in your own bracket, contribution, return assumptions, and age, and see the year-one savings, the 20-year gap, and the Medicare cutoff side by side. The numbers will speak for themselves, whichever way they point for you.
Sources
- Major Economic Indicators Latest Numbers — Bureau of Labor Statistics
- How I Earned 1 Million Points With My Family Cruise Booking — NerdWallet
- Locked Out: Should You Take ‘Free Money’ to Buy a Home? — NerdWallet
- Quiz: What’s the Best Way to Make Money? — NerdWallet
- Mortgage Rates Today, Friday, September 18: No Change — NerdWallet