How we test
Every PorchMath calculator shows the formula it uses. This page explains how we pick the constants, how we check that the JavaScript on the page matches the math, and where you can read the original sources.
Bag yields and masonry
The concrete calculator turns length × width × thickness into cubic feet, applies your waste percentage, divides by 27 for cubic yards, and rounds bag counts up. Default yields follow the QUIKRETE Concrete Mix (product no. 1101) data sheet: 0.60 cu ft for an 80 lb bag, 0.45 cu ft for 60 lb, and 0.30 cu ft for 40 lb. Other brands can differ, so read the label. Metric mode uses 50 kg, 40 kg, and 25 kg bags at 0.0234, 0.0187, and 0.0117 m³, derived from those same US yields.
Block and brick mortar defaults follow the QUIKRETE Mortar Mix (product no. 1102) data sheet: one 80 lb bag lays up to 13 standard 8×8×16 in blocks, or up to 37 standard bricks. The fence calculator's "about two 50 lb bags of fast-setting concrete per post" is a planning figure from QUIKRETE's Fast-Setting Concrete Mix (product no. 1004) examples. A deeper or wider hole needs more; a shallow one needs less.
Coverage rates
Drywall joint compound is estimated at about 10 gallons per 1,000 sq ft of board, the coverage USG lists for Sheetrock Brand All Purpose Joint Compound (submittal J1969). That figure is for a typical three-coat finish, not a full skim coat. Paint defaults to 350 sq ft per gallon, a common interior latex rating, and the field is editable because textured walls and bare drywall take more. Grout uses about 0.058 lb per cubic inch for sanded cement grout. Tile, flooring, and wallpaper use the coverage you enter (defaults: 15 sq ft per tile box, 20 sq ft per flooring box, and a 20.5 in × 33 ft US double roll).
Bulk materials
Gravel defaults to 1.4 tons per cubic yard, sand to 1.35, and topsoil to 1.1. Asphalt uses 145 lb per cubic foot for compacted hot mix. These are mid-range planning densities; your quarry or paving contractor will have a tighter number, and the density field is there so you can use it. Mulch is counted in 2 and 3 cu ft bags, and topsoil bags default to 0.75 cu ft.
Electrical, cooling, framing, and rebar
The voltage drop and wire size calculators share the same formula. In US units, K is 12.9 for copper and 21.2 for aluminum (the NEC Chapter 9 convention). In metric units the resistivities are 0.0172 and 0.0282 Ω·mm²/m. US wire sizing also applies NEC 2023 Table 310.16 ampacities and the small-conductor limits in 240.4(D). The 3 percent branch and 5 percent feeder-plus-branch figures are recommendations (NEC 210.19(A) Informational Note), not a substitute for a licensed electrician.
The BTU calculator follows the ENERGY STAR room air conditioner sizing table, including adjustments for sun or shade, extra people (600 BTU/h each above two), and kitchens (+4,000 BTU/h). It is an estimate for one room, not a Manual J load for a whole house. Kilowatts use the NIST conversion 1 BTU/h = 0.2930711 W. Rebar weights are the ASTM A615 nominal values (#3 = 0.376 lb/ft, #4 = 0.668, #5 = 1.043, #6 = 1.502); metric mass is d²/162 kg/m. The stair calculator's default maximum riser of 7.75 in and minimum tread of 10 in follow IRC 2021 section R311.7. The local building department can require something different.
How the software is checked
For 25 of the 35 calculators, an independent Python check (test_formulas.py) runs the published JavaScript with known inputs and compares the output. One case is a 10 × 10 ft slab, 4 in thick, with 10% waste: 1.36 cubic yards, or 62 bags of 80 lb mix. The same script rejects negative amounts, and it fails if a blank or huge input produces NaN or Infinity. The other ten calculators have browser acceptance tests in test_pm4.js and test_pm5.js. A separate check (test_i18n.py) confirms that each language edition produces the same numbers as the English page. We also re-run cases for decimal-comma parsing, unit conversion, and earlier bugs.
A passing suite means the page did the arithmetic we intended. It does not replace a check against the bag you are about to buy.
Rounding and waste
Counts of bags, boxes, sheets, and pieces are rounded up to whole units. Volumes and areas are shown to a fixed number of decimals, not rounded in a way that would hide a shortfall in the bag count. Waste is a field you control. Many tools default to 5% or 10%; tile laid on the diagonal often suggests 15%.
If a number is wrong
Tell us through the Contact page. Include the calculator URL, what you entered, what the page showed, and what you think it should have shown. We will try to reproduce it, correct the constant or the formula if needed, and add a regression check when that pins the fix down.
Sources
- QUIKRETE Concrete Mix (No. 1101) data sheet: 0.60, 0.45, and 0.30 cu ft bag yields.
- QUIKRETE Mortar Mix (No. 1102) data sheet: up to 13 standard blocks or 37 standard bricks per 80 lb bag.
- QUIKRETE Fast-Setting Concrete Mix (No. 1004) data sheet: examples of two 50 lb bags for a typical post hole.
- USG Sheetrock Brand All Purpose Joint Compound, submittal J1969: about 10 gallons per 1,000 sq ft of gypsum panels.
- ENERGY STAR, Room Air Conditioners: room-size cooling table and sun, people, and kitchen adjustments.
- NIST Guide to the SI, Appendix B.8: 1 BtuIT/h = 0.2930711 W.
- International Residential Code 2021, Chapter 3: stair rise and run in R311.7 (defaults of 7.75 in and 10 in).