Pre-tax guide
Which states tax your 401(k) and HSA contributions (2026)
By Barron Hansen, Founder · Updated July 26, 2026
Pre-tax money never reaches the wage figure your state starts from. Your employer subtracts a 401(k) deferral, an HSA contribution or a health FSA reduction before Box 1 of your W-2 is written, and almost every jurisdiction that taxes wages begins its own arithmetic from that federal number or from federal taxable income. Nothing has to be legislated for the exclusion to carry across. It arrives with the starting point. What breaks the pattern is a state that writes its own definition of compensation instead. Pennsylvania and New Jersey both do, and between them they tax most of what a payroll system treats as pre-tax. The rest decouple on a single item each: California on health savings accounts, Massachusetts on traditional IRAs, and Alabama and New York on the pension contributions public employees make under Section 414(h). No two of the exceptions work the same way, and the one that reaches the most ordinary paychecks is the HSA. The table below gives each state's rule, what it adds back, and what it still leaves alone.
Which states tax a pre-tax contribution?
Divergence is narrow and specific. 6 of the 42 jurisdictions that tax wages add at least one pre-tax item back into their own base, and no two of them add back the same set. Find your state below. If it is not listed, your contribution reduces state taxable wages the way it reduces federal ones.
| State | Taxed when you contribute | Still excluded |
|---|---|---|
| California | HSA contributions | 401(k) deferrals, health FSA, dependent-care FSA, pre-tax health premiums, commuter benefits |
| New Jersey | HSA contributions, health FSA, dependent-care FSA, pre-tax health premiums | 401(k) deferrals, commuter benefits |
| Pennsylvania | 401(k) deferrals, dependent-care FSA | HSA contributions, health FSA, pre-tax health premiums, commuter benefits |
| Alabama1 | 414(h) pension pickups (public employees) | 401(k), 403(b), 457, HSA, cafeteria plans |
| Massachusetts1 | Traditional IRA contributions | 401(k), 403(b), 457, HSA, 414(h) |
| New York1 | 414(h) pension pickups (public employees) | 401(k), 403(b), 457, HSA, IRA |
1. For California, New Jersey and Pennsylvania the two right-hand columns run across the 6 pre-tax lines this calculator collects, and the estimate applies all three rules. The other 3 rows name the plan type their rule turns on, and those are deliberately not applied: there is no 414(h) box and no traditional-IRA box to attach them to, and a public employee is better served by an honest silence than by a number built on a guess. Pennsylvania and New Jersey also tax 403(b), 457, SEP and SIMPLE contributions, which this calculator gathers into a single retirement line.
The other 36 wage-taxing jurisdictions are absent from the table, and 9 more tax no wages at all, so they have nothing to add back. For most of that first group the position rests on the structural rule below rather than on a plan-specific document from that state's revenue department, and we would rather say so than imply a separate confirmation for every state. Which ones those are is published in full: our tax data sources and gap ledger.
Why most states follow the federal exclusion
Start with where a state return begins. Thirty-six states and the District of Columbia compute income tax from federal adjusted gross income or from federal taxable income, according to the Tax Policy Center's survey of state conformity. A 401(k) deferral, a 403(b) contribution, a payroll HSA deduction and a cafeteria-plan salary reduction have all been taken out of those federal figures before the state ever sees them. Conformity is passive here: the state inherits the exclusion by inheriting the number.
Five states build their own base from scratch, and the same survey names them: Alabama, Arkansas, Mississippi, New Jersey and Pennsylvania. Two of the five are where the broad divergences live. Arkansas and Mississippi write their own definitions and still exclude deferrals, which is a useful reminder that an own-base state is not automatically a strict one. Everything else in the table comes from a federal-start state that decoupled from one specific provision, and each of those is narrow by design.
Pennsylvania taxes the contribution itself
Pennsylvania is the strictest state in the country on the way in. Its Personal Income Tax guide says that a direct employee contribution to a qualified employer plan, naming 401(a) and 401(k) plans, 403(a) and 403(b) annuities, SEP and SIMPLE accounts and 457(b) arrangements, is subject to Pennsylvania income tax and to employer withholding at the time of the contribution. Defer part of your pay into a 401(k) here and you save federal tax on it and no state tax at all. Health savings accounts are the one place Pennsylvania follows the federal rules, so HSA and health FSA money is left alone.
That produces the trap this guide exists to name. Pennsylvania does not tax retirement distributions, so it appears near the top of every list of retirement-friendly states, and readers carry the impression backwards into their paycheck math. The exemption is real, and it lands at the other end of the timeline. On the contribution side Pennsylvania is the harshest state there is, which is the opposite of the way that reputation usually gets read.
One more consequence follows from the same rule. Act 32 municipal earned income tax and the Philadelphia wage tax are levied on the same pre-deferral compensation figure the state uses, so a deferral does not shrink the local bill either. A Philadelphia resident filling a 401(k) to the limit reduces exactly one line on the pay stub, and it is the federal one.
New Jersey allows the 401(k) and taxes nearly everything else
New Jersey is Pennsylvania's mirror image. Its regulations let an employee defer tax on both employee and employer contributions to a 401(k) plan, then require every other retirement arrangement, naming 403(b), 457, 414(h), SEP, the federal Thrift Savings Plan and individual retirement accounts, to be included in gross income. SIMPLE and SARSEP contributions sit in that group as well, on both the employee and the employer side.
Cafeteria plans are the other half of the rule, and this is where New Jersey reaches ordinary benefits rather than retirement saving. The state never adopted the federal Section 125 treatment, so a health FSA reduction, a dependent-care account and a pre-tax health premium are all New Jersey wages, and a payroll HSA contribution is too. Of the 6 pre-tax lines this calculator collects, New Jersey taxes 4. The 401(k) is the one that survives.
California decouples on one item, and it is the HSA
California conforms on every retirement plan in this engine. A 401(k), 403(b), 457 or 414(h) contribution reduces California wages exactly as it reduces federal wages, and the state's cafeteria-plan treatment follows the federal one. Health savings accounts are the single exception. The Franchise Tax Board's Schedule CA instructions state it plainly: federal law allows a deduction for contributions to an HSA, and California does not conform to that provision.
Your W-2 shows the effect. Box 16, California state wages, comes out higher than Box 1 by the amount of the HSA contribution, because Schedule CA adds it back. Employer contributions to your account are California income too, and so are the account's investment earnings each year. Nothing else about a California paycheck changes, which is why this is easy to miss until the return is being prepared.
The 414(h) and traditional-IRA exceptions
Section 414(h) covers the mandatory pension contributions a public employer picks up on behalf of teachers, police officers, firefighters and state employees. The pickup removes that money from federal wages. It does not remove it from Alabama or New York wages: Alabama's retirement system tells employers that state income tax applies to the employee's full compensation including the retirement contribution, and New York requires members of its public retirement systems to report 414(h) amounts as an addition on Form IT-201. Both rules reach public employees and nobody else.
Massachusetts diverges on something else entirely. It follows the federal treatment of 401(k), 403(b), 457 and HSA money, and it never adopted the federal deduction for traditional IRA contributions, so an IRA contribution is Massachusetts income in the year you make it. That one sits outside payroll altogether, which is why a per-paycheck estimate has no natural place to collect it: an IRA contribution is something you make, not something your employer withholds.
Contributions and retirement income are two different questions
Everything on this page is about the moment money leaves your paycheck. Whether a state taxes the pension, the 401(k) withdrawal or the IRA distribution years later is a separate rule, decided separately, and the two frequently point in opposite directions. Pennsylvania is the clearest case: it taxes on the way in and exempts on the way out, so a sentence about its retirement income tells you nothing about its payroll treatment.
States that tax a contribution generally track your basis afterwards, so the same dollars are not taxed a second time when you withdraw them. New Jersey, Pennsylvania and Massachusetts all do. Those are distribution mechanics, well outside what a per-paycheck estimate can answer, so they are named here rather than modelled. If you are planning withdrawals rather than contributions, this guide is the wrong half of the question.
Pre-tax contributions FAQ
Does my state tax my 401(k) contribution?
Which states tax HSA contributions?
Why does Pennsylvania tax my 401(k) contribution?
Does a 401(k) reduce my state income tax?
What about 403(b), 457 and IRA contributions?
Is retirement income taxed the same way as contributions?
Reviewed
How this guide is reviewed
Every rule on this page comes from the taxing state's own statute, regulation, bulletin or form, listed below, and is checked against those documents before each tax-year update. Where a state's treatment is documented but not applied in the estimate, the reason is published in our gap ledger rather than left implicit.
Reviewed by
PaycheckCalc Research Desk
Last reviewed
2026-07-26