Timber & Framing
Rafter Set-Out Calculator
Common rafter length, ridge deduction, plumb and seat cuts
Updated July 9, 2026 · Live
What this tool does
Sets out a common rafter from the roof span, pitch, eaves overhang and ridge board thickness: run, rise, line length, ridge deduction, net length to cut and the plumb and birdsmouth angles.
Rafter Set-Out Calculator — from span, pitch and overhang, returns the common rafter length to cut plus the plumb and seat (birdsmouth) cut angles.
People also use
Formula Used
Formula Used
How the rafter set-out calculator works
A common rafter runs from the ridge down to the wall plate and out over the eaves. To cut it you need the length, and the angles at the two ends. This calculator takes the span, the pitch, the overhang and the ridge board thickness and gives the net length to cut for each rafter. The formula is L = (S ÷ 2 − t ÷ 2 + O) ÷ cos θ, where S is the span, t the ridge thickness, O the horizontal overhang and θ the pitch. It also gives the run, the rise, the line length and the plumb and seat cut angles. The page works in feet and inches and converts internally, so the metric and US-unit versions agree.
Example with the defaults on this page: a 26 ft span at 30° pitch with a 12 in overhang and a 1½ in ridge board. The run is 13 ft and the rise is 13 × tan 30° = 7.51 ft. The line length is 13 ÷ cos 30° = 15.01 ft. The ridge deduction is 0.75 in ÷ cos 30°, which is 0.87 in (0.07 ft). The overhang along the slope is 12 in ÷ cos 30° = 13.9 in (1.15 ft). The net length to cut is 15.01 − 0.07 + 1.15 = 16.09 ft, which is 16 ft 1 in. In metric, the span is 7.92 m and the rafter 4.91 m.
A 6:12 roof is easier to check by hand. A 24 ft span has a run of 12 ft and a rise of 6 ft, so the line length is √(12² + 6²) = 13.42 ft. With a 12 in overhang (1.12 ft along the slope) and a 1½ in ridge the net length is 13.42 − 0.07 + 1.12 = 14.46 ft. Pitches in rise per 12 in convert to degrees by tan⁻¹ of rise ÷ 12: 4:12 is 18.4°, 5:12 is 22.6°, 6:12 is 26.6°, 7:12 is 30.3°, 8:12 is 33.7°, 10:12 is 39.8° and 12:12 is 45°.
Run, rise and line length
The run is half the span, measured from the outside face of one wall plate to the ridge centreline. The rise is the height the roof climbs over that run, run × tan θ. The line length is the rafter's length from the ridge centreline to the outside face of the wall plate, run ÷ cos θ, which is the hypotenuse of the triangle. It is measured along the rafter's top edge, so the depth of the birdsmouth notch does not change it. The overhang is entered as its horizontal projection beyond the wall plate, because that is how it is drawn on a plan, and the tool converts it to length along the slope by dividing by cos θ.
The angles are given from a line square across the rafter's edge, the cut a framing square makes. The plumb cut is the vertical cut at the ridge, and it tilts from square by the pitch. The seat cut is the horizontal cut that bears on the wall plate, and it tilts by 90° minus the pitch. At 30° they are 30° and 60°. On a speed square you can set the plumb cut by reading the pitch on the scale.
The ridge deduction
Common rafters meet on the two faces of the ridge board, not on its centreline, so each rafter is shortened by half the ridge's thickness, measured along the slope. That is half the thickness divided by cos θ. For a 38 mm ridge at 30° it is 22 mm, and for a 1½ in ridge at 30° it is 0.87 in. A ridge beam that carries the rafters from underneath is different, because the rafters bear on top of it and the deduction depends on how they are cut, so enter 0 and set out from the drawing. The ridge board must be thinner than twice the run, which the tool checks.
Scope and safety
The tool gives the geometry of a common rafter on a simple gable roof with a level ridge and level wall plates. It does not size the rafter, set its spacing, choose a birdsmouth depth or design the ties. Rafters push the walls outward, so a roof needs ceiling joists, collar ties or a ridge beam to resist that spread, and the design must say which. Codes also limit how deep the seat notch can be cut, so keep it shallow and check your code. In the United States the International Residential Code and local amendments set rafter spans, spacing, bearing and connections, and the American Wood Council publishes span tables.
Roof work is work at height. OSHA's construction fall-protection rule applies at a working height of 6 ft (1.8 m) or more. Use edge protection and safe access, and cut rafters on the ground where you can. Measure the real building before you cut, because walls are rarely exact: check the span at several points, and cut one rafter first and try it before you cut the rest. Hips, valleys, jack rafters and trussed roofs need separate set-out, and trusses are designed and supplied as a whole.
Using this alongside other BuildMetricLab tools
Pair this set-out with the roof pitch calculator to convert a rise and run to degrees, with the roof area calculator for the covering, and with the staircase set-out calculator for another framing set-out. All BuildMetricLab tools run in your browser. Nothing you type is sent anywhere, and every formula is shown on the page so you can audit the maths.
Sources & methodology
Common-rafter set-out by right-angle trigonometry. The run is half the span (measured from the outside faces of the wall plates to the ridge centreline), the rise is run × tan θ, and the line length is run ÷ cos θ, which is the rafter's length from the ridge centreline to the outer face of the wall plate, measured along its top edge. The ridge deduction is half the ridge thickness ÷ cos θ. The overhang is entered as its horizontal projection and converted to length along the slope by dividing by cos θ. The net length to cut is line length − ridge deduction + overhang along the slope. The plumb cut is θ from a line square across the rafter, and the seat cut is 90° − θ from square. The span and pitch must be above zero, the pitch below 90°, the overhang and ridge zero or more, and half the ridge must be less than the run. The tool does not size the rafter, its spacing or its connections, and it does not give the depth of the birdsmouth notch.
- American Wood Council — span tables and design guidance for wood frame construction (US)
- ICC — International Residential Code, roof-ceiling construction requirements (US)
- OSHA — Fall protection in construction (US)
- NIST — Special Publication 811, Guide for the Use of the International System of Units (ft, in and mm, m)
Frequently asked questions
Does the result include the overhang?
Yes. The main figure is the net length to cut for each rafter: the ridge-to-wall line length, minus half the ridge board thickness measured along the slope, plus the eaves overhang. The overhang you enter is the horizontal projection beyond the wall plate, so the tool converts it to length along the rafter by dividing by the cosine of the pitch. For example, 400 mm (15.7 in) of horizontal overhang at 35° is 488 mm (19.2 in) of rafter. Enter 0 for the bare structural length.
What are the plumb and seat cuts?
The plumb cut is the vertical cut where the rafter meets the ridge, and the seat (birdsmouth) cut is the horizontal cut that sits on the wall plate. Both are given as angles from a line square across the rafter's edge, the cut a framing square makes. The plumb cut tilts from square by the pitch, and the seat cut by 90° minus the pitch, so at 30° they are 30° and 60°. Together they form the birdsmouth notch.
Why deduct half the ridge thickness?
A pair of common rafters meets on either face of a central ridge board, not on its centreline. The line length runs to the centreline of the ridge, so half the ridge board's thickness, measured along the slope as half the thickness divided by the cosine of the pitch, comes off each rafter. For a 38 mm ridge at 30° that is 22 mm. A ridge beam that carries the rafters changes the set-out, so enter 0 if the rafters bear on top of it.
Is this only for a simple gable roof?
Yes. The common-rafter set-out applies to the main slopes of a straightforward duo-pitch (gable) roof with a level ridge and level wall plates. Hip, valley and jack rafters have different lengths and compound angles, and trussed roofs are engineered components that are designed and supplied as a whole, so treat those separately.
Spotted something off?
Calculations or display — let us know.













