
The Difference Between Square, Plumb, and Straight: A Guide for Builders and DIYers
Master the 3-4-5 method and learn when square, plumb, and straight matter most. Essential geometry for construction, carpentry, and DIY projects.
Common rafter length from building span and pitch, with the ridge deduction, overhang, cut angles, board length and matching hip rafter.
Outside of wall to outside of wall
Enter 6 for a 6/12 roof
Tip
Lengths are along the rafter's measuring line, from the ridge plumb cut to the building line. Check the first rafter pair against the ridge height before cutting the rest.
Total rafter length (with tail)
-
Ridge to building line
-
Overhang tail
-
Run (after ridge deduction)
-
Rise
-
Plumb cut angle
-
Seat (level) cut angle
-
Board to buy
-
Hip / valley length
-
A common rafter is the hypotenuse of a right triangle. The horizontal leg is the run (half the building span, less half the ridge board), the vertical leg is the rise, and the pitch tells you how the two are related: a 6/12 roof rises 6 inches for every 12 inches of run. Everything else follows from the Pythagorean theorem.
run = span ÷ 2 − ridge thickness ÷ 2
rise = run × pitch ÷ 12
rafter = √(run² + rise²) = run × √(1 + (pitch ÷ 12)²)
tail = overhang × √(1 + (pitch ÷ 12)²)
plumb cut angle = arctan(pitch ÷ 12)
The factor √(1 + (pitch ÷ 12)²) is the rafter multiplier: the length of rafter needed for each unit of run. It depends only on the pitch, which is why framers memorise it, or read it as "length per foot of run" from the table stamped on a framing square.
| Pitch | Roof angle | Common rafter multiplier | Common length per 12 in of run | Hip / valley length per 12 in of run |
|---|---|---|---|---|
| 2/12 | 9.46° | 1.0138 | 12.17 in | 17.09 in |
| 3/12 | 14.04° | 1.0308 | 12.37 in | 17.23 in |
| 4/12 | 18.43° | 1.0541 | 12.65 in | 17.44 in |
| 5/12 | 22.62° | 1.0833 | 13.00 in | 17.69 in |
| 6/12 | 26.57° | 1.1180 | 13.42 in | 18.00 in |
| 7/12 | 30.26° | 1.1577 | 13.89 in | 18.36 in |
| 8/12 | 33.69° | 1.2019 | 14.42 in | 18.76 in |
| 9/12 | 36.87° | 1.2500 | 15.00 in | 19.21 in |
| 10/12 | 39.81° | 1.3017 | 15.62 in | 19.70 in |
| 11/12 | 42.51° | 1.3566 | 16.28 in | 20.22 in |
| 12/12 | 45.00° | 1.4142 | 16.97 in | 20.78 in |
Common multiplier = √(1 + (pitch/12)²). Hip and valley length per 12 in of common run = 12 × √(2 + (pitch/12)²).
A hip rafter crosses the corner of the building at 45° in plan, so its horizontal run is the common run × √2. It climbs the same rise as the common rafters, which makes its slope flatter: a 6/12 roof has 6/16.97 hips. The line length is run × √(2 + (pitch ÷ 12)²). Treat the calculator's hip figure as the theoretical length to the centre of the ridge; the actual cut is shortened for the ridge and for half the hip's own thickness measured at 45°.
Need the pitch first? Use the roof pitch calculator to convert between rise/run, degrees and X/12, or read the roof pitch trigonometry guide.
Take half the building span as the run, subtract half the ridge board thickness, then multiply by √(1 + (pitch/12)²). For a 24 ft span at 6/12 with a 1½" ridge: run = 144 − 0.75 = 143.25 in, multiplier = 1.118, rafter = 160.16 in, or 13' 4-3/16". Add the overhang tail to get the full board length.
The rafters meet the ridge board, not each other. A 1½" ridge board takes ¾" of horizontal run away from each side, so each rafter's run is ¾" shorter than half the span. Leaving this out makes every rafter about 13/16" too long on a 6/12 roof and the ridge will not sit at the designed height.
Overhang is measured level (horizontally) from the building line, but the rafter tail runs on the slope, so multiply the overhang by the same pitch multiplier. A 12" overhang on a 6/12 roof needs 12 × 1.118 = 13.42 in of rafter tail.
The plumb cut (at the ridge and at the tail) is the roof angle: arctan(pitch/12). The seat cut of the birdsmouth is level, so it is 90° minus the roof angle measured from the rafter edge. For 6/12 that is 26.57° and 63.43°. On a speed square, set the common scale to the pitch number instead.
A hip runs diagonally across the corner, so for every 12 in of common run it covers 16.97 in (12√2) horizontally. Its length is the common run × √(2 + (pitch/12)²). For a 143.25 in run at 6/12 that is 143.25 × 1.5 = 214.88 in, or 17' 10-7/8", before any deduction for the ridge and the hip's own thickness.
Round the total rafter length (including the tail) up to the next stock length; framing lumber is sold in 2 ft steps from 8 ft to 24 ft. The calculator does this for you. Board depth (2×6, 2×8, 2×10…) is a structural question that depends on span, spacing, species and snow load, so take it from the span tables in your building code, not from geometry.
Deepen your understanding of triangles and trigonometry with our guides and tutorials:

Master the 3-4-5 method and learn when square, plumb, and straight matter most. Essential geometry for construction, carpentry, and DIY projects.

Calculate roof pitch angles using trigonometry. Learn rise/run ratios, rafter length formulas, and building code requirements for roofing projects.

Learn how to calculate stair stringers using trigonometry. Complete DIY guide with step-by-step measurements for deck stairs, basement steps & more.

Square your foundation perfectly using the 3-4-5 method and diagonal measurements. Step-by-step guide for garages, decks, sheds, and buildings.

Discover why triangles are the strongest shape in engineering and construction. Learn how this geometric principle powers cranes, bridges, and iconic structures.

Discover how geometry transforms woodworking from guesswork to precision. Learn the math behind perfect cuts, joints, and craftsmanship techniques.
Formulas and results last reviewed . How we check accuracy · Corrections log · Report an error