# Gambrel Roof Rafter Geometry Calculator

> Calculate total rafter length for a two-slope gambrel (barn-style) roof from building width and each segment's pitch.

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

Version 1.0.1, sources checked 2026-09-02, 2 published test vectors.

Total gambrel rafter length: 21.8 ft for Building Width 26 ft, the page's opening figures; on the metric page, 8 m gives 6.71 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–20 m |
| Lower (Steep) Segment Pitch (rise per 12) | `lowerPitch` | 24 | 24 | range 12–30 |
| Upper (Shallow) Segment Pitch (rise per 12) | `upperPitch` | 6 | 6 | range 2–12 |
| Break Point (fraction of half-width, lower segment) | `breakPointRatio` | 0.5 | 0.5 | range 0.2–0.8 |

- **Building Width**: The overall building width the gambrel roof spans.
- **Lower (Steep) Segment Pitch (rise per 12)**: The steeper lower roof segment's pitch, as rise per 12 units of run.
- **Upper (Shallow) Segment Pitch (rise per 12)**: The shallower upper roof segment's pitch, as rise per 12 units of run.
- **Break Point (fraction of half-width, lower segment)**: The fraction of the half-building-width covered by the lower segment's run before transitioning to the upper segment.

## The answer on the opening values

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

### Metric

| Result | Value |
|---|---|
| **Total gambrel rafter length** | 6.71 m |
| Lower segment length | 4.47 m |
| Upper segment length | 2.24 m |

### US customary

| Result | Value |
|---|---|
| **Total gambrel rafter length** | 21.8 ft |
| Lower segment length | 14.53 ft |
| Upper segment length | 7.27 ft |

## How it is worked out

The working the page shows, in order: Lower segment length; Upper segment length; then total gambrel rafter length.

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.

What this calculation does not cover:

- The figure covers one side of the roof only, from wall to ridge, and it is the sum of two separate members rather than one stick of timber. Order and set out from the two breakdown lengths, never from the total: one stick cut to the total length fits nothing on the roof. The layout is assumed symmetrical, with the ridge on the centreline and the same pair of pitches on both sides.
- Nothing is added or taken off for the cuts. The run is half the overall building width, so the length is measured to the theoretical apex on the centreline with no deduction for half the ridge board thickness, and no allowance for the birdsmouth or seat cut, the plumb cut at the ridge, the bevel where the two pitches meet, or the tail beyond the plate. If the wall plate sits inboard of the outer wall face, the true run is shorter than half the overall width by that offset.
- The break point is entered as a fraction of the half-span and is independent of the two pitches you type, so the default 0.5 is a free choice rather than the traditional barn setting-out. The classic method inscribes half an octagon in a semicircle drawn on the span, which puts the break at roughly 0.29 of the half-span with segment slopes near 29/12 and 5/12. Keeping 0.5 while entering those pitches describes a different roof profile and a different ridge height.
- This is geometry with no structural content. It does not size the rafters, set their spacing, check the span against a load table, or account for snow and wind, and it says nothing about the break line, which behaves as a hinge and normally needs a purlin plate, a collar or a gusseted truss joint to hold the two segments in line.
- Only length is returned, never rise or angles. The ridge height above the plate, which governs headroom in the storey below and any height limit imposed on the building, is not part of the calculation, and neither are the cut angles: a 24/12 lower segment sits at 63.4 degrees from the horizontal and the timber changes direction by about 37 degrees at the break with the default pitches. The input ranges stop the lower pitch being shallower than the upper one but not equal to it, so entering 12 for both returns a plain common rafter length for a 45-degree gable roof.

A professional must decide:

- This is geometry with no structural content. It does not size the rafters, set their spacing, check the span against a load table, or account for snow and wind, and it says nothing about the break line, which behaves as a hinge and normally needs a purlin plate, a collar or a gusseted truss joint to hold the two segments in line.
- 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-02):

- Standard rafter-length trigonometry applied independently to each of the gambrel roof's two slope segments: segment length = segment run × √(1+(segment pitch/12)²)

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

**How is this different from a mansard, which also has two slopes?**

By how many sides carry them. A gambrel breaks its pitch on TWO sides only and leaves the other two as gable ends, so it is a barn roof: a plain triangular wall at each end, no hips, and every rafter pair identical along the whole run. That is why the framing is repetitive and why a gambrel is the cheaper of the two to build. A mansard breaks its pitch on all four sides, which brings hips, hip rafters and a different rafter length at every position around the corner. Both buy headroom in the storey below, and the gambrel buys it with far less cutting — which is precisely why the form is on barns rather than on townhouses.

**Why does a gambrel roof need two separate rafter-length calculations?**

A gambrel roof has two distinct slope segments per side — a steep lower segment and a shallower upper segment — each with its own pitch and run, so standard rafter-length trigonometry is applied independently to each segment before summing.

**What does the break point ratio control?**

It sets what fraction of the half-building-width the lower (steep) segment's run covers before the roof transitions to the shallower upper segment; the remaining fraction is the upper segment's run.

**Does the result include overhang?**

No — this calculates rafter length from the wall plate to the ridge across both segments only. Add any overhang tail length separately.

## Related calculators

- [Mansard Roof Rafter Geometry Calculator](https://craftquantities.com/calculators/materials-quantities/mansard-roof-rafter-calculator/)
- [Common Gable Rafter Length Calculator](https://craftquantities.com/calculators/materials-quantities/common-rafter-length-calculator/)

## Run it from a program

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

---
Source: https://craftquantities.com/calculators/materials-quantities/gambrel-roof-rafter-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.
