Verification

How we check the math

Our tax and Social Security math against independent references, and our simulation against fresh futures — every household and plan we ran, every difference, and what explains it where we know.

Engine version 2026-12-01-r139Updated November 27, 20269 min read

The short answer

  • Federal income tax: 9,937 of 10,000 households match PolicyEngine-US within $1.
  • State income tax: 96% of 1,931 retiree households match PolicyEngine-US or differ for a stated reason.
  • Social Security: survivor and spousal benefits match Open Social Security in all 3,060 cases we ran.
  • The simulation and the searches: the Smart Moves searches and two Deep Search tools, run for 58 test plans and re-checked on 10,000 fresh simulated futures; none fell more than 2 points short of its target.

Why outside references

Our engine already passes thousands of checks on every change. But a check we write ourselves shares our reading of the law, so we also compare with models built by other people. That is exactly how it pays off: on November 1 PolicyEngine caught a capital-loss rule (the $3,000 deduction also lowers the base for the 3.8% investment income tax) that our engine and our own hand-built federal calculator had read the same way. Both were fixed the same day.

So we compare each calculation with models built independently of ours, publish every household we ran, and say what explains every difference.

The references

  • PolicyEngine-US — an open-source tax and benefit model used by researchers and policymakers, through its public API, tax year 2026, as of November 2, 2026 (its model is updated over time).
  • Open Social Security — an open-source Social Security calculator; we ran its own calculation code, unchanged.
  • The Social Security Administration — its published claiming rules and its Quick Calculator.

Each household is made up (no customer data). The households are generated from a fixed seed, so anyone can generate the identical set again.

Federal income tax

10,000 random households — single and married, ages 50 to 89, with wages, IRA withdrawals, pensions, interest, dividends, capital gains and losses, and Social Security:

  • 9,937 match within $1 (5,458 of the 5,461 that owe tax).
  • 62 are low-wage workers who get the Earned Income Tax Credit, and 1 owes the Alternative Minimum Tax. Our engine models neither, and says so in its methodology.

3,000 retiree-shaped households across all 50 states and DC: 2,955 match. 41 live in Alaska, where the reference model adds the Permanent Fund Dividend (we don’t model it), and 4 are high-income households in high-tax states where the reference model itemizes deductions.

State income tax

The same 3,000 retiree households, each in one of 51 jurisdictions. State tax is where retirement rules differ most — exclusions by age, by income, by what kind of pension — and where this comparison taught us the most. It found rules our engine had wrong in 26 states and DC; we fixed them on November 2 (summarized in the changelog). The states: Alabama, Arkansas, California, Colorado, Connecticut, Delaware, Iowa, Kentucky, Maine, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Missouri, Montana, New Jersey, New Mexico, Ohio, Oregon, Pennsylvania, Utah, Vermont, Virginia, West Virginia and Wisconsin, plus DC. A second review on November 7 fixed rules in Minnesota, Michigan and Arkansas, most of which had made plans look slightly worse than they should.

Of the households that pay state tax, 1,133 match within $1, 548 differences are explained, 34 are consistent with a broader difference, and 148 are within $10 (most likely table rounding; most of them in Vermont and Rhode Island). The other 68 are listed, state by state.

For every household that still differs, we re-ran our engine with one known behavior of the reference model imitated. A difference counts as explained only when the imitation actually changes our figure and lands within $1 of the reference model’s (within $10 where the rest is table rounding).

ResultHouseholds
Match within $11,133
Explained — a state rule the reference model doesn’t apply, where the statute says it applies (for example IRA withdrawals the state exempts: 354 households)409
Explained — different figures for the year (projected amounts; Maryland’s county rate of 3.03% vs our 3.1% statewide average)108
Explained — a different reading of a rule (how a couple splits income on a state’s separate-return option)31
Consistent with a broader difference (for example dividends or an age-65 amount left out) — shown with lower confidence34
Within $10, most likely table rounding148
Still open68

Households where neither side charges state tax are not counted.

Still open

  • NJ (14) — the pension-exclusion worksheet inside the $100,000–$150,000 bands, read two ways.
  • AL (11) — its pension treatment combined with the standard-deduction phase-out.
  • DC (5) — what remains of the couple filing reading and the 2026 deduction.
  • MS (5) — early IRA withdrawals combined with the couple filing columns.
  • RI (5) — Social Security and pension exclusions by full retirement age, per person.
  • VA (4) — small leftovers from the spouse tax adjustment.
  • AR (4) — small leftovers of about $40–$120 we have not traced; Arkansas has not published its 2026 forms.
  • NE (3) — dividends and gains taxed differently by the two models; our reading of the statute supports our figure, but we have not reproduced theirs yet.
  • NY (3) — small leftovers from the $20,000 exclusion and the supplemental tax.
  • HI (2) — cases where the reference model itemizes.
  • CO (2) — the deduction add-back above $300,000.
  • WI (2) — leftovers next to the 67+ subtraction.
  • ME (2) — leftovers next to the pension deduction.
  • MN (1) — high incomes where the reference model itemizes.
  • MO (1) — a private-pension case under the income limit.
  • GA (1) — whether a capital loss reduces the retirement exclusion.
  • ND (1) — a capital-loss add-back.
  • MI (1) — a couple born before 1946, where the two models read the oldest birth-year rules differently.
  • OH (1) — the joint filing credit with a spouse whose only income is Social Security.

By state

StatePay state taxMatchExplainedRoundingOpen
Alabama693226011
Arizona3535000
Arkansas582410204
California4545000
Colorado3836002
Connecticut52173500
Delaware49222700
District of Columbia45221805
Georgia32112001
Hawaii4947002
Idaho3939000
Illinois6455900
Indiana6565000
Iowa4033700
Kansas5858000
Kentucky5150100
Louisiana52213100
Maine4804602
Maryland4404400
Massachusetts4946300
Michigan4963391
Minnesota40024151
Mississippi2511905
Missouri3927921
Montana4848000
Nebraska5246303
New Jersey2574014
New Mexico4848000
New York56143903
North Carolina4848000
North Dakota1514001
Ohio4139011
Oklahoma4984100
Oregon5959000
Pennsylvania34211300
Rhode Island4401385
South Carolina44341000
Utah4848000
Vermont4930460
Virginia4429924
West Virginia4141000
Wisconsin51430152

Social Security

  • Open Social Security: 1,620 survivor cases (the 82.5% minimum for an early claimer, the reduction for an early survivor start, the top-up over the survivor’s own benefit) and 1,440 spousal cases all match within $1 a month.
  • SSA’s published rules: early-claiming, delayed-credit, spousal and survivor percentages at every month from 60 to 70 match exactly for everyone born in 1960 or later (survivors 1962 or later). For earlier birth years the engine takes the full retirement age from the birth year too (66 for 1943–1954, then two months later each year to 67), and the percentages at 62 and 70 match SSA’s table for every birth year from 1943; survivor percentages use that same age, which is up to four months off SSA’s survivor table for 1955–1961.
  • SSA’s Quick Calculator: when a benefit is left blank the app estimates one from salary. Across 60 salary and birth-year combinations, 59 land within 10% of SSA’s estimate (median gap 4.3%); for people born in 1974 the gap is under 1.5% at every salary up to the wage limit. Entering your own benefit from your SSA statement skips the estimate.

The simulation and the searches

The checks above cover a year’s tax and benefits. Smart Moves and Deep Search do something different: they run a plan through 1,000 simulated futures and search for the change that reaches a target, such as the most you could spend while 85 of 100 futures still work out. Two things could go wrong. The answer could depend on which futures happened to be drawn, and a search could stop at an answer that only just passes. So we re-ran the Smart Moves searches (the earliest age, the price list, sizing a move, the most you could spend and the downturn plans) and two Deep Search tools (Couples Social Security and the Roth Conversion Planner) for 58 test plans on 20 different sets of futures, and checked each answer on 10,000 fresh ones.

  • Answers held up on fresh futures. Of 247 answers, none fell more than 2 points short of its target; the furthest was 1.35 points. On average they landed 2.8 points above it, because answers come in whole years, whole percents and $25 steps, and the first step that passes usually clears the target.
  • The simulation matches the projection. With market swings switched off, all 58 plans land at 0 or 100 of 100 futures, and the middle future equals the year-by-year projection, to the dollar, every year.
  • How much luck is in the odds. A plan’s odds move a median 0.75 points from one set of futures to the next (at most 1.8). The most you could spend moves about $74 a month.
  • The optimizers’ answers are stable. Couples Social Security keeps both claiming ages within a year for 15 of 18 couples. The Roth Conversion Planner’s answer is within 1% of the best answer any set of futures found for 19 of 19 plans.

What we changed

  • An earliest retirement age found to the month moves a median 2 months between sets of futures, so the app shows it as “about 64 and 3 mo.”
  • 134 of the 169 gains in Smart Moves’ easy-money list were under half a point, smaller than their own luck. They now read “under 0.5 in 100 futures.”
  • The spending search could stop one $25 step low. It now finds the largest step that passes.
  • The Roth Conversion Planner sized each year’s conversion before counting what converting does to the year’s other withdrawals, so a plan named for a tax bracket could go past it. It now re-checks its best plans against their own withdrawals, and a plan that still goes past its line says so.

The figures above were measured on engine version 2026-11-26-r138, before these changes. Every plan’s results are in the download below.

What we looked at and didn’t use

  • NBER TAXSIM — the academic standard, but its federal law runs through 2023 and its state law through 2021, so there is no year it and our 2026 engine can both compute.
  • SSA’s AnyPIA — its Mac version doesn’t run on current macOS and its batch tool is Windows-only; it would add only the estimate-from-salary check, which the Quick Calculator covers.

What this doesn’t cover

  • One tax year (2026) at a time; later years rely on each state’s indexing rules, which our other checks cover.
  • Federal tax credits, the Alternative Minimum Tax, itemized deductions, Alaska’s dividend, and local income taxes other than Maryland’s and Indiana’s county averages.
  • Whole plans over time — that is the comparison study, which runs the same plans in Boldin, ProjectionLab and our engine, year by year.
  • The simulation tests cover the searches named above; Smart Moves’ Leave a legacy lens and the other Deep Search tools were not part of them.
  • The simulation tests use the app’s own model of markets, with returns drawn from a bell curve. Whether real markets’ worse crashes and longer slumps change the odds is a separate study we haven’t done yet. The test plans are made up, not customers.
  • A match is evidence, not proof: two models can share a mistake. Where the reference model and the statute disagree, we follow the statute and say so.
  • The explanations were written after we saw the differences. To keep that honest, an imitation counts only if it changes our figure and reproduces the reference model’s; the broad ones are marked lower confidence, and everything we could not explain is listed above.

Who did this work

The comparisons, the engine and this page are built by Luke Newton, with AI-assisted review: every rule we changed is tied to the statute or the state’s own 2026 publication, and each fix carries a hand-worked test case. Reviews by credentialed tax professionals are welcome, and any we receive will be published here.

Found something we got wrong — in our figures or in how we describe the reference models? Tell us and we’ll check it and correct this page.

Check it yourself

Every household, our figure, the reference model’s figure, the difference and its cause:

To check the reference side: regenerate the households from the seed with the included scripts, send them to PolicyEngine’s public API, and compare its answers with ours in the files. Our figures come from engine version 2026-12-01-r139.

Cite this

Newton, L. (2026). How we check the math: our retirement engine against independent references (engine version 2026-12-01-r139, November 27, 2026) [Data set and report]. Retirement Scenario Explorer. https://retirementscenario.com/verification

As a paper, with this data attached (archived on Zenodo): Newton, L. (2026). Checking a retirement-planning tax engine against an independent model: federal and state income tax and Social Security, tax year 2026 (engine version 2026-12-01-r139). Retirement Scenario. https://doi.org/10.5281/zenodo.24060762

When the engine changes, we re-run these comparisons and update this page; the date and engine version above move with it.

See the engine these checks describe. Start your own plan in about five minutes. No account, your numbers stay in your browser.

Try it free →