You're pricing a reroofing job and need the roof pitch, actual rafter run and rise before the supplier can quote the ridge capping and valley iron. The client only knows the building span and wants a 22-degree pitch.
Rise = Run × tan(pitch) · Rafter = Run ÷ cos(pitch)
Common pitches: 15° (low), 22.5° (standard), 30° (steep), 45° (Dutch gable).
1 What this calculator does
Calculates roof pitch angle, rise, run (half-span) and rafter length from the building span and pitch angle. Also converts between pitch angle (degrees) and pitch ratio (rise:run). Supports metric and imperial.
2 Formula & professional reasoning
Run = Span / 2 (half the building span)
Rise = Run x tan(Pitch angle in degrees)
Rafter length = Run / cos(Pitch angle in degrees)
Pitch angle (deg) = atan(Rise / Run) x (180 / Pi)
Slope ratio (imperial) = Rise per 12 units of run
The run is always half the span for a simple gable roof -- the rafter starts at the wall plate and meets the ridge at the centre. Trigonometry (SOH CAH TOA) gives rise (opposite side = run x tan) and rafter length (hypotenuse = run / cos). The same triangle applies to hip rafters and valley rafters with different effective runs. Always add eave overhang length after calculating the structural rafter length.
3 Worked examples
⚠️ Illustrative example only — not clinical or professional instruction.
Run: 10.0/2 = 5.0m | Rise: 5.0 x tan(22°) = 5.0 x 0.4040 = 2.020m | Rafter: 5.0/cos(22°) = 5.0/0.9272 = 5.393mAngle: atan(7/12) x (180/Pi) = atan(0.583) = 30.26° | Run: 8.4/2 = 4.2m | Rise: 4.2 x tan(30.26°) = 2.451m | Rafter: 4.2/cos(30.26°) = 4.859m12 degrees > 5 degrees -- metal OK | 12 degrees < 15 degrees -- concrete tile NOT suitable4 Sanity check
5 Common errors
| Error | Cause | Consequence | Fix |
|---|---|---|---|
| Not adding eave overhang to the rafter length before ordering timber | Using the calculated structural length as the order length | Rafters too short -- every rafter needs to be replaced or spliced at cost | Calculate base structural length (birdsmouth to ridge) then add overhang on the hypotenuse: overhang addition = overhang horizontal length / cos(pitch). Add at least 100mm for plumb cut waste. |
| Specifying a pitch below the product minimum | Not checking manufacturer data sheets before design | Roof leaks, warranty voided, potential liability | Check minimum pitch for the specified roofing product before finalising design. If pitch is borderline, go to the next steeper standard product. |
| Using the building width instead of the span for gable roof rafter calculations | Confusing width and span | Rafters ordered 2x too long -- expensive waste | For a standard gable roof, the run = span / 2 (half the building width). The rafter goes from the wall plate to the ridge, not from wall to wall. |
| Not checking structural adequacy of rafter size for the span | Calculating length without cross-checking against span tables | Undersized rafters fail under wind and snow load | Use AS 1684 span tables (or local building code equivalent) to verify the rafter cross-section is adequate for the calculated length, roof load and spacing. Calculator gives length only -- structural sizing requires span tables. |
6 Reference & regulatory links
7 Professional workflow
Common tools used alongside this one: