How we calculate
Every SumMyHouse calculator uses simple, standard formulas and published product data. This page lists exactly what each tool does, the defaults it starts with, and where those numbers come from.
Rules every calculator follows
- Round up what you buy. Bags, boards, blocks, posts and cans are always rounded up to whole items. Volumes and areas are shown as calculated.
- Defaults are starting points. Bag yields, densities, coverage, spacing and waste percentages are editable wherever they vary by product. Your product's label or your supplier's figure is always better than ours.
- Waste is separate and visible. Each tool says what its extra percentage applies to.
- Units: 1 cubic yard = 27 cubic feet, 1 cubic foot = 1,728 cubic inches, 1 m = 3.2808 ft, 1 US gallon = 3.785 L, 1 US ton = 0.907 metric tonnes. Metric inputs are converted to US units, calculated, then converted back.
- Tested against hand calculations. Every calculator has automated tests that check its math against examples worked out by hand. The worked example on each tool's page is one of those tests.
- Codes vary. Code limits we mention (stairs, footings, walls) are common IRC values. Your local building department has the final say.
Deck Board Calculator
Formulas
- Rows = deck width (in) ÷ (board width + gap), rounded up
- Joists = deck length (in) ÷ joist spacing, rounded up, + 1, so there is always a joist at each end
- For each board length, each row is cut so every seam lands on a joist, and neighboring rows never share a seam. The layout with the least offcut wins; a mix of lengths is recommended only if it wastes less than every single length.
- Cut-off waste = (length of boards bought − length installed) ÷ length bought
- Boards to buy = boards × (1 + extra %), rounded up for each length
- Fasteners = rows × joists × 2 (face screws) or × 1 (hidden clips)
Default assumptions
- Gap: 3/16 in · extra boards: 10%
- Joist spacing options: 12, 16, 24 in (default 16)
- A row up to 0.125 in longer than a board still counts as covered (absorbs metric rounding)
Sources
Deck Footing Calculator
Formulas
- Area = π × (diameter ÷ 2)² for a tube, side² for a square pad
- Concrete per footing (ft³) = area × (depth below grade + height above grade) ÷ 1,728
- Total = per footing × footings × (1 + waste %); bags rounded up
- Tube per footing = depth + height above grade. Several short pieces are cut from one tube. A footing taller than a 4 ft tube is counted in 12 ft tubes; a footing taller than 12 ft splices whole tubes.
Default assumptions
- Waste: 10% · height above grade: 2 in
- Tube diameters: 8, 10, 12, 16 in · tube lengths: 4 and 12 ft
- Bag yields: 40 lb: 0.3 ft³ · 50 lb fast-setting: 0.375 ft³ · 60 lb: 0.45 ft³ · 80 lb: 0.6 ft³
Sources
Deck Stain Calculator
Formulas
- Deck area = length × width
- Railing area = railing length × height × 2 faces
- Stair area = steps × stair width × (11.25 in tread + 7.25 in riser) ÷ 12
- Gallons per coat = total area ÷ coverage (the first coat uses the first-coat coverage)
- Gallons to buy = total, rounded up; with prices, the cheapest mix of 1 gal cans and 5 gal pails
Default assumptions
- Coverage: 200 sq ft/gal first coat, 300 sq ft/gal later coats
- Coats: 2
Sources
Deck Stair Calculator
Formulas
- Risers = total rise ÷ preferred riser height, rounded up
- Actual riser = total rise ÷ risers · treads = risers − 1 (the deck is the top tread)
- Total run = treads × tread depth
- Stringer length = √(total rise² + total run²)
- Board = shortest standard length ≥ stringer + 6 in
- Stringers = (stair width − 1.5 in) ÷ max spacing, rounded up, + 1
Default assumptions
- Preferred riser 7.5 in · tread 10.5 in · width 36 in · stringer spacing 16 in max
- Flags: riser over 7.75 in, tread under 10 in, width under 36 in (common IRC limits)
- A single riser shows a box step or landing instead of stringers
Sources
Baluster Spacing Calculator
Formulas
- Balusters per section = (clear length − max gap) ÷ (baluster width + max gap), rounded up
- Gap = (clear length − balusters × width) ÷ (balusters + 1), equal at both posts and between balusters
- Mark k (from the left post to baluster center) = k × gap + (k − 0.5) × width
- Balusters to buy = total × (1 + extra %), rounded up
Default assumptions
- Max gap: 3.75 in · widths: 1.5 in wood, 0.75 in metal · extra: 5%
- Warning when a gap is 4 in or more (IRC: a 4 in sphere must not pass)
Sources
Fence Materials Calculator
Formulas
- Sections = fence length ÷ post spacing, rounded up
- Posts = sections + 1, plus 1 per gate and 1 per corner
- Rails = sections × rails per section
- Pickets = (fence length − gates × gate width) in inches ÷ (picket width + gap), rounded up, then × (1 + waste %), rounded up
- Screws = pickets × rails per section × 2
Default assumptions
- Post spacing: 8 ft on center
- Rails: 2 per section up to 4 ft tall, 3 above
- Pickets: 1×4 = 3.5 in, 1×6 = 5.5 in actual · gap 0 (privacy)
- Waste: 10% (pickets only)
Sources
Fence Post Concrete Calculator
Formulas
- Concrete depth = hole depth − gravel depth (the post stands on the gravel)
- Concrete per hole (ft³) = (π × (hole diameter ÷ 2)² − post area) × concrete depth ÷ 1,728
- Post area = side² for square posts, π × (diameter ÷ 2)² for round posts
- Total concrete = per hole × posts × (1 + waste %)
- Bags = total ÷ bag yield, rounded up for each bag size
- Gravel (ft³) = π × (hole diameter ÷ 2)² × gravel depth × posts ÷ 1,728; gravel bags rounded up
Default assumptions
- Waste: 10% (concrete only) · gravel layer: 6 in
- Post sizes: 4×4 = 3.5 in, 6×6 = 5.5 in actual
- Bag yields: 40 lb: 0.3 ft³ · 50 lb fast-setting: 0.375 ft³ · 60 lb: 0.45 ft³ · 80 lb: 0.6 ft³
- Gravel bag: 0.5 ft³
- Check: a square post's diagonal must fit inside the hole
Sources
Concrete Slab Calculator
Formulas
- Volume (ft³) = length (ft) × width (ft) × thickness (in) ÷ 12
- Cubic yards = cubic feet ÷ 27
- Order volume = volume × (1 + waste %)
- Bags = order volume ÷ bag yield, rounded up
- Cost = bags × price per bag
Default assumptions
- Waste: 10%
- Bag yields: 80 lb 0.6 ft³ · 60 lb 0.45 ft³
- Ready-mix tip shown above 1 cubic yard
Sources
Mulch Calculator
Formulas
- Area: rectangle = length × width; circle = π × (diameter ÷ 2)²; tree ring = π × ((outer ÷ 2)² − (inner ÷ 2)²); triangle = base × height ÷ 2
- Volume (ft³) = area × depth (in) ÷ 12, summed over all beds, × (1 + waste %)
- Bags = volume ÷ bag size, rounded up
- Bulk cost = cubic yards × price per yard + delivery
- Break-even (yd³) = delivery ÷ (bag price per yard − bulk price per yard), where bag price per yard = 27 ÷ bag size × price per bag
Default assumptions
- Depth: 3 in · waste: 5%
- Bag sizes: 1.5, 2, 3 cu ft (default 2)
- 1 cubic yard = 13.5 bags of 2 cu ft ≈ 108 sq ft at 3 in
Sources
Gravel Calculator
Formulas
- Area per shape as for mulch (rectangle, circle, triangle)
- Volume (ft³) = area × depth (in) ÷ 12, summed, × (1 + waste %)
- Tons = cubic yards × density (tons per cubic yard)
- Bags = volume ÷ 0.5 ft³, rounded up
- A per-ton bulk price is converted to per yard (price × density) to compare with bags; break-even as for mulch
Default assumptions
- Densities (tons/yd³): Crushed stone (#57) 1.4 · Pea gravel 1.35 · River rock 1.4 · Decomposed granite 1.35
- Depth: 3 in · waste: 5%
Sources
Raised Bed Soil Calculator
Formulas
- Volume = inside area × fill depth (in) ÷ 12, summed over all beds, × (1 + settling %)
- Each ingredient = total volume × its share of the mix
- Bags = each ingredient ÷ bag size, rounded up separately
- Bags vs. bulk comparison and break-even as for mulch
Default assumptions
- Mix: 60% topsoil, 30% compost, 10% other (must total 100%)
- Settling: 10% · bag sizes: 1, 1.5, 2 cu ft (default 1.5)
Sources
Retaining Wall Calculator
Formulas
- Blocks per course = wall length ÷ block face width, rounded up
- Courses = height above grade ÷ block face height, rounded up, + buried courses
- Blocks = blocks per course × courses × (1 + extra %), rounded up · caps = length ÷ cap length, rounded up, × (1 + extra %)
- Base gravel = wall length × (2 × block depth) × base depth
- Drainage stone = wall length × drainage width × (courses × block height)
- Tons = cubic yards × density
Default assumptions
- Blocks: 12 × 4 in face, 7 in deep · 16 × 6 in face, 12 in deep
- Base: 6 in · drainage stone: 12 in · buried courses: 1 · extra: 5%
- Stone density: 1.4 tons/yd³ · warning above 3 ft above grade
- Up to 0.125 in of rounding doesn't add a block or course
Sources
Values last reviewed: November 2026. Spotted something out of date? Email [email protected].