{
  "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": "heat-trace-cable-calculator",
  "category": "materials-quantities",
  "title": "Pipe Freeze Protection Heat Trace Cable Length Calculator",
  "description": "Calculate the total self-regulating heat trace cable length needed for a pipe run, including valve/fitting allowances.",
  "url": "https://craftquantities.com/calculators/materials-quantities/heat-trace-cable-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/heat-trace-cable-calculator.json",
  "inputCount": 4,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-06",
  "citation": {
    "author": "Craft Quantities",
    "title": "Pipe Freeze Protection Heat Trace Cable Length Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-06",
    "url": "https://craftquantities.com/calculators/materials-quantities/heat-trace-cable-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. Pipe Freeze Protection Heat Trace Cable Length Calculator. Version 1.0.1. Sources checked 2026-09-06. https://craftquantities.com/calculators/materials-quantities/heat-trace-cable-calculator/",
      "apa": "Craft Quantities. (2026). Pipe Freeze Protection Heat Trace Cable Length Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/heat-trace-cable-calculator/",
      "harvard": "Craft Quantities (2026) Pipe Freeze Protection Heat Trace Cable Length Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/materials-quantities/heat-trace-cable-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-heat-trace-cable-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Pipe Freeze Protection Heat Trace Cable Length Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/heat-trace-cable-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "pipeLength",
      "label": "Pipe Run Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 50,
      "min": 0.01,
      "max": 500,
      "step": 1,
      "help": "The total straight-run length of pipe requiring freeze protection."
    },
    {
      "id": "fittingAllowancePercent",
      "label": "Fitting/Bend Allowance (%)",
      "type": "number",
      "defaultValue": 10,
      "min": 0,
      "max": 25,
      "step": 1,
      "help": "Extra cable length to allow for the additional wrap needed at elbows and bends."
    },
    {
      "id": "valveCount",
      "label": "Number of Valves",
      "type": "number",
      "defaultValue": 3,
      "min": 0,
      "max": 50,
      "step": 1,
      "help": "The number of valves along the pipe run that need extra heat trace cable wrapped around their bodies."
    },
    {
      "id": "extraPerValve",
      "label": "Extra Cable per Valve",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.5,
      "min": 0.01,
      "max": 2,
      "step": 0.05,
      "help": "The additional cable length allowed for wrapping each valve body."
    }
  ],
  "sources": [
    {
      "label": "Total cable length = pipe length × (1 + fitting allowance) + valve count × extra cable per valve, accounting for the extra heat trace cable wrapped at valves and fittings beyond the base straight-run length"
    }
  ],
  "testCases": [
    {
      "name": "50m pipe, 10% allowance, 3 valves",
      "inputs": {
        "pipeLength": 50,
        "fittingAllowancePercent": 10,
        "valveCount": 3,
        "extraPerValve": 0.5
      },
      "expected": 56.5,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "high",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "75m pipe, 10% allowance, 5 valves",
      "inputs": {
        "pipeLength": 75,
        "fittingAllowancePercent": 10,
        "valveCount": 5,
        "extraPerValve": 0.5
      },
      "expected": 85,
      "toleranceDecimalPlaces": 0,
      "unit": "m",
      "confidence": "high",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
