Calculate roof pitch, rise, run, and common-rafter line length from a building span or direct rafter run. Add an optional ridge-board thickness or overhang and use the live diagram to keep every reference line obvious.
Enter your span or run and roof pitch to calculate the common-rafter geometry.
The drawing preserves the roof angle and labels the exact calculated dimensions. Use the numbers, not screen pixels, for layout.
Building span is the full horizontal distance between the outside faces of the supporting exterior walls. For a symmetrical gable roof, the nominal common-rafter run is half that span. If a ridge board sits between opposing rafters, entering its actual thickness lets the calculator stop the run at the ridge-board face instead of the building centerline.
Direct rafter run is already a one-side horizontal distance. The calculator therefore does not subtract ridge thickness again in direct-run mode. This prevents the easy-to-make mistake of applying the same deduction twice.
A 6:12 roof rises 6 units for every 12 units of horizontal run. That ratio is 0.5, which corresponds to a 26.565-degree roof angle and a 50-percent slope. The calculator uses the same ratio internally no matter which pitch format you enter.
Geometric length is not structural adequacy. Rafter sizing can depend on lumber species, grade, member size, spacing, roof live and dead loads, snow load, deflection limits, support conditions, and locally adopted building codes. The 2024 International Residential Code includes separate rafter sizing, ridge, bearing, and notching provisions, and the American Wood Council publishes dedicated span-table resources for structural selection.
Birdsmouth depth, bearing design, hip/jack/valley rafters, and structural span sizing are intentionally outside this version of the tool.
Pre-launch review: The geometry, terminology, diagram reference lines, and practical layout assumptions should be checked by an experienced framing carpenter or carpentry instructor. That review is not structural engineering approval.
Roof layout is one piece of the trade. Explore training paths that can include construction math, plans, measuring, framing, tool use, and jobsite safety.
Explore carpentry training programs See what carpenters do