๐Ÿ“ˆ QuantCurb
๐Ÿ“… Updated September 2026โ€ขโฑ๏ธ 8 min readโ€ข๐Ÿฉน Salary & Taxes

401(k) vs. HSA: Why the Same $500 Doesn't Save You the Same Amount of Tax

Every pre-tax deduction guide tells you the order to prioritize: employer match, then HSA, then max the rest of your 401(k). Almost none of them show you why HSA ranks above a plain 401(k) dollar for dollar beyond "triple tax advantage." The real, quantifiable reason is narrower and more concrete: an HSA contribution made through your employer's payroll runs through a Section 125 cafeteria plan, which exempts it from FICA wages too. A 401(k) contribution never does. Same $500, same federal bracket, different total tax saved โ€” here's the exact gap, at different income levels.

โš ๏ธ Full disclosure: quantcurb's own Salary Tax Estimator has a 401(k) contribution field and a Health Insurance field, but no dedicated HSA input โ€” and its FICA line is computed off your full gross pay regardless of either deduction. That's the correct treatment for a 401(k). It understates the real-world benefit of a true payroll HSA contribution, which does reduce FICA wages. See the "how to adjust" section below for the by-hand correction.

See your federal + FICA baseline first

Run your salary through the estimator to see your bracket and current FICA withholding, then come back here to see exactly how much extra an HSA-via-payroll dollar saves over the same 401(k) dollar.

Why HSA and 401(k) aren't treated the same way

Both accounts let you defer income tax on the dollars you contribute. That part is identical, and it's the part most paycheck-deduction guides stop at. The difference is what each type of deduction does to your FICA wages โ€” the number Social Security (6.2%) and Medicare (1.45%) are actually calculated from:

401(k) elective deferral

Excluded from Box 1 (federal taxable wages) on your W-2. Still fully included in Box 3 (Social Security wages) and Box 5 (Medicare wages). You pay full FICA on every 401(k) dollar, the same as if you'd taken it as cash.

HSA contribution via payroll

Made through your employer's Section 125 cafeteria plan, the same pre-tax mechanism that exempts your health insurance premium from payroll tax. Excluded from Box 1 and Box 3 and Box 5. You pay no FICA on it at all.

Nobody designed this as a "HSA beats 401(k)" feature โ€” it's a side effect of which section of the tax code each account's pre-tax status comes from. A 401(k) deferral is authorized under IRC ยง401(k) itself, which only ever touches income-tax wages. An employer-sponsored HSA contribution rides through IRC ยง125, which was written broadly enough to also exempt qualifying benefits from employment tax. That one difference in which statute does the exempting is the entire gap this piece quantifies.

Worked example: the same $500, two accounts

Take a single filer with $70,000 in wages โ€” squarely in the 2026 22% federal bracket ($50,401โ€“$105,700) and well under the $184,500 Social Security wage base, so the full 7.65% FICA rate applies to every additional dollar. Contribute $500 one of two ways:

Where the $500 goesFederal savings (22%)FICA savings (7.65%)Total tax saved
401(k)$110.00$0.00$110.00
HSA (via payroll)$110.00$38.25$148.25

Identical contribution, identical bracket, identical intent โ€” and the HSA route saves $38.25 more, or 35% more in combined tax savings, purely because of the FICA exemption. Scale that to a full year's HSA contribution and the gap becomes real money: maxing the 2026 self-only HSA limit of $4,400 (IRS Revenue Procedure 2025-19) instead of putting the same $4,400 into a 401(k) saves an extra $336.60 in FICA alone, on top of whatever federal and state savings both accounts share equally. Family-coverage filers maxing the $8,750 family HSA limit the same way save an extra $669.38 in FICA.

What changes once you're above the Social Security wage base

The 7.65% edge above assumes every dollar is still subject to the full Social Security rate. Once your wages cross the $184,500 Social Security wage base for 2026, the 6.2% portion stops applying to further income โ€” Social Security is done taking its cut for the year, 401(k) or not. Only the uncapped 1.45% Medicare portion is still live, so the HSA edge shrinks from 7.65% to 1.45% of the contribution. If you're also already past the $200,000 Additional Medicare Tax withholding threshold, it's actually 2.35% (1.45% + 0.9%), since Medicare wages in that band carry the extra levy too. Same $500 contribution, single filer at $250,000 in wages โ€” squarely in the 2026 32% bracket ($201,776โ€“$256,225) and already well past both the Social Security cap and the $200,000 Additional Medicare Tax threshold:

Where the $500 goesFederal savings (32%)Medicare savings (2.35%)Total tax saved
401(k)$160.00$0.00$160.00
HSA (via payroll)$160.00$11.75$171.75

The edge is smaller in dollar terms at this income ($11.75 instead of $38.25) but doesn't disappear โ€” it just tracks whichever FICA rate is still live on your next dollar of wages. The one group for whom the gap is largest: anyone whose wages sit entirely below the Social Security wage base, where the full 7.65% applies to the whole contribution.

The catch: this only works through payroll

The FICA exemption is specifically a payroll mechanic, not a property of HSAs in general. If you contribute to your HSA directly โ€” writing a check or transferring money yourself, then taking the above-the-line deduction on Schedule 1 when you file โ€” you still get the federal (and usually state) income-tax deduction, but you already paid FICA on that money when it was withheld from your paycheck as regular wages. There's no mechanism to claim it back. The FICA savings this piece describes exist only for contributions made by payroll deduction into an employer-sponsored HSA, under your employer's Section 125 plan โ€” the same channel a 401(k) deferral or a pre-tax health insurance premium runs through, just with a wider tax exemption attached.

One more wrinkle worth naming: an employer HSA match or direct employer contribution is already outside both employee wages and FICA wages entirely โ€” it was never yours to be taxed on in the first place, so it doesn't factor into either side of this comparison.

How to adjust the calculator's output by hand

โš ๏ธ Same honest limitation this site's other calculator-gap pieces flag: the Salary Tax Estimator's federal calculation is itself an approximation โ€” a single bracket table applied without modeling filing status beyond single, and its FICA line always uses your full gross pay. That 's correct for a 401(k) deferral. It's not correct for a true payroll HSA contribution.

1. Enter your payroll HSA contribution in the Health Insurance field

Along with your salary and 401(k) percentage. The calculator already treats that field as a federal/state pre-tax deduction, so this step gets the income-tax half of the savings right โ€” it's the FICA half that still needs a manual correction below.

2. Add 7.65% of whichever part of the contribution is still under the $184,500 Social Security wage base (1.45โ€“2.35% for the rest)

If your wages plus the contribution straddle $184,500 โ€” say wages of $184,700 with a $500 contribution โ€” split it: the $300 that's still under the cap saves the full 7.65%, the remaining $200 only saves the uncapped 1.45% (2.35% if you're also already past the $200,000 Additional Medicare Tax threshold). That's the FICA savings the calculator's Health Insurance field doesn't capture on its own.

3. Add that FICA amount to the calculator's take-home figure

Your real net pay, with a payroll HSA contribution, is slightly higher than step 1's output because the calculator's FICA line doesn't currently reduce for this deduction type. California and New Jersey filers: both states tax HSA contributions โ€” they don't conform to the federal exclusion โ€” so subtract back the state-tax portion of step 1's savings before adding the FICA correction; only the federal and FICA savings are real for those two states.

FAQ: HSA vs. 401(k) FICA savings

Does this mean I should put an HSA before my 401(k)?

Most standard deduction-ordering guides already put HSA ahead of 401(k) beyond the employer match, for reasons that include this FICA gap plus the HSA's separate triple-tax-advantage (tax-free growth and tax-free qualified withdrawals, which a traditional 401(k) doesn't offer). This piece isn't reordering that advice โ€” it's quantifying the one piece of it (the FICA difference) that's rarely put in dollar terms.

Does a Roth 401(k) change this?

No. Roth 401(k) contributions are already after-tax for federal income tax, and like traditional 401(k) contributions, they were never exempt from FICA either way. The FICA comparison in this piece is specifically about pre-tax payroll deductions, which only the HSA (and a traditional 401(k), for federal tax only) qualifies as.

What about an FSA โ€” does it get the same FICA break?

Yes. A Flexible Spending Account also runs through the Section 125 cafeteria plan, so payroll FSA contributions are exempt from FICA wages the same way an HSA is. The mechanism in this piece applies to any true Section 125 benefit, not HSAs specifically โ€” HSA is simply the one most often compared directly against a 401(k) in \"where should my next dollar go\" advice.

Why doesn't quantcurb's calculator just model this?

The calculator's current Health Insurance field is a flat annual dollar amount with no way to distinguish a true Section 125 payroll deduction from a different kind of pre-tax arrangement, and correctly modeling it means splitting the FICA line into a separate, deduction-aware calculation rather than the single gross-pay formula it uses today โ€” which is why this piece exists as the honest interim answer instead of quietly getting it wrong.

AG

Anand Godar

Financial engineer and founder of QuantCurb. Former fintech data scientist building source-cited financial calculators for everyday wealth decisions.

Learn more โ†’