QuantCalc QuantCalc Federal tax engine docs

Federal tax / Sources

Federal tax engine: sources

Every official document behind a calculation step, with each passage that was checked on it (75 passages across 24 records) and the date it was last found there. A weekly job re-fetches every source and requires every passage; a passage that disappears fails it. Only official sources are cited: the statute, Treasury regulations, IRS revenue procedures, forms and publications, the enacted law.

Tax-exempt interest (§103) enters Social Security provisional income (§86(b)(2)(B)) but not taxable income

Used by: Tax-exempt interest. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

Form 1040 and schedules: the line each engine value is reported on (TY2025 forms; the TY2026 forms are not yet published)

Used by: Tax-exempt interest; IRA distributions and Roth conversions; Pensions and annuities; Social Security benefits; Taxable Social Security (the Pub 915 worksheet); Net short-term gain or loss; Net long-term gain or loss; Combined net gain or loss; Line 7a: a net loss enters as zero; Other ordinary income; Total income; Adjusted gross income; Standard deduction and the §63(f) aged amount; The senior deduction (Schedule 1-A); Additional deductions on line 13b; Total deductions; Taxable income; Tax: the brackets and the capital-gains worksheet; The 10% additional tax on early distributions; Net investment income tax; Other taxes; Total tax. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

IRA distributions are included in gross income (§408(d)(1))

Used by: IRA distributions and Roth conversions. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

Pension and annuity payments are included in gross income (§72(a))

Used by: Pensions and annuities. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

SS taxability base / adjusted base §86(c)

Used by: Social Security benefits; Taxable Social Security (the Pub 915 worksheet). Status: verified.

Pub 915 MFS lived-apart uses $25,000

Used by: Taxable Social Security (the Pub 915 worksheet). Status: verified.

Pub 915 currently shows the 2025 edition (same statutory amounts).

Net short-term, net long-term and net capital gain (§1222)

Used by: Net short-term gain or loss; Net long-term gain or loss; Combined net gain or loss. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

§1211(b) capital loss limit

Used by: Line 7a: a net loss enters as zero. Status: verified.

Gross income (§61)

Used by: Other ordinary income; Total income. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

Adjusted gross income (§62)

Used by: Adjusted gross income. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

2026 standard deduction

Used by: Standard deduction and the §63(f) aged amount. Status: verified.

Rev. Proc. 2025-32 §4.14(1).

§63(f) additional std deduction aged/blind 2026

Used by: Standard deduction and the §63(f) aged amount. Status: verified.

Rev. Proc. 2025-32 §4.14(3) (section 4 holds the 2026 items). Code comments and the standard-deduction pages cited the 2025 section (3); corrected 2026-09-28.

OBBBA senior deduction §151(d)(5)(C)

Used by: The senior deduction (Schedule 1-A). Status: verified.

Codified at IRC §151(d)(5)(C) (added by OBBBA §70103): (C)(i)-(ii) amount per qualified individual, (C)(iii)(I) the 6% phase-out, (C)(v) joint-return requirement. Code comments cited subparagraphs (A)/(B); corrected 2026-09-28.

OBBBA §70103 effective date (2025 start)

Used by: The senior deduction (Schedule 1-A). Status: verified.

IRS: senior deduction per individual ($12,000 couple), 2025-2028

Used by: The senior deduction (Schedule 1-A). Status: verified.

URL redirects from the old one-big-beautiful-bill-* slug.

Taxable income (§63(a), (b))

Used by: Total deductions; Taxable income. Status: verified.

Added 2026-09-28 (A1/DOC1): a source for a Form 1040 composition step of the federal engine; every quote checked with scripts/check_state_tax_sources.py --url/--expect.

2026 ordinary brackets Single

Used by: Tax: the brackets and the capital-gains worksheet. Status: verified.

PDF column order interleaves the last two Single rows; snippet matches the extracted order.

2026 ordinary brackets MFJ

Used by: Tax: the brackets and the capital-gains worksheet. Status: verified.

2026 ordinary brackets MFS

Used by: Tax: the brackets and the capital-gains worksheet. Status: verified.

2026 ordinary brackets HOH

Used by: Tax: the brackets and the capital-gains worksheet. Status: verified.

2026 LTCG 0%/15% max amounts

Used by: Tax: the brackets and the capital-gains worksheet. Status: verified.

§4.03.

§72(t) 10% additional tax; 59½ exception

Used by: The 10% additional tax on early distributions. Status: verified.

Engine applies the penalty through END-OF-YEAR age 59 and waives it from EOY age 60 (conservative annual approximation of 59½). Only the 59½ exception is modelled (not SEPP, separation at 55, etc.). TaxConfig.early_withdrawal_penalty_age = 59 is informational only.

NIIT §1411 rate and thresholds

Used by: Net investment income tax. Status: verified.

NIIT IRS page

Used by: Net investment income tax. Status: verified.

Other federal records

The provenance file also carries 46 records for federal figures used elsewhere in QuantCalc (Medicare premiums, required minimum distributions, ACA subsidies, contribution limits); they are not steps of this engine's return. All of them: provenance download.