{
  "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": "dormer-rafter-length-calculator",
  "category": "materials-quantities",
  "title": "Dormer Rafter Length Calculator",
  "description": "Calculate common rafter length for a dormer roof, including overhang, from the dormer's own width and pitch.",
  "url": "https://craftquantities.com/calculators/materials-quantities/dormer-rafter-length-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/dormer-rafter-length-calculator.json",
  "inputCount": 3,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-02",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/dormer-rafter-length-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Dormer Rafter Length Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-02",
    "url": "https://craftquantities.com/calculators/materials-quantities/dormer-rafter-length-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. Dormer Rafter Length Calculator. Version 1.0.1. Sources checked 2026-09-02. https://craftquantities.com/calculators/materials-quantities/dormer-rafter-length-calculator/",
      "apa": "Craft Quantities. (2026). Dormer Rafter Length Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/dormer-rafter-length-calculator/",
      "harvard": "Craft Quantities (2026) Dormer Rafter Length Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/materials-quantities/dormer-rafter-length-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-dormer-rafter-length-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Dormer Rafter Length Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/dormer-rafter-length-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "dormerWidth",
      "label": "Dormer Width",
      "type": "number",
      "dimension": "length",
      "defaultValue": 2,
      "min": 0.01,
      "max": 6,
      "step": 0.1,
      "help": "The full width of the dormer, measured across its own roof."
    },
    {
      "id": "dormerPitch",
      "label": "Dormer Roof Pitch (rise per 12)",
      "type": "number",
      "defaultValue": 8,
      "min": 2,
      "max": 24,
      "step": 0.5,
      "help": "The dormer's own roof pitch, expressed as rise per 12 units of run."
    },
    {
      "id": "overhang",
      "label": "Overhang",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.3,
      "min": 0,
      "max": 0.6,
      "step": 0.05,
      "help": "The horizontal overhang beyond the dormer's side wall."
    }
  ],
  "sources": [
    {
      "label": "Standard carpentry rafter-length formula applied to a dormer's own (typically narrower, steeper) roof: rafter length = run × √(1+(pitch/12)²)"
    }
  ],
  "testCases": [
    {
      "name": "2m dormer, 8/12 pitch, 0.3m overhang",
      "inputs": {
        "dormerWidth": 2,
        "dormerPitch": 8,
        "overhang": 0.3
      },
      "expected": 1.5625,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Rafter length to ridge",
          "value": 1.2018504251546631,
          "unit": "m"
        },
        {
          "label": "Overhang tail",
          "value": 0.3605551275463989,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "2.4m dormer, 10/12 pitch, 0.25m overhang",
      "inputs": {
        "dormerWidth": 2.4,
        "dormerPitch": 10,
        "overhang": 0.25
      },
      "expected": 1.8875,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Rafter length to ridge",
          "value": 1.562049935181331,
          "unit": "m"
        },
        {
          "label": "Overhang tail",
          "value": 0.32542706982944397,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
