How We Build and Test Our Calculators

Last updated

This page explains how every calculator on CalcQuarry is made and checked, so you can decide how far to trust a result.

1. One formula, written once

Each calculation, such as the volume of a slab or the riser height of a stair, is a small function in the site’s code. The calculator you
use, the worked example on the page and the tables are all produced by that same function. The example numbers are generated when the page
is built, so they can’t drift away from what the calculator does.

2. Automated tests with hand-checked answers

Every formula has automated tests with answers worked out by hand: for example, a 10 × 10 ft slab 4 in thick with 10% extra must come to 62
bags of 80 lb mix, and a 108 in stair rise must give 14 risers. The tests run before every update is published, and a failing test blocks the
release.

3. Exact units

Conversions use exact definitions from NIST: 1 in = 2.54 cm and 1 ft = 0.3048 m exactly, and the US gallon is exactly 231 cubic inches. The
calculators keep full precision internally and round only for display. Anything counted in whole units, such as bags or blocks, is rounded
up, because you can’t buy part of a bag.

4. Sourced constants

Numbers that aren’t pure geometry, such as how much concrete a bag makes or how much a cubic yard of gravel weighs, come from a named
source: a manufacturer’s data sheet, an industry association, a university extension service or a building department. Each calculator
lists its sources with dates, and says in its hint text where a value varies (gravel weight, for example) so you can enter your supplier’s
figure instead.

5. Code rules are summaries

Where a calculator checks a code rule, it uses the International Residential Code as summarized in public building-department handouts.
Local amendments can differ, so these checks are a first pass, not an approval.

6. Reviews and corrections

Each page shows the date its formulas and sources were last reviewed. If you find an error, email
hello@calcquarry.com with the page link and your inputs. Confirmed errors are fixed and the page date
is updated.

7. Your data stays with you

Calculations run in your browser. What you type isn’t sent to our servers. See the privacy policy.

Sources used across the site