Calculator links

Every calculator reads its fields from the address of the page. A link with the right parameters opens the calculator with your numbers and their result.

Updated

A link is the address of a calculator page followed by ? and its fields as key=value pairs joined by &, for example ?length=24&width=12 after the address of the concrete slab calculator. The key of a field is its id, listed for each calculator below. A field left out keeps its default, and the page itself writes only the fields that differ from their defaults.

Numbers and units

Numbers use a period for decimals and may group thousands with commas, as in 1,200.5. A number with a decimal comma or a minus sign is not read as a number: the field shows it with an error.

A length, area or volume field reads its unit from a second key, the field id followed by .u, such as length.u=m. A field given in the link without that key, or with a unit the field does not offer, is read in its first unit. The table of each calculator lists the units of every field, the first one first.

Feet and inches

A field measured in feet also takes inches: 12ft5in is 12 ft 5 in, and so is 12+5. A decimal is read as feet and inches, so 12.5 gives 12 ft 6 in. The page writes such a length as 12ft5in, or as the feet alone when there are no inches. The tables mark the fields that take feet and inches.

Options and switches

A list or a row of buttons takes the id of one of its options, such as shape=wall. A switch takes 1 for on and 0 for off. An option id the field does not offer, or a switch value other than 1 or 0, is ignored, and the field keeps its default. On a calculator with a shopping list and no prices, acc=0 turns off “Include accessories”.

Your prices

On a cost calculator, p. followed by the id of a line of the breakdown sets your own unit price for that line, such as p.ready-mix=165. The price is per unit of the price list, the unit the table names, also when the form is in metric units. A price may start with $. A price that is not a number, or is above $1,000,000, is ignored.

When a link holds a key of the calculator, the page fills the form from it. A calculator with a State field opened without any of its keys starts on the State picked last in that browser; region=US gives US prices on a cost calculator and all states on the insulation calculators. After the page opens and after each change, the page rewrites its address with the fields that differ from their defaults, so the address bar holds a link to the result on screen; “Share link” copies it. Keys that are not field names of the calculator, such as utm_source, stay in the address. On a cost calculator, a p. key that names no line of the breakdown is removed.

Results without JavaScript

The result of a link appears once the calculator has loaded in the browser. The HTML of a calculator page holds at most the result of its default values. So each calculator below lists its example link with the result that link gives, written as “Copy result” writes it. Cost results use the prices of the month shown with them, and give other totals after the prices are updated.

Parameters of each calculator

Concrete

Drywall

Insulation

Roofing

Masonry

Outdoor

Measurements