Calculation methodology and accuracy checks

When building ConvertHat calculators and converters, we pay close attention to calculation accuracy, reliable sources and ease of use. Before publication, every calculator is checked for mathematical accuracy and correct behaviour.

Independent verification of calculations

Calculator results are compared with independently computed reference values derived from mathematical formulas, official conversion factors and reference data.

The checks cover typical use cases, boundary values, unit conversions and the handling of invalid input.

Quality control

Every calculator goes through automated checks of calculation accuracy and of how results are displayed.

New calculators and updates are published only after they pass the required checks.

Rounding rules and data handling

Results are rounded to the precision set for each calculator using the round-half-up rule (for example, 2.5 rounds to 3).

If the input is invalid, missing or outside the allowed range, the calculator says so instead of showing a wrong result.

Sources of formulas and reference data

We build our calculators on authoritative primary sources:

Calculator pages with a “How we verified this calculator” section list the sources used, sample check calculations and the date of the last successful check.

Accuracy and limits of results

We aim for high calculation accuracy within the mathematical models applied and the reference data available.

The accuracy of a result depends on the values entered, the rounding rules and the specifics of each calculation method.

ConvertHat calculators are intended for informational, educational and practical purposes. Financial, medical and legal results do not replace advice from a qualified professional.

Sources cited on this site

Source Cited on
29 CFR § 785.48 — Use of time clocks, (b) “Rounding” practices — Legal Information Institute (e-CFR text)
29 U.S. Code § 207 — Maximum hours, (a)(1) overtime at not less than one and one-half times the regular rate — Legal Information Institute
CODATA Recommended Values of the Fundamental Physical Constants: 2022 — Bohr magneton μB — National Institute of Standards and Technology
CODATA Recommended Values of the Fundamental Physical Constants: 2022 — Newtonian constant of gravitation G — National Institute of Standards and Technology
CODATA Recommended Values of the Fundamental Physical Constants: 2022 — Stefan–Boltzmann constant σ — National Institute of Standards and Technology
CODATA Recommended Values of the Fundamental Physical Constants: 2022 — Wien wavelength displacement law constant b — National Institute of Standards and Technology
CODATA Recommended Values of the Fundamental Physical Constants: 2022 — molar gas constant R — National Institute of Standards and Technology
CODATA Recommended Values of the Fundamental Physical Constants: 2022 — vacuum magnetic permeability μ0 — National Institute of Standards and Technology
CSS Values and Units Module Level 4, §6.2 Absolute Lengths (1in = 2.54cm = 96px; 1pt = 1/72 in) — World Wide Web Consortium (W3C)
FHWA HEC-22 Urban Drainage Design Manual, 3rd ed. (FHWA-NHI-10-009, 2009, rev. 2013) — §3.2.2 Rational method eq. (3-1) Q = CIA/Ku, Ku = 360 in SI; Manning's equation (3-5) V = (Ku/n) R^2/3 S^1/2, Ku = 1 in SI — U.S. Federal Highway Administration
Guidelines for Use of Extended Unique Identifier (EUI), Organizationally Unique Identifier (OUI), and Company ID (CID) — IEEE Registration Authority
IRS Publication 538, Accounting Periods and Methods — Accounting Periods: Fiscal Year — Internal Revenue Service
NIST Digital Library of Mathematical Functions, §1.11(iii) Cubic Equations — reduction to w³ + pw + q and the real roots — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §1.12 Continued Fractions — eq. (1.12.5) recurrences for the convergents A_k/B_k — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §26.13 Permutations: Cycle Notation — eq. (26.13.4) derangement number d(n) = n! Σ (−1)^j / j! — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §26.5 Lattice Paths: Catalan Numbers — eq. (26.5.1) C(n) = (2n choose n)/(n + 1) — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §26.7 Set Partitions: Bell Numbers — eq. (26.7.2) B(n) = Σ S(n, k) — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §26.8 Set Partitions: Stirling Numbers — eq. (26.8.6) S(n, k) = (1/k!) Σ (−1)^(k−j) (k choose j) j^n — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §27.14 Unrestricted Partitions — Euler's pentagonal number recursion for p(n), eq. (27.14.5)–(27.14.6) — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §27.2 Functions of Number Theory — Euler's totient (27.2.7), divisor functions d(n), σ_α(n) (27.2.9–10), Möbius function (27.2.12) — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §3.3 Interpolation — eq. (3.3.1) Lagrange interpolation polynomial — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §3.5 Quadrature — eq. (3.5.2) composite trapezoidal rule, eq. (3.5.7) composite Simpson's rule — National Institute of Standards and Technology
NIST Digital Library of Mathematical Functions, §4.2 Logarithm, Exponential, Powers: Definitions — eq. (4.2.3) ln z = ln|z| + i ph z, eq. (4.2.8) log_a z = ln z / ln a, eq. (4.2.24) exp z = e^x cos y + i e^x sin y — National Institute of Standards and Technology
NIST Guide to the SI, Appendix B.8: Factors for Units Listed Alphabetically — National Institute of Standards and Technology
and 39 more
NIST Guide to the SI, Chapter 7: Rules and Style Conventions for Expressing Values of Quantities (SP 811, §7.10.2 “%, percentage by, fraction”) — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.1 Measures of Location (mean, median, trimmed and Winsorized means) — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.11 Measures of Skewness and Kurtosis — Fisher–Pearson skewness g1 and excess kurtosis with s computed using N — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.6 Measures of Scale — median absolute deviation MAD = median(|Yi − Ỹ|) — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.1 Normal Distribution — probability density function — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.18 Binomial Distribution — probability mass function, mean np, standard deviation √(np(1 − p)) — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.19 Poisson Distribution — probability mass function e^−λ λ^x / x!, mean λ — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.2 Uniform Distribution — density, cumulative distribution, mean (A + B)/2 and standard deviation — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.7 Exponential Distribution — density, F(x) = 1 − e^(−x/β), mean and standard deviation β = 1/λ — National Institute of Standards and Technology
NIST/SEMATECH e-Handbook of Statistical Methods, §7.2.4.1 Confidence intervals — Wilson score interval for a proportion — National Institute of Standards and Technology
Prefixes for binary multiples (IEC 60027-2: kibi, mebi, gibi…) — National Institute of Standards and Technology
RFC 1146: TCP alternate checksum options (8-bit Fletcher's algorithm, Appendix I) — IETF
RFC 1950: ZLIB Compressed Data Format Specification version 3.3 (Adler-32, §8.2) — IETF
RFC 1952: GZIP file format specification version 4.3 (CRC-32, §8) — IETF
RFC 2781: UTF-16, an encoding of ISO 10646 — IETF
RFC 3339: Date and Time on the Internet: Timestamps — Appendix A (ISO 8601 collected ABNF: week dates, weekday 1 = Monday … 7 = Sunday) and Appendix C (Leap Years) — IETF
and 2 more
RFC 3629: UTF-8, a transformation format of ISO 10646 — IETF
RFC 3986: Uniform Resource Identifier (URI): Generic Syntax (percent-encoding, §2.1) — IETF
RFC 4291: IP Version 6 Addressing Architecture — IETF
RFC 4632: Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan — IETF
RFC 4648: The Base16, Base32, and Base64 Data Encodings — IETF
RFC 5952: A Recommendation for IPv6 Address Text Representation — IETF
Recommendation ITU-R P.525-5 (11/2024): Calculation of free-space attenuation — §2.3 Point-to-point links, equations (5) and (6) — International Telecommunication Union (ITU-R)
Regulation DD (12 CFR Part 1030), Appendix A — Annual Percentage Yield Calculation, Part I General formula — Consumer Financial Protection Bureau
Regulation Z (12 CFR Part 1026), Appendix J — Annual Percentage Rate Computations for Closed-End Credit Transactions, (b)(8) General equation — Consumer Financial Protection Bureau
The Heat Index Equation — Rothfusz regression with the low- and high-humidity adjustments, and Steadman's simple formula averaged with the temperature below 80 °F — NOAA National Weather Service, Weather Prediction Center
The International System of Units (SI), 9th edition (2019) — SI Brochure — Bureau International des Poids et Mesures (BIPM)
and 78 more