Skip to content

Leave 401(k) elective deferrals out of New Jersey wages - #11163

Merged
hua7450 merged 2 commits into
mainfrom
nj-income-tax-401k-deferrals
Nov 20, 2026
Merged

hua7450 merged 2 commits into
mainfrom
nj-income-tax-401k-deferrals

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Part of #10812 (state credit income audit).

What was wrong

nj_gross_income counted wages (NJ-1040 line 15) as employment_income, which is gross pay before payroll deferrals. New Jersey leaves 401(k) elective deferrals out of gross income, so the model overstated New Jersey wages, gross income, total income and taxable income by the deferral for every 401(k) contributor.

What changes

  • A new variable, nj_wages, is employment income less the deferrals in a new parameter list, gov.states.nj.tax.income.gross_income.excluded_wage_deferrals. The list has one entry, traditional_401k_contributions, which the model already caps at the federal elective deferral limit. The result is floored at zero.
  • nj_wages replaces employment_income as line 15 in non_negative_sources. It also replaces it in the claim of right wage category (claim_of_right_category_sources/wages), so a wage repayment can't offset more than the line 15 wages. A unit test requires those two lists to match.
  • Worksheet D (the other retirement income exclusion) line 4 is "the amount from line 15, NJ-1040", so its $3,000 earnings test now subtracts the same deferrals.

Sources:

  • N.J.S.A. 54A:6-21: "Gross income shall not include amounts contributed by an employer on behalf of and at the election of an employee to a trust which is part of a qualified cash or deferred arrangement which meets the requirements of Section 401(k)". Effective January 1, 1984.
  • 2025 NJ-1040 instructions, PDF page 10. It lists "Employee contributions to federal Thrift Savings Funds, 403(b), 457, SEP, or any other type of retirement plan other than 401(k) Plans" as taxable, and "Employer and employee contributions to 401(k) Plans up to the federal limit (but not federal Thrift Savings Funds)" as not taxable. PDF page 11 (line 15) says to take wages from W-2 box 16, and that "contributions to retirement plans (other than 401(k) Plans) are included in State wages". PDF page 23 is Worksheet D.
  • GIT-1 & 2, Retirement Income (January 2026), PDF pages 14-15. 401(k) contributions made on or after January 1, 1984 "were not included as income when they were made, unless the contributions exceeded the federal elective deferral limit". Contributions to 457 and 403(b) plans "were included in your New Jersey income when they were made".

What stays in New Jersey wages, unchanged:

  • 403(b), 457 and SEP deferrals, which are taxable under the sources above. The model has no separate input for the federal Thrift Savings Plan, so a Thrift Savings Plan deferral entered as traditional_401k_contributions would be excluded.
  • Pre-tax health premiums. PDF page 10 exempts cafeteria plan benefits "but not salary reduction or premium conversion plans" (TB-39), so they stay in wages, as they already did. The instructions don't mention HSA payroll contributions or dependent care benefits, so I left those alone too.
  • Roth 401(k) contributions. I found no New Jersey source on them, so they stay in wages as before, matching their federal treatment.

Who is affected

This lowers New Jersey income tax for residents with traditional 401(k) deferrals. Their gross income, total income (line 27), New Jersey AGI and taxable income all fall by the deferral, up to the federal limit. At the 5.525% bracket, a $6,000 deferral cuts the tax by $331.50. The lower income also reaches the amounts the model tests against these lines: the pension exclusion and the Worksheet D $150,000 line 27 limit, the 2% medical expense floor, ANCHOR (which sums nj_gross_income) and the property tax relief (PAS-1) income. 403(b), 457 and SEP contributors see no change.

Tests

Moved from #10812 (nj_anchor_audit.yaml): "401(k) elective deferrals are not New Jersey gross income" goes into nj_anchor.yaml with its expected value (1,500) unchanged. The other three ANCHOR cases and the PAS-1 audit file need ANCHOR and PAS-1 to read the filer's own return, so they wait for the New Jersey credits PR.

Added:

  • nj_wages.yaml (new), with five cases:
    • a 401(k) deferral comes off;
    • a 403(b) deferral stays;
    • pre-tax health premiums stay;
    • a desired deferral exactly at the 2025 limit ($23,500) comes off in full;
    • a desired deferral of $30,000, above the limit, excludes only $23,500.
  • nj_gross_income.yaml: $60,000 of wages with a $4,000 401(k) deferral, a $2,000 403(b) deferral and $1,000 of interest gives 57,000.
  • nj_main_income_tax.yaml: a single filer with $60,000 of wages and a $6,000 401(k) deferral, end to end. Taxable income is 53,000 and the tax is 1,435.75.
  • nj_other_retirement_income_exclusion.yaml, Worksheet D at the edge:
    • $5,000 of wages less a $2,000 deferral is line 15 = 3,000, which is not more than $3,000, so the filer qualifies (exclusion 23,000);
    • with $5,001 of wages, line 15 = 3,001, so the exclusion is 0.
  • nj_claim_of_right_offset.yaml, Case 18: an $8,000 wage repayment is capped at the $6,000 of wages left after a $4,000 deferral.

Existing tests changed: none.

Not in this PR

The #10812 review's other New Jersey gaps:

  • ANCHOR sums nj_gross_income over the tax unit when it should read NJ-1040 line 29 (nj_agi). This affects the Treasury interest cases (homeowner and renter) and the dependent's wages case.
  • PAS-1 property tax relief income counts dependents' income.
  • PAS-1 counts a disability pension twice when the pension is entered as wages. The 2025 NJ-1040 instructions list "Public or private disability pension benefits until the year you turn 65" as nontaxable (PDF page 15) and "Permanent and total disability" as exempt (PDF page 10). So New Jersey gross income should leave out a pre-65 disability pension entered in employment_income, and that fix also changes New Jersey tax. The instructions' cutoff is the year the recipient turns 65, while nj_property_tax_relief_income uses full retirement age. N.J.S.A. 54A:6-6 covers accident or health insurance and military disability pensions but doesn't name other disability pensions, so the age-65 rule rests on the Division's instructions.

Also outside this PR: Schedule NJ-BUS-1 deducts qualified self-employed 401(k) contributions from business profits (2025 NJ-1040 instructions, PDF page 18). self_employed_pension_contributions doesn't separate 401(k) contributions from SEP and SIMPLE ones, and line 18 isn't in scope here.

axiom: needed (N.J.S.A. 54A:6-21; rulespec-us has no us-nj module for it yet, and the signed encoder run needs separate approval and has not been started)

Tested on Modal: run w1-nj-a, 241/241 passed (the New Jersey test folder, every partner test and the changed YAML files, plus test_source_conflicts.py and test_nj_claim_of_right_properties.py).

🤖 Generated with Claude Code

@DTrim99
DTrim99 requested a review from hua7450 November 19, 2026 22:48

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. The fix checks out: N.J.S.A. 54A:6-21 excludes only 401(k) elective deferrals, and the NJ-1040 instructions (pp. 10-11) and GIT-1 & 2 (pp. 14-15) keep 403(b), 457, SEP and Thrift Savings Plan deferrals in wages. Pre-tax health premiums, HSA payroll contributions and dependent care stay in New Jersey wages under TB-39(R), as before. Each downstream line follows its own instruction: the pension exclusion, filing threshold, property tax deduction, ANCHOR and the credits move with the form lines they read, and NJ EITC and the benefit programs are untouched. All eleven new cases derive by hand (1,435.75 for the main tax case, 1,500 for ANCHOR). One small fix before I approve.

Before merge

  1. Worksheet D should read nj_wages. nj_other_retirement_income_exclusion.py (lines 52-59) rebuilds line 15 as earned_income minus the deferrals minus the wage offset across head and spouse, without the per-person zero floor that nj_wages applies. Worksheet D line 4 is "the amount from line 15", which nj_wages now is. The two differ when one person's deferral exceeds their own wages. Joint filers, both 65: head wages 500 with a 4,000 deferral, spouse wages 6,000, interest 20,000. Line 15 is 6,000, so there is no exclusion; the formula gets 2,500 and grants 26,000. No real filer looks like that, but imputed data can. Summing nj_wages, self_employment_income and sstb_self_employment_income, less the wage offset, fixes it without changing any expected value in the PR. Please add one case with a deferral above wages.

Optional

  • Population data. The PR body says 403(b), 457 and SEP contributors see no change. That holds for explicit household inputs. In the CPS-based data I checked (a local policyengine-us-data clone, which may lag the released dataset), all defined contribution deferrals go into the 401(k) inputs, so in population runs the exclusion also reaches deferrals New Jersey taxes. Worth stating in the PR body or the parameter comment.
  • "Up to the federal limit" holds only when the deferral is entered as traditional_401k_contributions_desired. A directly entered traditional_401k_contributions is excluded in full, as on the federal side. One sentence in the nj_wages documentation would cover it.
  • Tests. nj_wages.yaml Cases 4 and 5 both exercise the federal cap; Case 5 alone is enough.

DTrim99 and others added 2 commits November 20, 2026 10:59
N.J.S.A. 54A:6-21 excludes 401(k) elective deferrals from New Jersey gross
income, so NJ-1040 line 15 (W-2 box 16) is wages net of them. Gross income
counted gross employment income. A new nj_wages variable subtracts the
deferrals in a parameter list and feeds line 15 in gross income, the claim
of right wage category and Worksheet D's earnings test. 403(b), 457 and SEP
deferrals stay taxable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Worksheet D lines 4-8 of the NJ other retirement income exclusion now
sum nj_wages plus self-employment income over head and spouse, less the
claim-of-right wage offset, so line 4 inherits nj_wages' per-person zero
floor. Adds a joint-filer case where one spouse's 401(k) deferral exceeds
wages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 force-pushed the nj-income-tax-401k-deferrals branch from 6fdd089 to 014f332 Compare November 20, 2026 16:01
@DTrim99

DTrim99 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, Ziming. Fixed in 014f332, rebased on main.

Fixed (your "Before merge" item)

  • Worksheet D reads nj_wages. nj_other_retirement_income_exclusion now sets line 4 to the head's and spouse's nj_wages plus self_employment_income and sstb_self_employment_income, less the wage offset. That is NJ-1040 line 15, with nj_wages' per-person zero floor, so one spouse's deferral above their own wages no longer cancels the other's wages.
  • New case with a deferral above wages: joint filers, both 65; head wages 500 with a 4,000 deferral, spouse wages 6,000, interest 20,000. Line 15 is 6,000, over $3,000, so there is no exclusion (the old formula granted 26,000). No existing expected value changed.

Skipped (optional, not in this round): the population-data note, the federal-limit sentence in the nj_wages documentation, and dropping Case 4.

Verification: the NJ exclusions and wages tests pass locally after the rebase (62/62). An independent check confirmed the fix against Worksheet D (2025 NJ-1040 instructions, p. 23) and found no other changes. Ruff is clean.

@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 16:01

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. Worksheet D now sums nj_wages, self_employment_income and sstb_self_employment_income less the wage offset, so a deferral above one spouse's wages no longer offsets the other's. The new case pins it (line 15 is 6,000, so no exclusion). Comparing the PR's own diff before and after the rebase, that is the only change. Approving.

@hua7450
hua7450 merged commit fba034d into main Nov 20, 2026
38 checks passed
@hua7450
hua7450 deleted the nj-income-tax-401k-deferrals branch November 20, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants