Repository navigation
Leave 401(k) elective deferrals out of New Jersey wages - #11163
Conversation
hua7450
left a comment
There was a problem hiding this comment.
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
- Worksheet D should read
nj_wages.nj_other_retirement_income_exclusion.py(lines 52-59) rebuilds line 15 asearned_incomeminus the deferrals minus the wage offset across head and spouse, without the per-person zero floor thatnj_wagesapplies. Worksheet D line 4 is "the amount from line 15", whichnj_wagesnow 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. Summingnj_wages,self_employment_incomeandsstb_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-dataclone, 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 enteredtraditional_401k_contributionsis excluded in full, as on the federal side. One sentence in thenj_wagesdocumentation would cover it. - Tests.
nj_wages.yamlCases 4 and 5 both exercise the federal cap; Case 5 alone is enough.
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>
6fdd089 to
014f332
Compare
|
Thanks, Ziming. Fixed in 014f332, rebased on main. Fixed (your "Before merge" item)
Skipped (optional, not in this round): the population-data note, the federal-limit sentence in the 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. |
hua7450
left a comment
There was a problem hiding this comment.
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.
Part of #10812 (state credit income audit).
What was wrong
nj_gross_incomecounted wages (NJ-1040 line 15) asemployment_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
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_wagesreplacesemployment_incomeas line 15 innon_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.Sources:
What stays in New Jersey wages, unchanged:
traditional_401k_contributionswould be excluded.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 intonj_anchor.yamlwith 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: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: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:
nj_gross_incomeover 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.employment_income, and that fix also changes New Jersey tax. The instructions' cutoff is the year the recipient turns 65, whilenj_property_tax_relief_incomeuses 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_contributionsdoesn'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, plustest_source_conflicts.pyandtest_nj_claim_of_right_properties.py).🤖 Generated with Claude Code