{
  "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": "cable-railing-calculator",
  "category": "renovation-construction",
  "title": "Cable Railing Calculator",
  "description": "Estimate the total cable length needed for a horizontal cable railing system.",
  "url": "https://craftquantities.com/calculators/renovation-construction/cable-railing-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/cable-railing-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-05",
  "citation": {
    "author": "Craft Quantities",
    "title": "Cable Railing Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-05",
    "url": "https://craftquantities.com/calculators/renovation-construction/cable-railing-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. Cable Railing Calculator. Version 1.0.1. Sources checked 2026-09-05. https://craftquantities.com/calculators/renovation-construction/cable-railing-calculator/",
      "apa": "Craft Quantities. (2026). Cable Railing Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/renovation-construction/cable-railing-calculator/",
      "harvard": "Craft Quantities (2026) Cable Railing Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/renovation-construction/cable-railing-calculator/",
      "bibtex": "@misc{craftquantities-calculators-renovation-construction-cable-railing-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Cable Railing Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/renovation-construction/cable-railing-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "railingLength",
      "label": "Railing Run Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 6,
      "min": 0.01,
      "max": 100,
      "step": 0.1,
      "help": "The total horizontal length of the railing run."
    },
    {
      "id": "cableRuns",
      "label": "Number of Horizontal Cable Runs",
      "type": "number",
      "defaultValue": 9,
      "min": 3,
      "max": 15,
      "step": 1,
      "help": "How many horizontal cable lines span the railing height."
    }
  ],
  "sources": [
    {
      "label": "Total cable length = railing run length x number of horizontal cable runs, since each run spans the full length of the railing"
    }
  ],
  "testCases": [
    {
      "name": "6m railing, 9 cable runs",
      "inputs": {
        "railingLength": 6,
        "cableRuns": 9
      },
      "expected": 194.88,
      "toleranceDecimalPlaces": 2,
      "unit": "linear ft of cable",
      "confidence": "medium",
      "steps": [
        {
          "label": "Cable before waste allowance",
          "value": 177.16535433070868,
          "unit": "linear ft"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "10m railing, 9 cable runs",
      "inputs": {
        "railingLength": 10,
        "cableRuns": 9
      },
      "expected": 324.8,
      "toleranceDecimalPlaces": 1,
      "unit": "linear ft of cable",
      "confidence": "medium",
      "steps": [
        {
          "label": "Cable before waste allowance",
          "value": 295.2755905511811,
          "unit": "linear ft"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
