Skip to content
Menu

Methodology

How the calculators work, where their numbers come from and when each one was last reviewed.

How every calculator works

All the calculators share one method, so a result on one page is worked out the same way as on another.

  1. Everything is converted to SI first. Whatever unit you type, the calculator converts the value to meters, square meters, cubic meters or kilograms, does all the arithmetic there, and converts the answer back to the unit you are viewing. Converting at the edges means switching between feet and meters does not change the amount: an area, a volume or a weight is the same in either system. What you buy in whole containers can change, because a whole gallon and a whole liter are different amounts: the paint calculator rounds up to whole gallons in Imperial and to whole liters in Metric.
  2. Conversion factors are exact. The factors in the table below are exact definitions or exact consequences of them, not rounded figures.
  3. Quantities you buy are rounded up. Quantities sold in whole units (tiles, boxes, bags, containers) are rounded up. Before rounding, a value that is within about one billionth of a whole number counts as that whole number. This guards against floating-point noise: 12 × 1.05 ÷ 0.36 is exactly 35 on paper, but a computer evaluates it as 35.00000000000001, and a plain round-up would say 36 instead of 35.
  4. Inputs are bounded. Each calculator checks every value against fixed limits and shows a message beside the field instead of a result when a value is missing, zero where it must be positive, or far outside what the calculator supports.
  5. Nothing is sent to a server. The calculation runs in your browser. The default answer on each page is worked out when the site is built, so it is in the page before any script runs.
  6. Worked examples are computed, not typed. The examples on each calculator page and in the guides are produced by the same functions as the calculator, at build time, and automated tests check those functions against fixed reference cases.
Conversion factors used
UnitExact valueNote
1 inch0.0254 m
1 foot0.3048 m
1 yard0.9144 m
1 US gallon3.785411784 LDerived from 231 cubic inches
1 pound0.45359237 kg
1 short ton907.18474 kg2,000 pounds

Sources: NIST SP 811, Appendix B and NIST unit conversion. NIST prints the US gallon and the short ton as rounded figures; the full digits above follow exactly from 1 inch = 25.4 mm and 1 pound = 0.45359237 kg.

Where defaults come from

A default that stands for real-world practice, such as a waste allowance, is a figure that a cited source states. Where sources give a range, the page shows the range. Where sources disagree, the page says so, and where we found no source, the calculator does not invent a figure and the page says so.

Some starting values are choices, not published recommendations: the example room dimensions, the tile price the tile calculator opens with, the 80 lb concrete bag (one of the published bag sizes), the 2 in gravel depth (the low end of the sourced walkway range) and the paint calculator's 1 door and 2 windows. They are there so the page shows a complete answer on first load. Replace them with your own.

What is not covered

  • Prices. The calculators multiply by a price you enter; they do not know what anything costs.
  • Products. No brand, product line or box size is built in; enter the figures from the label.
  • Structural, engineering or building-code advice. An estimate of how much material to buy does not tell you whether a slab, a floor or a wall is adequate for its use. Check your local code and ask a qualified professional where it matters.

Calculators and their sources

Each calculator page sets out its own formula, defaults and worked example. The list below gives the review date and the sources for each one.

Last reviewed . The formula, defaults and worked example are on the calculator page.

Last reviewed . The formula, defaults and worked example are on the calculator page.

Last reviewed . The formula, defaults and worked example are on the calculator page.

Last reviewed . The formula, defaults and worked example are on the calculator page.

Last reviewed . The formula, defaults and worked example are on the calculator page.

Reporting an error

If a result looks wrong, or a source has changed, tell us on the contact page. Say which calculator you used, the inputs and what you expected. A reported result is checked against the formula and its sources, and the review date changes only when that check has been made again.

Review policy

Every calculator page shows a Last reviewed date. On that date its formula and its sources were checked: the formula against the method the sources describe, and each default against the source cited for it. The date is the date of that check and nothing more: it is not a promise of a regular schedule, and the check is not a professional certification. These pages are estimates to plan with, not engineering or code advice.