{
  "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": "excavation-sloping-setback-calculator",
  "category": "materials-quantities",
  "title": "Excavation Sloping/Benching Setback Calculator",
  "description": "Calculate the minimum horizontal setback for a sloped excavation wall, using OSHA's maximum allowable slope ratios by soil type.",
  "url": "https://craftquantities.com/calculators/materials-quantities/excavation-sloping-setback-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/excavation-sloping-setback-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-05",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/excavation-sloping-setback-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Excavation Sloping/Benching Setback Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-05",
    "url": "https://craftquantities.com/calculators/materials-quantities/excavation-sloping-setback-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. Excavation Sloping/Benching Setback Calculator. Version 1.0.1. Sources checked 2026-09-05. https://craftquantities.com/calculators/materials-quantities/excavation-sloping-setback-calculator/",
      "apa": "Craft Quantities. (2026). Excavation Sloping/Benching Setback Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/excavation-sloping-setback-calculator/",
      "harvard": "Craft Quantities (2026) Excavation Sloping/Benching Setback Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/materials-quantities/excavation-sloping-setback-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-excavation-sloping-setback-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Excavation Sloping/Benching Setback Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/excavation-sloping-setback-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "excavationDepth",
      "label": "Excavation Depth (Method Valid Only for ≤20 ft / 6 m)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 3,
      "min": 0.01,
      "max": 6.096,
      "step": 0.1,
      "help": "The vertical depth of the excavation."
    },
    {
      "id": "soilType",
      "label": "OSHA Soil Classification (Per Competent Person's Field Testing)",
      "type": "select",
      "defaultValue": "B",
      "options": [
        {
          "value": "A",
          "label": "Type A — Most Stable (Max Slope 3/4:1)"
        },
        {
          "value": "B",
          "label": "Type B — Medium Stability (Max Slope 1:1)"
        },
        {
          "value": "C",
          "label": "Type C — Least Stable (Max Slope 1 1/2:1)"
        }
      ],
      "help": "The OSHA soil type classification (A, B, or C) determined by a competent person's field tests."
    }
  ],
  "sources": [
    {
      "label": "Per OSHA 29 CFR 1926 Subpart P, Appendix B (verified against the regulatory text), for excavations 20 feet or less in depth using a simple slope configuration, the maximum allowable slope ratios (horizontal:vertical) are: Type A soil 3/4:1 (0.75), Type B soil 1:1 (1.0), Type C soil 1 1/2:1 (1.5). Type A soil has a further exception allowing 1/2:1 for short-term excavations of 12 feet or less, not implemented in this simplified tool. Required horizontal setback = Excavation Depth × Slope Ratio."
    }
  ],
  "testCases": [
    {
      "name": "3m depth, Type B soil",
      "inputs": {
        "excavationDepth": 3,
        "soilType": "B"
      },
      "expected": 3,
      "toleranceDecimalPlaces": 0,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Slope ratio used (horizontal:vertical)",
          "value": 1,
          "unit": ":1"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "4m depth, Type C soil",
      "inputs": {
        "excavationDepth": 4,
        "soilType": "C"
      },
      "expected": 6,
      "toleranceDecimalPlaces": 0,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Slope ratio used (horizontal:vertical)",
          "value": 1.5,
          "unit": ":1"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
