Skip to main content
Calculator Matters=
Calculator Matters=
[=]Calculators
Guides
HomeTax formula verification

Legal & Policies

Tax Formula Verification

28 of the 28 published tax calculators have an automated formula test suite. Each row gives one calculator's passing cases and the kinds of check behind them.

Last updated 16 September 2026

This is the tax section of the formula verification report, which explains what each kind of case tests, how the counts are produced and what they do not prove; how to read the report walks through a single row. Rows run from the largest suite to the smallest; each row's address ends in the calculator's slug, so one calculator's evidence can be linked and cited on its own. The test file behind every row, and the per-kind numbers, are in the machine-readable report.

Every tax calculator, with its case mix

Automated formula-test coverage for the Tax calculators: passing cases and case mix per calculator
CalculatorCasesCase mix
Average Cost Basis Calculator6,73068 independent · 19 golden · 18 boundary · 6,600 property · 25 structural
Indexation Calculator6,73068 independent · 19 golden · 18 boundary · 6,600 property · 25 structural
Canada GST HST PST Calculator5,14464 independent · 31 golden · 15 boundary · 5,000 property · 34 structural
Contractor TDS Calculator5,14464 independent · 31 golden · 15 boundary · 5,000 property · 34 structural
India GST Calculator5,14464 independent · 31 golden · 15 boundary · 5,000 property · 34 structural
Salary TDS Calculator5,14464 independent · 31 golden · 15 boundary · 5,000 property · 34 structural
UK VAT Calculator5,14464 independent · 31 golden · 15 boundary · 5,000 property · 34 structural
Salary & Take-Home Pay Calculator43023 independent · 181 golden · 38 boundary · 150 property · 38 structural
Income Tax Calculator16130 independent · 67 golden · 36 boundary · 16 property · 12 structural
VAT/GST Calculator1516 independent · 35 golden · 53 boundary · 16 property · 41 structural
Bonus Tax Calculator816 independent · 21 golden · 9 boundary · 9 property · 36 structural
Estimated Tax Payment Calculator816 independent · 21 golden · 9 boundary · 9 property · 36 structural
Overtime Tax Calculator816 independent · 21 golden · 9 boundary · 9 property · 36 structural
Payroll Tax Calculator816 independent · 21 golden · 9 boundary · 9 property · 36 structural
Capital Gains Tax Calculator7917 independent · 20 golden · 14 boundary · 12 property · 16 structural
Self-Employment Tax Calculator7917 independent · 20 golden · 14 boundary · 12 property · 16 structural
Australian Income Tax Calculator7743 independent · 12 golden · 11 boundary · 9 property · 2 structural
Tax Refund Calculator7521 golden · 9 boundary · 9 property · 36 structural
India Income Tax Calculator5323 independent · 8 golden · 13 boundary · 7 property · 2 structural
Corporate Tax Calculator515 independent · 11 golden · 5 boundary · 6 property · 24 structural
Quarterly Tax Calculator515 independent · 11 golden · 5 boundary · 6 property · 24 structural
Dividend Tax Calculator4611 golden · 5 boundary · 6 property · 24 structural
UK Income Tax Calculator4619 independent · 15 golden · 6 boundary · 3 property · 3 structural
Effective Tax Rate Calculator442 independent · 8 golden · 6 boundary · 4 property · 24 structural
Taxable Income Calculator442 independent · 8 golden · 6 boundary · 4 property · 24 structural
Sales Tax Calculator252 independent · 8 golden · 10 boundary · 3 property · 2 structural
Global Import Duty Calculator2015 golden · 4 boundary · 1 structural
Canadian Income Tax Calculator194 independent · 6 golden · 2 boundary · 5 property · 2 structural

What each suite checks

Counts say how much was checked; these say what. Each case below is quoted from its test file exactly as the runner recorded it, in the order the cases run, independent cross-checks first. Where a suite has more cases than fit, the count in brackets says how many of that kind exist in total. The 8 largest suites in this category are shown; the other 10 are in the machine-readable report.

Capital gains and cost basis engines (stock, mutual fund, indexation, cost basis, averaging, interest income)

6,730 passing cases behind Indexation Calculator and Average Cost Basis Calculator: 68 independent cross-check, 19 golden, 18 boundary, 6,600 property and 25 structural.

  • Independent cross-check — Stock: 100 shares 500->800 gain recomputed
  • Independent cross-check — Stock: 100 shares tax recomputed
  • Independent cross-check — Stock: 100 shares proceeds recomputed
  • Independent cross-check — Stock: 100 shares net gain is the gain less the tax
  • Independent cross-check — Stock: 50 shares 1500->1200 gain recomputed
  • Independent cross-check — Stock: 50 shares tax recomputed

6 of 68 independent cross-check cases shown. The test file is scripts/validate-capgains-basis-defs-engine.cjs.

Indirect tax and withholding engines (India GST, UK VAT, Canada GST/HST/PST, TDS variants)

5,144 passing cases behind India GST Calculator, UK VAT Calculator, Canada GST HST PST Calculator, Salary TDS Calculator and Contractor TDS Calculator: 64 independent cross-check, 31 golden, 15 boundary, 5,000 property and 34 structural.

  • Independent cross-check — India GST: 1000 at 18% round-trips back to the base
  • Independent cross-check — India GST: 1000 at 18% tax recomputed
  • Independent cross-check — India GST: taking 18% of the gross overstates the tax
  • Independent cross-check — India GST: 499.99 at 5% round-trips back to the base
  • Independent cross-check — India GST: 499.99 at 5% tax recomputed
  • Independent cross-check — India GST: taking 5% of the gross overstates the tax

6 of 64 independent cross-check cases shown. The test file is scripts/validate-indirect-tax-defs-engine.cjs.

Take-home-pay engine

430 passing cases behind Salary & Take-Home Pay Calculator: 23 independent cross-check, 181 golden, 38 boundary, 150 property and 38 structural.

  • Independent cross-check — EPFO: 12% of ₹20,000 PF wages is ₹2,400 a month
  • Independent cross-check — EPFO: the ₹25,000 ceiling is the config the engine applies
  • Independent cross-check — EPFO: under the old ₹15,000 ceiling the same wage paid ₹1,800
  • Independent cross-check — CRA: base CPP maximum $3,519.45
  • Independent cross-check — CRA: first additional $711 + CPP2 $416 deducted from income
  • Independent cross-check — CRA: EI maximum $1,123.07

6 of 23 independent cross-check cases shown. The test file is scripts/validate-take-home-pay-engine.cjs.

Income tax engine

161 passing cases behind Income Tax Calculator: 30 independent cross-check, 67 golden, 36 boundary, 16 property and 12 structural.

  • Independent cross-check — IRS Schedule X (2026): taxable income $12,400 owes $1,240
  • Independent cross-check — IRS Schedule X (2026): taxable income $50,400 owes $5,800
  • Independent cross-check — IRS Schedule X (2026): taxable income $105,700 owes $17,966
  • Independent cross-check — IRS Schedule X (2026): taxable income $201,775 owes $41,024
  • Independent cross-check — IRS Schedule X (2026): taxable income $256,225 owes $58,448
  • Independent cross-check — IRS Schedule X (2026): taxable income $640,600 owes $192,979.25

6 of 30 independent cross-check cases shown. The test file is scripts/validate-income-tax-engine.cjs.

VAT engine

151 passing cases behind VAT/GST Calculator: 6 independent cross-check, 35 golden, 53 boundary, 16 property and 41 structural.

  • Independent cross-check — GOV.UK: a £60 chair plus 20% VAT is £72
  • Independent cross-check — GOV.UK: a £200 car seat plus 5% VAT is £210
  • Independent cross-check — GOV.UK: £180 including 20% VAT is £150 before VAT and £30 of VAT
  • Independent cross-check — VAT Notice 700: the VAT in £2.40 at 20% is 40 pence
  • Independent cross-check — VAT Notice 700: the VAT fraction at 20% is one-sixth
  • Independent cross-check — VAT Notice 700: the VAT fraction at 5% is one twenty-first

6 of 6 independent cross-check cases shown. The test file is scripts/validate-vat-engine.cjs.

Planning & US tax engines (FIRE, depreciation, CGT, SE tax)

79 passing cases behind Capital Gains Tax Calculator and Self-Employment Tax Calculator: 17 independent cross-check, 20 golden, 14 boundary, 12 property and 16 structural.

  • Independent cross-check — FIRE: the accumulation loop matches the closed-form solve
  • Independent cross-check — CGT: 12 months qualifies as long-term
  • Independent cross-check — CGT: 11 months does not
  • Independent cross-check — CGT: single filer, short-term on 75,000 → the 22% band
  • Independent cross-check — CGT: selling a month early costs more tax
  • Independent cross-check — CGT: joint filers on 75,000 are in the 12% band, not 22%

6 of 17 independent cross-check cases shown. The test file is scripts/validate-planning-tax-defs-engine.cjs.

Australian income tax engine (2026-27 and 2025-26, residents and foreign residents)

77 passing cases behind Australian Income Tax Calculator: 43 independent cross-check, 12 golden, 11 boundary, 9 property and 2 structural.

  • Independent cross-check — ATO 2026-27: $4,020 on $45,000
  • Independent cross-check — ATO 2026-27: $31,020 on $135,000
  • Independent cross-check — ATO 2026-27: $51,370 on $190,000
  • Independent cross-check — ATO 2025-26: $4,288 on $45,000
  • Independent cross-check — ATO 2025-26: $31,288 on $135,000
  • Independent cross-check — ATO 2025-26: $51,638 on $190,000

6 of 43 independent cross-check cases shown. The test file is scripts/validate-australia-income-tax-engine.cjs.

Withholding and deduction engines

75 passing cases behind Estimated Tax Payment Calculator, Tax Refund Calculator, Bonus Tax Calculator, Overtime Tax Calculator and Payroll Tax Calculator: 21 golden, 9 boundary, 9 property and 36 structural.

  • Golden — Itemised: the categories total 19,000
  • Golden — Itemised: 19,000 beats the 16,100 standard deduction
  • Golden — Itemised: the extra 2,900 saves 638 at 22%
  • Golden — Estimated: 18% of 90,000 is 16,200 of tax
  • Golden — Estimated: 10,200 remains after withholding
  • Golden — Estimated: 2,550 a quarter

6 of 21 golden cases shown. The test file is scripts/validate-withholding-defs-engine.cjs.

A documents folder, reading glasses and papers on a desk
Photo: Leeloo The First / Pexels
Questions about this policy?Published by Calculator Matters (calculatormatters.com). Last reviewed 16 September 2026. Built and maintained by Jay Sudha (about Calculator Matters). These pages are reviewed regularly, and questions are always welcome.
Contact us
Calculator Matters=

Formula-backed calculators with clear assumptions, practical interpretation, and workbook support.

Calculators are educational estimates, not professional advice.

  • Instagram
  • Pinterest
  • Facebook
  • X

Popular calculators

  • Mortgage Calculator
  • Compound Interest Calculator
  • Investment Calculator
  • Regular Investment Calculator
  • Retirement Withdrawal Calculator
  • Standard Deviation Calculator

Browse by category

  • Finance
  • Investing
  • Budget & Credit
  • Business
  • Tax
  • Economics
  • Math
  • Health
  • Time & Date
  • Home & Energy
  • Everyday
  • Conversion

Explore

  • All Calculators
  • Calculator Guides
  • Glossary
  • Embed a calculator
  • Verified Formula badge
  • API for developers
  • Changelog
  • Sitemap

Company

  • About
  • Methodology
  • Formula Verification
  • Transparency
  • Editorial Policy
  • Corrections
  • Accessibility
  • Contact

Legal & privacy

  • Privacy Policy
  • Privacy Rights
  • Cookie Policy
  • Terms of Use
  • Disclaimer
  • Advertising Disclosure
  • Affiliate Disclosure
  • Copyright & DMCA Policy

© 2026 Calculator Matters · calculatormatters.com.

Educational estimate — not financial, tax, legal, or professional advice. Formulas and assumptions are shown on the page above.