A calculator is only useful if you can trust what it tells you to buy. This page explains where the figures on YardMaths come from, how the math is tested, and what to do if you find a mistake.
Two kinds of numbers
Most of what a calculator does is plain math: the area of a rectangle or a circle, a volume from an area and a depth, a unit conversion. That part needs no source, only correct code, and the formula is written out on each calculator page so you can follow it.
The rest are facts about the real world: how much a cubic yard of gravel weighs, how many square feet a gallon of paint covers, the tallest step a building code allows, the energy a dog needs. Those numbers need a source, and they are the ones we are strict about.
Where the facts come from
We take figures from primary sources: government agencies and their handbooks (NIST, the Energy Information Administration, ENERGY STAR, the Department of Energy, the National Weather Service), building and electrical codes, university extension services, professional and trade associations, veterinary references, and the data sheets of the manufacturers who make the product.
Our rule is that each figure is read on the source's own page, with its exact number, unit and wording, and that blogs, forums and other calculator sites are not sources. For every guide, a fact sheet records each claim with the address of the source and the text read there, and a separate check goes through it before the guide is published.
Weights of soil and stone
Bulk materials are sold by the cubic yard or by the ton, so a few calculators turn volume into weight with a density you can edit. The defaults come from published material tables: Caterpillar’s material density tables (loose and in-place weights of topsoil, loam, earth, clay, sand and gravel), Rockland’s weights of materials (broken granite and limestone) and the USDA NRCS bulk density sheet (soil bulk density by texture). Fill dirt starts at 1.3 tons per cubic yard (dry packed earth, 2,550 lb loose), river rock and the gravel calculator at 1.4 (dry gravel of 1/4 to 2 inches, 2,850 lb loose, or 1.425 tons, rounded to 1.4; the gravel page also shows the 2,400 to 2,700 lb that Caltrans lists for loose crushed stone), cobbles at 1.3 (broken limestone, 2,605 lb) and topsoil at 1.1, between loose loam (2,100 lb) and topsoil in the ground (2,300 lb). Every one of these tables warns that moisture, grain size and compaction change the weight, so the supplier’s figure for the exact product always wins.
Prices
Price fields are optional and empty when a calculator opens: you type the price your supplier quotes. A few calculator pages multiply by a round price to show the arithmetic, and that number is an illustration, not a market price. The one price a calculator fills in for you is the electricity rate of the electricity cost calculator, which comes from the Energy Information Administration and names the month it applies to.
Worked examples are run, not typed
Calculator pages and guides walk through examples with real numbers. Our rule is that those numbers come from running the calculator's own code with the same inputs, not from mental math, so the example and the calculator round the same way. On the newer calculator pages, an automated test reads each worked example and fails if it no longer matches what the calculator shows. When a guide has a button that opens the calculator with its example filled in, a test checks that the button only uses real fields of that calculator's form.
Automated tests before every update
Every calculator has automated tests with cases worked out by hand and inputs it must refuse, such as a blank field or an impossible value, and a separate test fails if any calculator is missing them. Other tests check every page of the site: one main heading per page, no two pages with the same title, description or FAQ question, no broken internal link, structured data that can be read, and the format rules of the guides. All of these tests are run before each update goes live, and the update waits until none of them fails.
Rounding and defaults
Bags, boxes, rolls, sheets and other things sold by the piece are rounded up to whole units, so an estimate does not leave you short. Default values such as a material density, a coverage rate or a waste allowance are shown in the form and can be changed. When your supplier, the product label or your seed bag gives a different number, use theirs.
What these calculators are not
The results are planning estimates. They are not engineering, legal, medical, veterinary or financial advice. For structural work, follow your local building code and your permit office. For anything electrical, a licensed electrician has the last word. On the pet pages, your veterinarian is the reference for your own animal.
Dates on each page
The “Last updated” date at the bottom of a calculator changes only when the content of that page changes. A guide shows the date it was last revised.
Found a mistake?
Tell us on the contact page. Name the calculator or guide, the values you entered and the result you expected. If a page is wrong, it is corrected, and its date changes with the correction. You can read more about this site and our editorial policy, browse the guides or go to the calculators.