How we check our formulas

Before a calculator is published, its formula is tested in code against figures from at least two sources we have read, its worked example is recomputed by that test, and a reviewer who did not write the page checks it all again.

Last updated by the Yardstick Math team.

The process, step by step

  1. The formula lives in one tested function. The math is a small function with explicit units and no page code. The calculator and the automated tests call the same function, and the tests compare its answers with figures taken from the sources.
  2. At least two sources, actually read. Each page cites at least two references, such as a manufacturer data sheet or installation guide, a building code, a government or university document, an industry association guide or a supplier’s published table. We open each one, check that it loads and find the figure we use in it. The Sources list shows the date we last read each one; a source that blocks automated reading is listed without a date.
  3. The worked example matches the calculator. Each page has an example worked by hand, step by step. An automated test checks that the calculator gives the same number, and its name is printed under the example. Other figures quoted in the text and the FAQ are recomputed by tests too.
  4. A separate review before publication. A new calculator stays unpublished until a reviewer who did not write it re-runs the tests, rereads every source and tries the calculator on a phone-sized screen.
  5. A checked date on every page. Each calculator shows “Checked” and a date right below the form: the day its formula, example and sources were last checked in full.
  6. Corrections within 48 hours. If a source changes a rule or a figure a calculator uses, the page is corrected or taken down within 48 hours.
  7. Estimates, not engineering. Structural calculators show “Estimate only” under the result: have dimensions, loads and local code checked by a qualified professional before you build. This applies to Concrete Calculator, Stair Calculator, Roofing Calculator, Roof Pitch Calculator, Concrete Block Calculator, Rainwater Harvesting Calculator, Brick Calculator, Deck Calculator, Rafter Length Calculator, Stud Calculator, Rebar Calculator, Generator Size Calculator, Baluster Spacing Calculator, Water Heater Size Calculator, Ceiling Fan Size Calculator and Firewood Calculator.

Rounding and unit conversions

Calculations keep every decimal. Rounding happens only when a number is displayed, and quantities you buy (bags, bundles, cans) are rounded up. Conversions use the exact factors published by the US National Institute of Standards and Technology: 1 ft = 0.3048 m, 1 US gallon = 231 in³ = 3.785411784 L, 1 short ton = 2,000 lb = 907.18474 kg.

Who checks

Pages are written and checked by the Yardstick Math team and signed with the team's name, not a person's. The site publishes no reviews or testimonials.

Formula references by calculator