Dev.to WebDev 🛠 Dev 👁 0 📖 3 min read

Calculating Concrete Slab Cubic Yards, Monolithic Perimeter Footings, and #4 Rebar Grids in TypeScript

Ordering ready-mix concrete for a 24' × 24' garage, 30' × 40' lift shop, or 40' × 60' barndominium looks simple until you factor in monolithic thickened-edge perimeter footings, corner overlap deductions, quarter-yard di

Ordering ready-mix concrete for a 24' × 24' garage, 30' × 40' lift shop, or 40' × 60' barndominium looks simple until you factor in monolithic thickened-edge perimeter footings, corner overlap deductions, quarter-yard dispatch rounding, and #4 rebar lap-splice waste. A quick L × W × 4" / 27 estimate forgets the perimeter turndown footing — leaving the concrete truck short by 3.4+ cubic yards mid-pour and triggering an expensive short-load fee plus a cold joint.

In PlanCaliber, our free Concrete Slab, Monolithic Footing & Rebar Calculator calculates exact net slab volume, non-overlapping monolithic perimeter footing volume, quarter-yard ready-mix order quantities (+5% to +15% subgrade waste), 20' #4 rebar stick counts, 6-mil vapor barrier rolls, and compacted #57 gravel base tons. Here is the clean deterministic TypeScript geometry behind it.

1. Common US Residential Concrete Slab Benchmarks (+10% Waste)

Structure Footprint Slab & Footing Spec Net Concrete Ready-Mix Order (+10%) 20' #4 Rebar Sticks 4"–6" #57 Gravel Base
16' × 20' Back Patio 4" flat slab, #4 @ 24" O.C. 3.95 yd³ 4.50 yd³ 18 sticks 5.6 tons (4")
24' × 24' 2-Car Garage 4" slab + 12"×12" mono edge, #4 @ 18" O.C. 10.52 yd³ 11.75 yd³ 52 sticks 10.0 tons (4")
30' × 40' Lift Shop 6" slab + 16"×12" mono edge, #4 @ 16" O.C. 28.87 yd³ 32.00 yd³ 114 sticks 31.2 tons (6")
40' × 60' Barndominium 5" slab + 16"×12" mono edge, #4 @ 16" O.C. 46.65 yd³ 51.50 yd³ 218 sticks 62.3 tons (6")

2. Avoiding Double-Counted Corners in Monolithic Footings

A classic takeoff bug computes thickened-edge footing volume as perimeter × footerWidth × footerExtraDepth, which double-counts all four footerWidth × footerWidth corners. Computing the exact outer rectangle minus the inner un-thickened core eliminates corner over-counting cleanly:

export interface ConcreteSlabInput {
  lengthFt: number;
  widthFt: number;
  slabThicknessIn: number;        // e.g., 4, 5, 6, 8 (IRC R506.1 min 3.5")
  monolithicFooting: boolean;
  footerWidthIn: number;          // e.g., 12, 16, 18
  footerDepthBelowSlabIn: number; // extra turndown depth below slab bottom
  wastePct: number;               // 5, 10, or 15
  rebarSpacingIn: 16 | 18 | 24;
  gravelDepthIn: number;          // 4 or 6 (IRC R506.2.2 min 4")
}

export interface ConcreteSlabTakeoff {
  areaSqFt: number;
  netCubicYards: number;
  orderCubicYards: number;        // rounded up to nearest 0.25 CY ready-mix increment
  readyMixTrucks: number;         // standard 10 CY truck loads
  bags80lb: number;               // 45 bags per cubic yard
  totalRebarLinearFt: number;     // grid + 2 perimeter footing bars + 10% lap splice
  rebar20FtSticks: number;
  vaporBarrierRolls: number;      // 20' x 100' (2,000 sq ft) 6-mil rolls w/ 15% overlap
  gravelTons: number;             // #57 crushed stone @ 1.4 tons/CY
}

export function calculateConcreteSlab(input: ConcreteSlabInput): ConcreteSlabTakeoff {
  const areaSqFt = input.lengthFt * input.widthFt;
  const perimeterFt = 2 * (input.lengthFt + input.widthFt);
  const slabVolumeCuFt = areaSqFt * (input.slabThicknessIn / 12);

  let footingExtraCuFt = 0;
  if (input.monolithicFooting) {
    const fwFt = input.footerWidthIn / 12;
    const fdFt = input.footerDepthBelowSlabIn / 12;
    const innerAreaSqFt =
      Math.max(0, input.lengthFt - 2 * fwFt) * Math.max(0, input.widthFt - 2 * fwFt);
    const footerRingAreaSqFt = Math.max(0, areaSqFt - innerAreaSqFt);
    footingExtraCuFt = footerRingAreaSqFt * fdFt;
  }

  const netCubicYards = (slabVolumeCuFt + footingExtraCuFt) / 27;
  const grossCubicYards = netCubicYards * (1 + input.wastePct / 100);
  const orderCubicYards = Math.ceil(grossCubicYards * 4) / 4;
  const readyMixTrucks = Math.ceil(orderCubicYards / 10);
  const bags80lb = Math.ceil(grossCubicYards * 45);

  const spacingFt = input.rebarSpacingIn / 12;
  const barsAcrossWidth = Math.max(2, Math.floor((input.widthFt - 0.5) / spacingFt) + 1);
  const barsAcrossLength = Math.max(2, Math.floor((input.lengthFt - 0.5) / spacingFt) + 1);
  const gridLinearFt =
    barsAcrossWidth * Math.max(1, input.lengthFt - 0.5) +
    barsAcrossLength * Math.max(1, input.widthFt - 0.5);
  const footingPerimeterBarsFt = input.monolithicFooting ? 2 * Math.max(0, perimeterFt - 2) : 0;
  const totalRebarLinearFt = Math.ceil((gridLinearFt + footingPerimeterBarsFt) * 1.1);
  const rebar20FtSticks = Math.ceil(totalRebarLinearFt / 20);

  const vaporBarrierRolls = Math.ceil((areaSqFt * 1.15) / 2000);
  const gravelCubicYards = (areaSqFt * (input.gravelDepthIn / 12)) / 27;
  const gravelTons = Math.ceil(gravelCubicYards * 1.4 * 10) / 10;

  return {
    areaSqFt,
    netCubicYards: Number(netCubicYards.toFixed(2)),
    orderCubicYards,
    readyMixTrucks,
    bags80lb,
    totalRebarLinearFt,
    rebar20FtSticks,
    vaporBarrierRolls,
    gravelTons,
  };
}

3. Size Your Slab & Draft Your Complete Garage, Shop, or Barndominium Plan Free

Run your exact dimensions in our free Concrete Slab, Monolithic Footing & Rebar Calculator, then launch straight into the PlanCaliber 2D/3D Floor Plan Studio or start from our 24'×24' 2-Car Garage Template, 30'×40' Detached Lift Shop Template, or 40'×60' Barndominium Template.

2D/3D drafting, AI sketch/PDF tracing, and watermarked proof PNG exports are free; clean unwatermarked Sheet A-101 + M-101 vector PDFs start at $9 one-time, and the $19 Full CAD Pack unlocks 5-sheet 1/4"=1'-0" vector PDFs, layered AutoCAD R12 .DXF, 3D .OBJ/.MTL, and framing/material .CSV takeoffs. PlanCaliber outputs are preliminary space-planning and material references; always verify slab thickness, frost-depth footings, soil bearing capacity, and reinforcement schedules with a licensed structural engineer and local building department.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.