Two-slope roof pitch calculator

Interactive calculator

Your measurements

Side A · left

Vertical height.

Horizontal distance, not full span.

Side B · right

Vertical height.

Horizontal distance, not full span.

Try an example

Help

Measure each side from its eave to the same ridge. Equal rises mean level eaves.

Rise: Vertical height.

Run: Horizontal distance, not full span.

Use a decimal point (1.250 = 1.25). No grouping or fractions.

Input unit selectors convert that field without changing its physical size. Rounds displayed results only.

About pinning

Pin keeps measurements on this device across reloads. Unpinned values last until reload. Editing updates the saved value; invalid edits unpin it. Unpin removes the saved value. Clear all pins on a shared device. No account or analytics consent is needed.

Compare both sides

Illustration only

Roof cross-sectionBoth sides share one scale and a common ridge. Eaves may be at different heights. Dimensions exclude overhang.————90°90°Side A · leftRafter —Run —α —— · —Rise —Side B · rightRafter —Run —β —— · —Rise —
Diagram help

Both sides share one scale and a common ridge. Eaves may be at different heights. Dimensions exclude overhang.

Waiting for measurements

Compare both sides

Roof cross-sectionBoth sides share one scale and a common ridge. Eaves may be at different heights. Dimensions exclude overhang.————90°90°Side A · leftRafter —Run —α —— · —Rise —Side B · rightRafter —Run —β —— · —Rise —
Diagram help

Both sides share one scale and a common ridge. Eaves may be at different heights. Dimensions exclude overhang.

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.

Measure each side separately

  1. For Side A, enter the vertical rise from its eave to the ridge and the horizontal run from that eave to the point directly below the ridge.
  2. Repeat for Side B. Use its own eave as the height reference. Do not assume half the building span unless the two horizontal runs are equal.
  3. Choose a unit for each measurement. Select the result unit and decimal precision, then read the two sets of angles, pitches and rafter lengths.
  4. Use Enlarge to inspect the roof at a shared scale, or Copy results to save both sides together. Pin measurements to keep them on this device; unpinned values reset when you reload or leave.
Roof cross-sectionBoth sides share one scale and a common ridge. Eaves may be at different heights. Dimensions exclude overhang.36.87°26.57°53.13°63.43°90°90°Side A · leftRafter 5.00 mRun 4.00 mα 36.87°9.00/12 · 75.00%Rise 3.00 mSide B · rightRafter 6.71 mRun 6.00 mβ 26.57°6.00/12 · 50.00%Rise 3.00 m
ILLUSTRATED EXAMPLE

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.

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 ÷ d

US 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.

Example: a ridge away from the centre
ResultsSide A · leftSide B · right
Rise3.00 m3.00 m
Run4.00 m6.00 m
Rafter length5.00 m6.71 m
Angle (°)36.87°26.57°
Slope (%)75.00%50.00%
US pitch (X/12)9.00/126.00/12

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.

How to use →