{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "garden-soil-calculator",
  "category": "landscaping-outdoor",
  "title": "Garden Soil Calculator",
  "description": "Work out the soil or growing medium a bed needs, with the settlement allowance that stops it looking half-full a month later.",
  "url": "https://craftquantities.com/calculators/landscaping-outdoor/garden-soil-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/garden-soil-calculator.json",
  "inputCount": 4,
  "testCaseCount": 4,
  "sourceCount": 2,
  "lastVerified": "2026-09-05",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/landscaping-outdoor/garden-soil-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Garden Soil Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-05",
    "url": "https://craftquantities.com/calculators/landscaping-outdoor/garden-soil-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Garden Soil Calculator. Version 1.0.1. Sources checked 2026-09-05. https://craftquantities.com/calculators/landscaping-outdoor/garden-soil-calculator/",
      "apa": "Craft Quantities. (2026). Garden Soil Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/landscaping-outdoor/garden-soil-calculator/",
      "harvard": "Craft Quantities (2026) Garden Soil Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/landscaping-outdoor/garden-soil-calculator/",
      "bibtex": "@misc{craftquantities-calculators-landscaping-outdoor-garden-soil-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Garden Soil Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/landscaping-outdoor/garden-soil-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "length",
      "label": "Bed length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 3,
      "min": 0.01,
      "max": 200,
      "step": 0.1,
      "help": "Length of the bed."
    },
    {
      "id": "width",
      "label": "Bed width",
      "type": "number",
      "dimension": "length",
      "defaultValue": 1.2,
      "min": 0.01,
      "max": 100,
      "step": 0.1,
      "help": "Width of the bed."
    },
    {
      "id": "depth",
      "label": "Fill depth",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.3,
      "min": 0.01,
      "max": 2,
      "step": 0.05,
      "help": "Depth of growing medium."
    },
    {
      "id": "settlementPercent",
      "label": "Settlement allowance (%)",
      "type": "number",
      "defaultValue": 20,
      "min": 0,
      "max": 40,
      "step": 1,
      "help": "Extra to order because loose medium settles."
    }
  ],
  "sources": [
    {
      "label": "Loose topsoil and compost blends settle 15-25% after watering and initial consolidation — horticultural supplier guidance"
    },
    {
      "label": "Typical bulk density of screened topsoil 1300 kg/m³; compost blends 550-900 kg/m³"
    }
  ],
  "testCases": [
    {
      "name": "3 × 1.2 × 0.3 m at 20% settlement",
      "inputs": {
        "length": 3,
        "width": 1.2,
        "depth": 0.3,
        "settlementPercent": 20
      },
      "expected": 1.296,
      "toleranceDecimalPlaces": 1,
      "unit": "m³",
      "confidence": "high",
      "steps": [
        {
          "label": "Finished volume",
          "value": 1.0799999999999998,
          "unit": "m³"
        },
        {
          "label": "Litres",
          "value": 1295.9999999999998,
          "unit": "L"
        },
        {
          "label": "Cubic yards",
          "value": 1.6951040026314521,
          "unit": "yd³"
        },
        {
          "label": "60 L bags",
          "value": 22,
          "unit": "bags"
        },
        {
          "label": "Approximate weight",
          "value": 1295.9999999999998,
          "unit": "kg"
        }
      ],
      "includesAllowance": {
        "label": "Settlement allowance",
        "percent": 20
      },
      "basis": "ambiguous"
    },
    {
      "name": "No settlement allowance",
      "inputs": {
        "length": 3,
        "width": 1.2,
        "depth": 0.3,
        "settlementPercent": 0
      },
      "expected": 1.08,
      "toleranceDecimalPlaces": 1,
      "unit": "m³",
      "confidence": "high",
      "steps": [
        {
          "label": "Finished volume",
          "value": 1.0799999999999998,
          "unit": "m³"
        },
        {
          "label": "Litres",
          "value": 1079.9999999999998,
          "unit": "L"
        },
        {
          "label": "Cubic yards",
          "value": 1.4125866688595434,
          "unit": "yd³"
        },
        {
          "label": "60 L bags",
          "value": 18,
          "unit": "bags"
        },
        {
          "label": "Approximate weight",
          "value": 1079.9999999999998,
          "unit": "kg"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "A deeper bed scales linearly",
      "inputs": {
        "length": 3,
        "width": 1.2,
        "depth": 0.45,
        "settlementPercent": 20
      },
      "expected": 1.944,
      "toleranceDecimalPlaces": 1,
      "unit": "m³",
      "confidence": "high",
      "steps": [
        {
          "label": "Finished volume",
          "value": 1.6199999999999999,
          "unit": "m³"
        },
        {
          "label": "Litres",
          "value": 1943.9999999999998,
          "unit": "L"
        },
        {
          "label": "Cubic yards",
          "value": 2.542656003947178,
          "unit": "yd³"
        },
        {
          "label": "60 L bags",
          "value": 33,
          "unit": "bags"
        },
        {
          "label": "Approximate weight",
          "value": 1943.9999999999998,
          "unit": "kg"
        }
      ],
      "includesAllowance": {
        "label": "Settlement allowance",
        "percent": 20
      },
      "basis": "ambiguous"
    },
    {
      "name": "Zero length is zero soil",
      "inputs": {
        "length": 0,
        "width": 1.2,
        "depth": 0.3,
        "settlementPercent": 20
      },
      "expected": 0,
      "toleranceDecimalPlaces": 8,
      "unit": "m³",
      "confidence": "high",
      "steps": [
        {
          "label": "Finished volume",
          "value": 0,
          "unit": "m³"
        },
        {
          "label": "Litres",
          "value": 0,
          "unit": "L"
        },
        {
          "label": "Cubic yards",
          "value": 0,
          "unit": "yd³"
        },
        {
          "label": "60 L bags",
          "value": 0,
          "unit": "bags"
        },
        {
          "label": "Approximate weight",
          "value": 0,
          "unit": "kg"
        }
      ],
      "includesAllowance": {
        "label": "Settlement allowance",
        "percent": 20
      },
      "basis": "ambiguous"
    }
  ]
}
