{
  "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": "roof-truss-spacing-calculator",
  "category": "materials-quantities",
  "title": "Roof Truss Spacing & Count Calculator",
  "description": "Count the roof trusses a building length takes at your spacing, the gable-end trusses among them, a wing's trusses and the bracing's lineal run.",
  "url": "https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/roof-truss-spacing-calculator.json",
  "inputCount": 6,
  "testCaseCount": 3,
  "sourceCount": 1,
  "lastVerified": "2026-10-11",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/roof-truss-spacing-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Roof Truss Spacing & Count Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-10-11",
    "url": "https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-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. Roof Truss Spacing & Count Calculator. Version 1.0.1. Sources checked 2026-10-11. https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-calculator/",
      "apa": "Craft Quantities. (2026). Roof Truss Spacing & Count Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-calculator/",
      "harvard": "Craft Quantities (2026) Roof Truss Spacing & Count Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-roof-truss-spacing-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Roof Truss Spacing & Count Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "buildingLength",
      "label": "Building Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 12,
      "min": 0.01,
      "max": 60,
      "step": 0.1,
      "help": "The length of the building run the trusses are spaced along."
    },
    {
      "id": "trussSpacing",
      "label": "Truss Spacing (o.c.)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.6096,
      "min": 0.3048,
      "max": 0.6096,
      "step": 0.1016,
      "help": "The on-center spacing between trusses, per your design (commonly 24 in / 610 mm for roof trusses)."
    },
    {
      "id": "gableEnds",
      "label": "Gable-End Trusses Among Them",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 4,
      "step": 1,
      "help": "How many of the counted positions are gable ends: 2 on a gable roof, 0 on a hip roof."
    },
    {
      "id": "bracingLines",
      "label": "Lateral Bracing Lines",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 20,
      "step": 1,
      "help": "How many runs of continuous lateral bracing the truss drawings call for; two is an example."
    },
    {
      "id": "wing1Projection",
      "label": "First Wing's Length (0 for none)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0,
      "min": 0,
      "max": 40,
      "step": 0.1,
      "help": "From a wing's end wall to the main roof's wall line, for an L, T or U-shaped house."
    },
    {
      "id": "wing2Projection",
      "label": "Second Wing's Length (0 for none)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0,
      "min": 0,
      "max": 40,
      "step": 0.1,
      "help": "A second wing's length to the main wall line; 0 for none."
    }
  ],
  "sources": [
    {
      "label": "Truss count = ceil(building length ÷ spacing) + 1, the standard method for spacing repetitive framing members along a run"
    }
  ],
  "testCases": [
    {
      "name": "12m building, 24in o.c.",
      "inputs": {
        "buildingLength": 12,
        "trussSpacing": 0.6096
      },
      "expected": 21,
      "toleranceDecimalPlaces": 0,
      "unit": "trusses",
      "confidence": "high",
      "steps": [
        {
          "label": "Whole truss bays along the run",
          "value": 19
        },
        {
          "label": "Short bay left at one end",
          "value": 16.44094488188972,
          "unit": "in"
        },
        {
          "label": "Common trusses",
          "value": 19,
          "unit": "trusses"
        },
        {
          "label": "Gable-end trusses",
          "value": 2,
          "unit": "trusses"
        },
        {
          "label": "Lateral bracing, lineal",
          "value": 0,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "15m building, 16in o.c.",
      "inputs": {
        "buildingLength": 15,
        "trussSpacing": 0.4064
      },
      "expected": 38,
      "toleranceDecimalPlaces": 0,
      "unit": "trusses",
      "confidence": "high",
      "steps": [
        {
          "label": "Whole truss bays along the run",
          "value": 36
        },
        {
          "label": "Short bay left at one end",
          "value": 14.551181102362193,
          "unit": "in"
        },
        {
          "label": "Common trusses",
          "value": 36,
          "unit": "trusses"
        },
        {
          "label": "Gable-end trusses",
          "value": 2,
          "unit": "trusses"
        },
        {
          "label": "Lateral bracing, lineal",
          "value": 0,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "12m building with a 4 m wing, 24in o.c.",
      "inputs": {
        "buildingLength": 12,
        "trussSpacing": 0.6096,
        "gableEnds": 3,
        "bracingLines": 2,
        "wing1Projection": 4,
        "wing2Projection": 0
      },
      "expected": 28,
      "toleranceDecimalPlaces": 0,
      "unit": "trusses",
      "confidence": "high",
      "steps": [
        {
          "label": "Whole truss bays along the run",
          "value": 19
        },
        {
          "label": "Short bay left at one end",
          "value": 16.44094488188972,
          "unit": "in"
        },
        {
          "label": "Trusses in the wings",
          "value": 7,
          "unit": "trusses"
        },
        {
          "label": "Common trusses",
          "value": 25,
          "unit": "trusses"
        },
        {
          "label": "Gable-end trusses",
          "value": 3,
          "unit": "trusses"
        },
        {
          "label": "Lateral bracing, lineal",
          "value": 32,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ],
  "usedByAssemblies": [
    {
      "id": "asphalt-shingle-roof",
      "name": "Asphalt shingle roof"
    },
    {
      "id": "extension-shell",
      "name": "Extension shell, one or two storeys"
    },
    {
      "id": "porch-addition",
      "name": "Porch addition"
    },
    {
      "id": "detached-garage",
      "name": "Detached garage (new build)"
    }
  ]
}
