Canada version. Uses Canadian 2x lumber in feet and inches and checks the cuts against the NBC Part 9 rules on rafter bearing, hip rafter depth and ridge support; spans come from the NBC span tables. US version

Rafter Calculator (Canada)

Common rafter length, plumb and seat cuts and birdsmouth for Canadian 2x lumber at 16 or 24 in centres, with the NBC Part 9 bearing, hip and ridge rules.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Rafter Calculator?

Canadian roofs are still framed in feet and inches: 2x8 and 2x10 rafters at 16 or 24 in centres, sitting on a 2x4 or 2x6 wall. The National Building Code of Canada writes those spacings as 400 and 600 mm; its Appendix D notes that the 16 and 24 in stud spacings were converted to 400 and 600 mm and that the equivalent imperial dimensions are permitted, so plans in either unit describe the same layout.

For a 24 ft span at 8/12 with a 1-1/2 in ridge board, 16 in of level overhang and 2x10 rafters seated on a 2x6 wall, each rafter is 15' 11-3/8" and a 36 ft roof takes 28 a side. The birdsmouth notch is 3-1/16 in, 33% of the 9-1/4 in depth, right at the one-third rule of thumb.

Size and spacing are not chosen here. NBC Sentence 9.23.4.2.(1) sends rafters to the span tables, with Table 9.23.4.2.-F for specified roof snow loads of 1.0 to 2.0 kPa and Table 9.23.4.2.-G for 2.5 and 3.0 kPa, so the snow load for your town decides whether a 2x10 at 16 in will do.

  • Span or run input in feet-inches with fractions, or millimetres and metres
  • Pitch as x/12 or degrees with live conversion
  • Ridge deduction, overhang tail, plumb and seat cut settings
  • Birdsmouth heel, notch depth, height above plate and a one-third depth check
  • Rafter count, hip and valley factors and a framing square table
Read the guide: Rafter Length, Roof Pitch and the Birdsmouth Cut, Worked Out

Updated

How to use the Rafter Calculator

  1. Keep the units on imperial and enter the span outside to outside of the wall plates.
  2. Enter the pitch as rise per 12, the ridge board thickness and the level overhang.
  3. Pick the rafter size and set the seat to the wall width: 3-1/2 in for 2x4, 5-1/2 in for 2x6.
  4. Enter the roof length and spacing to count rafters, then read the cut list and the birdsmouth check.

Worked examples

24 ft house roof at 8/12 with 2x10s

Input

24 ft span, 8/12, 1-1/2 in ridge, 16 in overhang, 2x10 (9-1/4 in), 5-1/2 in seat, 36 ft long at 16 in

Output

Rafter 15' 11-3/8"; plumb cut 33.69°; notch 3-1/16 in (33%); 56 rafters; buy 18 ft stock

A 3-1/2 in seat cuts the notch to 1-15/16 in (21%) and still gives far more than the 38 mm minimum end bearing in NBC Article 9.23.14.3.

Detached garage at 6/12 and 24 in centres

Input

22 ft span, 6/12, 1-1/2 in ridge, 12 in overhang, 2x8, 3-1/2 in seat, 24 ft long at 24 in

Output

Rafter 13' 4-3/16"; heel 1-3/4 in; 26 rafters; buy 14 ft stock

At 6/12 the roof slope is 1 in 2, steeper than the 1 in 3 at which NBC Sentence 9.23.14.8.(4) lets you leave out ridge support if the rafter feet are tied, for example by ceiling joists nailed to Table 9.23.14.8.

Hip rafter on the 8/12 roof

Input

24 ft span, 8/12, commons at 16 in

Output

Hip line length 18' 9-1/8"; hip pitch 25.24°; jacks step 19-1/4 in

NBC Article 9.23.14.6. wants hip and valley rafters at least 50 mm deeper than the commons. A 2x12 (286 mm) is 51 mm deeper than a 2x10 (235 mm), so it qualifies.

Background and insight

The slope factor sqrt(1 + (rise/12)²) converts any level distance into a distance along the rafter. It is the same number a framing square prints as "length of common rafter per foot of run": 13.42 in for 6/12 and 16.97 in for 12/12. For a regular hip roof, where both slopes share one pitch, the hip runs on the diagonal of a square, so its run is 16.97 in for every 12 in of common run and its length per foot is sqrt(288 + rise²), 18.00 in at 6/12. Jack rafters shorten by the spacing times the common slope factor, 17-7/8 in at 16 in centres on a 6/12 roof.

The ridge deduction is half the ridge thickness measured level, so it becomes 0.84 in along a 6/12 rafter for a 1-1/2 in ridge. Seat cut depth is limited in practice: the usual rule of thumb is to remove no more than a third of the rafter depth, and the IRC requires at least 1-1/2 in of bearing on wood (Section R802.6) and limits notches in sawn rafters. Rafter size and spacing for a given span come from the IRC R802 span tables or your local code.

Common use cases

  • Cutting a pattern rafter

    Get the plumb cut, seat cut and length to mark one rafter, test it on the building, then gang-cut the rest.

  • Ordering roof framing

    Count rafters and pick the stock length that covers the rafter plus the long point of the plumb cut.

  • Sheds, garages and porches

    Switch to shed mode for a single slope and use the run directly when the roof leans against a wall.

  • Checking hip and valley lengths

    Read the hip line length and jack rafter difference for a regular hip roof before laying out.

Tips and limitations

  • NBC Sentence 9.23.14.4.(1) has rafters directly opposite each other at the peak, or offset by their own thickness when nailed to a ridge board at least 17.5 mm thick.
  • Openings wider than two rafter spacings need doubled framing on each side (NBC Article 9.23.14.2.).
  • Ontario, British Columbia, Alberta and Quebec publish their own building codes based on the NBC; check the edition your municipality enforces.
  • Roofs built with engineered trusses are designed by the truss supplier; this calculator is for cut rafters on garages, additions, dormers and cottages.

Sources and further reading

  1. National Building Code of Canada 2025, National Research Council Canada. Division B, Articles 9.23.4.2., 9.23.5.2., 9.23.14.1. to 9.23.14.8. and Span Tables 9.23.4.2.-F and -G.
  2. Codes Canada publications, National Research Council Canada

Frequently asked questions

Which NBC span table do I use for rafters?

Span Table 9.23.4.2.-F covers specified roof snow loads of 1.0 to 2.0 kPa and Table 9.23.4.2.-G covers 2.5 and 3.0 kPa. Look up the snow load for your location in the NBC climatic data or ask your building department, then read the span for your species, grade, size and spacing.

How much bearing does a rafter need on the wall in Canada?

NBC Article 9.23.14.3. sets the end bearing of joists and rafters at not less than 38 mm, which is 1-1/2 in. A birdsmouth seated on most of a 2x4 or 2x6 plate gives much more than that.

Do I need a ridge beam?

NBC Article 9.23.14.8. asks for rafters to be supported at the ridge by a loadbearing wall or a ridge beam, except where the slope is 1 in 3 or steeper and the lower ends are tied against spreading, for example by ceiling joists. 4/12 is exactly 1 in 3.

How deep can a birdsmouth be?

Keeping the notch to a third of the rafter depth is the usual rule of thumb, and the calculator warns past it. NBC Sentence 9.23.5.2.(1) limits notches in roof framing members to one third of the depth, located on the top of the member near the bearing, so ask your inspector how they treat a seat cut.

What size hip rafter do I need?

At least 50 mm deeper than the common rafters and at least 38 mm thick (NBC Article 9.23.14.6.). With 2x8 commons that means a 2x10; with 2x10 commons, a 2x12.

How do you work out rafter length by hand?

Halve the span, take off half the ridge thickness, and multiply by the slope factor for the pitch: 1.2019 at 8/12, so 143-1/4 in of run becomes 14' 4-3/16" to the plate line. Add the overhang times the same factor for the tail.

Is there an in-depth guide to the Rafter Calculator?

Yes. “Rafter Length, Roof Pitch and the Birdsmouth Cut, Worked Out” covers the background, how it works, common pitfalls and worked examples. Read the full guide.