🏠
🏠 Home & living

Gambrel Roof Calculator (two-pitch barn roof: rafters, angles & area)

Results update as you type.

Your numbers

Understanding the gambrel roof calculator — concept and principle

This calculator works out the rafter lengths, pitches, roof area and gable-end area of a gambrel roof, the barn-style roof with a steep lower slope and a flatter upper slope on each side. Builders of sheds, barns and tiny houses use it to order sheathing and roofing and to cut rafters.

Two slopes per sideTwo slopes per side: Lower: 2.506 m at 61.4° √(1.2² + 2.2²), Upper: 3.046 m at 23.2° √(2.8² + 1.2²) → 111 m² roof 2 × (2.506 + 3.046) × 10 mTwo slopes per sideLower: 2.506 m at 61.4°√(1.2² + 2.2²)Upper: 3.046 m at 23.2°√(2.8² + 1.2²)111 m² roof2 × (2.506 + 3.046) × 10 m
Two slopes per side: with the default inputs the result is 111 m² roof (2 × (2.506 + 3.046) × 10 m).

How it is calculated

The principle

Each slope of a gambrel is the hypotenuse of a right triangle, so Pythagoras gives the rafter lengths and the arctangent gives the angles. The steep lower slope raises the walls of the loft almost vertically, which is why gambrel roofs give much more usable upstairs space than a simple gable of the same ridge height. The roof surface is a set of rectangles, each rafter length long and building length wide. The gable end is a pentagon that can be split into rectangles and triangles, or found with the shoelace formula.

Worked example

Default inputs: width 8 m, length 10 m, lower rise 2.2 m, lower run 1.2 m, ridge 3.4 m above the wall top.

  1. L₁ = √(1.2² + 2.2²) = 2.506 m; pitch = arctan(2.2 ÷ 1.2) = 61.4° (22 in 12).
  2. run₂ = 4 − 1.2 = 2.8 m; rise₂ = 3.4 − 2.2 = 1.2 m; L₂ = √(2.8² + 1.2²) = 3.046 m; pitch 23.2° (5.1 in 12).
  3. Roof area = 2 × (2.506 + 3.046) × 10 = 111 m².
  4. Loft width = 8 − 2.4 = 5.6 m.
  5. Gable end = 1.2 × 2.2 + 5.6 × 2.2 + 5.6 × 1.2 ÷ 2 = 2.64 + 12.32 + 3.36 = 18.32 m².
How Roof area, both sides (m²) changes with Building length (m)How Roof area, both sides changes with B…0501001502002502.557.51012.51520Example: 111Building length (m)
Each point is the calculator re-run with only “Building length (m)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Building length (m)Roof area, both sides (m²)
2.527.8
555.5
7.583.3
10111
12.5138.8
15166.6
20222.1

How to read the result

Rafter lengths here run along the rafter line from the wall top to the break and from the break to the ridge. Add the overhang at the eaves, and allow for the plumb and seat cuts and the thickness of the ridge board. Order roofing for the roof area plus overlaps and waste; order sheathing for both gable ends using the gable area.

Common mistakes

Keep in mind: Roof framing must carry snow, wind and dead loads. Real designs need local building codes and a qualified professional, especially for gambrel joints at the break.

Frequently asked questions

What pitch is a gambrel roof?

It has two pitches, commonly a steep lower slope and a much flatter upper slope; the example uses about 61° and 23°.

How do I calculate gambrel rafter length?

Use Pythagoras for each slope: √(run² + rise²).

Why choose a gambrel roof?

The steep lower slope gives more headroom and floor space in the loft.

Sources: D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd ed. (2018), Geometry section

Checked 9 Nov 2026. Right-triangle trigonometry and polygon area (shoelace formula): D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd ed. (2018), §4 (Geometry).

🏠 All home & living tools →🌍 Calculators by country →