{
  "schemaVersion": 1,
  "slug": "raised-bed-soil-calculator",
  "category": "gardening",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "343b99c9830c0554d10883d3040add4775e900413158cc79cd66c9e4b94a769d",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/raised-bed-soil-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "V = L×W×h÷12×N×(1+s÷100); V₁ = 0.6V; V₂ = 0.3V",
    "vars": [
      [
        "L",
        "Bed length (ft)"
      ],
      [
        "W",
        "Bed width (ft)"
      ],
      [
        "h",
        "Bed height (in)"
      ],
      [
        "N",
        "Number of beds"
      ],
      [
        "s",
        "Settling allowance (%)"
      ],
      [
        "V",
        "Soil volume (ft³)"
      ],
      [
        "V₁",
        "Topsoil volume, 60% (ft³)"
      ],
      [
        "V₂",
        "Compost volume, 30% (ft³)"
      ]
    ],
    "note": "Cubic yards = V÷27. Aeration amendment = 0.1V. Bags = ⌈V÷1.5⌉ (1.5 ft³ per bag)."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "University of Minnesota Extension — Raised-bed layout and soil",
        "url": "https://extension.umn.edu/planting-and-growing-guides/raised-bed-gardens"
      }
    ],
    "referenceRole": "context",
    "implementationHash": "343b99c9830c0554d10883d3040add4775e900413158cc79cd66c9e4b94a769d",
    "basis": "V = L×W×h÷12×N×(1+s÷100); V₁ = 0.6V; V₂ = 0.3V",
    "limitations": "The references provide context and limitations. They do not validate this page’s illustrative multipliers, lookup values or predictions."
  },
  "contract": {
    "compute": "const cubicFeet = length*width*(height/12)*beds*(1+settling/100); return { cubicFeet, cubicYards: cubicFeet/27, topsoil: cubicFeet*0.6, compost: cubicFeet*0.3, aeration: cubicFeet*0.1, bags: Math.ceil(cubicFeet/1.5) };",
    "inputs": [
      {
        "name": "length",
        "type": "number",
        "default": 8,
        "min": 0.5,
        "max": 100,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "width",
        "type": "number",
        "default": 4,
        "min": 0.5,
        "max": 50,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "height",
        "type": "number",
        "default": 11,
        "min": 2,
        "max": 48,
        "step": 1,
        "slider": true
      },
      {
        "name": "beds",
        "type": "number",
        "default": 1,
        "min": 1,
        "max": 50,
        "step": 1,
        "slider": true
      },
      {
        "name": "settling",
        "type": "number",
        "default": 10,
        "min": 0,
        "max": 30,
        "step": 1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "cubicFeet",
        "precision": 1,
        "unit": "cu ft"
      },
      {
        "name": "cubicYards",
        "precision": 2,
        "unit": "cu yd"
      },
      {
        "name": "topsoil",
        "precision": 1,
        "unit": "cu ft"
      },
      {
        "name": "compost",
        "precision": 1,
        "unit": "cu ft"
      },
      {
        "name": "aeration",
        "precision": 1,
        "unit": "cu ft"
      },
      {
        "name": "bags",
        "precision": 0,
        "unit": ""
      }
    ],
    "interpret": null
  }
}
