QuantCalc QuantCalc State tax engine docs

State tax docs / Verification

How the state tax engine is verified

What is tested, against what, and where the testing stops. The status of each state below is an audit of the test suite and the engine's cited sources as they stand, not a statement of confidence.

Golden scenarios

155 rows in the engine's golden-scenario file each carry an expected federal tax, state tax and Medicare surcharge computed by hand, independently of the engine, from the published rules. The suite runs the engine on every row and fails if any result is more than $1 away. When a row's derivation follows a state's own form, worksheet or rate schedule, the row says so; those rows, and unit tests whose derivation does the same, are what the worksheet-tested class below counts.

Unit tests

The state-tax unit suite has tests for individual rules (a state's exclusion cap, its Social Security formula, its married-filing-separately schedule) and structural tests over every jurisdiction: each state resolves, every bracket table is contiguous with non-decreasing rates, no state uses a placeholder schedule, and calls without a spouse split give results identical to the pooled household calculation.

Status classes

Counts: worksheet-tested 42; statute and instructions cited 0; rate table only 0; no income tax 9.

The depth of that testing differs. For 24 of the worksheet-tested states (AZ, AR, CA, GA, HI, ID, IL, IN, IA, KS, MD, MA, MI, MN, MS, NM, NC, OH, OR, PA, RI, SC, UT, VT) the suite replays the state's return line by line through the API. For the other 18 (AL, CO, CT, DE, DC, KY, LA, ME, MO, MT, NE, NJ, NY, ND, OK, VA, WV, WI) the tests follow the specific form, worksheet or rate schedule named in the Basis column, not the whole return.

Per-state status

JurisdictionStatusGolden rowsState-specific unit testsBasis
AlabamaWorksheet-tested712Golden rows follow the Form 40 federal-income-tax worksheet and Schedule RS (per-spouse line 10).
AlaskaNo income tax00No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.
ArizonaWorksheet-tested19Arizona Form 140 (TY2025 instructions with official 2026 figures: std deduction $16,100/$24,150/$32,200) replayed line by line — lines 12-24 capital-gain subtraction, 29a public pension, 29b military, 30 Social Security, 36 other subtractions (HB 4168 senior subtraction), 38 age-65 exemption, 42-46 — in backend/tests/test_state_worksheets_1.c.
ArkansasWorksheet-tested114Arkansas Form AR1000F (TY2025 form and instructions with the official 2026 figures: DFA 2026 withholding-formula brackets, Act 1 of 2026 top rate 3.7%) replayed line by line — lines 7A/7C/34 personal credits, 14 with AR1000D (50% net capital gain), 16, 17 military retirement, 18A/18B $6,000 per-taxpayer exemption, 25-29 standard deduction and Regular/Low Income Tax Table, 33-38 — in backend/tests/test_state_worksheets_1.c.
CaliforniaWorksheet-tested629backend/tests/test_state_worksheets_1.c replays the 2025 Form 540 (2026 indexing not yet published) line by line: Schedule CA subtractions (Social Security, the military exclusion and its federal-AGI cliff), the standard deduction, the line 7-9 exemption credits, the tax table by its midpoint method and Schedules X and Y, and the line 62 Behavioral Health Services Tax.
ColoradoWorksheet-tested423Golden and unit tests follow form DR 0104 line 1 (federal taxable income) and DR 0104AD line 4 (the pension and Social Security subtraction).
ConnecticutWorksheet-tested417Unit and golden tests follow the CT-1040 Tax Calculation Schedule (Tables C and D) and the Social Security benefit adjustment worksheet.
DelawareWorksheet-tested517Golden and unit tests follow the PIT-RES instructions, Line 6 pension exclusion worksheet (including the per-taxpayer columns).
District of ColumbiaWorksheet-tested311An engine 1.2.0 test follows the 2026 D-40ES head-of-household deduction; golden rows pin the schedule.
FloridaNo income tax12No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.
GeorgiaWorksheet-tested622backend/tests/test_state_worksheets_1.c replays the 2025 Form 500 (with the 2026 HB 463 rate 4.99% and $15,000/$30,000 standard deduction substituted) line by line: Schedule 1 page 2 Retirement Income Exclusion per taxpayer column (62-64 and 65+ caps, earned-income part, IRA/conversion/pension/capital-gain pooling, per-spouse caps, joint gains 50/50), Schedule 1 page 3 Military Retirement Income Exclusion (under-62 base and the $17,500 earned-income test), Social Security subtraction, and line 16 rounding.
HawaiiWorksheet-tested59backend/tests/test_state_worksheets_1.c replays the 2025 Form N-11 with the 2026 standard deduction (HRS 235-2.4(a)(2)(F); the 2025-2026 rate schedules are unchanged) line by line: the line 13 employer-funded/military pension and line 14 Social Security subtractions, the standard deduction, the Tax Table by its midpoint method and Schedules I and II, and the Tax on Capital Gains Worksheet.
IdahoWorksheet-tested110backend/tests/test_state_worksheets_1.c replays the 2025 Idaho Form 40 (with the 2026 federal standard-deduction figures Idaho adopts) line by line: Form 39R Part B line 7 (taxable Social Security) and line 8 (Retirement Benefits Deduction for military and CSRS, per-return cap reduced by Social Security), the standard deduction worksheet with the 65+ amounts, line 18 federal Schedule 1-A senior deduction and its phase-out, and the line 20 tax worksheet.
IllinoisWorksheet-tested211backend/tests/test_state_worksheets_1.c replays Form IL-1040 (2025, with the 2026 $2,925 exemption) line by line: line 5 Social Security and retirement subtraction (IRA, pensions, military, conversions), the line 10a and 10b exemption allowance per filer and per 65+ box, and line 12 at 4.95%.
IndianaWorksheet-tested111Scenarios replay Form IT-40 lines 1-9 with Schedule 2 (Social Security line 5, military code 632), Schedule 3 (lines 1, 4, 5 incl. the $40,000 / MFS $20,000 test) and Schedule CT-40 lines 1-3, using the TY2025 forms with the 2026 2.95% rate from DN #1 (tests/test_state_worksheets_2.c).
IowaWorksheet-tested210backend/tests/test_state_worksheets_1.c replays the 2025 IA 1040 (2026 form not yet published; 2026 rate and federal figures substituted) line by line: line 2 federal taxable income, Schedule 1 lines 4 (military), 5 (Social Security) and 7 (retirement income per recipient 55+, incl. Roth conversions), line 4, the line 5 flat 3.8% tax and the line 8 exemption credits, with the alternate-tax and low-income-exemption worksheets checked for each case.
KansasWorksheet-tested2416 scenarios run through the JSON API follow Form K-40 lines 1-8 (2025 booklet IP25, whose amounts are statutory for 2026), with Schedule S lines A10 and A14, the Tax Table midpoint rows and the Tax Computation Worksheet; 8 more head-of-household and 65+ scenarios (formerly pending findings, resolved by engine 1.5.0) are asserted too.
KentuckyWorksheet-tested08A unit test pins the $31,110 exclusion drawn by a Roth conversion, following Schedule P.
LouisianaWorksheet-tested47Golden rows follow the IT-540 instructions' Schedule E code 06E definition of retirement income, including per-spouse rows.
MaineWorksheet-tested312Golden rows follow the Form 1040ME instructions, including the Schedule 1S pension deduction and its conversion rule.
MarylandWorksheet-tested421Worksheet-tested: 22 scenarios through state_tax_json_handle() replay the 2025 Form 502 line by line with the official 2026 figures ($3,400 single deduction, $40,600 pension exclusion): Worksheet 13A per-spouse columns with the Social Security offset, Chart 10A exemption steps at $100,000/$150,000, the Tax Table midpoint rows and Computation Worksheet Schedules I/II, military code u, Form 502CG line 21b and line 28 local tax; each asserted against the form's whole-dollar line 34 and to the cent against Schedule I/II (tests/test_state_worksheets_2.c).
MassachusettsWorksheet-tested013Form 1 replayed line by line (2025 Form 1 and instructions with the TY2026 4% surtax threshold of $1,107,750): exemptions lines 2a-2d, exempt contributory/military pensions line 4, Schedule X line 2 IRA and conversions, lines 11a/11b, the line 22 tax table and 5% rate, Schedule B 8.5% income, Schedule D line 24, No Tax Status and the Limited Income Credit, Schedule 4% Surtax; 22 scenarios asserted in test_state_worksheets_2.c (the 5 group-2 findings resolved by engine 1.6.0), every Form 1 line mapped in research/data/state-tax-form-map/MA.json, 2 open findings (excess exemptions, fm3-MA-01/02).
MichiganWorksheet-tested01016 JSON-API scenarios replay the 2025 MI-1040, Schedule 1 and Form 4884 (Worksheet 3.3, Section A) with the official 2026 figures ($5,900 exemption, $67,610 / $135,220 limit, 100% phase-in); the 6 further differences the worksheet pass found are resolved and asserted (engine 1.6.0 and 1.7.0). The form-line map (research/data/state-tax-form-map/MI.json) adds 11 asserted cases and the Tier 2 add-on of Worksheet 2 line 2a (fm3-MI-01, engine 1.8.0); no difference is pending.
MinnesotaWorksheet-tested21018 worksheet scenarios replay Form M1 lines 1-10 (standard deduction table with the 65+ boxes, tax table midpoint method below $86,800, rate schedules above) with Schedule M1M lines 12 (Worksheet for line 12, simplified and alternate methods), 25 (military) and 29 (Schedule M1QPEN), on the TY2025 forms with the TY2026 inflation-adjusted amounts substituted; all match within the form's whole-dollar rounding, and 3 PENDING cases record where the engine departs from the form.
MississippiWorksheet-tested3719 worksheet scenarios replay Form 80-105 lines 8-17 and the Schedule of Tax Computation (per-column $10,000 0% band) at the 2026 rate of 4% (2025 instructions, 2026 rate substituted), all exact to the cent; 3 PENDING disagreements are recorded in the group-2 findings file.
MissouriWorksheet-tested923Golden and unit tests follow Form MO-A Part 3 Sections A, B and C line by line, including the per-spouse columns.
MontanaWorksheet-tested16A golden row follows Form 2 line 3 (federal taxable income less federal deductions).
NebraskaWorksheet-tested05Engine 1.2.0 tests follow the 2026 Form 1040N-ES rate schedules, including head of household.
NevadaNo income tax00No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.
New HampshireNo income tax00No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.
New JerseyWorksheet-tested213Engine 1.2.0 tests follow the NJ-1040 pension exclusion worksheet (band percentage of the whole pension) and Tables A and B.
New MexicoWorksheet-tested4722 scenarios in backend/tests/test_state_worksheets_3.c replay the TY2025 PIT-1, PIT-ADJ and PIT-TRT line by line (2026 federal standard deduction substituted) through the JSON API.
New YorkWorksheet-tested829Engine 1.2.0 tests follow the 2026 IT-2105-I tax rate schedules and recapture worksheets, including the head-of-household schedule.
North CarolinaWorksheet-tested1116 worksheet scenarios replay Form D-400 lines 6-15 with Schedule S lines 19 (Social Security) and 21 (military retirement), at the 2026 rate of 3.99% (2025 forms, 2026 rate substituted); every scenario matches the unrounded product to the cent.
North DakotaWorksheet-tested17Engine 1.2.0 tests follow the 2026 ND-1ES rate schedules for single, joint and head of household.
OhioWorksheet-tested112backend/tests/test_state_worksheets_3.c replays the IT 1040 (2025 booklet with the 2026 R.C. 5747.02 schedule and $500,000 cutoffs) line by line, including the joint filing credit, through the API.
OklahomaWorksheet-tested49Golden and unit tests follow Schedule 511-A line 6, including the per-person exclusion.
OregonWorksheet-tested214backend/tests/test_state_worksheets_3.c replays Form OR-40 lines 7-25 (2025 booklet, 2026 figures): tax table midpoint method and rate charts S/J, the federal tax liability subtraction worksheet with Table 9, and the exemption credit worksheet.
PennsylvaniaWorksheet-tested216Scenarios replay the 2025 PA-40 (lines 1a, 5, 9, 11, 12), its IRA, pension and Social Security instructions and Schedule SP; tests/test_state_worksheets_3.c.
Rhode IslandWorksheet-tested68Scenarios replay the RI-1040 (lines 1-8), Schedule M lines 1s/1t/1v, the Taxable Social Security Income Worksheet, the tax table (midpoint method) and computation worksheet with ADV 2025-22 2026 figures; tests/test_state_worksheets_3.c.
South CarolinaWorksheet-tested614Scenarios replay the 2025 SC1040 (lines 1, i, o, p-1 to p-5, q-1, q-2, 5, 6) and its p/q worksheets with the Act 110 figures from SC Information Letter #26-20 (federal AGI start, SCIAD, 1.99%/5.21%), and the SC1040TT table method; tests/test_state_worksheets_3.c.
South DakotaNo income tax00No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.
TennesseeNo income tax00No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.
TexasNo income tax336No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.
UtahWorksheet-tested012Scenarios replay the TC-40 tax and taxpayer tax credit lines 9-22 and the TC-40A Social Security (AH) and military retirement (AJ) credit worksheets, 2025 forms with the 2026 rate and federal deductions; tests/test_state_worksheets_3.c.
VermontWorksheet-tested111Scenarios replay the 2025 IN-111 (lines 1-8, tax table and rate schedules), the Schedule IN-112 retirement and military exemption worksheets and Schedule IN-153 with the 2026 schedules and $5,400 exemption; tests/test_state_worksheets_3.c.
VirginiaWorksheet-tested318Golden and unit tests follow the Form 760 Age Deduction Worksheet (lines 9 to 15); engine 1.8.0 (S5) tests (backend/tests/test_state_tax_180_s5.c, test_state_formmap_fm6.c) replay the Spouse Tax Adjustment Worksheet, the §58.1-321 no-tax threshold and the choice between the age deduction and the disability subtraction.
WashingtonNo income tax03No income tax. The capital-gains excise (RCW 82.87) is pinned by an exact unit test.
West VirginiaWorksheet-tested110A unit test follows the IT-140 Rate Schedule II for married filing separately; engine 1.8.0 (S5) tests follow §11-21-12(c)(9) per person (own public-pension remainder, own half of the household offsets).
WisconsinWorksheet-tested311Engine 1.2.0 tests follow the 2026 Form 1-ES standard-deduction table, including the head-of-household and MFS rows; engine 1.8.0 (S5) tests read it at Form 1 line 7 and replay Schedule SB line 17.
WyomingNo income tax00No broad personal income tax; the engine returns zero, and the golden scenarios include no-tax rows.

Gates

Recurring checks

Open differences between a source and the engine

StateRuleSource saysEngineNote
AZCapital gains25% subtraction only for assets acquired after December 31, 201175%The engine assumes gains are on assets bought after 2011 (75% taxed); it has no acquisition-date input, so gain on older assets is under-taxed by 2.5% of 25% of it.
NYIRA, 401(k) and private pensions59½age 59The engine's age test is a whole year (59); the statute's is 59½.
RIIRA, 401(k) and private pensions$133,500 (Pub 2026-01) vs $133,750 (ADV 2025-22)$133,750Rhode Island's own documents disagree ($133,500 in Pub 2026-01, $133,750 in ADV 2025-22); the engine uses the advisory figure.

Rules without an official source

StateRuleWhy
IDSocial SecurityNo official Idaho source could be fetched: tax.idaho.gov and legislature.idaho.gov (and every *.idaho.gov host tried) refuse connections from this host. No secondary source for Idaho's Social Security exemption was verified either.
IDIRA, 401(k) and private pensionsNo official page states in terms that Idaho has no general retirement exclusion; Idaho Code 63-3022A (see Public pensions and Military retirement pay) lists the only retirement benefits Idaho deducts.
IDRoth conversionsNo official Idaho source could be fetched: tax.idaho.gov and legislature.idaho.gov (and every *.idaho.gov host tried) refuse connections from this host.

Sources on the state pages: 1260 citations across 472 rule sections; 266 of them are read from an Internet Archive copy of the official URL, mostly because the state's site refuses connections from the checker.