Guide
Roof pitch, rafter length, roof area and shingle bundles for a gable roof
A roof is a plane tilted over a plan, and almost every number a roofer needs follows from one ratio: the pitch. This calculator turns the pitch and the size of the building into the length of the rafters, the height of the ridge and the area of the roof, then into squares and bundles of shingles, so that you can order materials and plan cuts without drawing a section.
Pitch and angle
Pitch is written as rise over run in a 12-unit run, such as 6:12, where the roof climbs 6 units for every 12 units horizontally. Its angle is the arctangent of the ratio: atan(6 ÷ 12) = 26.565°. You can type a pitch or an angle: a 30° roof is the same as 6.93:12. A table at the end shows the angle, the slope factor and the rafter length for the common pitches from 3:12 to 12:12 on your building.
The slope factor
The slope factor is √(1 + (rise ÷ 12)²), the ratio of the length along the slope to the horizontal run. At 3:12 it is 1.031, at 6:12 it is 1.118 and at 12:12 it is 1.414. Multiply a horizontal distance by it and you have the distance along the roof. The roof surface is the footprint, including overhangs, times the slope factor.
Rafters and ridge
For a gable roof with two equal slopes, the horizontal run of a rafter is half the width of the building plus the eave overhang. A building 26 ft wide with a 1 ft overhang has a run of 14 ft, and at 6:12 the rafter length is 14 × 1.118 = 15.652 ft, or 4.771 m. The ridge sits above the top of the walls by half the width times the rise ratio, 13 × 0.5 = 6.5 ft. The rafter length is measured along the top edge and includes the overhang but not the thickness of the ridge board.
Roof area, squares and bundles
The surface of a gable roof is two slopes, each as long as the rafter and as wide as the building plus the overhangs at both gable ends: 2 × 15.652 × (40 + 2) = 1,314.8 ft², 122.15 m². A roofing square is 100 ft², so that is 13.15 squares. At three bundles per square and 10% waste you need 44 bundles. Ridge and hip caps, starter strips, underlayment and flashing are not included.
Other examples
A shallow 3:12 roof on a 20 × 30 ft building has 11.34 ft rafters, 725.67 ft² of roof and needs 24 bundles. A metric roof of 30° on an 8 × 12 m building with 0.5 m eaves and 0.3 m gable overhangs has rafters of 5.196 m, a ridge 2.309 m above the walls and 130.94 m² of surface, 14.09 squares and 47 bundles. Choose metres for the units and angle for the slope.
Waste, hips and valleys
Ten per cent suits a simple gable roof. Roofs with hips, valleys, dormers or chimneys have more cuts, and 15% or more is normal. Shingles on a roof with many small areas waste a lot. Count the number of valleys and hips and plan the extra, and always compare with a measured area if the roof is complicated.
Limits
The tool models a simple gable roof with two equal slopes on a rectangular building. It does not size rafters or check snow and wind loads, and it does not cover hip roofs, valleys, dormers, chimneys or the thickness of the ridge. Roof work is dangerous: work with proper access and fall protection, or hire a roofer.
Related tools
- Stair Calculator uses the same rise-and-run ideas for stairs.
- Miter Angle Calculator gives the compound angles of hips and sloping boards.
- Triangle Calculator solves any triangle behind an unusual roof.
- Area Converter converts roof areas between square feet and square metres.
Checked against the current version of the Roof Pitch Calculator on .

