{
 "schema": 1,
 "id": "volume-from-geometry",
 "title": "Volume from geometry",
 "description": "V = L × W × D and V = π (d/2)² h, the two solids most concrete, soil and fill orders reduce to, with symbols, units and pinned test vectors.",
 "url": "https://craftquantities.com/formulas/volume-from-geometry/",
 "json": "https://craftquantities.com/formulas/volume-from-geometry.json",
 "publisher": "Craft Quantities",
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "licenseName": "CC BY 4.0",
 "note": "These are quantity equations, not design checks. Nothing here sizes a member or confirms that a structure is safe; that is for the engineer or building official responsible for the work.",
 "expressionSyntax": {
  "operators": [
   "+",
   "-",
   "*",
   "/",
   "^"
  ],
  "functions": {
   "sqrt": "square root",
   "ceil": "round up to the next whole number",
   "floor": "round down to the whole number below",
   "round": "round to the nearest whole number",
   "max": "the largest of its arguments",
   "atan_deg": "arctangent, in degrees"
  },
  "constants": {
   "pi": "π"
  }
 },
 "formulas": [
  {
   "id": "rectangular-prism-volume",
   "name": "Rectangular prism",
   "gives": "The volume of a box-shaped pour, trench or layer.",
   "equation": "V = L × W × D",
   "expression": "L * W * D",
   "mathml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><mrow><mi>V</mi><mo>=</mo><mrow><mrow><mi>L</mi><mo>&#215;</mo><mi>W</mi></mrow><mo>&#215;</mo><mi>D</mi></mrow></mrow></math>",
   "output": {
    "id": "V",
    "symbol": "V",
    "meaning": "Volume in place",
    "unit": {
     "metric": "m³",
     "imperial": "ft³"
    }
   },
   "inputs": [
    {
     "id": "L",
     "symbol": "L",
     "meaning": "Length",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    },
    {
     "id": "W",
     "symbol": "W",
     "meaning": "Width, at right angles to the length",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    },
    {
     "id": "D",
     "symbol": "D",
     "meaning": "Depth or thickness",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    }
   ],
   "calculators": [
    {
     "slug": "concrete-calculator",
     "title": "Concrete Calculator",
     "url": "https://craftquantities.com/calculators/materials-quantities/concrete-calculator/",
     "reproduces": {
      "breakdownLine": "Volume (no waste)"
     }
    },
    {
     "slug": "cubic-yards-from-dimensions-calculator",
     "title": "Cubic Yards Calculator",
     "url": "https://craftquantities.com/calculators/measurements-conversions/cubic-yards-from-dimensions-calculator/",
     "reproduces": "result"
    },
    {
     "slug": "topsoil-calculator",
     "title": "Topsoil Calculator",
     "url": "https://craftquantities.com/calculators/landscaping-outdoor/topsoil-calculator/",
     "reproduces": "result"
    }
   ],
   "testVectors": [
    {
     "calculator": "concrete-calculator",
     "testCase": "3x3m slab, 0.1m thick, 10% waste",
     "inputs": {
      "L": 3,
      "W": 3,
      "D": 0.1
     },
     "output": 0.9,
     "calculatorOutput": {
      "value": 0.9,
      "unit": "m³",
      "from": "breakdown",
      "line": "Volume (no waste)"
     }
    },
    {
     "calculator": "concrete-calculator",
     "testCase": "6x4m slab, 0.15m thick, 5% waste",
     "inputs": {
      "L": 6,
      "W": 4,
      "D": 0.15
     },
     "output": 3.6,
     "calculatorOutput": {
      "value": 3.6,
      "unit": "m³",
      "from": "breakdown",
      "line": "Volume (no waste)"
     }
    },
    {
     "calculator": "cubic-yards-from-dimensions-calculator",
     "testCase": "6x4m area, 0.1m depth",
     "inputs": {
      "L": 6,
      "W": 4,
      "D": 0.1
     },
     "output": 2.4,
     "calculatorOutput": {
      "value": 3.13908148635,
      "unit": "yd³",
      "from": "result"
     },
     "pinned": {
      "expected": 3.139,
      "toleranceDecimalPlaces": 3
     }
    },
    {
     "calculator": "cubic-yards-from-dimensions-calculator",
     "testCase": "10x8m area, 0.15m depth",
     "inputs": {
      "L": 10,
      "W": 8,
      "D": 0.15
     },
     "output": 12,
     "calculatorOutput": {
      "value": 15.6954074318,
      "unit": "yd³",
      "from": "result"
     },
     "pinned": {
      "expected": 15.694,
      "toleranceDecimalPlaces": 2
     }
    },
    {
     "calculator": "topsoil-calculator",
     "testCase": "3x1.2m bed, 8in depth",
     "inputs": {
      "L": 3,
      "W": 1.2,
      "D": 0.2032
     },
     "output": 0.73152,
     "calculatorOutput": {
      "value": 0.956792037041,
      "unit": "yd³",
      "from": "result"
     },
     "pinned": {
      "expected": 0.96,
      "toleranceDecimalPlaces": 1
     }
    },
    {
     "calculator": "topsoil-calculator",
     "testCase": "5x5m bed, 6in depth",
     "inputs": {
      "L": 5,
      "W": 5,
      "D": 0.1524
     },
     "output": 3.81,
     "calculatorOutput": {
      "value": 4.98329185959,
      "unit": "yd³",
      "from": "result"
     },
     "pinned": {
      "expected": 4.98,
      "toleranceDecimalPlaces": 1
     }
    }
   ]
  },
  {
   "id": "cylinder-volume",
   "name": "Cylinder",
   "gives": "The volume of one round column, pier or post hole.",
   "equation": "V = π × (d / 2)² × h",
   "expression": "pi * (d / 2) ^ 2 * h",
   "mathml": "<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><mrow><mi>V</mi><mo>=</mo><mrow><mrow><mi>&#960;</mi><mo>&#215;</mo><msup><mrow><mo>(</mo><mfrac><mrow><mi>d</mi></mrow><mrow><mn>2</mn></mrow></mfrac><mo>)</mo></mrow><mrow><mn>2</mn></mrow></msup></mrow><mo>&#215;</mo><mi>h</mi></mrow></mrow></math>",
   "output": {
    "id": "V",
    "symbol": "V",
    "meaning": "Volume of one cylinder",
    "unit": {
     "metric": "m³",
     "imperial": "ft³"
    }
   },
   "inputs": [
    {
     "id": "d",
     "symbol": "d",
     "meaning": "Diameter",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    },
    {
     "id": "h",
     "symbol": "h",
     "meaning": "Height or depth",
     "unit": {
      "metric": "m",
      "imperial": "ft"
     }
    }
   ],
   "calculators": [
    {
     "slug": "circular-pier-concrete-calculator",
     "title": "Circular Pier / Cylinder Concrete Calculator",
     "url": "https://craftquantities.com/calculators/materials-quantities/circular-pier-concrete-calculator/",
     "reproduces": {
      "breakdownLine": "Volume per pier"
     }
    }
   ],
   "testVectors": [
    {
     "calculator": "circular-pier-concrete-calculator",
     "testCase": "0.6m diameter x 3m, 8 piers, 5% waste",
     "inputs": {
      "d": 0.6,
      "h": 3
     },
     "output": 0.848230016469,
     "calculatorOutput": {
      "value": 0.848230016469,
      "unit": "m³",
      "from": "breakdown",
      "line": "Volume per pier"
     }
    },
    {
     "calculator": "circular-pier-concrete-calculator",
     "testCase": "0.45m diameter x 2.5m, 12 piers, 10% waste",
     "inputs": {
      "d": 0.45,
      "h": 2.5
     },
     "output": 0.39760782022,
     "calculatorOutput": {
      "value": 0.39760782022,
      "unit": "m³",
      "from": "breakdown",
      "line": "Volume per pier"
     }
    }
   ]
  }
 ],
 "sources": [
  {
   "label": "Standard formula: cubic yards = length (ft) x width (ft) x thickness (ft) / 27",
   "citedBy": [
    "concrete-calculator"
   ]
  },
  {
   "label": "An 80 lb bag of pre-mixed concrete yields approximately 0.6 cubic feet once mixed; 60 lb about 0.45 and 40 lb about 0.30 cubic feet — 0.0075 cubic feet per pound of dry mix, which puts 20, 25 and 30 kg bags at about 9.4, 11.7 and 14.0 litres",
   "citedBy": [
    "concrete-calculator"
   ]
  },
  {
   "label": "Reinforcing bar mass from its nominal diameter, 7850 kg/m³ x π d² / 4: 10 mm 0.617 kg/m, 12 mm 0.888 kg/m (BS 4449 tables); #4 0.668 lb/ft, #5 1.043 lb/ft (ASTM A615 Table 1); bars counted as floor(clear span / spacing) + 1 each way",
   "citedBy": [
    "concrete-calculator"
   ]
  },
  {
   "label": "Sub-base stone weighed loose at 1,550 kg/m³ (97 lb/ft³), crushed stone in the site's bulk-density table (lib/materials/bulk-density.ts); compaction allowances of 15 to 25% are common supplier and specification practice for crushed stone and hardcore",
   "citedBy": [
    "concrete-calculator"
   ]
  },
  {
   "label": "Volume (cubic yards) = length x width x depth (all in feet) / 27",
   "citedBy": [
    "cubic-yards-from-dimensions-calculator"
   ]
  },
  {
   "label": "Garden beds commonly use 6-12 in of topsoil depth, deeper than typical mulch (2-4 in) or gravel base applications",
   "citedBy": [
    "topsoil-calculator"
   ]
  },
  {
   "label": "Cylinder volume = pi x radius² x height, the standard geometric formula for a circular pier or column",
   "citedBy": [
    "circular-pier-concrete-calculator"
   ]
  }
 ]
}
