{
  "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": "trench-excavation-backfill-calculator",
  "category": "materials-quantities",
  "title": "Trench Excavation & Backfill Volume Calculator",
  "description": "Estimate the total excavated volume and the loose backfill material needed to fill a pipe trench.",
  "url": "https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/trench-excavation-backfill-calculator.json",
  "inputCount": 7,
  "testCaseCount": 5,
  "sourceCount": 1,
  "lastVerified": "2026-09-26",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/trench-excavation-backfill-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Trench Excavation & Backfill Volume Calculator",
    "version": "1.1.0",
    "sourcesChecked": "2026-09-26",
    "url": "https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-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. Trench Excavation & Backfill Volume Calculator. Version 1.1.0. Sources checked 2026-09-26. https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-calculator/",
      "apa": "Craft Quantities. (2026). Trench Excavation & Backfill Volume Calculator (Version 1.1.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-calculator/",
      "harvard": "Craft Quantities (2026) Trench Excavation & Backfill Volume Calculator (Version 1.1.0). Available at: https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-trench-excavation-backfill-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Trench Excavation & Backfill Volume Calculator},\n  version      = {1.1.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "trenchLength",
      "label": "Trench Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 50,
      "min": 0.01,
      "max": 1000,
      "step": 1,
      "help": "The total length of the trench."
    },
    {
      "id": "trenchWidth",
      "label": "Trench Width",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.6,
      "min": 0.01,
      "max": 3,
      "step": 0.05,
      "help": "The width of the trench."
    },
    {
      "id": "trenchDepth",
      "label": "Trench Depth",
      "type": "number",
      "dimension": "length",
      "defaultValue": 1.2,
      "min": 0.01,
      "max": 6,
      "step": 0.1,
      "help": "The depth of the trench."
    },
    {
      "id": "pipeDiameter",
      "label": "Pipe Diameter",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.3,
      "min": 0,
      "max": 1.5,
      "step": 0.01,
      "help": "The outer diameter of the pipe being laid; 0 for a trench with no pipe."
    },
    {
      "id": "beddingBelow",
      "label": "Bedding Below the Pipe",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0,
      "min": 0,
      "max": 0.6,
      "step": 0.025,
      "help": "Depth of bedding material under the pipe; 0 if the pipe sits on the trench bottom."
    },
    {
      "id": "surroundAbove",
      "label": "Surround Cover Above the Pipe",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0,
      "min": 0,
      "max": 0.6,
      "step": 0.025,
      "help": "Depth of the same bedding material over the top of the pipe; 0 for none."
    },
    {
      "id": "compactionFactorPercent",
      "label": "Compaction Loose-Volume Factor (%)",
      "type": "number",
      "defaultValue": 15,
      "min": 5,
      "max": 30,
      "step": 1,
      "help": "Extra loose material needed to achieve full compaction in the void."
    }
  ],
  "sources": [
    {
      "label": "Backfill volume = trench excavation volume minus the pipe's own volume, minus any bedding and surround zone (trench width x (bed below + pipe diameter + cover above) x length, less the pipe it holds); loose material ordered accounts for the extra volume lost when compacting loose fill back into a denser state"
    }
  ],
  "testCases": [
    {
      "name": "50m trench, 0.6x1.2m, 0.3m pipe, 15% compaction factor",
      "inputs": {
        "trenchLength": 50,
        "trenchWidth": 0.6,
        "trenchDepth": 1.2,
        "pipeDiameter": 0.3,
        "beddingBelow": 0,
        "surroundAbove": 0,
        "compactionFactorPercent": 15
      },
      "expected": 37.34,
      "toleranceDecimalPlaces": 1,
      "unit": "m³ (loose)",
      "confidence": "medium",
      "steps": [
        {
          "label": "Excavation volume (the depth entered)",
          "value": 36,
          "unit": "m³"
        },
        {
          "label": "Pipe volume (subtracted)",
          "value": 3.5342917352885173,
          "unit": "m³"
        },
        {
          "label": "Compacted backfill void",
          "value": 32.46570826471148,
          "unit": "m³"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "80m trench, 0.5x1.0m, 0.2m pipe, 20% compaction factor",
      "inputs": {
        "trenchLength": 80,
        "trenchWidth": 0.5,
        "trenchDepth": 1,
        "pipeDiameter": 0.2,
        "beddingBelow": 0,
        "surroundAbove": 0,
        "compactionFactorPercent": 20
      },
      "expected": 44.99,
      "toleranceDecimalPlaces": 0,
      "unit": "m³ (loose)",
      "confidence": "medium",
      "steps": [
        {
          "label": "Excavation volume (the depth entered)",
          "value": 40,
          "unit": "m³"
        },
        {
          "label": "Pipe volume (subtracted)",
          "value": 2.5132741228718345,
          "unit": "m³"
        },
        {
          "label": "Compacted backfill void",
          "value": 37.486725877128166,
          "unit": "m³"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "50m trench, 0.6x1.2m, 0.3m pipe on a 100 mm bed with 300 mm cover, 15%",
      "inputs": {
        "trenchLength": 50,
        "trenchWidth": 0.6,
        "trenchDepth": 1.2,
        "pipeDiameter": 0.3,
        "beddingBelow": 0.1,
        "surroundAbove": 0.3,
        "compactionFactorPercent": 15
      },
      "expected": 17.25,
      "toleranceDecimalPlaces": 2,
      "unit": "m³ (loose)",
      "confidence": "medium",
      "steps": [
        {
          "label": "Excavation volume (the depth entered)",
          "value": 36,
          "unit": "m³"
        },
        {
          "label": "Pipe volume (subtracted)",
          "value": 3.5342917352885173,
          "unit": "m³"
        },
        {
          "label": "Bedding and surround (in place, subtracted)",
          "value": 17.465708264711484,
          "unit": "m³"
        },
        {
          "label": "Compacted backfill void",
          "value": 14.999999999999996,
          "unit": "m³"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "No pipe (diameter 0): 10m x 0.6m x 1.0m, 15%",
      "inputs": {
        "trenchLength": 10,
        "trenchWidth": 0.6,
        "trenchDepth": 1,
        "pipeDiameter": 0,
        "beddingBelow": 0,
        "surroundAbove": 0,
        "compactionFactorPercent": 15
      },
      "expected": 6.9,
      "toleranceDecimalPlaces": 2,
      "unit": "m³ (loose)",
      "confidence": "medium",
      "steps": [
        {
          "label": "Excavation volume (the depth entered)",
          "value": 6,
          "unit": "m³"
        },
        {
          "label": "Pipe volume (subtracted)",
          "value": 0,
          "unit": "m³"
        },
        {
          "label": "Compacted backfill void",
          "value": 6,
          "unit": "m³"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "Bedding zone deeper than the trench leaves no backfill",
      "inputs": {
        "trenchLength": 10,
        "trenchWidth": 0.5,
        "trenchDepth": 0.5,
        "pipeDiameter": 0.2,
        "beddingBelow": 0.15,
        "surroundAbove": 0.3,
        "compactionFactorPercent": 15
      },
      "expected": 0,
      "toleranceDecimalPlaces": 6,
      "unit": "m³ (loose)",
      "confidence": "medium",
      "steps": [
        {
          "label": "Excavation volume (the depth entered)",
          "value": 2.5,
          "unit": "m³"
        },
        {
          "label": "Pipe volume (subtracted)",
          "value": 0.3141592653589793,
          "unit": "m³"
        },
        {
          "label": "Bedding and surround (in place, subtracted)",
          "value": 2.1858407346410207,
          "unit": "m³"
        },
        {
          "label": "Compacted backfill void",
          "value": 0,
          "unit": "m³"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ],
  "usedByAssemblies": [
    {
      "id": "strip-footing",
      "name": "Strip footing"
    },
    {
      "id": "service-connections",
      "name": "New-build service connections (water and sewer)"
    },
    {
      "id": "extension-shell",
      "name": "Extension shell, one or two storeys"
    },
    {
      "id": "porch-addition",
      "name": "Porch addition"
    },
    {
      "id": "garden-room",
      "name": "Garden room or backyard office"
    },
    {
      "id": "detached-garage",
      "name": "Detached garage (new build)"
    },
    {
      "id": "ev-charger-installation",
      "name": "EV charger installation"
    },
    {
      "id": "irrigation-zone",
      "name": "Irrigation zone"
    }
  ]
}
