Gambrel Roof Calculator

Size a gambrel roof from its width, pitches and one run or rise.

Half-circle and two-pitch framing, with metric, imperial and mixed lengths.

Updated November 10, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

What this calculator works out

A gambrel roof is the barn profile: a steep plane over each wall, a break at the gambrel joint, then a shallow plane up to the ridge. Enter the building you have and the pitches you want, and this page returns the framing dimensions behind that outline — both runs, both rises, every rafter length, the roofed area of each pitch and the volume of the space underneath.

The reason it is worth a calculator rather than a sketch is that the parts pull on each other. Move the joint outward and the lower plane gets shallower; keep the same roof height and the upper plane steepens. The two roofed areas, the four rafter lengths and the attic volume all move with it, and the rafter you cut is not the run you measured.

That makes the page useful to anyone framing or pricing a barn-shaped roof: a pole barn, a gambrel shed, a coop or a small house with a barn roof, an attic conversion where the volume under the two pitches matters, and anyone checking numbers on a drawing before ordering sheathing or rafters. The same geometry works whether the building is a barn in metres or a shed in feet — set a unit per box and mix them if your drawing does.

Width and one pitch

Half-circle framing derives the rest

Four rafter lengths

Wall-line and overhang-inclusive, both segments

Areas and volume

One plane per segment, the total, and the attic

What it does not do is design the structure. It gives no member sizes, no load path and no code check — the last section of this page is specific about that.

A 10 m barn, step by step

The fast path is the one the page opens on. Half-circle framing needs the least input, because it fixes the shape of the section as soon as the width is known.

1

Pick the framing method

Half-circle method is the traditional barn layout: the gambrel joint and the ridge both sit on a half circle of radius W/2. Two-pitch method leaves the two pitches independent. If you are copying a building that already exists, the next section shows how to tell which one it is.

2

Enter the building envelope

The length LL measured along the ridge, and the width WW measured across the gables. Overhangs start at zero, so the first answer is the roof over the walls; add them once the frame geometry looks right.

3

Give the one number that fixes the shape

In half-circle framing, the width already sets the roof height at H=W/2H = W/2, so you only have to say how steep the profile is: the lower angle, the upper angle, either pitch notation, or one of the runs or rises. In two-pitch framing you supply both pitches plus the roof height or one run or rise.

4

Read the segment values, then the totals

Each segment block gives the run, the rise, the rafter and the roofed area for that pitch; the last block gives the total roofed area and the attic volume. The values the page has worked out from your input are shown in blue.

5

Add the overhangs you are actually building

The eaves overhang ee and the gable overhang gg change the rafter lengths and both areas. Measure both horizontally, as the next example shows.

Worked through: an 8 m wide barn on a 67.5° lower pitch

A 10 m long barn, 8 m across the gables, framed as a half circle with a 67.5° lower pitch and no overhangs yet.

H=W2H = \frac{W}{2}==82\frac{8}{2}==4.00 m4.00\ \mathrm{m}
ϕ=θ−45∘\phi = \theta - 45^\circ==67.5∘−45∘67.5^\circ - 45^\circ==22.5∘22.5^\circ
x1=W2(1+cos⁡2θ)x_1 = \frac{W}{2}\left(1 + \cos 2\theta\right)==1.1716 m1.1716\ \mathrm{m}y1=W x1−x12y_1 = \sqrt{W\,x_1 - x_1^{2}}==2.8284 m2.8284\ \mathrm{m}
x2=W2−x1x_2 = \frac{W}{2} - x_1==2.8284 m2.8284\ \mathrm{m}y2=H−y1y_2 = H - y_1==1.1716 m1.1716\ \mathrm{m}

The page then reports a lower and an upper rafter of 3.0615 m, a segment area of 30.61 m² for each pitch, a total roofed area of 122.46 m² and an attic volume of 226.27 m³. Because no overhang was entered, the wall-line rafter and the total rafter are the same number — they only separate once the eaves overhang is non-zero.

Two things are worth noticing in that output. The lower run is short and the upper run is long, because the steep plane covers only a little ground before the break. And at this particular pitch the two rafters come out equal, 3.0615 m each: the joint and the ridge are two chords of the same circle, and they are the same length only when the quarter circle is split down the middle, which happens at a 67.5° lower pitch. Change the lower pitch to 60° in the same building and the lower rafter becomes 4.00 m while the upper drops to 2.07 m.

Half-circle or two-pitch?

Both methods describe the same four-sided profile; they differ in how much you are allowed to choose. Knowing which one you are looking at saves a lot of guessing about a drawing.

AspectHalf-circle methodTwo-pitch method
Roof height HAlways W/2Whatever you enter
Upper pitch ΦAlways θ − 45°Your own choice
Lower pitch θSteeper than 45°Steeper than the upper pitch
You must supplyWidth and one angle, run or riseBoth pitches, plus the roof height or one run or rise
Boxes that only read outUpper rafter, both segment areas, total lower rafter, total area, volumeTotal lower rafter and lower segment area
Rafter lengthsChords of the same circle; equal at 67.5°Independent, from each run and rise

Half-circle framing: one choice, no freedom left

Here the joint and the ridge sit on a half circle whose radius is half the building width. That single condition does a lot of work:

H=W2,θ−ϕ=45∘H = \frac{W}{2}, \qquad \theta - \phi = 45^\circ

The roof height is no longer yours to set — it is exactly half the width — and the upper angle is not a free choice either: it is always 45° shallower than the lower one. A 60° lower pitch is a 15° upper pitch, a 67.5° lower pitch is a 22.5° upper pitch, and a 70° lower pitch is 25° up top. In exchange, entering the width and one angle is enough to pin the whole section: every run, rise, rafter and area follows from those two numbers.

Choose it when you are reproducing a traditional barn profile, when a drawing tells you the roof height is half the width, or when you want one rafter length for the whole roof — the two rafters are equal at a 67.5° lower pitch, which is the classic barn ratio. The lower pitch has to be steeper than 45° for the profile to exist at all: at 45° the upper segment has no rise, and the page says so.

Two-pitch framing: both angles are yours

The two pitches are chosen independently, so the joint has to be placed by something else. The page places it from the width, the roof height and the two pitches:

x1=H−W2tan⁡ϕtan⁡θ−tan⁡ϕx_1 = \frac{H - \tfrac{W}{2}\tan\phi}{\tan\theta - \tan\phi}

That is why this method asks for one more number: give the roof height, or one run or rise instead, and the section resolves. Choose it when the pitches come from a supplier, an existing roof you are matching, or a design where the two rafters are deliberately different — and be aware that a steep lower pitch against a shallow upper one pulls the joint toward the eave, which is what gives the profile its barn shape and leaves most of the half width to the upper plane.

Telling the two apart on an existing building

Measure the roof height and the width: if the ridge is at half the width, half-circle framing is a good bet. Then measure the two pitches — if they differ by about 45°, the profile was laid out on the arc. A difference of 10° or 20° with a ridge well below half the width is two-pitch framing.

Neither test needs the building to be square or the numbers to be exact. Rounding to the nearest degree and the nearest centimetre is enough to see which family the roof belongs to.

Switching methods releases the upper pitch

In half-circle framing the upper pitch is a consequence, not an input, so if you type an upper angle in two-pitch framing and then switch to half-circle, that typed value is released rather than being kept and contradicted. Everything else you entered — width, length, overhangs, lower pitch — stays where it is, and the upper pitch is worked out again from the lower one.

The geometry behind the results

The section is two right triangles stacked at the gambrel joint, one per side of the ridge. Everything on the page is built from four relationships between them.

tan⁡θ=y1x1,tan⁡ϕ=y2x2\tan\theta = \frac{y_1}{x_1}, \qquad \tan\phi = \frac{y_2}{x_2}
W=2 (x1+x2),H=y1+y2W = 2\,(x_1 + x_2), \qquad H = y_1 + y_2

The half-circle method adds one identity that ties the section to the arc — the joint's height is the chord of the circle at that run:

H=W2,θ−ϕ=45∘,y1=W x1−x12H = \frac{W}{2}, \qquad \theta - \phi = 45^\circ, \qquad y_1 = \sqrt{W\,x_1 - x_1^{2}}

The four rafters

A rafter is the hypotenuse of its own run and rise, and the lower one has two versions: measured at the wall line, and measured to the tip of the eaves overhang.

R1=x12+y12,R2=x22+y22R_1 = \sqrt{x_1^{2} + y_1^{2}}, \qquad R_2 = \sqrt{x_2^{2} + y_2^{2}}

The overhang is measured horizontally along the eave, but the rafter travels up the slope, so the extra length is the overhang divided by the cosine of the lower pitch:

R1t=R1+ecos⁡θR_{1t} = R_1 + \frac{e}{\cos\theta}

That is why R1tR_{1t} grows faster than the overhang itself on a steep roof, and why a 0.5 m overhang on a 70° lower pitch adds about 1.46 m of rafter rather than 0.5 m.

Roofed areas

Each segment area is one plane: the rafter length times the running length of the roof, which is the building length plus the gable overhang at each end.

A1=(L+2g)(R1+ecos⁡θ),A2=(L+2g) R2A_1 = (L + 2g)\left(R_1 + \frac{e}{\cos\theta}\right), \qquad A_2 = (L + 2g)\,R_2

The total doubles them, because every pitch appears once on each side of the ridge:

At=2 (A1+A2)A_{\mathrm{t}} = 2\,(A_1 + A_2)

So A1A_1 and A2A_2 are one plane each — the left or the right half of that pitch — and AtA_{\mathrm{t}} is all four planes together. The gable overhang is included in both segment areas; the eaves overhang is included in the lower one through R1tR_{1t}. Turning the total into sheets is the job of the plywood sheet calculator, which takes an area and returns the sheets and their cost.

Attic volume

The volume under the two pitches is the pentagonal section multiplied along the ridge. Split at the gambrel joint it is a triangle of the upper rise, a trapezoid under the lower planes, and the rectangle between them:

V=2L(x1y12+x2y22+x2y1)V = 2L\left(\frac{x_1 y_1}{2} + \frac{x_2 y_2}{2} + x_2 y_1\right)

The result is always smaller than the box the roof sits in, W×H×LW \times H \times L, which is a quick sanity check on any attic volume a calculator reports to you: 8 m wide, 4 m tall and 10 m long gives a 320 m³ box, and the 226.27 m³ above sits inside it with room to spare.

Pitch written three ways

Slope can be given as an angle, as a percentage, or in the roofer's rise-over-twelve notation, and the page converts between them so you can enter whichever one your plan uses:

P%=100tan⁡θ,P12=12tan⁡θP_{\%} = 100\tan\theta, \qquad P_{12} = 12\tan\theta

A 70° lower pitch is therefore 274.7%, or about 33:12 — steep enough that the notation stops being convenient and degrees start to read better.

What can be an input

Both runs, both rises, both angles and both pitch notations are live boxes in either method: type any one of them and the section re-solves around it. The two total-height and pitch relationships make some combinations redundant, so the page keeps a few boxes as readouts: in half-circle framing the upper rafter, the two segment areas, the total rafter, the total area and the attic volume all follow from the width and the pitch. In two-pitch framing only the total lower rafter and the lower segment area are readouts — the rafters, both segment areas, the total area and the volume can be typed in as a starting point.

WWBuilding width across the gables, wall face to wall face
LLBuilding length along the ridge
HHTotal roof height, from the eave line up to the ridge
x1x_1Lower run: horizontal distance from the eave to the gambrel joint
x2x_2Upper run: horizontal distance from the joint to the ridge
y1y_1Lower rise: height of the joint above the eave
y2y_2Upper rise: height of the ridge above the joint
θ\thetaLower roof angle, measured from horizontal
ϕ\phiUpper roof angle, measured from horizontal
R1R_1Lower rafter at the wall line, eave to joint
R1tR_{1t}Lower rafter including the eaves overhang, measured along the slope
R2R_2Upper rafter, joint to ridge
eeEaves overhang, measured horizontally
ggGable overhang at each end of the ridge
A1A_1Roofed area of one lower plane
A2A_2Roofed area of one upper plane
AtA_{\mathrm{t}}Total roofed area, all four planes
VVVolume enclosed under the two pitches

Two worked examples

The first is the other way into the geometry — two-pitch framing from a height and one run. The second is about what the volume number is actually good for.

1

Two-pitch framing from the roof height

Situation: A 10 m long outbuilding, 6 m across, with the ridge 2.4 m above the eave. The plan calls for a 70° lower pitch and a 25° upper pitch.

Entered

Building length (L)10 m
Building width (W)6 m
Total roof height (H)2.4 m
Lower roof angle (θ)70°
Upper roof angle (Φ)25°

The page returns

tan⁡70∘=2.747477\tan 70^\circ = 2.747477tan⁡25∘=0.466308\tan 25^\circ = 0.466308
x1=2.4−3×0.4663082.747477−0.466308x_1 = \frac{2.4 - 3 \times 0.466308}{2.747477 - 0.466308}==0.4388 m0.4388\ \mathrm{m}
y1=0.4388×2.747477y_1 = 0.4388 \times 2.747477==1.2057 m1.2057\ \mathrm{m}y2=2.4−1.2057y_2 = 2.4 - 1.2057==1.1943 m1.1943\ \mathrm{m}
x2=3−0.4388x_2 = 3 - 0.4388==2.5612 m2.5612\ \mathrm{m}

The page reports R1=1.2831 mR_1 = 1.2831\ \mathrm{m}, R2=2.8259 mR_2 = 2.8259\ \mathrm{m}, segment areas of 12.83 m² and 28.26 m², a total of 82.18 m² and an attic volume of 97.64 m³. Notice how little of the half width the steep plane takes: most of the run belongs to the upper plane, which is what gives the roof its barn shape.

In practice: Each side of the ridge uses one lower rafter at 1.283 m and one upper rafter at 2.826 m, so multiply those by the rafter spacing you plan along the 10 m length, and price the sheathing from 28.26 m² of upper plane and 12.83 m² of lower.

2

How much attic a gambrel actually adds

Situation: The same 8 m wide, 4 m tall section from earlier, compared with a plain gable roof of the same width and height — the question behind a lot of barn conversions.

Entered

Building width (W)8 m
Total roof height (H)4 m
Lower pitch (θ)67.5°
MethodHalf-circle

The page returns

Agable=W H2A_{\text{gable}} = \frac{W\,H}{2}==8×42\frac{8 \times 4}{2}==16 m216\ \mathrm{m^2}
Agambrel=VLA_{\text{gambrel}} = \frac{V}{L}==226.2710\frac{226.27}{10}==22.63 m222.63\ \mathrm{m^2}

The section is about 41% larger than the gable triangle of the same width and height. The reason is the shape of the outline: the gambrel is steep where the gable is shallow and shallow where the gable is steep, so its roof line sits above the gable line the whole way across. For the 10 m building that is 226.27 m³ against 160 m³.

In practice: The extra room is real, but it is a volume inside the roof envelope, not floor space — headroom is limited near the eaves on both profiles, and a tie beam or ceiling cuts across whichever roof you build.

Getting the inputs right

Measure the run, not the rafter

The run x1x_1 and x2x_2 are horizontal distances; the rafter is measured along the slope. On a 70° lower pitch the two differ by a factor of nearly three, so mixing them up shifts every other result rather than just the one box.

Overhangs are horizontal measurements

Measure how far the roof reaches past the wall, along the ground or the eave line — not along the sloping rafter. The page divides the eaves overhang by cos⁡θ\cos\theta itself, so entering a sloped length counts the overhang twice.

Let the page convert the pitch

If the drawing says 6:12, type 6 in the x:12 box and the angle follows — 26.57°. If it says 200%, type that in the percentage box. There is no need to convert to degrees by hand, and no reason to type in one notation and check in another.

Choose your anchor deliberately

In half-circle framing the width and one pitch are enough, and everything else follows. In two-pitch framing you need the height or one run as well, and it is that box that decides how the section sits — so enter the number you actually measured first, and let the page work out the rest.

Keep the profile valid

The lower pitch has to be steeper than the upper one; equal angles give a straight gable with a kink, not a gambrel, and the page flags it. In half-circle framing the lower pitch also has to be steeper than 45°, because the upper segment would otherwise have no rise.

Round in the direction that costs nothing

Order rafters to the next stock length up rather than to the millimetre, and sheathing to whole sheets — the areas on the page are plane areas, not a panel layout, and they carry no allowance for cut-offs, hips or waste.

Next step after the areas

The rafter lengths on this page give you the pieces; the lumber calculator turns a length and a count into the volume and the cost of the stock you need to buy.

Questions about gambrel roofs

Q

What angle is a 6:12 roof pitch?

About 26.57°. The x:12 notation is the rise over a run of twelve, so the angle is arctan⁡(6/12)=26.57∘\arctan(6/12) = 26.57^\circ. It reads 50% in the percentage notation, because 100tan⁡26.57∘≈50100\tan 26.57^\circ \approx 50.

Q

Can the two pitches be the same on a gambrel roof?

No — a gambrel is defined by the lower plane being the steeper of the two. If the two angles are equal the profile becomes a straight gable with a break in it, and the segment areas stop describing two different kinds of plane. The page treats lower ≤ upper as a contradiction and marks the angle rather than quietly returning a section.

Q

Does the half-circle method mean the roof is curved?

No. Both planes are straight; the half circle is only the construction line the gambrel joint and the ridge sit on. That is what fixes the roof height at half the width and the upper pitch at 45° below the lower one, and it is why the two rafters are chords of the same circle. They happen to be equal only at a 67.5° lower pitch, where the joint sits halfway round the quarter circle.

Q

Do the segment areas cover both sides of the ridge?

Each one covers a single plane. A1A_1 is one lower plane and A2A_2 is one upper plane, so a gambrel roof has two of each; the total area doubles their sum. Gable overhangs are already inside the segment areas, and the eaves overhang is inside the lower one.

What this page does not design

Geometry and quantities, not structural design

  • No member sizes, spans, grades, fasteners or bracing. The page tells you how long the rafters are, not what section they need to be to carry snow, wind or a ceiling.
  • No load path, no snow or wind assumptions, and no code check. Minimum roof slopes, ventilation requirements, egress and fire rules are local matters.
  • No cut details. Ridge thickness, birdsmouth and plumb cuts, rafter tails and the difference between a rafter's theoretical length and its cut length are all outside the calculation.
  • The attic volume is an envelope figure. A tie beam, a ceiling, a floor, dormers or any interior obstruction reduce the usable space, and headroom near the eaves is limited even when the volume looks generous.
  • Areas are plane areas with no waste allowance: no cut-offs, no overlap, no panel layout, no flashing or ridge coverage. Add your own margin before ordering.

Before you cut anything

Roof framing carries load and falls under local building rules, so treat these numbers as the geometry of a design rather than approval of it. Have a qualified framer, engineer or your local building authority check member sizing, fixings and the pitch against the roofing product you intend to use — some coverings are not rated for shallow slopes, and the upper plane of a gambrel is shallow by design.

Values are also displayed rounded, which is what makes them readable; order stock from the unrounded plan and your own margin rather than from the digits on screen.

Gambrel Roof Calculator - Barn Roof Runs, Rises and Rafters