Gambrel Roof Calculator
ConstructionCalculate total roof height and upper and lower rafter lengths for a gambrel (barn-style) roof from building width and each slope's pitch.
Total Roof Height (ft)
What is a Gambrel Roof?
A Gambrel Roof Calculator determines the total roof height and the rafter lengths for both the steep lower slope and shallower upper slope of a barn-style gambrel roof, based on your building's width and each slope's pitch. Unlike a simple gable roof with one continuous pitch, a gambrel roof's two-slope geometry requires calculating each segment separately before summing them for total height.
This distinctive roof shape is common on barns, storage sheds, and some house styles specifically because it maximizes usable interior loft space for a given building footprint. Pair this calculator with the Birdsmouth Cut Calculator for the rafter-to-wall notch dimensions, or the Metal Roof Cost Calculator if you're budgeting roofing material.
How to use this Gambrel Roof calculator
- Enter your Building Width in feet.
- Select the Lower Slope Pitch (rise per 12 in run) for the steep section near the eaves.
- Select the Upper Slope Pitch for the shallower section near the ridge.
- Adjust the Lower Slope Run Fraction to control how much of the building's half-width the steep lower slope covers.
- Review the Total Roof Height, Lower Rafter Length, and Upper Rafter Length results to plan your framing material and confirm the design fits your height requirements.
Formula & Methodology
The calculator splits the building's half-width between two slopes and computes each segment's rise and rafter length: Half Width = Building Width ÷ 2 Lower Run = Half Width × Lower Run Fraction; Upper Run = Half Width − Lower Run Lower Rise = Lower Run × (Lower Slope Pitch ÷ 12); Upper Rise = Upper Run × (Upper Slope Pitch ÷ 12) Total Roof Height = Lower Rise + Upper Rise Lower Rafter Length = √(Lower Run² + Lower Rise²); Upper Rafter Length = √(Upper Run² + Upper Rise²) Worked example: For a 24 ft wide building with a 60/12 lower pitch, 18/12 upper pitch, and 0.35 run fraction: Half Width = 24 ÷ 2 = 12 ft Lower Run = 12 × 0.35 = 4.2 ft; Upper Run = 12 − 4.2 = 7.8 ft Lower Rise = 4.2 × (60 ÷ 12) = 4.2 × 5 = 21 ft; Upper Rise = 7.8 × (18 ÷ 12) = 7.8 × 1.5 = 11.7 ft Total Roof Height = 21 + 11.7 = 32.7 ft Lower Rafter Length = √(4.2² + 21²) ≈ √(17.64 + 441) ≈ 21.4 ft Upper Rafter Length = √(7.8² + 11.7²) ≈ √(60.84 + 136.89) ≈ 14.1 ft
Frequently Asked Questions