{
  "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": "outlet-switch-rough-in-calculator",
  "category": "electrical",
  "title": "Outlet and Switch Rough-In Calculator (Receptacles or Sockets: Boxes, Devices, Plates and Cable)",
  "description": "From a count of outlets or switches: boxes, devices, cover plates and the cable your own run per box adds up to.",
  "url": "https://craftquantities.com/calculators/electrical/outlet-switch-rough-in-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/outlet-switch-rough-in-calculator.json",
  "inputCount": 6,
  "testCaseCount": 2,
  "sourceCount": 3,
  "lastVerified": "2026-10-31",
  "citation": {
    "author": "Craft Quantities",
    "title": "Outlet and Switch Rough-In Calculator (Receptacles or Sockets: Boxes, Devices, Plates and Cable)",
    "version": "1.0.0",
    "sourcesChecked": "2026-10-31",
    "url": "https://craftquantities.com/calculators/electrical/outlet-switch-rough-in-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. Outlet and Switch Rough-In Calculator (Receptacles or Sockets: Boxes, Devices, Plates and Cable). Version 1.0.0. Sources checked 2026-10-31. https://craftquantities.com/calculators/electrical/outlet-switch-rough-in-calculator/",
      "apa": "Craft Quantities. (2026). Outlet and Switch Rough-In Calculator (Receptacles or Sockets: Boxes, Devices, Plates and Cable) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/electrical/outlet-switch-rough-in-calculator/",
      "harvard": "Craft Quantities (2026) Outlet and Switch Rough-In Calculator (Receptacles or Sockets: Boxes, Devices, Plates and Cable) (Version 1.0.0). Available at: https://craftquantities.com/calculators/electrical/outlet-switch-rough-in-calculator/",
      "bibtex": "@misc{craftquantities-calculators-electrical-outlet-switch-rough-in-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Outlet and Switch Rough-In Calculator (Receptacles or Sockets: Boxes, Devices, Plates and Cable)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/electrical/outlet-switch-rough-in-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "deviceType",
      "label": "What Was Counted",
      "type": "select",
      "defaultValue": "receptacle",
      "options": [
        {
          "value": "receptacle",
          "label": "Outlets (receptacles or sockets)"
        },
        {
          "value": "switch",
          "label": "Light switches"
        }
      ],
      "help": "Receptacles and switches share a box, a plate and a cable drop; the choice names the rows."
    },
    {
      "id": "deviceCount",
      "label": "Number Counted",
      "type": "number",
      "defaultValue": 12,
      "min": 1,
      "max": 500,
      "step": 1,
      "help": "How many outlet or switch symbols the drawing shows."
    },
    {
      "id": "devicesPerBox",
      "label": "Devices per Box (Gangs)",
      "type": "number",
      "defaultValue": 1,
      "min": 1,
      "max": 4,
      "step": 1,
      "help": "One for a single-gang box; two where two switches sit side by side under one plate."
    },
    {
      "id": "runPerBox",
      "label": "Cable Run to Each Box",
      "type": "number",
      "dimension": "length",
      "defaultValue": 4.5,
      "min": 0.1,
      "max": 60,
      "step": 0.1,
      "help": "Your measured run from the previous box (or the supply) to each box, along the route the cable takes."
    },
    {
      "id": "tailLength",
      "label": "Tail Left at Each End",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.15,
      "min": 0,
      "max": 1,
      "step": 0.005,
      "help": "The spare cable left in the box for making off, counted twice per box: the cable in and the cable on."
    },
    {
      "id": "allowancePercent",
      "label": "Cable Allowance (%)",
      "type": "number",
      "defaultValue": 10,
      "min": 0,
      "max": 50,
      "step": 1,
      "help": "Extra for bends round obstacles, a drop that wanders and the end of the reel."
    }
  ],
  "sources": [
    {
      "label": "NFPA 70, National Electrical Code (2023), 300.14: at least 6 in (150 mm) of free conductor at each outlet, junction and switch point, extending at least 3 in (75 mm) outside a box opening smaller than 8 in",
      "url": "https://www.nfpa.org/codes-and-standards/nfpa-70-standard-development/70"
    },
    {
      "label": "NFPA 70 (2023), 404.9(A) and 406.6: a switch or a receptacle mounted in a box is finished with a faceplate that completely covers the opening",
      "url": "https://www.nfpa.org/codes-and-standards/nfpa-70-standard-development/70"
    },
    {
      "label": "BS 4662: boxes for the flush mounting of electrical accessories, the single and dual back boxes a UK socket or switch plate fixes to",
      "url": "https://knowledge.bsigroup.com/products/boxes-for-flush-mounting-of-electrical-accessories-requirements-test-methods-and-dimensions"
    }
  ],
  "testCases": [
    {
      "name": "12 receptacles, one to a box, 4.5 m runs, 150 mm tails, 10%",
      "inputs": {
        "deviceType": "receptacle",
        "deviceCount": 12,
        "devicesPerBox": 1,
        "runPerBox": 4.5,
        "tailLength": 0.15,
        "allowancePercent": 10
      },
      "expected": 63.36,
      "toleranceDecimalPlaces": 2,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Boxes",
          "value": 12,
          "unit": "boxes"
        },
        {
          "label": "Receptacles (outlets or sockets)",
          "value": 12,
          "unit": "receptacles"
        },
        {
          "label": "Cover plates",
          "value": 12,
          "unit": "plates"
        },
        {
          "label": "Cable before the allowance",
          "value": 57.599999999999994,
          "unit": "m"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "9 switches, two to a box, 15 ft runs, 6 in tails, no allowance",
      "inputs": {
        "deviceType": "switch",
        "deviceCount": 9,
        "devicesPerBox": 2,
        "runPerBox": 4.572,
        "tailLength": 0.15239999999999998,
        "allowancePercent": 0
      },
      "expected": 24.384,
      "toleranceDecimalPlaces": 2,
      "unit": "m",
      "confidence": "medium",
      "steps": [
        {
          "label": "Boxes",
          "value": 5,
          "unit": "boxes"
        },
        {
          "label": "Switches",
          "value": 9,
          "unit": "switches"
        },
        {
          "label": "Cover plates",
          "value": 5,
          "unit": "plates"
        },
        {
          "label": "Cable before the allowance",
          "value": 24.384,
          "unit": "m"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    }
  ]
}
