{
  "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": "lawn-edging-calculator",
  "category": "materials-quantities",
  "title": "Lawn Edging Calculator",
  "description": "Coils or straight lengths of lawn and bed edging for a measured edge, straight or curved, open or a closed bed, with the joints and the stakes along it.",
  "url": "https://craftquantities.com/calculators/materials-quantities/lawn-edging-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/lawn-edging-calculator.json",
  "inputCount": 6,
  "testCaseCount": 5,
  "sourceCount": 1,
  "lastVerified": "2026-09-26",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/lawn-edging-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Lawn Edging Calculator",
    "version": "1.0.0",
    "sourcesChecked": "2026-09-26",
    "url": "https://craftquantities.com/calculators/materials-quantities/lawn-edging-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. Lawn Edging Calculator. Version 1.0.0. Sources checked 2026-09-26. https://craftquantities.com/calculators/materials-quantities/lawn-edging-calculator/",
      "apa": "Craft Quantities. (2026). Lawn Edging Calculator (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/lawn-edging-calculator/",
      "harvard": "Craft Quantities (2026) Lawn Edging Calculator (Version 1.0.0). Available at: https://craftquantities.com/calculators/materials-quantities/lawn-edging-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-lawn-edging-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Lawn Edging Calculator},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/lawn-edging-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "edgeLength",
      "label": "Edge Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 20,
      "min": 0.5,
      "max": 500,
      "step": 0.1,
      "help": "The length of the edge you are lining, measured along it — curves included."
    },
    {
      "id": "runShape",
      "label": "Edge Shape",
      "type": "select",
      "defaultValue": "open",
      "options": [
        {
          "value": "open",
          "label": "Open run (two ends)"
        },
        {
          "value": "loop",
          "label": "Closed loop (a bed or tree ring)"
        }
      ],
      "help": "Whether the edge has two ends or closes on itself."
    },
    {
      "id": "product",
      "label": "Edging Type",
      "type": "select",
      "defaultValue": "coil",
      "options": [
        {
          "value": "coil",
          "label": "Coil (flexible, sold rolled)"
        },
        {
          "value": "straight",
          "label": "Straight lengths (steel, aluminium or rigid plastic)"
        }
      ],
      "help": "How the edging is sold. It changes what the answer counts, not the arithmetic."
    },
    {
      "id": "pieceLength",
      "label": "Coil or Length Size",
      "type": "number",
      "dimension": "length",
      "defaultValue": 6.1,
      "min": 0.5,
      "max": 60,
      "step": 0.1,
      "help": "The length of one coil or one straight piece, as printed on the pack."
    },
    {
      "id": "jointOverlap",
      "label": "Overlap at Each Joint",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0,
      "min": 0,
      "max": 0.3,
      "step": 0.005,
      "help": "How much of each piece is lost where it laps the next one. Zero where the ends butt into a connector."
    },
    {
      "id": "stakeSpacing",
      "label": "Stake Spacing",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.9,
      "min": 0.2,
      "max": 3,
      "step": 0.05,
      "help": "The largest gap between stakes the edging's instructions allow."
    }
  ],
  "sources": [
    {
      "label": "Open run: pieces = (edge length - overlap) / (piece length - overlap), rounded up; closed loop: pieces = edge length / (piece length - overlap), rounded up. Joints = pieces - 1 open, pieces closed. Stakes = edge length / stake spacing, rounded up, plus one on an open run."
    }
  ],
  "testCases": [
    {
      "name": "20 m open edge, 6.1 m coils, butt connectors",
      "inputs": {
        "edgeLength": 20,
        "runShape": "open",
        "product": "coil",
        "pieceLength": 6.1,
        "jointOverlap": 0,
        "stakeSpacing": 0.9
      },
      "expected": 4,
      "toleranceDecimalPlaces": 0,
      "unit": "coils",
      "confidence": "high",
      "steps": [
        {
          "label": "Coil size",
          "value": 6.1,
          "unit": "m"
        },
        {
          "label": "Edging bought",
          "value": 24.4,
          "unit": "m"
        },
        {
          "label": "Connectors, one per joint",
          "value": 3
        },
        {
          "label": "Left over after the last cut",
          "value": 4.399999999999999,
          "unit": "m"
        },
        {
          "label": "Stakes",
          "value": 24
        },
        {
          "label": "Stake centres, as set out",
          "value": 0.8695652173913043,
          "unit": "m"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "12 m bed loop, 2.4 m straight lengths lapped 100 mm",
      "inputs": {
        "edgeLength": 12,
        "runShape": "loop",
        "product": "straight",
        "pieceLength": 2.4,
        "jointOverlap": 0.1,
        "stakeSpacing": 0.75
      },
      "expected": 6,
      "toleranceDecimalPlaces": 0,
      "unit": "lengths",
      "confidence": "high",
      "steps": [
        {
          "label": "Length size",
          "value": 2.4,
          "unit": "m"
        },
        {
          "label": "Edging bought",
          "value": 14.399999999999999,
          "unit": "m"
        },
        {
          "label": "Joints between lengths",
          "value": 6
        },
        {
          "label": "Lost to overlaps",
          "value": 0.6000000000000001,
          "unit": "m"
        },
        {
          "label": "Left over after the last cut",
          "value": 1.7999999999999985,
          "unit": "m"
        },
        {
          "label": "Stakes",
          "value": 16
        },
        {
          "label": "Stake centres, as set out",
          "value": 0.75,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "20 m open edge, 6.1 m coils lapped 150 mm",
      "inputs": {
        "edgeLength": 20,
        "runShape": "open",
        "product": "coil",
        "pieceLength": 6.1,
        "jointOverlap": 0.15,
        "stakeSpacing": 0.9
      },
      "expected": 4,
      "toleranceDecimalPlaces": 0,
      "unit": "coils",
      "confidence": "high",
      "steps": [
        {
          "label": "Coil size",
          "value": 6.1,
          "unit": "m"
        },
        {
          "label": "Edging bought",
          "value": 24.4,
          "unit": "m"
        },
        {
          "label": "Connectors, one per joint",
          "value": 3
        },
        {
          "label": "Lost to overlaps",
          "value": 0.44999999999999996,
          "unit": "m"
        },
        {
          "label": "Left over after the last cut",
          "value": 3.9499999999999984,
          "unit": "m"
        },
        {
          "label": "Stakes",
          "value": 24
        },
        {
          "label": "Stake centres, as set out",
          "value": 0.8695652173913043,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "12 m open edge, 3 m lengths, no overlap — an exact multiple adds no piece",
      "inputs": {
        "edgeLength": 12,
        "runShape": "open",
        "product": "straight",
        "pieceLength": 3,
        "jointOverlap": 0,
        "stakeSpacing": 1
      },
      "expected": 4,
      "toleranceDecimalPlaces": 0,
      "unit": "lengths",
      "confidence": "high",
      "steps": [
        {
          "label": "Length size",
          "value": 3,
          "unit": "m"
        },
        {
          "label": "Edging bought",
          "value": 12,
          "unit": "m"
        },
        {
          "label": "Joints between lengths",
          "value": 3
        },
        {
          "label": "Left over after the last cut",
          "value": 0,
          "unit": "m"
        },
        {
          "label": "Stakes",
          "value": 13
        },
        {
          "label": "Stake centres, as set out",
          "value": 1,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "18 m open edge, 6 m lengths lapped 300 mm — the overlaps cost a fourth length",
      "inputs": {
        "edgeLength": 18,
        "runShape": "open",
        "product": "straight",
        "pieceLength": 6,
        "jointOverlap": 0.3,
        "stakeSpacing": 1
      },
      "expected": 4,
      "toleranceDecimalPlaces": 0,
      "unit": "lengths",
      "confidence": "high",
      "steps": [
        {
          "label": "Length size",
          "value": 6,
          "unit": "m"
        },
        {
          "label": "Edging bought",
          "value": 24,
          "unit": "m"
        },
        {
          "label": "Joints between lengths",
          "value": 3
        },
        {
          "label": "Lost to overlaps",
          "value": 0.8999999999999999,
          "unit": "m"
        },
        {
          "label": "Left over after the last cut",
          "value": 5.1,
          "unit": "m"
        },
        {
          "label": "Stakes",
          "value": 19
        },
        {
          "label": "Stake centres, as set out",
          "value": 1,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ],
  "usedByAssemblies": [
    {
      "id": "landscape-bed",
      "name": "Landscape bed"
    }
  ]
}
