My Calculator

Gambrel Roof Calculator

Get rafter lengths, cut angles, ridge height, and usable loft width for a gambrel (barn-style) roof, with a live diagram.

Ridge63.4°26.6°Knee plateWallWallRed = lower (steep) slope · Green = upper (shallow) slope · Indigo bar = purlin / knee plate

Lower Slope (steep, near the eaves)

Upper Slope (shallow, near the ridge)

This calculator uses the common purlin/knee-plate framing method: the lower and upper rafters each land on their own horizontal plate at the break point rather than being cut as one continuous board. Always check your local building code and, for anything load-bearing, get a structural engineer to confirm your final rafter sizes.

Half Span12 ft (12' 0")
Lower Slope Angle63.43°
Upper Slope Angle26.57°
Lower Rafter Length9.39 ft
Upper Rafter Length8.72 ft
Total Rafter Length (one side)18.11 ft
Break Point — Horizontal Run4.2 ft
Break Point Height Above Wall8.4 ft
Total Rise (wall to ridge)12.3 ft
Total Building Height20.3 ft
Overhang Tail Length2.24 ft
Lower Rafter Plumb Cut63.4°
Upper Rafter Plumb Cut26.6°
Roof Surface Area (per ft of length)36.22 sq ft
Usable Loft Width @ 5.5 ft18.5 ft
This is a classic gambrel shape: the lower slope is steeper than the upper slope.

Usable Loft Width vs. Headroom Height

This traces how much usable floor width is left inside the loft or attic as the headroom requirement goes up. The orange dot marks your chosen headroom target. It's the reason gambrel roofs are so popular for barns and loft conversions in the first place — a lot more standing headroom than a plain gable roof at the same ridge height.

Step-by-Step Solution

Here's exactly how this answer was calculated, one step at a time.

  1. 1

    Find the half-span

    Half Span = 24 ft ÷ 2 = 12 ft

    A gambrel roof is symmetric, so every rafter is worked out for one half of the building and mirrored.

  2. 2

    Find the lower and upper slope angles

    θ1 = atan(24 / 12) = 63.43° | θ2 = atan(6 / 12) = 26.57°

    The steep lower slope (θ1) and the shallow upper slope (θ2) each get their own angle, since a gambrel roof isn't a single pitch.

  3. 3

    Split the half-span at the break point

    Lower Run = 4.2 ft | Upper Run = 7.8 ft

    The break point is set at 35% of the half-span out from the wall, which is where the purlin/knee plate sits.

  4. 4

    Calculate the rise of each slope

    Lower Rise = 4.2 × tan(63.43°) = 8.4 ft | Upper Rise = 7.8 × tan(26.57°) = 3.9 ft

    Each rise is the vertical height gained by its own slope, using its own angle.

  5. 5

    Calculate the rafter length for each slope

    Lower Rafter = 4.2 ÷ cos(63.43°) = 9.39 ft | Upper Rafter = 7.8 ÷ cos(26.57°) = 8.72 ft

    Rafter length is always longer than the flat horizontal run once the slope is factored in.

  6. 6

    Add up the total rise and ridge height

    Total Rise = 8.4 + 3.9 = 12.3 ft

    This is how much higher the ridge sits above the top of the wall.

  7. 7

    Add the wall height for total building height

    Total Height = 8 + 12.3 = 20.3 ft

    This is the overall height from the ground to the ridge.

  8. 8

    Find the eave overhang tail length

    Tail Length = 1 ÷ cos(63.43°) = 2.24 ft

    The overhang follows the lower slope's angle, so its actual length is longer than the flat overhang measurement.

  9. 9

    Find the usable loft width at 5.5 ft of headroom

    Usable Width = 18.5 ft (zone: lower)

    This traces outward from the ridge centerline to the point on the roofline where the ceiling height drops to your target headroom, then doubles it for both sides.

Final Answer: cut 9.39 ft lower rafters at 63.4° and 8.72 ft upper rafters at 26.6°, for a ridge 12.3 ft above the wall top.

Free Gambrel Roof Calculator for Rafter Lengths and Angles

This gambrel roof calculator works out everything you need to frame a barn-style, two-pitch roof: the rafter length for the steep lower slope, the rafter length for the shallow upper slope, both plumb cut angles, the total rise to the ridge, and even how much usable floor space you'll end up with inside the loft. Type in your building width, your two roof pitches, and where you want the break point, and every number updates instantly along with a live diagram.

A gambrel roof is that classic barn shape with two different slopes on each side instead of one straight pitch: a steep lower section near the eaves and a flatter upper section near the ridge. It's the roof people usually picture on a red barn, a Dutch colonial house, or a modern loft-style shed, and it's popular for one simple reason — it opens up a lot more usable headroom inside the attic or loft than a plain gable roof does at the same overall height.

What Is a Gambrel Roof?

A gambrel roof (sometimes called a barn roof or a Dutch gambrel) has two roof slopes on each side of the ridge, meeting at a point partway up called the break point. The lower slope, closer to the walls, is steep, sometimes close to vertical. The upper slope, closer to the ridge, is much shallower and does most of the work of shedding rain and snow off the top of the building.

Because the lower slope is so steep, it eats up very little horizontal space while still climbing a good amount of height. That's what frees up so much extra room inside compared to a single-pitch gable roof, which has to use one consistent angle the whole way from wall to ridge. This is exactly why gambrel roofs show up so often on barns that need a hay loft, on garages that double as workshops with storage above, and on homes that want a full extra floor tucked under the roofline.

The Break Point: Where the Two Slopes Meet

The break point is the single most important design decision on a gambrel roof, because it controls how the whole shape looks and how much usable loft space you end up with. Set it too close to the wall and the steep lower slope barely climbs before it flattens out, losing you interior height. Set it too far out and the steep slope eats up too much horizontal room, cutting into your usable floor width lower down.

This calculator lets you set the break point two ways. The simplest is as a percentage of the half-span, measured out from the wall — a common starting point for a classic barn look is somewhere around 30% to 40%, and this calculator defaults to 35%. If you already have a specific horizontal distance in mind, from an existing set of plans or a truss manufacturer's spec sheet, you can switch to entering that run directly in feet instead.

How This Calculator Works — Purlin Plate Framing

There are a couple of ways carpenters frame the point where the two slopes meet. This calculator uses the most common traditional method: a horizontal purlin plate (sometimes called a knee plate) sits at the break point, running the length of the building. The lower, steep rafters land on the wall's top plate at the bottom and on this purlin plate at the top. The upper, shallow rafters then start where the lower rafters left off, running from the same purlin plate up to the ridge board.

Because both rafter sections bear on a flat horizontal plate rather than joining each other directly at an angle, each one behaves exactly like a simple single-pitch rafter with its own plumb cut angle. That's genuinely how a lot of real gambrel barns are framed, and it keeps the math straightforward and the on-site cutting simple, without needing an oddly angled compound joint where two different slopes would otherwise try to meet in mid-air.

  • Step 1 — Find each slope's angle: θ = arctangent(rise ÷ 12) for a ratio pitch, or enter the angle directly in degrees.
  • Step 2 — Split the half-span at the break point into a lower run and an upper run.
  • Step 3 — Find the rise of each slope: Rise = Run × tangent(θ).
  • Step 4 — Find the rafter length of each slope: Rafter Length = Run ÷ cosine(θ).
  • Step 5 — Add the two rises together for the total height from the wall top to the ridge.
  • Step 6 — If a wall height was entered, add it to the total rise for the overall building height.

Worked Example: A 24-Foot-Wide Barn

Say you're framing a 24-foot-wide barn with an 8-foot side wall, a steep 24/12 lower pitch, a shallow 6/12 upper pitch, and a break point set at 35% of the half-span. The half-span is 12 feet, so the lower run works out to 12 × 0.35, or about 4.2 feet, leaving an upper run of about 7.8 feet.

The lower slope angle, arctangent(24 ÷ 12), is about 63.43 degrees, giving a lower rise of roughly 8.4 feet and a lower rafter length of about 9.39 feet. The upper slope angle, arctangent(6 ÷ 12), is about 26.57 degrees, giving an upper rise of about 3.9 feet and an upper rafter length of about 8.72 feet. Adding the two rises together gives a total rise of about 12.3 feet, so with the 8-foot wall the ridge sits roughly 20.3 feet above the ground — a proportion that will look instantly familiar as a classic barn silhouette.

Why the Loft Width Feature Matters

Rafter lengths and cut angles are only half the story on a gambrel roof. The other half is figuring out how much of that loft or attic space you can actually stand up and walk around in, which depends on both slopes and the break point together. That's what the usable loft width feature and chart on this page are for.

Enter a headroom height, like 5.5 feet or 6 feet, and the calculator traces out from the ridge centerline along the roofline until it hits that height, then doubles the distance to give you the usable floor width at that headroom across the whole loft. The chart shows this relationship across a full range of headroom heights at once, so you can see the trade-off clearly: demand more headroom and the usable width shrinks, especially once you cross the break point into the steep lower slope's zone.

Gambrel Roof vs. Gable Roof vs. Mansard Roof

A standard gable roof uses one single pitch on each side, which is simpler to frame but gives the attic a triangular cross-section that loses usable width quickly as you move away from the center. A gambrel roof breaks that single slope into two, trading a bit of extra framing complexity for noticeably more standing headroom across a wider stretch of the loft floor.

A mansard roof takes the same basic idea even further, using four slopes instead of two — steep on all four sides of the building rather than just the two long sides — which maximizes usable floor space on every wall but adds real framing and waterproofing complexity at the corners. For most barns, garages, sheds, and Dutch colonial-style homes, a two-slope gambrel hits the sweet spot between extra interior space and straightforward construction.

Who Uses This Calculator

This tool comes in handy across a range of gambrel roof projects:

  • Barn builders and pole-barn contractors use it to work out rafter lengths and cut angles for both slopes before ordering lumber.
  • Shed and garage builders use it to plan a gambrel roofline that leaves room for a usable loft or storage area above.
  • DIYers and homeowners use it to sanity-check a set of purchased barn plans, or to sketch out their own gambrel roof from scratch.
  • Designers and hobbyist framers use the loft width chart to compare different break points and pitch combinations before settling on a final roofline.

Frequently Asked Questions

What is a gambrel roof?

A gambrel roof has two different roof slopes on each side of the ridge instead of one continuous pitch: a steep lower slope near the walls and a shallower upper slope near the ridge, meeting at a break point. It's the classic barn roof shape, also seen on Dutch colonial homes and many sheds and garages.

How do you calculate rafter lengths on a gambrel roof?

Each slope is calculated separately. For each one, find the slope angle from its pitch, then use Rafter Length = Horizontal Run ÷ cosine(angle). The lower slope uses its own run and angle, and the upper slope uses its own run and angle, since they're different pitches.

Where should the break point go on a gambrel roof?

There's no single fixed rule, but a common starting point for a classic barn look is setting the break point at roughly 30% to 40% of the half-span out from the wall, which this calculator defaults to 35%. Moving it changes both the roof's outline and how much usable loft width you end up with.

How much steeper is the lower slope than the upper slope?

It varies by design, but a common combination pairs a steep lower slope, such as 24/12 (about 63 degrees), with a much shallower upper slope, such as 6/12 (about 27 degrees). This calculator flags it if your lower slope angle isn't actually steeper than your upper slope, since that's what gives a gambrel roof its distinctive shape.

Why do gambrel roofs have more usable attic space than gable roofs?

Because the lower slope is so steep, it climbs a lot of height while using very little horizontal space, pushing the point where the ceiling gets too low much further out toward the walls than a single, gentler gable pitch would. That leaves a wider strip of the loft floor with standing headroom.

How is a gambrel roof framed at the break point?

The most common traditional method uses a horizontal purlin or knee plate at the break point. The lower rafters bear on the wall's top plate at the bottom and on this purlin plate at the top; the upper rafters then run from that same purlin plate up to the ridge board, each with its own simple plumb cut angle.

What's the difference between a gambrel roof and a mansard roof?

A gambrel roof has two slopes on just the two long sides of the building, while a mansard roof has four steep slopes on all four sides. Mansard roofs maximize usable space on every wall but are more complex to frame and waterproof at the corners, which is why gambrel roofs are far more common on barns, sheds, and garages.

How do I find the total height of a gambrel roof building?

Add the roof's total rise (the lower rise plus the upper rise) to the height of the side walls up to the eave line. This calculator does that automatically once you enter a wall height, giving you the overall height from the ground to the ridge.