# Common Gable Rafter Length Calculator

> Calculate common rafter length from building width and roof pitch, including the overhang tail.

Page: https://craftquantities.com/calculators/materials-quantities/common-rafter-length-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.2, sources checked 2026-09-17, 2 published test vectors.

Total rafter length (incl. overhang): 16 ft for Building Width 26 ft, the page's opening figures; on the metric page, 8 m gives 4.92 m. Sources are cited below.

## Inputs

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Building Width | `buildingWidth` | 8 m | 26 ft | mm, cm, m, in, ft, yd; range 0.01–30 m |
| Roof Pitch (rise per 12 run) | `roofPitch` | 6 | 6 | range 1–24 |
| Overhang (Horizontal) | `overhang` | 400 mm | 16 in | mm, cm, m, in, ft, yd; range 0–1.5 m |

- **Building Width**: The overall width of the building, wall to wall.
- **Roof Pitch (rise per 12 run)**: The roof's slope, expressed as inches of rise per 12 inches of horizontal run.
- **Overhang (Horizontal)**: The horizontal distance the rafter tail extends past the wall plate.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Total rafter length (incl. overhang)** | 4.92 m |
| Rafter length to ridge (no overhang) | 4.47 m |
| Overhang tail length | 0.45 m |

### US customary

| Result | Value |
|---|---|
| **Total rafter length (incl. overhang)** | 16 ft |
| Rafter length to ridge (no overhang) | 14.53 ft |
| Overhang tail length | 1.49 ft |

## How it is worked out

The working the page shows, in order: Rafter length to ridge (no overhang); Overhang tail length; then total rafter length (incl. overhang).

The method, derived in full:

- [Slope, Pitch and True Surface Area](https://craftquantities.com/methodology/slope-pitch-and-true-area/): Converting a plan footprint into the sloped area a roof actually has — the factor that decides whether a shingle order is right or a third short.

The equations it runs, in the open formula library:

- Formula: [Lᵣ = (B / 2 + o) × √(1 + (x / 12)²)](https://craftquantities.com/formulas/roof-pitch-and-slope/#common-rafter-length)

What this calculation does not cover:

- The run is taken as exactly half the building width, so the length measures to the ridge centreline of a symmetric gable with equal pitch each side and level wall plates. A real common rafter stops at the face of the ridge board, so half the ridge thickness must be deducted along the slope: for a 38 mm ridge at 6/12 that is about 21 mm off every rafter, and the deduction grows with pitch.
- Pitch here is rise per 12 units of run, not an angle in degrees. Entering a measured roof angle produces a far steeper roof than intended — 22.5 read as a ratio is a 61.9 degree roof, whereas a 22.5 degree roof is a pitch of about 5 in 12.
- The overhang input is the horizontal projection past the wall plate, and the calculator multiplies it by the slope factor itself. Entering the sloped length of the tail measured along the rafter overstates the total by that factor again, about 12 per cent at 6/12. The figure also assumes the tail runs to the plumb cut, with no setback for fascia thickness or a soffit return.
- The result is a line length, not a cut list. The plumb cuts, the birdsmouth and the tail are drawn at full size in the rafter cut templates on this page, with every length marked from the heel point. Neither adds anything for saw kerf, waste or rounding up to a stock timber length, and neither tests whether the birdsmouth leaves enough rafter over the wall plate — that limit is the building code's, not this page's.
- Nothing here checks structural adequacy. The calculator never asks for rafter section, timber grade, spacing or load, so it cannot say whether that span works under snow, wind and imposed loads, or whether purlins, struts, collars or a structural ridge beam are needed. Span tables set that limit, and a long run can exceed any common section. The result is one rafter's length, not a rafter count or a timber order.

A professional must decide:

- Nothing here checks structural adequacy. The calculator never asks for rafter section, timber grade, spacing or load, so it cannot say whether that span works under snow, wind and imposed loads, or whether purlins, struts, collars or a structural ridge beam are needed.
- Structure: sizes, thicknesses, spans, reinforcement and bearing are a structural engineer's or the building official's decision. This is a quantity, not a design.

## Sources

As the calculator cites them (sources checked 2026-09-17):

- Standard carpentry rafter-length formula: rafter length = run × √(1 + (rise/12)²), where run is the horizontal distance from wall plate to ridge

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**Why is the run half the building width?**

For a standard gable roof, the ridge sits at the centerline of the building, so each common rafter spans horizontally from the exterior wall plate to the ridge — a run equal to half the overall building width.

**Does this length include the rafter tail (overhang)?**

Yes — the total result adds the overhang tail's sloped length (overhang × slope factor) to the rafter length from wall plate to ridge, so it reflects the actual board length needed including the eave overhang.

**Does a steeper pitch increase both the rafter length and the overhang length?**

Yes — the same slope factor, √(1 + (rise/12)²), applies to both the run and the overhang, since the rafter tail follows the same roof slope as the rest of the rafter.

## Related calculators

- [Hip/Valley Rafter Plumb Cut Angular Cutlist](https://craftquantities.com/calculators/materials-quantities/hip-valley-rafter-cutlist-calculator/)
- [Roof Overhang Tail Length Calculator](https://craftquantities.com/calculators/materials-quantities/roof-overhang-tail-length-calculator/)
- [Roofing Shingle Calculator](https://craftquantities.com/calculators/renovation-construction/roofing-shingle-calculator/)
- [Triangle Calculator — Right Triangle and Any Triangle Solver](https://craftquantities.com/calculators/measurements-conversions/triangle-calculator/)
- [Rafter Quantity Calculator (Gable, Hip, Shed, L- and T-Shaped Roofs: Rafters, Hips, Valleys, Jacks and Ridge Board)](https://craftquantities.com/calculators/materials-quantities/rafter-quantity-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/common-rafter-length-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/common-rafter-length-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `common-rafter-length-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/common-rafter-length-calculator.json

---
Source: https://craftquantities.com/calculators/materials-quantities/common-rafter-length-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
