QuantCalc QuantCalc Federal tax engine docs

Docs / Federal tax

Federal tax engine documentation

QuantCalc computes each year's federal income tax with one engine: a 2026 Form 1040 composed from the year's income, rule by rule, in the order the form computes it. The planner uses it for every simulated year, and the federal tax API runs it on a single return. These pages document every step it takes, the form line each value lands on, the official source of each rule (20 distinct documents, each quote re-checked weekly) and the tests that prove it. Engine version 1.1.0.

What it computes

The whole order, step by step: calculation order.

The 2026 parameters it uses

Read from the engine itself (GET /api/federal-tax/rules), not typed onto this page.

Filing statusStandard deduction§63(f) amount per person 65+NIIT thresholdOrdinary brackets
single$16,100$2,050$200,0007 brackets, 10% to 37%
married filing jointly$32,200$1,650$250,0007 brackets, 10% to 37%
married filing separately$16,100$1,650$125,0007 brackets, 10% to 37%
head of household$24,150$2,050$200,0007 brackets, 10% to 37%

The senior deduction: $6,000 per individual 65 or older, tax years 2025 to 2028, reduced by 6% of MAGI over $75,000 ($150,000 joint); not on a separate return. The §72(t) additional tax: 10% of an IRA distribution in a year that ends before age 60.

What it does not compute yet

A figure that leaves something out must say so. The engine does not model:

The API refuses a request that carries any of these rather than returning a tax that silently leaves it out.

With the state engine

The state tax engine takes the federal figures some states need (the federal tax, federal taxable income, the taxable part of Social Security) from this engine inside the planner. On the state tax API, computeFederal: true does the same for a single request: see the API reference.

How it is verified

Every step has a unit test, the engine is held bit for bit to a recorded corpus of planner results, and its code is fully covered by tests: verification.