Roof pitch calculator
Rise and run to pitch, angle and the multiplier this calculator uses.
Give it the span, the pitch, the ridge board and the overhang. It gives back the common rafter length to the eighth of an inch, the plumb and seat cut angles, the board to pull off the stack and, if the roof has them, the hip or valley rafter. It uses the same pitch multiplier as the roof pitch calculator, so the rafter you cut and the squares you order come from one number.
Pre-filled with a 24 ft gable at 6/12 on a 2× ridge with a 12 in overhang. Measure span outside of wall plate to outside of wall plate, or switch to run if you already have it.
14′ 5 5/8″
Common rafter at 6/12, order a 16 ft board
Plumb cut 26.6°, seat cut 63.4°
| Common rafter, 6/12 | Length | Inches |
|---|---|---|
| Run, after half the ridge | 11′ 11 1/4″ | 143.25 |
| Total rise at the ridge | 5′ 11 5/8″ | 71.63 |
| Line length (run × 1.118) | 13′ 4 1/8″ | 160.16 |
| Overhang tail | 1′ 1 3/8″ | 13.42 |
| Total rafter length | 14′ 5 5/8″ | 173.57 |
| Plumb cut (ridge and tail) | 26.6° | — |
| Seat (level) cut | 63.4° | — |
| Board to order | 16 ft | |
A common rafter runs square off the wall plate straight up to the ridge, at 90° to both. On a plain gable every rafter is a common rafter, so one length cut once and traced as a pattern gives you the whole roof. Hip and valley rafters run at 45° in plan and jacks fill in between them, but every one of those lengths starts from the same two numbers as the common rafter: the run and the pitch. The hip vs gable comparison covers what the extra framing does to area, waste and cost.
A rafter is the hypotenuse of a right triangle: run along the bottom, rise up the ridge line. You never need the rise to get the length. Multiply the run by the pitch multiplier, √(1 + (rise ÷ 12)²), and you have the line length. The same multiplier converts the horizontal overhang into the tail length. Here is the default on the calculator, a 24 ft span at 6/12:
| Step | Working | Result |
|---|---|---|
| Run to ridge centre | 24 ft ÷ 2 = 144 in | 144.00 in |
| Deduct half the ridge | 144 − 1.5 ÷ 2 | 143.25 in |
| Line length | 143.25 × 1.1180 | 160.16 in |
| Overhang tail | 12 × 1.1180 | 13.42 in |
| Total rise | 143.25 × 6 ÷ 12 | 71.63 in |
| Rafter length | 160.16 + 13.42 | 14′ 5 5/8″ |
That 14′ 5 5/8″ piece comes out of a 16 ft board, and the spare length is where the ridge plumb cut and the tail trim come from. Yards usually stock 2× framing lumber in 2 ft steps, so the calculator rounds up to the next even length and tells you when a piece runs past 20 ft, which is a special order or a different member.
Line length is measured on the measuring line
The figure is taken along the rafter's measuring line, the line that passes over the outside corner of the wall plate where the seat cut and the plumb cut of the birdsmouth meet. Lay it out from that point, not from the top or bottom edge of the board, or every rafter on the roof will be off by the same amount.
The plumb cut is the one that stands vertical once the rafter is up: the cut against the ridge, the heel of the birdsmouth, and usually the tail where the fascia goes. Its angle off a square cut equals the roof angle, 26.6° at 6/12. The seat cut is the level cut that sits on the wall plate, and its angle is the complement, 63.4°. On a speed square you skip the degrees and pivot to the pitch number on the common scale. The roof pitch chart lists the angle for every pitch from 1/12 to 12/12.
Where two planes of the same pitch meet at an outside corner (a hip) or an inside corner (a valley), the rafter between them runs at 45° in plan. For every 12 in the common rafter travels toward the ridge, the hip travels the diagonal of a 12 × 12 square, 16.97 in. Framers round it to 17. The rise is the same, so a 6/12 main roof has a hip that climbs 6 in every 17 in, a flatter 19.5° plumb cut instead of 26.6°.
In length, that is the common run × √2 for the plan run, then the hypotenuse against the same total rise. On the worked example the hip or valley comes to 17′ 10 7/8″ to the ridge centre, plus 1′ 6″ of tail, so 19′ 4 7/8″ overall: a 20 ft board. Treat it as the theoretical length. The hip's own deduction at the ridge depends on how it lands (against the ridge end or between two common rafters), and it needs side cuts at 45°. Measure those on the deck. The valley types guide covers how the valley is then flashed and shingled.
The birdsmouth is the notch that lets the rafter sit flat on the wall plate: a seat cut on the plate and a short plumb cut against its outside face. It is the one notch every stick-framed rafter gets, so it is the one worth getting right. The 2021 International Residential Code sends rafter notches (§R802.7.1) to the joist rules in §R502.8.1, which cap a notch at the end of a member at one-fourth of its depth, and cap any other notch at one-sixth of the depth with none in the middle third of the span.
Two more numbers set the size of the seat. §R802.6 asks for at least 1 1/2 in of bearing on wood or metal and 3 in on masonry or concrete, so the seat cut has to land that much rafter on the plate. And §R802.7.1.1 lets you notch the cantilevered tail as long as at least 3 1/2 in of rafter remains and the cantilever is no longer than 24 in.
Check the inspector's reading before you cut 40 rafters
The code text was written around joists, and how its one-fourth end-notch limit maps onto a birdsmouth on a sloped rafter is not read the same way everywhere. Cut one, ask at framing inspection if you are unsure, then trace the rest from it. Trusses and engineered rafters cannot be notched at all except where the manufacturer or a design professional allows it (§R802.7.2).
The rafter length, eave to ridge, is also the slope height of the roof plane. Multiply it by the ridge length plus the rake overhangs and you have one plane of a gable. The worked example on a 40 ft house with 12 in rakes: 14′ 5 5/8″ × 42 ft = 608 sq ft a side, 1,215 sq ft for both, 12.2 squares. Add the 10% waste a simple gable takes and you order against 13.4.
Cut-up roofs are easier on the roof area calculator, which works from plan dimensions and pitch. The roof square calculator adds the waste factor, and what is a roof square explains why the trade counts in hundreds of square feet. From there the shingle bundle calculator turns squares into bundles, starter and ridge cap.
Rise and run to pitch, angle and the multiplier this calculator uses.
What the hips add in framing, area, waste and wind resistance.
Plan dimensions and pitch to true roof area for gable, hip and shed shapes.
Every pitch from 1/12 to 12/12 with its angle and multiplier.