diff --git a/changelog.d/nj-income-tax-401k-deferrals.fixed.md b/changelog.d/nj-income-tax-401k-deferrals.fixed.md new file mode 100644 index 00000000000..40b4311610e --- /dev/null +++ b/changelog.d/nj-income-tax-401k-deferrals.fixed.md @@ -0,0 +1 @@ +New Jersey wages now leave out 401(k) elective deferrals (N.J.S.A. 54A:6-21), which lowers New Jersey income tax and the income that ANCHOR, property tax relief and the other retirement income exclusion read for 401(k) contributors; 403(b), 457 and other deferrals stay taxable. diff --git a/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/claim_of_right_category_sources/wages.yaml b/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/claim_of_right_category_sources/wages.yaml index 755e97d56c5..c5ceae4787f 100644 --- a/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/claim_of_right_category_sources/wages.yaml +++ b/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/claim_of_right_category_sources/wages.yaml @@ -1,7 +1,7 @@ description: New Jersey offsets a claim of right repayment of category (a) income against these sources of the same category in the year of repayment. values: 2021-01-01: - - employment_income # Line 15 + - nj_wages # Line 15, net of 401(k) deferrals metadata: unit: list period: year @@ -15,3 +15,7 @@ metadata: href: https://www.nj.gov/treasury/taxation/pdf/pubs/tams/tam7.pdf - title: 2025 NJ-1040, Line 15 href: https://www.nj.gov/treasury/taxation/pdf/current/1040.pdf#page=2 + - title: N.J.S.A. 54A:6-21 - Contributions to certain employee trusts (401(k) deferrals) + href: https://law.justia.com/codes/new-jersey/title-54a/section-54a-6-21/ + - title: 2025 NJ-1040 instructions, line 15 (wages) + href: https://www.nj.gov/treasury/taxation/pdf/current/1040i.pdf#page=11 diff --git a/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/excluded_wage_deferrals.yaml b/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/excluded_wage_deferrals.yaml new file mode 100644 index 00000000000..04c812909ca --- /dev/null +++ b/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/excluded_wage_deferrals.yaml @@ -0,0 +1,19 @@ +description: New Jersey subtracts these elective deferrals from employment income to get the wages it taxes (NJ-1040 line 15, W-2 box 16). +values: + 1984-01-01: + # N.J.S.A. 54A:6-21 leaves 401(k) elective deferrals out of gross income. + # Employee contributions to 403(b), 457 and SEP plans, to the federal + # Thrift Savings Plan and to any other retirement plan stay in New Jersey + # wages, so they are not listed. + - traditional_401k_contributions +metadata: + unit: list + period: year + label: New Jersey elective deferrals excluded from wages + reference: + - title: N.J.S.A. 54A:6-21 - Contributions to certain employee trusts + href: https://law.justia.com/codes/new-jersey/title-54a/section-54a-6-21/ + - title: "2025 NJ-1040 instructions, income New Jersey taxes and does not tax, and line 15 #page 10-11" + href: https://www.nj.gov/treasury/taxation/pdf/current/1040i.pdf#page=10 + - title: "New Jersey Division of Taxation, GIT-1 & 2, Retirement Income, Section 401(k), 457 and 403(b) Plans #page 14-15" + href: https://www.nj.gov/treasury/taxation/pdf/pubs/tgi-ee/git1&2.pdf#page=14 diff --git a/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/non_negative_sources.yaml b/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/non_negative_sources.yaml index b5f3d523cb6..108f74e8d11 100644 --- a/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/non_negative_sources.yaml +++ b/policyengine_us/parameters/gov/states/nj/tax/income/gross_income/non_negative_sources.yaml @@ -1,7 +1,7 @@ description: New Jersey includes these income sources in gross income without loss clamping, as they cannot produce a net loss under N.J.S. 54A:5-1. Under N.J.S.A. 54A:5-1(j) and N.J.A.C. 18:35-1.5, employee contributions to 403(b) plans are not tax-deferred for NJ purposes, so NJ taxable distributions differ from federal amounts due to basis recovery; modeled using federal taxable_403b_distributions as an approximation. values: 2021-01-01: - - employment_income # Line 15: Wages, salaries, tips (Category a) + - nj_wages # Line 15: Wages, salaries, tips, net of 401(k) deferrals (Category a) - taxable_interest_income # Line 16a: Interest (Category e) - dividend_income # Line 17: Dividends (Category f) - taxable_pension_income # Line 20a: Pensions, annuities (Category j) @@ -23,5 +23,9 @@ metadata: href: https://law.justia.com/codes/new-jersey/title-54a/section-54a-5-1/ - title: NJ-1040 Tax Form (Lines 15-27) href: https://www.nj.gov/treasury/taxation/pdf/current/1040.pdf + - title: N.J.S.A. 54A:6-21 - Contributions to certain employee trusts (401(k) deferrals) + href: https://law.justia.com/codes/new-jersey/title-54a/section-54a-6-21/ + - title: 2025 NJ-1040 instructions, line 15 (wages) + href: https://www.nj.gov/treasury/taxation/pdf/current/1040i.pdf#page=11 - title: New Jersey Division of Taxation Technical Bulletin GIT-1 & 2, Retirement Income href: https://www.nj.gov/treasury/taxation/pdf/pubs/tgi-ee/git1&2.pdf#page=18 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/adjusted_gross_income/nj_claim_of_right_offset.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/adjusted_gross_income/nj_claim_of_right_offset.yaml index b01656d6dbd..f5007742627 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/adjusted_gross_income/nj_claim_of_right_offset.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/adjusted_gross_income/nj_claim_of_right_offset.yaml @@ -412,3 +412,29 @@ output: nj_claim_of_right_offset: 1_500 nj_gross_income: 30_000 + +# Wages $10,000 with $4,000 of 401(k) elective deferrals, so New Jersey wages +# (line 15) are $6,000 (N.J.S.A. 54A:6-21), plus $1,000 of interest. A repaid +# $8,000 of wages offsets only the $6,000 of New Jersey wages: line 15 is +# reported as zero and interest is untouched, so gross income is $1,000. +- name: Case 18, a wage repayment is capped at wages net of 401(k) deferrals. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 10_000 + traditional_401k_contributions: 4_000 + taxable_interest_income: 1_000 + claim_of_right_repayment: 8_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: NJ + output: + nj_wages: 6_000 + nj_claim_of_right_wage_offset: 6_000 + nj_gross_income: 1_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/adjusted_gross_income/nj_wages.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/adjusted_gross_income/nj_wages.yaml new file mode 100644 index 00000000000..a4784d099f2 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/adjusted_gross_income/nj_wages.yaml @@ -0,0 +1,72 @@ +# 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)". The 2025 NJ-1040 instructions (PDF page 10) list +# "Employer and employee contributions to 401(k) Plans up to the federal limit" +# as exempt, and "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. Line 15 (PDF page 11) takes wages from W-2 box 16. + +- name: Case 1, 401(k) elective deferrals come off New Jersey wages. + period: 2025 + input: + age: 40 + employment_income: 80_000 + traditional_401k_contributions: 10_000 + state_code: NJ + output: + # 80,000 - 10,000 = 70,000 + nj_wages: 70_000 + +- name: Case 2, 403(b) elective deferrals stay in New Jersey wages. + period: 2025 + input: + age: 40 + employment_income: 80_000 + traditional_403b_contributions: 10_000 + state_code: NJ + output: + # GIT-1 & 2 (PDF page 15): 403(b) contributions "were included in your + # New Jersey income when you made them". Wages stay 80,000. + nj_wages: 80_000 + +- name: Case 3, pre-tax health premiums stay in New Jersey wages. + period: 2025 + input: + age: 40 + employment_income: 80_000 + pre_tax_health_insurance_premiums: 3_000 + state_code: NJ + output: + # The 2025 NJ-1040 instructions (PDF page 10) exempt cafeteria plan + # benefits "but not salary reduction or premium conversion plans". Wages + # stay 80,000. + nj_wages: 80_000 + +- name: Case 4, a deferral exactly at the 2025 federal limit comes off in full. + period: 2025 + absolute_error_margin: 0.1 + input: + age: 40 + employment_income: 100_000 + traditional_401k_contributions_desired: 23_500 + state_code: NJ + output: + # The 2025 elective deferral limit for a filer under 50 is 23,500. + # 100,000 - 23,500 = 76,500 + traditional_401k_contributions: 23_500 + nj_wages: 76_500 + +- name: Case 5, a desired deferral above the federal limit excludes only the limit. + period: 2025 + absolute_error_margin: 0.1 + input: + age: 40 + employment_income: 100_000 + traditional_401k_contributions_desired: 30_000 + state_code: NJ + output: + # New Jersey exempts 401(k) contributions "up to the federal limit". + # Deferrals are capped at 23,500, so wages are 100,000 - 23,500 = 76,500. + traditional_401k_contributions: 23_500 + nj_wages: 76_500 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/anchor/nj_anchor.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/anchor/nj_anchor.yaml index f83e695d42e..2992688ae17 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/anchor/nj_anchor.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/anchor/nj_anchor.yaml @@ -835,3 +835,32 @@ output: # Non-senior homeowner, income <= $150K: still $1,500 (change only affects seniors). nj_anchor: 1_500 + +- name: 401(k) elective deferrals are not New Jersey gross income. + period: 2025 + input: + people: + person1: + age: 40 + employment_income: 155_000 + traditional_401k_contributions: 10_000 + real_estate_taxes: 8_000 + is_tax_unit_head: true + tax_units: + tax_unit: + members: [person1] + spm_units: + spm_unit: + members: [person1] + spm_unit_tenure_type: OWNER_WITH_MORTGAGE + households: + household: + members: [person1] + state_fips: 34 + output: + # N.J.S.A. 54A:6-21 excludes 401(k) elective contributions, so W-2 box 16 + # wages and line 29 are 155,000 - 10,000 = 145,000. Homeowners with gross + # income not over 150,000 for tax year 2025 get up to 1,500 (P.L. 2026, + # c. 27; Division of Taxation, "How ANCHOR benefits are calculated": "The + # benefit is calculated using income on line 29 of your 2025 NJ-1040"). + nj_anchor: 1_500 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.yaml index 463ff16a908..c87b890edd6 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.yaml @@ -278,3 +278,100 @@ output: nj_pension_retirement_exclusion: 10_000 nj_other_retirement_income_exclusion: 10_000 + +- name: Worksheet D's $3,000 earnings test reads wages net of 401(k) deferrals, at the limit + # Single, 65, $5,000 of wages with $2,000 of 401(k) elective deferrals and + # $20,000 of interest. Worksheet D line 4 is NJ-1040 line 15: 5,000 - 2,000 + # = 3,000 (N.J.S.A. 54A:6-21). Line 8 must be MORE than $3,000 to + # disqualify, so the filer qualifies. Total income = 3,000 + 20,000 = + # 23,000; single maximum $75,000; no pension exclusion, so the unclaimed + # exclusion is 23,000. + period: 2025 + input: + people: + person1: + is_tax_unit_head: true + age: 65 + employment_income: 5_000 + traditional_401k_contributions: 2_000 + taxable_interest_income: 20_000 + tax_units: + tax_unit: + members: [person1] + spm_units: + spm_unit: + members: [person1] + households: + household: + members: [person1] + state_code: NJ + output: + nj_total_income: 23_000 + nj_other_retirement_income_exclusion: 23_000 + nj_agi: 0 + +- name: Worksheet D's $3,000 earnings test, one dollar above the limit after 401(k) deferrals + # Same filer with $5,001 of wages: line 15 is 5,001 - 2,000 = 3,001, MORE + # than $3,000, so there is no unclaimed exclusion. Total income = 3,001 + + # 20,000 = 23,001. + period: 2025 + input: + people: + person1: + is_tax_unit_head: true + age: 65 + employment_income: 5_001 + traditional_401k_contributions: 2_000 + taxable_interest_income: 20_000 + tax_units: + tax_unit: + members: [person1] + spm_units: + spm_unit: + members: [person1] + households: + household: + members: [person1] + state_code: NJ + output: + nj_total_income: 23_001 + nj_other_retirement_income_exclusion: 0 + nj_agi: 23_001 + +- name: Worksheet D's earnings test reads line 15, so a deferral above one spouse's wages does not offset the other's + # Joint filers, both 65. Head: $500 of wages with $4,000 of 401(k) elective + # deferrals and $20,000 of interest. Spouse: $6,000 of wages. Each person's + # New Jersey wages are floored at zero, so NJ-1040 line 15 = max(0, 500 - + # 4,000) + 6,000 = 0 + 6,000 = 6,000. Worksheet D line 4 is line 15 and + # lines 5-7 are 0, so line 8 = 6,000, MORE than $3,000: the filers cannot + # use the unclaimed exclusion. Total income = 20,000 + 6,000 = 26,000. + # Netting the deferral across both spouses (6,500 - 4,000 = 2,500) would + # wrongly pass the test and grant 26,000. + period: 2025 + input: + people: + person1: + is_tax_unit_head: true + age: 65 + employment_income: 500 + traditional_401k_contributions: 4_000 + taxable_interest_income: 20_000 + person2: + is_tax_unit_spouse: true + age: 65 + employment_income: 6_000 + tax_units: + tax_unit: + members: [person1, person2] + spm_units: + spm_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: NJ + output: + nj_wages: [0, 6_000] + nj_total_income: [20_000, 6_000] + nj_pension_retirement_exclusion: 0 + nj_other_retirement_income_exclusion: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/gross_income/nj_gross_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/gross_income/nj_gross_income.yaml index abb9e4da450..3bcff8e3f5f 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/gross_income/nj_gross_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/gross_income/nj_gross_income.yaml @@ -220,3 +220,18 @@ # N.J.S. 54A:5-2: the category (h) net loss is disregarded, so # 50,000 + 3,000 + max(-8,000, 0) = 53,000. nj_gross_income: 53_000 + +- name: 401(k) elective deferrals are left out of gross income and 403(b) deferrals are not. + period: 2025 + input: + age: 40 + employment_income: 60_000 + traditional_401k_contributions: 4_000 + traditional_403b_contributions: 2_000 + taxable_interest_income: 1_000 + state_code: NJ + output: + # N.J.S.A. 54A:6-21 excludes the 401(k) deferrals. The 2025 NJ-1040 + # instructions (PDF page 10) tax employee contributions to 403(b) plans. + # Wages 60,000 - 4,000 = 56,000, plus 1,000 of interest = 57,000. + nj_gross_income: 57_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/main/nj_main_income_tax.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/main/nj_main_income_tax.yaml index c5931c1d11f..80bc176b3a3 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/main/nj_main_income_tax.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/main/nj_main_income_tax.yaml @@ -56,3 +56,30 @@ state_code: ME output: nj_main_income_tax: 0 + +- name: A single filer's 401(k) deferrals come off New Jersey wages before tax. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 60_000 + traditional_401k_contributions: 6_000 + tax_units: + tax_unit: + members: [person1] + households: + household: + members: [person1] + state_code: NJ + output: + # N.J.S.A. 54A:6-21: line 15 wages = 60,000 - 6,000 = 54,000. + # Taxable income = 54,000 - 1,000 regular exemption = 53,000. + # Tax = .014 * 20,000 + .0175 * 15,000 + .035 * 5,000 + # + .05525 * (53,000 - 40,000) + # = 280 + 262.50 + 175 + 718.25 = 1,435.75 + nj_gross_income: 54_000 + nj_agi: 54_000 + nj_taxable_income: 53_000 + nj_main_income_tax: 1_435.75 diff --git a/policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_wages.py b/policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_wages.py new file mode 100644 index 00000000000..b3ff13332fe --- /dev/null +++ b/policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_wages.py @@ -0,0 +1,31 @@ +from policyengine_us.model_api import * + + +class nj_wages(Variable): + value_type = float + entity = Person + label = "New Jersey wages" + unit = USD + documentation = ( + "Wages, salaries and tips New Jersey taxes (NJ-1040 line 15, W-2 box " + "16): employment income less 401(k) elective deferrals, which " + "N.J.S.A. 54A:6-21 leaves out of gross income. Employee contributions " + "to 403(b), 457 and SEP plans and to the federal Thrift Savings Plan " + "stay in New Jersey wages, as do salary reduction and premium " + "conversion cafeteria plan amounts." + ) + definition_period = YEAR + reference = ( + # N.J.S.A. 54A:6-21 + "https://law.justia.com/codes/new-jersey/title-54a/section-54a-6-21/", + # 2025 NJ-1040 instructions, PDF pages 10-11: income New Jersey + # taxes and does not tax, and line 15 + "https://www.nj.gov/treasury/taxation/pdf/current/1040i.pdf#page=10", + ) + defined_for = StateCode.NJ + + def formula(person, period, parameters): + p = parameters(period).gov.states.nj.tax.income.gross_income + employment_income = person("employment_income", period) + excluded_deferrals = add(person, period, p.excluded_wage_deferrals) + return max_(0, employment_income - excluded_deferrals) diff --git a/policyengine_us/variables/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.py b/policyengine_us/variables/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.py index d004f10c7b6..2ebcfb54ab8 100644 --- a/policyengine_us/variables/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.py +++ b/policyengine_us/variables/gov/states/nj/tax/income/exclusions/nj_other_retirement_income_exclusion.py @@ -11,6 +11,8 @@ class nj_other_retirement_income_exclusion(Variable): reference = ( "https://www.state.nj.us/treasury/taxation/pdf/current/1040i.pdf#page=23", "https://law.justia.com/codes/new-jersey/2022/title-54a/section-54a-6-15/", + # N.J.S.A. 54A:6-21: 401(k) elective deferrals are not wages + "https://law.justia.com/codes/new-jersey/title-54a/section-54a-6-21/", ) defined_for = StateCode.NJ @@ -44,10 +46,13 @@ def formula(tax_unit, period, parameters): # calculate earnings eligibility on the filers' own earnings # (Worksheet D lines 4-8), leaving out a dependent's. Line 4 is - # NJ-1040 line 15, wages net of any claim of right repayment of - # wages (N.J.S.A. 54A:5-2; TAM 2011-7). + # NJ-1040 line 15: each person's nj_wages, net of 401(k) elective + # deferrals (N.J.S.A. 54A:6-21) and floored at zero, less any claim + # of right repayment of wages (N.J.S.A. 54A:5-2; TAM 2011-7). earnings = tax_unit_non_dep_add( - tax_unit, period, ["earned_income"] + tax_unit, + period, + ["nj_wages", "self_employment_income", "sstb_self_employment_income"], ) - tax_unit_non_dep_add(tax_unit, period, ["nj_claim_of_right_wage_offset"]) limit = p.other_retirement_income.earned_income_threshold earnings_eligible = earnings <= limit