How to use the two-slope roof calculator
Treat the roof as two right triangles meeting at one ridge. Enter the rise and horizontal run for each side to compare their pitch and rafter lengths.
One ridge, two independent slopes
- Horizontal run
- The two runs add up to the horizontal eave-to-eave span. A ridge away from the centre produces unequal runs.
- Vertical rise
- Equal rises mean level eaves at the common ridge. Different rises mean different eave heights; the diagram preserves that difference.
- Rafter length
- The straight distance from each eave to the ridge. Each side has its own length, excluding overhangs and construction allowances.
Measure each side separately
- Measure the span: the level distance from the outside of one wall to the outside of the other.
- Symmetric roof: add the ridge height above the top of the walls, or the roof angle. Uneven roof: give the ridge height and its distance from the left wall, or the two roof angles.
- If the eaves sit at different heights, choose “Each side: rise + run” and measure each side from its own eave to the ridge. Do not assume half the span unless both runs are equal.
- Each field has its own unit. Read both angles, pitches and rafter lengths side by side; copy or share the link to reopen the same calculation.
Step-by-step guides: How to measure roof pitch from the attic · Hip rafter pitch: why it differs from the roof slope
Calculate A and B independently
For each side, use its own rise h and run d in the same unit. Never average the two pitches before calculating the rafters.
Slope (%) = 100 × h ÷ dUS pitch X/12: X = 12 × h ÷ dθ = arctan(h ÷ d) × 180 ÷ πl² = h² + d²Example: a ridge away from the centre
Both sides rise 3 m. Side A runs 4 m and Side B runs 6 m, giving a 10 m horizontal span. The eaves are level, but the pitches and rafter lengths differ.
| Left slope | Right slope | |
|---|---|---|
| Angle (°) | 36.87° | 26.57° |
| Slope (%) | 75.00% | 50.00% |
| US pitch (X/12) | 9/12 | 6/12 |
| Rise | 3.00 m | 3.00 m |
| Run | 4.00 m | 6.00 m |
| Rafter length | 5.00 m | 6.71 m |
Pitch chart and local minimum pitches
Each side of a gable is a single slope. To look up a side’s angle in percent or X/12, or the minimum pitch of a covering under the IRC, open the full roof pitch chart; to work on one side alone, use the one-slope calculator.
Roof pitch chart: X/12, degrees and percent · Roof pitch and slope calculator
Step-by-step guides: Lean-to roof pitch: calculate height before building · Single-slope roof framing: read the diagram
Two-slope roof questions
Can both sides have the same pitch?
Yes. Equal rise-to-run ratios produce the same pitch. Their rafter lengths can still differ if the triangles have different sizes.
Does the ridge have to be centred?
No. Enter each run independently. The diagram places the ridge according to those runs and draws both sides using one scale.
Does this calculate roof area or structural sizes?
No. These results describe a roof cross-section. Roof area needs additional dimensions along the building; structural sizing and material suitability are outside this calculator.