{
  "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-safety-slope-calculator",
  "category": "heavy-civil",
  "title": "Trench Sloping & Excavation Width Calculator",
  "description": "Top width and spoil volume for a sloped excavation, at the maximum allowable slope for a soil type a competent person has classified.",
  "url": "https://craftquantities.com/calculators/heavy-civil/trench-safety-slope-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/trench-safety-slope-calculator.json",
  "inputCount": 4,
  "testCaseCount": 5,
  "sourceCount": 3,
  "lastVerified": "2026-10-31",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/heavy-civil/trench-safety-slope-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Trench Sloping & Excavation Width Calculator",
    "version": "1.2.0",
    "sourcesChecked": "2026-10-31",
    "url": "https://craftquantities.com/calculators/heavy-civil/trench-safety-slope-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 Sloping & Excavation Width Calculator. Version 1.2.0. Sources checked 2026-10-31. https://craftquantities.com/calculators/heavy-civil/trench-safety-slope-calculator/",
      "apa": "Craft Quantities. (2026). Trench Sloping & Excavation Width Calculator (Version 1.2.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/heavy-civil/trench-safety-slope-calculator/",
      "harvard": "Craft Quantities (2026) Trench Sloping & Excavation Width Calculator (Version 1.2.0). Available at: https://craftquantities.com/calculators/heavy-civil/trench-safety-slope-calculator/",
      "bibtex": "@misc{craftquantities-calculators-heavy-civil-trench-safety-slope-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Trench Sloping & Excavation Width Calculator},\n  version      = {1.2.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/heavy-civil/trench-safety-slope-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "depth",
      "label": "Excavation depth",
      "type": "number",
      "dimension": "length",
      "defaultValue": 2.4,
      "min": 0.01,
      "max": 6.096,
      "step": 0.1,
      "help": "Depth from existing ground to the trench bottom."
    },
    {
      "id": "bottomWidth",
      "label": "Bottom width",
      "type": "number",
      "dimension": "length",
      "defaultValue": 1,
      "min": 0.01,
      "max": 30,
      "step": 0.1,
      "help": "Width needed at the base for the work."
    },
    {
      "id": "trenchLength",
      "label": "Trench length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 10,
      "min": 0.01,
      "max": 500,
      "step": 0.5,
      "help": "Run of trench at this profile, for the total excavation volume."
    },
    {
      "id": "soilType",
      "label": "Soil type — as classified by a competent person",
      "type": "select",
      "defaultValue": "typeB",
      "options": [
        {
          "value": "rock",
          "label": "Stable rock — vertical (90°)"
        },
        {
          "value": "typeA",
          "label": "Type A — 3/4:1, 53°"
        },
        {
          "value": "typeB",
          "label": "Type B — 1:1, 45°"
        },
        {
          "value": "typeC",
          "label": "Type C — 1½:1, 34°"
        }
      ],
      "help": "This calculator does not classify soil. A competent person must."
    }
  ],
  "sources": [
    {
      "label": "OSHA 29 CFR 1926 Subpart P, Appendix B — maximum allowable slopes for excavations less than 20 feet deep: Stable Rock vertical; Type A 3/4:1 (53°); Type B 1:1 (45°); Type C 1½:1 (34°)"
    },
    {
      "label": "29 CFR 1926.652 — excavations deeper than 20 feet require a protective system designed by a registered professional engineer"
    },
    {
      "label": "Soil classification under Appendix A must be performed by a competent person using at least one visual and one manual test"
    }
  ],
  "testCases": [
    {
      "name": "2.4 m deep, 1 m bottom, Type B",
      "inputs": {
        "depth": 2.4,
        "bottomWidth": 1,
        "soilType": "typeB"
      },
      "expected": 5.8,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Setback each side",
          "value": 2.4,
          "unit": "m"
        },
        {
          "label": "Slope angle from horizontal",
          "value": 45,
          "unit": "°"
        },
        {
          "label": "Spoil volume per unit length of trench",
          "value": 8.16,
          "unit": "m³/m"
        },
        {
          "label": "Extra volume caused by sloping",
          "value": 5.76,
          "unit": "m³/m"
        },
        {
          "label": "Top width in feet",
          "value": 19.028871391076112,
          "unit": "ft"
        },
        {
          "label": "Total bank excavation volume",
          "value": null,
          "unit": "m³"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Type C needs a wider top",
      "inputs": {
        "depth": 2.4,
        "bottomWidth": 1,
        "soilType": "typeC"
      },
      "expected": 8.2,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Setback each side",
          "value": 3.5999999999999996,
          "unit": "m"
        },
        {
          "label": "Slope angle from horizontal",
          "value": 34,
          "unit": "°"
        },
        {
          "label": "Spoil volume per unit length of trench",
          "value": 11.04,
          "unit": "m³/m"
        },
        {
          "label": "Extra volume caused by sloping",
          "value": 8.639999999999999,
          "unit": "m³/m"
        },
        {
          "label": "Top width in feet",
          "value": 26.902887139107605,
          "unit": "ft"
        },
        {
          "label": "Total bank excavation volume",
          "value": null,
          "unit": "m³"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Type A is tighter",
      "inputs": {
        "depth": 2.4,
        "bottomWidth": 1,
        "soilType": "typeA"
      },
      "expected": 4.6,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Setback each side",
          "value": 1.7999999999999998,
          "unit": "m"
        },
        {
          "label": "Slope angle from horizontal",
          "value": 53,
          "unit": "°"
        },
        {
          "label": "Spoil volume per unit length of trench",
          "value": 6.72,
          "unit": "m³/m"
        },
        {
          "label": "Extra volume caused by sloping",
          "value": 4.32,
          "unit": "m³/m"
        },
        {
          "label": "Top width in feet",
          "value": 15.091863517060364,
          "unit": "ft"
        },
        {
          "label": "Total bank excavation volume",
          "value": null,
          "unit": "m³"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Stable rock stays vertical",
      "inputs": {
        "depth": 2.4,
        "bottomWidth": 1,
        "soilType": "rock"
      },
      "expected": 1,
      "toleranceDecimalPlaces": 2,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Setback each side",
          "value": 0,
          "unit": "m"
        },
        {
          "label": "Slope angle from horizontal",
          "value": 90,
          "unit": "°"
        },
        {
          "label": "Spoil volume per unit length of trench",
          "value": 2.4,
          "unit": "m³/m"
        },
        {
          "label": "Extra volume caused by sloping",
          "value": 0,
          "unit": "m³/m"
        },
        {
          "label": "Top width in feet",
          "value": 3.280839895013123,
          "unit": "ft"
        },
        {
          "label": "Total bank excavation volume",
          "value": null,
          "unit": "m³"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Twice the depth doubles the setback",
      "inputs": {
        "depth": 4.8,
        "bottomWidth": 1,
        "soilType": "typeB"
      },
      "expected": 10.6,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Setback each side",
          "value": 4.8,
          "unit": "m"
        },
        {
          "label": "Slope angle from horizontal",
          "value": 45,
          "unit": "°"
        },
        {
          "label": "Spoil volume per unit length of trench",
          "value": 27.84,
          "unit": "m³/m"
        },
        {
          "label": "Extra volume caused by sloping",
          "value": 23.04,
          "unit": "m³/m"
        },
        {
          "label": "Top width in feet",
          "value": 34.7769028871391,
          "unit": "ft"
        },
        {
          "label": "Total bank excavation volume",
          "value": null,
          "unit": "m³"
        }
      ],
      "basis": "ambiguous"
    }
  ]
}
