This page explains how every BuildByCalc calculator is built, where its numbers come from, and how we test it.
1. Every constant has a source
A calculator is only as good as its constants: how much a block covers, how many blocks a bag of mortar lays, how much a cubic yard of gravel weighs. We take these from, in order of preference:
- Industry estimating guides and standards bodies (for example NCMA/CMHA for concrete masonry).
- Manufacturer data sheets for the bagged products people actually buy (for example Quikrete).
- Supplier conversion sheets, only where the first two don’t cover a material.
Where sources disagree, we use the figure that won’t leave you short, and say so on the page. For example, NCMA says an 80 lb bag of mortar mix lays about 16 blocks and Quikrete says 13, so we use 13.
2. Rounding and waste
- Things you buy whole are rounded up: blocks, bags and pieces. You can’t buy 141.75 blocks.
- Waste is shown, never hidden. Where a waste allowance applies, it is a field you can change, and the result shows the count before and after waste.
- Units: lengths can be entered in feet, inches, yards, meters or centimeters. Volumes are shown in cubic feet and cubic yards.
3. Testing
Each calculator has a set of hand-worked test cases: the worked example on its page, a metric case, and edge cases such as zero or very large inputs. The arithmetic for each case is written out by hand first, and the calculator has to reproduce every number before it is published. The worked example on each page is printed straight from those tested results.
4. Prices
Material prices vary a lot by region and change often, so every cost field can be edited. Default prices are examples to show how the estimate works. Enter your local prices for a real budget.
5. Calculator notes
Concrete block calculator
| Quantity |
Method |
Source |
| Blocks |
Net wall area × 1.125 (an 8 × 16 in face covers 8/9 sq ft), plus your waste allowance |
NCMA TEK 4-2A |
| Mortar mix (80 lb) |
Blocks before waste ÷ 13 |
Quikrete Mortar Mix data sheet |
| Masonry cement (70 lb) |
Blocks ÷ 30; sand at 1 ton per 8 bags, plus ½ ton above 3 tons |
NCMA TEK 4-2A |
| Core-fill grout |
Cu ft per 100 sq ft by wall width and grout spacing (3% waste included); an 80 lb bag yields 0.66 cu ft |
NCMA TEK 4-2A, Tables 3–4 |
Brick calculator
| Quantity |
Method |
Source |
| Bricks |
Net wall area ÷ 100 × bricks per 100 sq ft for the chosen size (675 for modular), × wythes, plus your waste allowance (5% default) |
BIA Technical Note 10, Table 4 |
| Mortar volume |
Cu ft per 100 sq ft for the size and joint (5.5 for modular, 3/8 in), × wythes; double-wythe walls add a collar joint (3.13 or 4.17 cu ft per 100 sq ft) |
BIA Technical Note 10, Tables 4–5 |
| Mortar mix (80 lb) |
Mortar volume ÷ 0.2997 cu ft per bag: Quikrete’s 37 standard bricks per bag × BIA’s 8.1 cu ft per 1,000 modular bricks |
Quikrete Mortar Mix data sheet; BIA TN 10 |
| Masonry cement (70 lb) |
Mortar volume ÷ 1.0125 cu ft per bag (BIA’s 8 bags per 1,000 modular bricks); sand at 1 ton per 8 bags, plus ½ ton above 3 tons |
BIA TN 10; NCMA TEK 4-2A |
Concrete calculator
| Quantity |
Method |
Source |
| Slab or footing |
Length × width × thickness (× how many), plus your extra allowance |
Geometry |
| Post hole or column |
π × (diameter ÷ 2)² × depth × how many. The post itself isn’t subtracted, so the result is slightly generous |
Geometry |
| Solid steps |
Width × run × rise × (1 + 2 + … + number of steps) |
Geometry |
| Bags |
Cubic feet ÷ 0.60 (80 lb), 0.45 (60 lb) or 0.30 (40 lb), rounded up |
Quikrete Concrete Mix data sheet |
Gravel calculator
| Quantity |
Method |
Source |
| Volume |
Area × depth, plus your extra allowance; ÷ 27 for cubic yards |
Geometry |
| Tons |
Dry gravel 105 lb/ft³ (1.42 t/yd³); wet 125 lb/ft³ (1.69 t/yd³); or your supplier’s figure |
Engineering ToolBox |
| Bags |
Cubic feet ÷ 0.5 (50 lb bag) |
Quikrete All-Purpose Gravel |
Asphalt calculator
| Quantity |
Method |
Source |
| Tons |
Square yards × compacted inches × 110 lb ÷ 2,000, plus your extra allowance. The rate is editable |
Tennessee DOT (uses 105 lb/yd²/in); 110 adds a small margin |
Topsoil calculator
| Quantity |
Method |
Source |
| Volume |
Area × depth, plus your settling allowance |
Geometry |
| Tons |
Loam 80 lb/ft³ (1.08 t/yd³), or your supplier’s figure |
Engineering ToolBox |
| Bags |
Cubic feet ÷ bag size (0.75, 1 or 1.5 cu ft), rounded up |
Retail bag sizes |
Cubic yard calculator
| Quantity |
Method |
Source |
| Volume |
Area × depth; 27 cu ft per cubic yard; 0.0283168 m³ per cu ft |
NIST Handbook 44 |
| Optional weight |
Gravel dry 105, topsoil 80, sand dry 97, sand wet 119 lb/ft³, or your supplier’s figure |
Engineering ToolBox |
Board foot calculator
| Quantity |
Method |
Source |
| Board feet |
Thickness (in) × width (in) × length (ft) ÷ 12; one board foot is 144 cubic inches |
Virginia Department of Forestry |
Mulch calculator
| Quantity |
Method |
Source |
| Volume |
Area × depth; one cubic yard covers 324 sq ft at 1 inch |
Geometry |
| Bags |
Cubic feet ÷ bag size (1.5, 2 or 3 cu ft), rounded up |
Retail bag sizes |
| Depth guidance |
2–4 inches; a warning above 4 inches |
University of Illinois and University of Vermont Extension |
Sand calculator
| Quantity |
Method |
Source |
| Tons |
Dry sand 97 lb/ft³ (1.31 t/yd³); wet 119 lb/ft³ (1.61 t/yd³); or your supplier’s figure |
Engineering ToolBox |
| Bags |
Cubic feet ÷ 0.5 (50 lb bag) |
Quikrete All-Purpose Sand |
Sod calculator
| Quantity |
Method |
Source |
| Sod to order |
Lawn area plus your extra allowance |
Geometry |
| Pieces |
Square feet ÷ piece size (16 × 24 in slab = 2.67 sq ft; 2 × 5 ft roll = 10 sq ft), rounded up |
Sod Solutions; Angi |
| Pallets |
Square feet ÷ your pallet size (typically 450–500 sq ft), rounded up |
Sod Solutions |
Landscape rock calculator
| Quantity |
Method |
Source |
| Tons |
Area × depth ÷ 27 × 1.42 t/yd³ (dry gravel, 105 lb/ft³), or your supplier’s figure |
Engineering ToolBox |
| Bags |
Cubic feet ÷ 0.5, rounded up |
Vigoro bagged landscape rock |
Paver calculator
| Quantity |
Method |
Source |
| Pavers |
Area plus your extra allowance ÷ one paver’s area, rounded up |
Geometry |
| Base gravel |
Minimum compacted depth 4 in (patios, walkways) or 6 in (home driveways), plus your compaction allowance; 105 lb/ft³ |
CMHA PAV-TEC-010 (formerly ICPI); Engineering ToolBox |
| Bedding sand |
1 in layer (low end of CMHA’s 1–1½ in); dry sand 97 lb/ft³; 0.5 cu ft bags |
CMHA PAV-TEC-010; Engineering ToolBox |
Retaining wall calculator
| Quantity |
Method |
Source |
| Buried depth |
At least 6 in, or 1 in per foot of wall height if more |
Allan Block |
| Blocks |
Courses (height + buried ÷ block height, rounded up) × blocks per course, plus your extra |
Geometry |
| Base gravel |
Trench 18 in wide (24 in for walls 4 ft and over) × 6 in deep, plus your compaction allowance |
Allan Block |
| Drainage gravel |
12 in behind the blocks for the full height including the buried course |
Allan Block |
Fence calculator
| Quantity |
Method |
Source |
| Posts |
Length ÷ spacing, rounded up, + 1, + 1 per corner and per gate |
Geometry |
| Holes |
Diameter 3 × post width; depth one third of the post’s overall length + 6 in gravel |
Quikrete Setting Posts guide |
| Concrete |
(Hole area − post area) × (buried depth − 3.5 in); 0.60 cu ft per 80 lb bag, 0.375 per 50 lb |
Quikrete |
| Pickets |
Board run ÷ (picket width + gap), plus your extra |
Geometry |
Deck calculator
| Quantity |
Method |
Source |
| Rows and boards |
Deck width ÷ (board width + gap), rounded up; × boards per row; plus your extra |
Geometry |
| Joists |
Deck length ÷ spacing (12, 16 or 24 in), rounded up, + 1 |
Trex |
| Fasteners |
2 screws or 1 hidden clip per board per joist, plus 5% |
Board makers’ installation guides |
Concrete cost calculator
| Quantity |
Method |
Source |
| Ready-mix total |
Yards × your price per yard + delivery + short-load fee ((minimum − yards) × fee, when under the minimum) + pump |
Your quotes; defaults are labelled examples |
| Bagged total |
Yards × 27 ÷ 0.60 bags (80 lb), rounded up, × your bag price |
Quikrete Concrete Mix data sheet |
| Break-even |
The number of yards where both totals are equal |
Algebra |
Deck stain calculator
| Quantity |
Method |
Source |
| Area |
Deck: floor length × width + railing length × height × 2 faces (as solid panels). Fence: length × height × sides |
Geometry |
| Gallons |
Area × coats ÷ coverage per gallon (default 250, the low end of 250–350); whole gallons split into 5-gallon pails and 1-gallon cans; quarts when under 1 gallon |
Sherwin-Williams deck staining guide; NIST HB44 (4 qt per gal) |
Square footage calculator
| Quantity |
Method |
Source |
| Area |
Rectangle L × W; L-shape as two rectangles; circle π r²; triangle base × height ÷ 2; × number of areas |
Geometry |
| Conversions |
÷ 9 for sq yd; × 0.09290304 for m²; ÷ 43,560 for acres |
NIST Handbook 44 |
Siding calculator
| Quantity |
Method |
Source |
| Area |
Wall length × height (openings left in unless you subtract them) + gables at (center height + 1 ft) × width ÷ 2, plus your waste allowance (10% default) |
CertainTeed estimating guide |
| Squares |
Area with waste ÷ 100 |
— |
| Vinyl panels and cartons |
Area ÷ (exposure × panel length): double 4 in × 12 ft 6 in (8.33 sq ft, 24 a carton); double 4½ in × 12 ft 1 in (9.06 sq ft, 22 a carton) |
Alside catalog |
| Fiber cement planks |
Area ÷ (exposure × 12 ft); exposures 4, 5, 6, 7, 8 and 10¾ in for 5¼ to 12 in planks; matches the pieces-per-square chart |
James Hardie HS2090 chart |
Stair calculator
| Quantity |
Method |
Source |
| Risers and treads |
Total rise ÷ target riser, rounded up; treads = risers − 1 |
Geometry |
| Code checks |
Riser ≤ 7¾ in, tread ≥ 10 in, handrail at 4+ risers, 6 ft 8 in headroom |
2021 IRC R311.7 (International Code Council) |
| Stringer |
√(rise² + run²), rounded up to the next even board length; framing-square marks = riser height and tread depth to the nearest 1/16 in |
Geometry |
| Stringer count |
Stair width ÷ 18 in, rounded up, + 1, never fewer than 3; 2×12 minimum; width ≥ 36 in; landing above 12 ft of rise |
AWC DCA 6, Prescriptive Residential Wood Deck Construction Guide; IRC R311.7.1 |
Baluster spacing calculator
| Quantity |
Method |
Source |
| Balusters |
(Space between posts − largest gap) ÷ (baluster width + largest gap), rounded up: the fewest balusters that keep every gap at or under the limit |
Geometry |
| Gap and marks |
Gap = (space − balusters × width) ÷ (balusters + 1); center to center = gap + width; first center = gap + half a width; shown to the nearest 1/16 in |
Geometry |
| Gap limits |
4 in sphere for guards; 4⅜ in on the open side of stairs; 6 in for the stair triangle; guards over 30 in, at least 36 in high (34 in on stairs) |
2021 IRC R312.1.1–R312.1.3 (International Code Council); AWC DCA 6 |
| Baluster width |
2 × 2 wood = 1½ in; metal ¾ in; or your own |
NIST PS 20, American Softwood Lumber Standard |
Roof pitch calculator
| Quantity |
Method |
Source |
| Pitch, angle, slope |
Rise ÷ run × 12; arctan(rise ÷ run); rise ÷ run × 100 |
Trigonometry |
| Roof area |
Footprint × √(1 + (rise ÷ run)²); squares = area ÷ 100 |
Trigonometry |
Grass seed calculator
| Quantity |
Method |
Source |
| Seed |
Area ÷ 1,000 × the grass’s rate in lb per 1,000 sq ft; bags = seed ÷ bag size, rounded up |
Arithmetic |
| Rates |
Tall fescue 6; Kentucky bluegrass 1–2; KBG + tall fescue 1 + 5; bermudagrass and zoysiagrass 1–2; centipedegrass 0.25–0.5; bahiagrass 5 |
NC State Extension, Carolina Lawns, Table 2 |
| Rates |
Perennial ryegrass 7–9; fine fescue 4–6; sun mix 3–4; shade mix 4–6. Low end for ideal conditions, high end for typical, +50% for poor |
UMass Extension, Seeding Rate Considerations |
Compost calculator
| Quantity |
Method |
Source |
| Volume |
Area × depth; ÷ 27 for cubic yards; plus your extra (default 0%); bags = cubic feet ÷ bag size, rounded up |
Geometry |
| Depths |
New beds 3 in (3–4 in mixed into the top 6–8 in); existing beds 1 in a year (¼–1 in) |
Oregon State University Extension, EM 9308 |
| Depths |
Lawn topdressing ¼ in; never more than ½ in at a time |
Clemson Cooperative Extension (HGIC), Topdressing a home lawn |
Dirt calculator
| Quantity |
Method |
Source |
| Volume |
Area × depth; ÷ 27 for cubic yards; plus your compaction allowance (default 20%) |
Geometry; FHWA earthwork guide (moderate soils shrink 10–25% when compacted) |
| Weight |
Cubic yards × 1.03 t (loose dry dirt, 76 lb/ft³), 1.05 t (loose moist, 78), 1.08 t (loam, 80) or 1.35 t (dry clay, 100), or your supplier’s figure |
Engineering ToolBox |
| Truckloads |
Cubic yards to order ÷ your truck’s capacity, rounded up |
Arithmetic |
Slope calculator
| Quantity |
Method |
Source |
| Grade, angle, per foot, ratio |
Rise ÷ run × 100; arctan(rise ÷ run); rise ÷ run × 12; run ÷ rise. From a grade: rise = run × grade ÷ 100; from an angle: rise = run × tan(angle) |
Trigonometry |
| Length along the slope |
√(run² + rise²) |
Geometry |
| Checks |
Lot grading 6 in in the first 10 ft, paving 2%; drain pipe ¼ in per ft (2½ in and smaller), ⅛ in per ft (3 in and larger); ramps no steeper than 1:12 |
2021 IRC R401.3 and P3005.3; 2010 ADA Standards 405.2 |
Drywall calculator
| Quantity |
Method |
Source |
| Sheets |
Walls (perimeter × height − openings) and ceiling, each plus your extra ÷ sheet area, rounded up |
Geometry |
| Screws |
About 28 per 4 × 8 sheet on walls and 35 on ceilings, scaled by sheet area (screws 16 in o.c. on walls, 12 in on ceilings) |
USG |
| Tape and compound |
370 ft of tape and about 9 gal (two 4.5 gal pails) of all-purpose compound per 1,000 sq ft |
USG |
Plywood calculator
| Quantity |
Method |
Source |
| Area |
Floor: length × width. Walls: length × height − openings. Roof: plan length × width (overhangs included) × √(1 + (pitch ÷ 12)²) |
Geometry |
| Sheets |
Area plus your extra ÷ 32, 36 or 40 sq ft (4 × 8, 4 × 9, 4 × 10 ft), rounded up |
APA E30, Table 7 |
Stud calculator
| Quantity |
Method |
Source |
| Layout studs |
Wall length (in) ÷ spacing, rounded up, + 1 |
Geometry; spacing limits in IRC Table R602.3(5) |
| Openings |
4 per door or window: a jack and a full-height stud at each end (layout studs inside become cripples) |
IRC R602.7.5, Table R602.7.5 (1 full-height stud for openings up to 4 ft) |
| Corners |
Corners and intersections × your allowance (2 default, for a three-stud corner); then your extra % |
Your plans |
| Plates |
3 × wall length (single bottom, double top plate) ÷ board length |
IRC R602.3.2, R602.3.4 |
| Stud length |
Wall height − 3 × 1½ in |
PS 20: dry 2-by is 1½ in thick |
Flooring and tile calculators
| Quantity |
Method |
Source |
| Boxes |
Area plus your extra ÷ the square feet per box printed on the carton, rounded up |
Your product |
| Tiles |
Area plus your extra ÷ ((tile length + joint) × (tile width + joint)), rounded up |
Geometry |
| Grout (tile) |
Joint volume = area plus extra × 144 × ((L + j)(W + j) − L × W) ÷ ((L + j)(W + j)) × tile thickness, in cu in; × 0.065 lb per cu in. The factor is fitted to the Polyblend Sanded Grout chart: within 1% for 12 in tiles and up, within 4% at 4¼ in, and up to about 20% above the chart for 1–3 in mosaics |
Custom Building Products TDS-129 |
| Baseboard |
Perimeter − 3 ft per doorway |
Geometry |
Wallpaper calculator
| Quantity |
Method |
Source |
| Strips |
(Wall width − wide openings) ÷ roll width, rounded up |
Geometry |
| Cut length |
Wall height + 4 in trim, rounded up to whole pattern repeats; + ½ repeat for a drop match |
York Wallcoverings installation guide |
| Rolls |
Strips ÷ whole strips per roll (roll length ÷ cut length, rounded down), rounded up. Standard roll 52 cm × 10 m |
Wallpaper Direct |
Carpet calculator
| Quantity |
Method |
Source |
| Cut size |
Room length and width + 3 in at each wall (0.5 ft per dimension) |
CRI 105 (2019), 5.3 |
| Pieces |
Full-width drops, all the same pile direction: width to cover ÷ roll width, rounded up; both directions tried, least carpet wins, ties go to fewer seams |
CRI 105, 5.1–5.2; 12 ft roll per Shaw specs |
| Square yards |
Drops × cut length × roll width ÷ 9 |
Geometry |
| Pad, tack strip |
Room area ÷ 9; room perimeter |
Geometry |
Epoxy calculator
| Quantity |
Method |
Source |
| Volume |
Length × width × thickness in inches (round: π × radius² × thickness) |
TotalBoat epoxy calculator |
| Gallons, ounces, liters |
Cubic inches ÷ 231 = US gallons; × 128 = fl oz (1 fl oz = 1.805 cu in); × 3.785 = liters; plus 10% extra (TotalBoat: 5–10%) |
NIST Handbook 44, Appendix C; TotalBoat |
| Resin and hardener |
Mixed amount split by the volume ratio on the label (default 1 : 1) |
TotalBoat TableTop product page |
| Pours |
Thickness ÷ maximum depth per pour, rounded up (default 1/4 in) |
TotalBoat TableTop product page |
Paint calculator
| Quantity |
Method |
Source |
| Gallons |
(Walls − 21 sq ft per door − 15 sq ft per window, plus ceiling if chosen) × coats ÷ coverage (default 350 sq ft per gallon) |
Behr: 250–400 sq ft per gallon |
Rebar calculator
| Quantity |
Method |
Source |
| Bars each way |
(Slab dimension − 2 × edge distance) ÷ spacing, rounded down, + 1 |
Geometry |
| Sticks |
Runs that fit a stick share sticks; longer runs are lapped (your lap in bar diameters) and use whole sticks |
Geometry |
| Weight |
#3 0.376, #4 0.668, #5 1.043, #6 1.502 lb per ft |
ASTM A615, Table 1 |
Rafter calculator
| Quantity |
Method |
Source |
| Run |
Building width ÷ 2 − ridge thickness ÷ 2 (measured horizontally, as the IRC span tables are) |
IRC 2021 R802.4.1 |
| Rafter length |
(Run + level overhang) × √(1 + (pitch ÷ 12)²), shown to the nearest 1/8 in |
Geometry |
| Lumber to buy |
Next even length of 8 ft or more; one size up if within 3 in, to leave room for the plumb cuts (our margin) |
USDA NRCS: stock lengths 4–20 ft in 2 ft steps |
| Count |
Building length ÷ spacing, rounded up, + 1 per side; × 2 for a gable |
— |
Roofing calculator
| Quantity |
Method |
Source |
| Roof area |
Footprint × √(1 + (pitch ÷ 12)²), plus your extra; squares = ÷ 100 |
Trigonometry |
| Bundles |
Area ÷ 32.8 sq ft (3 bundles cover 98.4 sq ft), rounded up |
GAF Timberline HDZ |
| Nails |
64 shingles per square × 4 nails (or 6) |
GAF |
| Drip edge |
Eaves and rakes ÷ 10 ft pieces, rounded up |
Geometry |
Pool volume calculator
| Quantity |
Method |
Source |
| Surface area |
Rectangle: L × W. Round: π × d² ÷ 4. Straight-sided oval: (L − W) × W + π × W² ÷ 4. Ellipse: π × L × W ÷ 4. Kidney: (A + B) × L × 0.45 (estimate) |
Geometry; kidney rule from Leslie’s |
| Volume |
Area × (shallow + deep) ÷ 2, in cu ft; × 1,728 ÷ 231 = 7.4805 gal per cu ft; × 3.785411784 L per gal |
NIST Handbook 44, Appendix C |
| Fill time |
Gallons ÷ flow rate (gal/min) ÷ 60 |
— |
Insulation calculator
| Quantity |
Method |
Source |
| Existing R-value |
Depth × 2.5 (loose fiberglass), 2.8 (rock wool), 3.7 (cellulose) or 3.2 (fiberglass batts) |
DOE Building America, Table 2.2 |
| Target |
R30 (zone 1), R49 (zones 2–3), R60 (zones 4–8), or your own |
ENERGY STAR (2021 IECC) |
| Inches to add |
(Target − existing) ÷ the new material’s R per inch |
DOE Building America |
Conduit fill calculator
| Quantity |
Method |
Source |
| Wire area |
Sum of each wire’s area including insulation (THHN/THWN-2 or XHHW-2), ground wires included |
NEC Chapter 9, Table 5 and Note 3 |
| Allowed fill |
Conduit inside area × 53% (1 wire), 31% (2 wires), 40% (3 or more) or 60% (nipple of 24 in or less) |
NEC Chapter 9, Table 1, Table 4 and Note 4 |
| Wires of one size (charts) |
Allowed area ÷ one wire’s area, rounded down, or up when the decimal is 0.8 or more; checked against Annex C for EMT |
NEC Chapter 9, Note 7; Informative Annex C |
6. Limits
Our calculators estimate materials. They are not structural designs. Walls that retain soil, walls over 4 ft, footings and anything load-bearing may need an engineer and a permit. Check with your local building department. Electrical work must meet the NEC edition and any changes your city has adopted, and the inspector has the last word.
Spotted something wrong? Let us know. We correct errors quickly and update the date on the page.