Methodology
Last updated
Principles
- Pure, tested formulas. Calculations run in your browser as small, deterministic functions. Each calculator has golden test cases computed by hand, run on every build.
- SI internally. Inputs are converted to meters, square meters and cubic meters, calculated, then converted back for display. This avoids mixing units mid-calculation.
- Round up to buy. Bags, boxes, sheets, bundles and tins are rounded up to whole units (with a tiny tolerance so 45.0000001 bags becomes 45, not 46).
- Defaults are editable. Bag yields, coverage rates and densities are typical label or industry values. Every one can be changed under Advanced options.
Conversion constants
| Quantity | Value |
|---|---|
| 1 foot | 0.3048 m (exact) |
| 1 inch | 0.0254 m (exact) |
| 1 cubic yard | 27 cu ft = 0.764555 m³ |
| 1 US gallon | 3.785411784 L (exact) |
| 1 pound | 0.45359237 kg (exact) |
| 1 short ton | 2,000 lb = 907.18 kg |
| 1 roofing square | 100 sq ft = 9.29 m² |
Waste factors
Waste allowances cover offcuts, breakage, spillage and uneven surfaces. They are presented as typical ranges from manufacturer and installer guidance, not as a standard. Our defaults sit in the middle of the usual range; pattern-dependent defaults (tile, flooring, roofing) change automatically with the layout you choose.
Calculators and formulas
- Concrete Slab Calculator —
Volume (cu ft) = Length (ft) × Width (ft) × Thickness (in) ÷ 12 - Concrete Bag Calculator —
Bags = Volume × (1 + waste %) ÷ yield per bag, rounded up - Paint Calculator —
Wall area = 2 × (Length + Width) × Height − openings - Tile Calculator —
Tiles = Area ÷ ((Tile length + joint) × (Tile width + joint)) - Flooring Calculator —
Area = Length × Width (+ extra rectangles) - Square Footage Calculator —
Rectangle: Length × Width - Mulch Calculator —
Volume (cu ft) = Area (sq ft) × Depth (in) ÷ 12 - Gravel Calculator —
Volume = Length × Width × Depth × (1 + waste %) - Drywall Calculator —
Walls = 2 × (Length + Width) × Height − openings - Shingle Calculator —
Pitch factor = √(1 + (Rise ÷ 12)²) - Deck Board Calculator —
Rows = Deck width ÷ (Board width + Gap), rounded up - Fence Calculator —
Bays = ceil(interval length ÷ maximum spacing); spacing = interval ÷ bays - Topsoil Calculator —
Volume = Length × Width × Depth × (1 + settling %) - Paver Calculator —
Pavers = Area ÷ ((Paver L + Joint) × (Paver W + Joint)) × (1 + waste %) - Brick Calculator —
Bricks per area = 1 ÷ ((Brick L + Joint) × (Brick H + Joint)) - Board Foot Calculator —
Board feet = Thickness (in) × Width (in) × Length (ft) ÷ 12 × Pieces - Stair Calculator —
Risers = Total rise ÷ Max riser, rounded up - Wallpaper Calculator —
Drops = (Perimeter − ½ openings) ÷ Roll width, rounded up - Cubic Yard Calculator —
Cubic feet = Length (ft) × Width (ft) × Depth (in) ÷ 12 - Feet and Inches Calculator —
Inches = Feet × 12 + whole inches + numerator ÷ denominator, kept as a fraction - Concrete Block Calculator —
Courses = Wall height ÷ 8 in (block + joint), rounded up - Rebar Calculator —
Bars running the length = ⌊(Width − 2 × Cover) ÷ Spacing⌋ + 1 - Sonotube Calculator —
Volume per column = π × (Diameter ÷ 2)² × Height - Concrete Step Calculator —
Lower steps = Riser × Tread × (1 + 2 + … + (n − 1)) - Insulation Calculator —
Blown: Bags = Area × Bags per 1,000 sq ft (at target R − existing R) ÷ 1,000 × (1 + waste %) - Roofing Calculator —
Plan area = (L + 2 × overhang) × (W + 2 × overhang) - Roof Pitch Calculator —
Pitch = 12 × Rise ÷ Run (written x/12) - Siding Calculator —
Walls = 2 × (Length + Width) × Height - Retaining Wall Calculator —
Buried depth = max(6 in, 1 in per ft of exposed height) - Sand Calculator —
Volume = Length × Width × Depth × (1 + waste %) - Grout Calculator —
Grout volume per area = J × T × (L + W + J) ÷ ((L + J) × (W + J)) - Thinset Calculator —
Bags = Area ÷ coverage per bag (for the trowel) × (1 + waste %) - Carpet Calculator —
Drops = Room width ÷ Roll width, rounded up - Baseboard Calculator —
Perimeter = 2 × (Length + Width) - Crown Molding Calculator —
Need per wall = Wall length + Allowance - Laminate Flooring Calculator —
Boxes = Length × Width × (1 + waste %) ÷ Coverage per box - Backsplash Calculator —
Area = (Run − Range width) × Height + Range width × Range height − Windows - Drop Ceiling Calculator —
Main tee lines = ⌈Width ÷ 4 ft⌉ − 1; Main tees = lines × ⌈Length ÷ 12 ft⌉ - Deck & Fence Stain Calculator —
Area = Length × Width (deck) or Length × Height × Sides (fence) + extras - Epoxy Floor Calculator —
Kits = Area × Coats × (1 + loss %) ÷ Kit coverage - Grass Seed Calculator —
Area = length × width - Landscape Edging Calculator —
Perimeter = 2 × (length + width), or the run you type - Concrete Sealer Calculator —
Volume = area × coats ÷ coverage per coat - Gutter Section Calculator —
Sections = eave × (1 + extra %) ÷ section length, rounded up - Door and Window Casing Calculator —
Window = 2 × (width + height) - Deck Lattice Calculator —
Area = length × height - Corner Bead Calculator —
Sticks = corner length × (1 + extra %) ÷ stick length, rounded up - Cement Board Calculator —
Area = length × width - Self-Leveling Compound Calculator —
Bags = area × (thickness ÷ reference thickness) × (1 + extra %) ÷ bag coverage, rounded up - Stone Veneer Calculator —
Net area = length × height − openings - Raised Garden Bed Calculator —
Courses = wall height ÷ board face, rounded up - Drip Irrigation Tubing Calculator —
Tubing = rows × row length × (1 + extra %) - Weed Barrier Calculator —
Useful width = roll width − overlap - Concrete Form Board Calculator —
Courses = form height ÷ board face, rounded up - Crack Filler Calculator —
Scale = (crack width × crack depth) ÷ (rated bead width × rated bead depth) - Firewood Cord Calculator —
Stacked volume = length × height × depth - Shelf and Bracket Calculator —
Brackets on one shelf = spaces at your spacing, plus the far end - Floor Transition Strip Calculator —
Strips for one doorway = doorway width ÷ strip length, rounded up - Hardware Cloth Calculator —
If height ≤ roll width, courses = 1 - Soffit and Fascia Calculator —
Panels across = overhang ÷ panel width, rounded up
What we don't do
We don't provide structural design, electrical or plumbing compliance calculations. Where loads, spans or safety are involved, consult local codes and a licensed professional.
Change log
- 2026-10-20 · v0.5.5 — Mobile: sticky result bar keeps the purchase figure on the first screen at ≤390/320 (paint + concrete slab); at ≤360 long titles leave the first input above the fold. Imperial/Metric is one radio group (single Tab stop; arrows/Home/End). Build: Astro upgraded 5.18.2 → 7.4.2 to clear npm production critical/high advisories (requires Node ≥22.23.4). GA consent still uses
define:varswith build-time constants only fromsite.ts(not request/user input); Astro 7 patches the prior define:vars sanitization advisory. No calculation or default values changed. - 2026-10-20 · v0.5.4 — Usability: on phones the first calculator inputs now appear on the first screen (the breadcrumb, badges and page details are shown more compactly; no content was removed), and calculator pages have a “Skip to calculator” keyboard link. Preview copies of the site on pages.dev are marked noindex so only diycalclab.com is indexed. No calculation or default values changed.
- 2026-10-20 · v0.5.3 — Paint calculator: cost is now the price of the cans or tins you actually buy (US quarts priced pro rata), primer has its own coverage (default 300 sq ft per gallon / 7.4 m² per liter) and its own price, tin sizes follow your region (UK 5 / 2.5 / 1 L; Australia 10 / 4 / 2 / 1 L), the metric default coverage is 8.6 m² per liter — the same rate as 350 sq ft per gallon — and purchases read “2 × 1 gal” rather than “2 gal”. A warning appears when doors and windows cover the whole wall. All calculators: an invalid, negative or empty required value now hides the result and shopping list until it is fixed, instead of showing figures from the previous input; whole-number counts are enforced and US ↔ metric switching no longer drifts.
- 2026-10-20 · v0.5.2 — Source audit: every calculator now cites at least one manufacturer, code or standards document for the figure it relies on, with the quoted value and the date we checked it. Three defaults were recalibrated to those documents: brick mortar bags now follow the bag yields printed by the makers (an 80 lb bag of mortar mix lays about 37 standard bricks; a 20 kg bag makes about 0.0135 m³), so the mortar count roughly doubles; drop-ceiling cartons default to a 64 sq ft carton (8 panels of 2 × 4 ft or 16 of 2 × 2 ft) when the box size is left blank; synthetic underlayment now uses the net coverage after laps (about 929 sq ft per 10-square roll) instead of a flat 10% allowance.
- 2026-10-19 · v0.5.1 — Purchase-quantity audit: tile results separate tiles needed (incl. waste), tiles purchased (whole boxes), waste allowance and spare; deck screws are rounded up to whole boxes with no hidden extra and the screws-per-box count is editable; drop-ceiling cartons, drywall mud pails, wallpaper and core-fill bag lines state purchased vs needed; one shared door/window deduction (20 / 15 sq ft) across the paint calculator, guide and notes; sources now distinguish verified citations (URL, access date, quoted figure) from general references.
- 2026-10-19 · v0.5.0 — Added 10 interior calculators: grout (joint-volume method calibrated to the CUSTOM Polyblend chart), thinset by trowel notch, carpet by roll width with seams and pad, baseboard, crown molding (counted wall by wall), laminate flooring with underlayment and last-row check, kitchen backsplash, drop ceiling grid, deck & fence stain by wood porosity, and epoxy floor coatings by kit or mil thickness. The Flooring hub is now Flooring & Trim, Paint is Paint, Stain & Wallpaper, and Drywall is Drywall, Ceilings & Insulation. The general flooring calculator now focuses on vinyl plank and hardwood; laminate has its own page.
- 2026-10-19 · v0.4.0 — Added 10 calculators: concrete block (CMU, mortar and core fill), rebar grid, Sonotube columns, concrete steps, insulation (batts and blown-in by R-value), roofing (roof area and full materials list), roof pitch, siding, retaining wall and sand. The concrete-block grout figures follow NCMA TEK 4-2A; blown-in insulation follows published manufacturer coverage charts. The Roofing hub is now Roofing & Siding and the Drywall hub is now Drywall & Insulation.
- 2026-10-18 · v0.3.0 — Added 10 calculators (deck boards, fence, topsoil, pavers, bricks, board feet, stairs, wallpaper, cubic yards, feet & inches) and the Decking, Fencing, Framing & Lumber and Masonry hubs; published 12 guides; expanded every calculator page with in-depth planning notes; stair pitch is now measured along the nosing line (riser ÷ tread); unit labels now follow the selected unit system.
- 2026-10-17 · v0.1.0 — First release of 10 calculators.