Gambrel Roof Rafter Calculator
Find the upper and lower rafter lengths for a gambrel barn roof, from the building width, the two roof pitches, and where the slope breaks.
Reviewed by the ToolNestr Editorial Team — July 2026
How the gambrel roof calculator works
A gambrel roof is really two separate common-rafter problems stacked on top of each other on each side of the building. The half-width — half the building's total width — is split at the break point into a lower run, near the eave, and an upper run, near the ridge. Each run gets its own pitch and its own right-triangle rafter calculation.
For each segment, the rise is the run multiplied by that segment's pitch divided by 12, and the rafter length is the Pythagorean hypotenuse of the run and rise — exactly the same math as a single-slope roof, just applied twice. Adding the upper and lower rafter lengths together gives the total rafter material for one side, and adding both rises gives the total roof height from eave to ridge.
The break-point percentage sets where the two slopes meet, measured as a share of the half-width starting from the ridge. Traditional barn designs vary this to trade off loft headroom against wall height; there is no single required ratio, so this input lets you match your specific plans.
Rafter framing geometry follows the common-rafter method described in the American Wood Council's Wood Frame Construction Manual; gambrel break-point conventions are drawn from traditional barn-framing practice.
Enter building width
The full width; the calculator uses half of it per side automatically.
Set the break point and pitches
Where the slopes meet, and the pitch of the upper and lower runs.
Read both rafters
Get each rafter's length and angle, plus the total roof height.
The formula explained
Split the half-width
24 ft wide, half-width = 12 ft. At a 40% break: upper run = 12 × 0.40 = 4.8 ft, lower run = 12 − 4.8 = 7.2 ft.
Upper rafter
Rise = 4.8 × 7⁄12 = 2.8 ft. Rafter = √(4.8²+2.8²) = 5.56 ft.
Lower rafter
Rise = 7.2 × 24⁄12 = 14.4 ft. Rafter = √(7.2²+14.4²) = 16.1 ft.
Worked example
A 20 ft barn, break at 35%, upper 9 in 12, lower 20 in 12.
Real-world context
A classic 30 ft wide dairy barn with a 40% break, a shallow 6-in-12 upper slope, and a steep 24-in-12 lower slope splits its 15 ft half-width into a 6 ft upper run and a 9 ft lower run. The upper rafter comes out to √(6²+3²) = 6.71 ft, while the lower rafter is √(9²+18²) = 20.12 ft, for a total of 26.83 ft of rafter material per side and 21 ft of overall roof height — this steep lower pitch is exactly why gambrel barns can fit a full hayloft under the eaves.
A smaller 16 ft backyard shed or workshop with a 50% break, an 8-in-12 upper slope, and an 18-in-12 lower slope splits its 8 ft half-width evenly into two 4 ft runs. The upper rafter is √(4²+2.67²) = 4.81 ft and the lower rafter is √(4²+6²) = 7.21 ft, giving a total of 12.02 ft per side and 8.67 ft of height — a modest, buildable profile that still leaves usable loft storage above.
At the larger end, a 40 ft wide pole barn with a 30% break, a low 5-in-12 upper slope, and a very steep 22-in-12 lower slope produces a 6 ft upper run and a 14 ft lower run off its 20 ft half-width. The upper rafter is exactly 6.5 ft, and the lower rafter climbs to √(14²+25.67²) = 29.24 ft, for 35.74 ft total per side and 28.17 ft of roof height — long lower rafters like this often need engineered lumber or spliced framing rather than a single dimensional board.
Common misconceptions
"A gambrel roof always uses a 45-degree break between the two slopes." Not a fixed rule. The break point and both pitches are design choices, not a standard — traditional barns range widely depending on how much loft headroom versus wall height the builder wants, which is why this calculator treats the break as a free input rather than a constant.
"The upper and lower rafters can be cut from the same size lumber and treated as one continuous run." They're two separate framing members. Because the pitches differ, the rafters meet at a distinct angle at the break point and are typically spliced or lapped over a purlin or knee-wall plate there — they are not one straight board bent to shape.
Related calculators
Frequently asked questions
What is a gambrel roof?
A gambrel roof, the classic barn shape, has two slopes on each side: a steep lower slope near the eaves and a shallower upper slope near the ridge. The two-pitch shape opens up more usable space in the loft or upper floor than a single-slope gable roof of the same height.
How do I find gambrel rafter lengths?
Split the half-width of the building at the break point into an upper run and a lower run. Find the rise for each run from its own pitch, then apply the Pythagorean theorem to each run-and-rise pair separately to get the upper and lower rafter lengths.
Where should the break point be?
There is no single required location; many traditional gambrel designs place the break somewhere between one-third and halfway across the half-width. A break closer to the ridge gives more headroom lower down; a break closer to the eave gives a taller, more open loft.
What pitches are typical for a gambrel roof?
A common combination pairs a steep lower slope, often 24 in 12 or steeper, with a shallow upper slope, often 6 to 9 in 12. The exact pitches vary by design and by the loft space wanted, so check your specific plans.
Sources & references
This tool uses standard formulas and reference values from:
- • American Concrete Institute — ACI 318, Building Code Requirements for Structural Concrete. concrete.org
- • ICC — International Residential Code (IRC), span, footing and framing tables. codes.iccsafe.org
- • APA – The Engineered Wood Association, allowable span and load guidance.
Estimates for planning only. Span, load and code values vary by jurisdiction — verify against your local adopted code and a licensed engineer before building.