Gambrel Roof Calculator
Calculate rafter lengths, ridge height, and roof surface area for a gambrel (barn-style) two-slope roof from building width and slope angles or pitches.
Building Dimensions
Slope Specification
Specify by:
Lower Slope (steeper)
in 12
°
Upper Slope (shallower)
in 12
°
Results
Lower Rafter
—
ft
Upper Rafter
—
ft
Ridge Height
—
ft
Roof Area
—
ft²
Cross-Section Diagram
Lower Slope
Horizontal run:—
Vertical rise:—
Angle:—
Upper Slope
Horizontal run:—
Vertical rise:—
Angle:—
How It Works
- 1 The half-span is half the building width. Each slope covers half of the half-span horizontally (standard 50/50 gambrel split).
- 2 Lower rafter length = horizontal run ÷ cos(lower angle).
- 3 Upper rafter length = horizontal run ÷ cos(upper angle).
- 4 Ridge height = lower rise + upper rise, where rise = run × tan(angle) for each section.
- 5 Roof surface area = 2 sides × building length × (lower rafter length + upper rafter length).
Summary
Calculate rafter lengths, ridge height, and roof surface area for a gambrel (barn-style) two-slope roof from building width and slope angles or pitches.
How it works
- Enter the building width (eave to eave) and building length.
- Choose whether to specify each slope by pitch (X-in-12) or by angle in degrees.
- Enter the lower slope pitch or angle — the steeper, wider bottom section.
- Enter the upper slope pitch or angle — the shallower, narrower top section.
- Click Calculate to see lower rafter length, upper rafter length, ridge height, and total surface area.
- Adjust the inputs to compare different slope combinations.
Use cases
- Estimating lumber for a gambrel-roof barn or shed.
- Planning a garage or workshop with a gambrel roof for extra loft space.
- Calculating roofing material quantities (shingles, metal panels) for a gambrel roof.
- Verifying architect or contractor rafter length estimates.
- Designing a residential gambrel-roof addition or dormer project.
- Teaching students the geometry of two-slope roofs.
Frequently Asked Questions
Last updated: 2026-05-23 ·
Reviewed by Nham Vu