Methodology

How the calculator works

Every calculator on this site runs on one engine, the same at build time and in your browser. Before any page is published, the engine must reproduce 38 test cases to the cent. This page lists them, with the method, the rounding rules and the places where an IRS example disagrees with its own rule.

Figures checked November 21, 2026Rules version 2026.11.21-2

The order of the walk

  1. Income lines 1z to 8 are added into total income on line 9, with capital losses limited as the form allows.
  2. Half of self-employment tax is worked out from business profit, using the wage base for the year.
  3. Taxable social security is worked out with Publication 915 Worksheet 1, first without the IRA deduction, to give the MAGI for the IRA test, as Publication 590-A Appendix B requires.
  4. The IRA deduction is worked out for each spouse, then taxable social security again with that deduction.
  5. The student loan interest deduction is worked out on its own MAGI, which includes the IRA deduction.
  6. Line 10 adds the adjustments and line 11a is line 9 minus line 10.
  7. Each MAGI is built from AGI with its own add-backs; Schedule 1-A deductions use the MAGI from line 11b.
  8. The standard deduction, with the extra amount for age or blindness, or itemized deductions, and the Schedule 1-A total, give taxable income on line 15.
  9. Tax uses the Tax Table method under $100,000 of taxable income, the rate schedule above it, and the qualified dividends and capital gain worksheet when either is present.

Rounding

  • Money is held in whole cents inside the engine, and decimals are read from their text, never through computer floating point, so a value like 18.845 rounds the way a person would expect.
  • IRA deduction and Roth limits: up to the next $10, and at least $200 while any amount remains.
  • Roth and student loan phaseout ratios: three decimal places, as on the IRS worksheets.
  • Overtime and tips phaseouts: the excess counted in full thousands, rounded down. Car loan interest: rounded up.
  • Percent of the poverty line: decimals dropped, never rounded up; over four times the poverty line is entered as 401.
  • Tax Table: tax at the midpoint of the row, rounded to whole dollars.
  • Results shown as Form 1040 lines are whole dollars when the amount is whole, and show cents where a worksheet produces them.

Where an IRS example and its rule disagree

Test IRA01. Pub 590-A (2025) Example 1 and its illustrated Worksheet 1-2 print $6,825 (19,500 x 35%), but line 4 of the same worksheet, and line 7 of the IRA Deduction Worksheet in the 2025 Form 1040 instructions, say to increase a result that is not a multiple of $10 to the next multiple of $10, giving $6,830. The calculator follows the rule.

Test ROTH01. The text says MAGI $150,000 and a reduced limit of $6,530; the filled-in Worksheet 2-2 shows MAGI $151,000, ratio 0.067, reduction 469, result $6,540. At MAGI $150,000 the limit is not reduced at all. The worksheet figures are internally consistent; the text is not. The calculator matches the worksheet.

Publication 590-A also prints the 2026 joint Roth ceiling as "$252,0000"; the correct figure, $252,000, is confirmed by the IRS notice.

All test cases

17 cases are IRS or CMS worked examples, 4 are examples printed on IRS forms, 3 are values read from official tables, and 14 are our own examples, worked by hand from the official rule. Every case passed in the build that produced this page.

Engine test cases
TestWhat it checksKindInputsExpectedResult
IRA01IRA deduction, 2025IRS or CMS worked examplestatus joint; covered yes; age 39; IRA MAGI $126,500; contribution $7,000; compensation $66,000deduction $6,830Pass
IRA02IRA deduction, 2025IRS or CMS worked examplestatus joint; covered no; spouse covered yes; age 39; IRA MAGI $126,500; contribution $7,000; compensation $51,500deduction $7,000Pass
IRA03IRA deduction, 2025IRS or CMS worked examplestatus joint; covered no; spouse covered yes; age 39; IRA MAGI $238,500; contribution $7,000; household compensation $45,500deduction $5,250; nondeductible $1,750Pass
IRA04IRA deduction, 2025IRS or CMS worked examplestatus joint; covered yes; age 39; IRA MAGI $238,500; contribution $7,000deduction $0; nondeductible $7,000Pass
IRA05IRA deduction, 2025IRS or CMS worked examplestatus single; covered yes; age 29; salary $72,000; IRA MAGI $90,000; contribution $7,000deduction $0Pass
IRA06IRA deduction, 2026Our example, worked from the official rulestatus single; covered yes; age 40; IRA MAGI $86,000; contribution $7,500deduction $3,750Pass
ROTH01Roth limit, 2025IRS or CMS worked examplestatus single; age 45; compensation $150,000; Roth MAGI $151,000; other IRA contributions $0Roth limit $6,540; ratio 0.067Pass
ROTH02Roth limit, 2026Our example, worked from the official rulestatus joint; age 52; compensation $300,000; Roth MAGI $247,000Roth limit $4,300; ratio 0.5Pass
SLI01Student loan interest, 2025IRS or CMS worked examplestatus joint; interest paid $800; MAGI $185,000deduction $400Pass
SLI02Student loan interest, 2025IRS or CMS worked examplestatus joint; interest paid $2,750; MAGI $185,000deduction $1,250Pass
SLI03Student loan interest, eligibilityIRS or CMS worked examplestatus single; interest paid $1,100; claimed as a dependent yesdeduction $0Pass
SLI04Student loan interest, 2026Our example, worked from the official rulestatus joint; interest paid $2,500; MAGI $190,000deduction $1,250Pass
SLI05Student loan interest, 2025Our example, worked from the official rulestatus single; interest paid $2,500; MAGI $92,000deduction $1,332.50; ratio 0.467Pass
SS01Taxable social securityIRS or CMS worked examplestatus single; benefits $5,980; pension $18,600; wages $9,400; taxable interest $990; adjustments $0taxable benefits $2,990; AGI $31,980Pass
SS02Taxable social securityIRS or CMS worked examplestatus joint; benefits $5,600; pension $15,500; wages $14,000; taxable interest $250; IRA deduction $1,000taxable benefits $0; AGI $28,750Pass
SS03Taxable social securityIRS or CMS worked examplestatus joint; benefits $10,000; pension $38,000; taxable interest $2,300; excluded bond interest $200taxable benefits $6,275Pass
OT01Qualified overtimeIRS or CMS worked exampleovertime pay $15,000; rate 1.5qualified overtime $5,000Pass
OT02Qualified overtimeIRS or CMS worked exampleovertime pay $20,000; rate 2qualified overtime $5,000Pass
OT03Qualified overtimeIRS or CMS worked examplecomp time pay $4,500; rate 1.5qualified overtime $1,500Pass
OT04Overtime deductionOur example, worked from the official rulestatus single; qualified overtime $12,500; MAGI $160,999deduction $11,500Pass
OT05Overtime deductionOur example, worked from the official rulestatus joint; qualified overtime $30,000; MAGI $320,000deduction $23,000Pass
TIP01Tips deductionIRS or CMS worked examplestatus single; qualified tips $26,000; MAGI $200,000deduction $20,000Pass
TIP02Tips deductionIRS or CMS worked examplestatus single; qualified tips $10,000; MAGI $180,000deduction $7,000Pass
TIP03Tips deductionExample printed on the IRS formstatus single; qualified tips $25,000; MAGI $151,500deduction $24,900Pass
CAR01Car loan interest deductionExample printed on the IRS formstatus single; interest $10,000; MAGI $100,500deduction $9,800Pass
CAR02Car loan interest deductionExample printed on the IRS formstatus single; interest $10,000; MAGI $100,050deduction $9,800Pass
SEN01Senior deductionOur example, worked from the official rulestatus joint; both eligible yes; MAGI $170,000per person $4,800; deduction $9,600Pass
SEN02Senior deductionOur example, worked from the official rulestatus single; eligible yes; MAGI $175,000deduction $0Pass
SEN03Senior deductionOur example, worked from the official rulestatus single; eligible yes; MAGI $90,000deduction $5,100Pass
PTC01Percent of poverty lineExample printed on the IRS formratios 0.9984, 1.8565, 3.997percent 99, 185, 399Pass
PTC02Percent of poverty line, 2025Our example, worked from the official rulehousehold size 1; area 48 states; household income $60,241percent 401; poverty line $15,060Pass
IRM01Medicare Part B, 2027Official table valuestatus single; 2025 MAGI $112,000monthly premium $209.40Pass
IRM02Medicare Part B, 2027Official table valuestatus joint; 2025 MAGI $224,001monthly premium each $293.10Pass
SH01Tax by rate schedule, 2025Our example, worked from the official rulestatus single; taxable income $50,000; method scheduletax $5,914Pass
SH02Tax Table, 2025Official table valuetaxable income $50,000; method tablesingle $5,920; joint $5,526; separate $5,920; head of household $5,663Pass
SH03Tax by rate schedule, 2026Our example, worked from the official rulestatus single; taxable income $150,000; method scheduletax $28,598Pass
AGI01Full AGI walk, 2025Our example, worked from the official rulestatus single; W-2 box 1 $60,000; taxable interest $500; tax-exempt interest $300; HSA $3,000; student loan interest $2,500line 9 $60,500; line 10 $5,500; line 11a $55,000; ACA MAGI $55,300; taxable income $39,250Pass
SE01Self-employment tax, 2025Our example, worked from the official rulenet profit $50,000; W-2 social security wages $0SE tax $7,064.78; half deducted $3,532.39Pass

What the engine does not model

  • State AGI and state taxes
  • The qualified business income deduction, credits, the alternative minimum tax and the net investment income tax
  • Foreign earned income and other exclusions some MAGIs add back
  • The dependent standard deduction
  • The 2026 charitable deduction for non-itemizers, which is taken after AGI
  • Part D income-related premiums

Sources and recheck schedule

Each source has a recheck interval by type: draft forms every two weeks until final, annual forms monthly in filing season, inflation figures quarterly and on fixed dates, and pending bills weekly. The build stops if a source is badly overdue. The changes are logged on the changelog. The shared rules file is version 2026.11.21-2.

Sources used by the calculators and guides
SourceChecked
IRS, Rev. Proc. 2025-32 (2026 inflation adjustments)November 21, 2026
IRS, 2025 Form 1040November 21, 2026
IRS, 2025 Instructions for Form 1040 and 1040-SR (worksheets and Tax Table)November 21, 2026
IRS, Publication 590-A (2025)November 21, 2026
IRS, Publication 970 (2025), Tax Benefits for EducationNovember 21, 2026
IRS, 2025 Schedule 1-A (Form 1040), Additional DeductionsNovember 21, 2026
IRS, 2025 Instructions for Form 8962November 21, 2026
CMS, CY 2027 Part B premium and income-related monthly adjustment amounts (Federal Register public inspection 2026-23601)November 21, 2026
IRS, Notice 2026-66 (2027 retirement plan and IRA amounts)November 21, 2026
IRS, Rev. Proc. 2026-35 (2027 inflation adjustments)November 21, 2026
HealthCare.gov, What to include as incomeNovember 21, 2026
IRS, Rev. Proc. 2025-25 (2026 applicable percentage table)November 21, 2026
IRS, 2026 Form 8962 draftNovember 21, 2026
HHS ASPE, 2025 Poverty Guidelines (detailed tables)November 21, 2026
IRS, Publication 915 (2026), Social Security and Equivalent Railroad Retirement BenefitsNovember 21, 2026
SSA, Form SSA-44, Medicare Income-Related Monthly Adjustment Amount, Life-Changing EventNovember 21, 2026
IRS, IR-2025-114, guidance for tips and overtime in tax year 2025November 21, 2026
IRS, 2026 Schedule 1-A draftNovember 21, 2026
SSA Office of the Chief Actuary, Contribution and Benefit BaseNovember 21, 2026
IRS, 2025 Schedule 1 (Form 1040)November 21, 2026
IRS, Definition of adjusted gross incomeNovember 21, 2026
Canada Revenue Agency, Line 23600 Net incomeNovember 21, 2026
GOV.UK, Adjusted net incomeNovember 21, 2026
IRS, prior-year Form 1040 PDFs (2018 to 2024)November 21, 2026
IRS, 2026 Form 1040 early release draftNovember 21, 2026
IRS, Validating your electronically filed tax returnNovember 21, 2026
IRS, Get your tax records and transcriptsNovember 21, 2026
IRS, 2026 Schedule 1 draftNovember 21, 2026
IRS, Rev. Proc. 2024-25 (2025 HSA limits)November 21, 2026
IRS, Rev. Proc. 2025-19 (2026 HSA limits)November 21, 2026
IRS, Rev. Proc. 2024-40 (2025 inflation adjustments)November 21, 2026

Sources