Pitch, angle, percent and common rafter length for a gable roof.
Roof pitch & rafter calculator
Last reviewed
- Pitch
- 6/12
- Angle
- 26.57°
- Slope
- 50%
- Rafter per foot of run
- 13.416"
- Rafter run
- 11' 11-1/4"
- Line length
- 13' 4-3/16"
- Tail (overhang)
- 13-7/16"
- Rafter length
- 14' 5-9/16"
- Ridge height above plate
- 5' 11-5/8"
These sketches are here to help you order material and price the work quickly. They are not engineered or shop drawings — always build from your approved project drawings.
Length is along the top edge of the rafter, plate line to ridge face plus the tail — lay out the birdsmouth and plumb cuts from it. Rafter size and spacing are structural: use the IRC span tables or an engineer.
Show the math▾
- Angleatan(pitch ÷ 12)atan(6 ÷ 12) = 26.57
- Slope factor√(1 + (pitch ÷ 12)²) — rafter length per unit of run√(1 + (6 ÷ 12)²) = 1.1180
- Rafter run(span − ridge board) ÷ 2( 24' 0" − 1-1/2" ) ÷ 2 = 11' 11-1/4"
- Line lengthrun × slope factor11' 11-1/4" × 1.118 = 13' 4-3/16"
- Taillevel overhang × slope factor1' 0" × 1.118 = 1' 1-7/16"
- Rafter lengthline length + tail (before plumb cuts)13' 4-3/16" + 1' 1-7/16" = 14' 5-9/16"
- Ridge heightrun × pitch ÷ 1211' 11-1/4" × 6 ÷ 12 = 5' 11-5/8"
Where the numbers come from
- Pitch, angle and rafter length: angle = atan(pitch ÷ 12) · rafter = run × √(1 + (pitch ÷ 12)²) · 6/12 = 26.57°, 13.42" per foot of runRight-triangle geometry: the rafter is the hypotenuse of run and rise. "Unit length" (rafter inches per 12" of run) is what a framing square's rafter table shows — 6/12 = 13.42, 8/12 = 14.42, 12/12 = 16.97. The length here is the line length; birdsmouth and plumb cuts are laid out from it. Rafter size and spacing are structural — use the IRC span tables or an engineer.
Saved results
Nothing saved yet. Tap Save to keep a result on this device.
Pricing this as an extra? Planmit Change Orders turns these quantities into a priced change order, tracked until it’s paid. See how it works
Report a problem or suggest something
This is a community calculator for the construction trades. We check every number against its source, but mistakes happen. If a number looks wrong, tell us — and tell us which calculator you want next.
The formula
Angle = atan(pitch ÷ 12); percent = pitch ÷ 12 × 100. Rafter length = run × √(1 + (pitch ÷ 12)²), where run = (span − ridge board) ÷ 2. The overhang adds its level length × the same factor.
Worked example
A 24' span at 6/12 with a 1½" ridge and 12" overhang: run = (288 − 1.5) ÷ 2 = 143.25". Factor √1.25 = 1.118, so line length = 160.16" and the tail 13.42" — 173.58" (14' 5-9/16"). Angle 26.57°, slope 50%.
Related calculators
- RoofingSquares and shingle bundles for gable or hip roofs.
- Slope, grade & ADA rampPercent, degrees, ratio, pitch — and ramp layout.
- Plywood & OSB sheathingSheets for a floor, wall or roof — 4×8, 4×9 or 4×10, with roof pitch and nails per sheet.
- Wall framingStuds, plates and sheathing sheets for a wall — 12", 16", 19.2" or 24" OC, with openings, corners and tees.