Roof Pitch, Rafter and Birdsmouth Layout Calculator

Convert roof pitch and angles, calculate common and hip or valley rafter lengths, and lay out ridge, tail and birdsmouth cuts with a drawn cut sheet and animated assembly.

#birdsmouth #birdsmouth cut #rafter #rafters #roof framing #roof pitch #timber framing #trigonometry

Use this roof pitch calculator to turn a roof slope and building span into common rafter dimensions. Engineers can check geometry, students can explore framing-square trigonometry, and builders can prepare a trial rafter for an approved framing detail. Enter rise per 12 units of horizontal run or an angle above horizontal. The metric/US switch converts dimensional inputs and results.

Measure span between the outside faces of the opposing walls. The centered ridge and equal slopes give a theoretical run of half that span. Actual ridge thickness shortens the common rafter to the near ridge face. Overhang is a horizontal projection from the outside wall to the tail plumb cut, excluding fascia.

The rafter length calculator preserves three top-edge measurements: A from the ridge cut to the outside-wall plumb mark, B from that mark to the tail, and C=A+B. The conservative square-ended blank also allows for the offset of the plumb end cuts. It excludes trim until you add an allowance in the worksheet.

For a birdsmouth cut, enter actual timber depth, available plate width and the approved horizontal seat length. The enlarged section distinguishes vertical heel V, perpendicular notch N and height above plate H. Plumb and seat angles describe pencil lines relative to the timber edge. They are not universal saw settings. Hip and valley lengths apply to equal slopes at a square corner and stop at theoretical intersections; cheek cuts, backing, dropping and connection deductions require separate details.

Open Details for the measurement and ridge helpers. Two points on the same slope give pitch from measured rise and horizontal run. Ridge height uses different planes: from the top of the wall plate to the flat ridge-board top. The drawing names those references, timber depth and H. Enable comparison to enter a measured ridge height and solve the pitch with depth and seat retained. Copy the solved rise-per-12 into the main slope input to update the main cuts, worksheet and templates.

The quantity worksheet counts both sides of a simple gable, including both end pairs. Choose flush outer end faces or centers at end datums, then entered centers with a shorter final bay or equal bays within the requested maximum. Select Station page to read each group of ten center and near-face marks in millimetres and decimal inches. All marks start from one plate end. Print each station page in turn for a complete schedule. Add total trim and kerf allowance and select stock length. The worksheet reports stock pieces, surplus or shortfall, assuming one piece per rafter.

Enable the local cutting templates to transfer the plumb and birdsmouth traces onto timber. Use Print / Save as PDF, enlarge or tile the template pages, and check the separate horizontal and vertical 100 mm calibration bars. Both must measure 100 mm before use; screen size and report fitting do not establish full size. Follow the detailed calibration and registration instructions in Method.

Verify one trial rafter against site dimensions before repeating cuts. This tool does not size members, apply IRC span tables, choose permissible spacing, or check loads, bearing, uplift connections, bracing or local code compliance. Construction and installation work belongs to a qualified person using the approved design.

How it is calculated

For a centered ridge, let S be outside-wall span, R = S/2, t ridge thickness, O horizontal overhang, d actual timber depth and s horizontal seat. Let q = p/12 = tan(θ). The calculation uses exact right-triangle geometry, without rounding intermediate dimensions.

Common top-edge measurements are A = (R − t/2)√(1+q²), B = O√(1+q²), and C = A+B. The ridge deduction is (t/2)√(1+q²), measured on the slope, rather than t/2. The reported square-ended blank allowance is C+dq before kerf and trimming. This is conservative rather than a guaranteed minimum: with zero overhang the birdsmouth removes the lower tail corner, and the finished outline instead needs C+(d−N)q. The reported allowance retains the unnotched end-cut envelope.

In the installed section, the seat runs inward from the outside wall. Its inner end meets the original bottom edge. Therefore V=sq, N=s sin(θ), remaining perpendicular depth=d−N, and H=d/cos(θ)−V at the outside-wall plumb plane. The plumb pencil line makes 90°−θ with the top edge; the horizontal seat line makes θ. A conventional square uses p on the rise leg and 12 on the run leg.

For equal slopes at a 90° plan corner, diagonal run=R√2, hip/valley inclination=atan(q/√2), and theoretical slope length=R√(2+q²). Add O√(2+q²) for the theoretical diagonal tail. Use 12√2 (about 16.971), rather than rounded 17, as the square run for that same rise.

The Johnson manual is used for independent length examples (attached pages 9–12 and 16–17); Swanson is used for the pitch conversion check. These checks do not establish structural adequacy.

For the ridge-reference helper, the flat ridge-board top is flush with the rafter top at the near ridge face, not with the theoretical centerline apex. Its elevation above the top-of-plate plane is Z=H+(R−t/2)q=d√(1+q²)+(R−t/2−s)q. The fixed-height helper inverts this complete equation with the numerically stable positive root q=(Z²−d²)/[Zb+d√(Z²+b²−d²)], where b=R−t/2−s. The seat and already selected timber depth stay fixed. The JLC September 2013 example checks this plane convention and its HAP addition. Measured rise/run is a separate slope measurement between two points on the same edge.

The quantity worksheet counts a simple two-slope gable. With flush end faces, the end centers are w/2 and L−w/2; with end-center datums they are 0 and L. For the center-to-center extent E, use n=ceil(E/spacing) bays and n+1 pairs. Entered-center layout advances by the requested spacing from the first center, then adds the final end center; equal layout uses E/n throughout. Near-face marks are center−w/2, measured from the same starting plate end. The worksheet prints millimetres to 0.1 mm and decimal inches to 0.0001 in, rounded only for display; all coordinates are accumulated from the start datum without intermediate rounding. Both end pairs are counted once. The order blank is the unchanged conservative blank plus the total trim allowance. One stock piece per rafter is assumed; offcut=max(stock−blank,0), shortfall=max(blank−stock,0).

Local templates use millimetres in the side face of the timber, with the reference top edge horizontal on paper. The plumb trace has along-edge offset d q across depth d. At the birdsmouth, take the wall mark on the top edge as local zero: the uncut heel is (dq,0), the cut corner is (dq−Nq,N), and the seat's inner intersection is (dq−s√(1+q²),0). These are exact rotations of the installed geometry. Blue traces are cuts, the dashed wall line is a registration mark, and the grey triangle is waste.

The cut-sheet letters locate top-edge dimensions: A ends at the outside-wall plumb mark, B continues to the tail, and C spans both. Dashed lines identify the uncut underside or registration planes. In the framing section Z measures the ridge-board top above the top-of-plate plane. The assembly player lowers the two cut rafters into their installed geometry; it is a placement illustration without erection-force analysis.

Assumptions

  • Straight, uniform timber with parallel edges and depth measured perpendicular to those edges.
  • Centered vertical ridge board; equal pitch and equal plate elevation on both sides.
  • Common birdsmouth: outside heel at the outside wall, seat extending inward, and vertical tail cut.
  • Hip and valley lengths apply only to equal-pitch 90° intersections; they are theoretical line lengths, without connection deductions.
  • The available plate width is an input for geometric fit, not a determination of required bearing.
  • Assembly animation shows an illustrative placement sequence with exact common-rafter outline geometry; it does not model erection forces.
  • The enlarged birdsmouth section preserves the roof angle and relative timber, seat and plate widths. Wall and plate heights are schematic. The dashed diagonal is the original underside before removing the notch.
  • Added ridge-height, quantity and local template equations are derived here from the same geometric datums; no member or spacing capacity is inferred.
  • Stock planning assumes a simple gable, both end pairs, two identical common rafters per station, and one stock piece per rafter.
  • Roof and assembly sections use the computed rafter outline and show the ridge board only over the rafter contact height; ridge member depth is not selected. Plate thickness (45 mm) and the short wall stubs are schematic; horizontal plate bearing width follows the input.
  • The ridge-reference card combines a half-roof section with an enlarged wall-seat detail on the right. H is vertical above the plate; d is perpendicular to the rafter edges. Each section uses one scale on both axes.

Where it applies

Slope entry covers 0.5:12 to 24:12 (approximately 2.386° to 63.435°). The seat must fit the available plate, end before the ridge, and leave positive timber depth. Horizontal overhang is limited to the common half-span. A notch above 25% of timber depth produces a geometric review advisory; this threshold is not a claim about the code permitted for your project.

No member sizing, IRC span tables, allowable notch design, bearing resistance, connection design, bracing, load analysis, or jurisdiction-specific compliance is implemented. Follow the approved framing detail and check against the standard and code in force. Actual work requires a qualified construction or installation professional. Use a trial piece and verify site dimensions. Blank length excludes kerf, stock tolerances, defects and waste. The section outlines follow the input geometry; support heights are schematic, and the wall-seat inset is enlarged. The added local templates preserve true X/Y geometry, but the viewer and report fit them to the available page width; they become full size only after print calibration.

Fixed ridge height assumes the flat ridge-board top meets the rafter's top at the near face, with no intentional ridge drop, ventilation gap, finish buildup or bevel. The helper shows a separate solution: enter its rise-per-12 into the main slope input before using the main cut sheet, templates or worksheet for that solution. A measured ridge-top height divided by half-span is not the roof slope.

Station marks are supplied side by side in millimetres and decimal inches, independent of the viewer unit switch, so long inch measurements retain layout precision. The worksheet shows ten stations per page to keep all displayed rows in the PDF report. Set Station page from 1 through Station worksheet pages, and print each page in turn for the complete schedule. Scroll horizontally if needed.

The worksheet does not add fly rafters, gable overhang framing, hips, valleys, jack rafters, openings, doubled members or spare pieces. It does not select a permissible spacing. Center-at-end datums put half the end timber outside each datum; choose flush faces when the plate ends define the outer timber faces. Short end bays must still fit the actual timber thickness. Stock surplus is the difference beyond the allocated blank, not guaranteed usable scrap; there is no multi-blank stock optimization.

To transfer a template, use Print / Save as PDF, isolate its page, and enlarge or tile it in a PDF/image print tool. Measure the X bar and Y bar independently: BOTH must be 100 mm (3.93701 in), endpoint to endpoint, on the paper. If a bar measures a mm, its axis correction factor is 100/a. When the bars require different factors, correct X and Y independently in the print/image tool; uniform printer scaling cannot fix that distortion. Reprint and recheck both bars. Align the labeled top edge with the straight timber edge; for the birdsmouth align the wall mark with A measured from the ridge cut along that edge. Mark the blue traces, verify a trial piece and avoid saw overcuts at the internal corner. Large-depth or steep-pitch templates require larger paper or poster tiling. The templates show side-face pencil lines, not a wraparound bevel or a universal saw dial setting.

References

  • Johnson Level & Tool, The Johnson Rafter Angle Square manual, pp. 9–12, 16–17. https://www.johnsonlevel.com/Content/files/manuals/1904-0700_1904-1200_1959-0700%20manual.pdf
  • Swanson Tool Co., Roof pitch reference, 6/12 entry (accessed 26 October 2026). https://swansontoolco.com/learn/pitch
  • Tim Uhler, Framing a Hip Roof, JLC, September 2013, p.59 (HAP and ridge height; before the ventilation drop). https://www.jlconline.com/wp-content/uploads/sites/4/2013/framing-a-hip-roof-tcm96-2013168.pdf
  • Blocklayer, Gable Roof Framing Calculator, set-out and spacing conventions (accessed 12 November 2026). https://www.blocklayer.com/roof/gable
  • Blocklayer, Common Rafter Full Scale Templates, calibration and transfer practice (accessed 12 November 2026). https://www.blocklayer.com/roof/templates/rafter

Inputs

InputSymbolUnitDefault
Enter roof slope aspitch_modeRise per 12 run
Rise per 12 run
6 means a 6:12 slope. A dimensionless rise/run ratio, not rise divided by full span.
p_in6
Roof anglea_indeg26.5650511771
Span across outside wall facesspanmm6000
Actual ridge board thickness
Measured across the span; zero returns theoretical centerline lengths.
ridgemm38
Horizontal overhang beyond outside wall
To the tail plumb cut; excludes fascia thickness.
overhangmm450
Actual common rafter depth
Measured perpendicular to the timber edges. Enter an already selected member; this tool does not size it.
depthmm184
Available wall plate bearing widthplatemm140
Horizontal birdsmouth seat length
Starts at the outside wall face and extends inward. Specify from your approved framing detail.
seatmm75
Roof assembly progress â–¶
Play to lower the two cut common rafters onto the wall plates. Illustrative sequence only.
assembly1
Measured rise and runmeasure_helperfalse
Measured rise on one slope
Use two points on the same rafter edge; do not use ridge-top height above the plate.
measured_risemm1500
Horizontal run between those pointsmeasured_runmm3000
Ridge top above plateridge_helperfalse
Compare a measured ridge / solve its pitchridge_comparefalse
Measured ridge-board top above plate
Vertical distance from the top-of-plate plane to the flat top of the ridge board at its near face.
measured_ridgemm1658.71825393
Quantity, stock and station marksworksheetfalse
Length along the wall plate
From starting plate end to far plate end, parallel to the ridge; excludes gable overhang.
roof_lengthmm8000
Maximum rafter center spacingspacingmm600
Actual rafter thicknessrafter_widthmm38
End rafter conventionend_conventionOuter faces flush with plate ends
Station spacingspacing_modeEntered centers; shorter final bay
Total trim and kerf allowance per rafter
Added along the blank; includes your allowance for both ends, kerf and site fitting.
trim_allowancemm50
Stock length per rafterstock_lengthmm4200
Local cutting templates
Print the report, then resize or tile the template pages until both calibration bars measure 100 mm.
cut_templatesfalse
Station page
Ten pairs per worksheet page; print each page in turn for the complete schedule.
station_page1

Results

With the default inputs above, the calc gives:

ResultValue
Roof angle26.57 deg
Rise per 12 run6
A · Ridge face to outside-wall mark3,332.9 mm
B · Tail along top edge503.1 mm
C · Finished top-edge length3,836 mm
Conservative square-ended blank, before waste3,928 mm
N · Perpendicular notch depth33.5 mm
V · Vertical heel cut37.5 mm
H · Height above plate168.2 mm
Notch / actual timber depth0.182
Plumb line to timber edge63.43 deg
Seat line to timber edge26.57 deg
Hip / valley inclination19.47 deg
Hip / valley to theoretical intersection4,500 mm
Hip / valley with theoretical tail5,175 mm
Measured rise per 12 run6
Measured roof angle26.57 deg
Design ridge-board top above plate1,658.7 mm
Measured minus design ridge height0 mm
Fixed ridge · rise per 12 run6
Fixed ridge · roof / seat angle26.57 deg
Fixed ridge · plumb line to timber edge63.43 deg
Fixed ridge · H above plate168.2 mm
Fixed ridge · vertical heel37.5 mm
Fixed ridge · perpendicular notch33.5 mm
Fixed ridge · A to wall mark3,332.9 mm
Fixed ridge · B tail503.1 mm
Fixed ridge · C top-edge length3,836 mm
Fixed ridge · blank before trim3,928 mm
Rafter pairs / plate stations15
Common rafters / stock pieces30
Required blank with trim allowance3,978 mm
Surplus per stock piece222 mm
Shortfall per stock piece0 mm
Total ordered stock length126 m
Stock length checkStock length sufficient
Station worksheet pages2

Checked against sources

Each case below was calculated by this calc and agrees with the value from its source (within the tolerance where one is shown).

Johnson: 13 ft run, 8:12 common rafter

Source: Johnson Rafter Angle Square manual, pp. 9–12: 13 ft run at 8:12 (the example rounds its original rise to 8:12); common 15 ft 7½ in, tail 2 ft 1⅜ in, stock 18 ft 0 9/16 in. Published table sums round intermediate values; tolerances cover their cumulative rounding. No ridge deduction in this example. Exact tail is 25.2389 in, 0.1361 in below the published sum of rounded sublengths; exact blank is about 0.1684 in below the printed total. Tolerances 3.6 and 4.5 mm cover those explicitly identified accumulated rounding discrepancies; formulas retain exact trigonometry.

Inputs: Rise per 12 run = 8; Span across outside wall faces = 7,925 mm; Actual ridge board thickness = 0 mm; Horizontal overhang beyond outside wall = 533.4 mm; Actual common rafter depth = 139.7 mm; the others as above.

ResultSourceThis calc
A · Ridge face to outside-wall mark4,763 mm4,762 mm
B · Tail along top edge644.5 ± 3.6 mm641.1 mm
Conservative square-ended blank, before waste5,501 mm5,496 mm

Johnson: 13 ft common run, 8:12 hip/valley

Source: Johnson Rafter Angle Square manual, pp. 16–17: equal-pitch 90° corner, common run 13 ft, slope 8:12; theoretical hip/valley 20 ft 3⅞ in; tail for 1 ft 9 in common overhang 2 ft 8⅞ in. Values rounded to ⅛ in.

Inputs: Rise per 12 run = 8; Span across outside wall faces = 7,925 mm; Actual ridge board thickness = 0 mm; Horizontal overhang beyond outside wall = 533.4 mm; the others as above.

ResultSourceThis calc
Hip / valley to theoretical intersection6,194 mm6,195 mm
Hip / valley theoretical tail extension835 ± 1.6 mm834 mm

Swanson: 6:12 pitch conversion

Source: Swanson Tool Co., Roof pitch reference, 6/12 entry: 26.57°, 50%, rafter multiplier ×1.118. https://swansontoolco.com/learn/pitch

Inputs: the default inputs above.

ResultSourceThis calc
Roof angle26.57 deg26.565 deg
Slope percent (numeric percent)5050
Common rafter slope multiplier1.1181.118

JLC 2013: ridge top includes the height above plate

Source: Tim Uhler, Framing a Hip Roof, JLC September 2013, printed p.59 / attached p.3. Span 20 ft, ridge 3 in, pitch 6:12, depth 11¼ in and rounded seat 3⅛ in. Published HAP 11 in and ridge top 5 ft 10¼ in. Exact geometry of the rounded seat gives HAP 11.0154 in and ridge height 70.2654 in, 0.391 mm higher. Tolerance covers this explicit rounding. Checks the un-dropped ridge-board top; excludes the author's subsequent 1 in ventilation drop.

Inputs: Ridge top above plate = yes; Compare a measured ridge / solve its pitch = yes; Span across outside wall faces = 6,096 mm; Actual ridge board thickness = 76.2 mm; Actual common rafter depth = 285.8 mm; Horizontal birdsmouth seat length = 79.375 mm; Measured ridge-board top above plate = 1,784 mm; the others as above.

ResultSourceThis calc
H · Height above plate279.4 ± 0.8 mm279.8 mm
Design ridge-board top above plate1,784 mm1,785 mm
Fixed ridge · rise per 12 run65.998

JLC 2013: adjusted run and pitch-line rise

Source: Tim Uhler, Framing a Hip Roof, JLC September 2013, p.59 / attached p.3: adjusted run 9 ft 10½ in and theoretical rise 4 ft 11¼ in at the published 6:12 pitch. The 6:12 pitch is named on attached p.2 and is the independent expected value.

Inputs: Measured rise and run = yes; Horizontal run between those points = 3,010 mm; Measured rise on one slope = 1,505 mm; the others as above.

ResultSourceThis calc
Measured rise per 12 run66

Related Resources

Responses

Your email address will not be published. Required fields are marked *

L ading...