Rafter Length Calculator
Enter your building span, roof pitch, and overhang to get exact rafter length and birdsmouth notch dimensions. The cross-section diagram updates as you type - print it or screenshot it for the build. Nothing uploaded.
Building Span
Roof Pitch
Overhang
mm beyond wall
Rafter Size
Ridge Board Thickness
mm (0 for no ridge board)
Results
Full cut details
Cross-Section Diagram
Learn more: rafter length and the birdsmouth notch
Rafter length from pitch
Wikipedia's roof pitch article describes pitch as a rise over a horizontal run, such as 4:12 for 4 units of rise per 12 of run, or as an angle from the horizontal. The tool takes pitch as rise:run, degrees or percent slope and converts all three to rise:run.
The rafter's run is half the span, minus half the ridge board thickness. The length is the run times the pitch factor, sqrt(rise squared + run squared) / run. At 4:12 the factor is 1.054, so a 6000 mm span with no ridge board has a run of 3000 mm and a rafter 3,162 mm long. A 400 mm overhang adds to the cut length, which becomes 3,584 mm.
The birdsmouth
The birdsmouth is the notch where the rafter sits on the wall plate. Cutting it removes wood at the point where the rafter carries load, so the notch depth is capped as a fraction of the rafter depth. The tool uses one third and shows the notch at that limit. Codes differ, and some are stricter, so check the one that applies to you.
The notch depth is measured square to the rafter's lower edge. The tool works out the vertical plumb cut as depth / cos(angle) and the horizontal seat as depth / sin(angle). For a 147 mm deep rafter at 4:12 (18.43 degrees) the limit is 49 mm, which gives a plumb cut of 51.7 mm and a seat of 155 mm. At 6:12 (26.57 degrees) the seat is 109.6 mm and the plumb cut 54.8 mm.
That shows why shallow roofs are awkward. At low pitch a notch at the limit has a long seat, which can be wider than the wall plate. If it is, make the notch shallower, so that the seat matches the plate, and keep it within your code's limit.
FAQ
Does a steeper pitch mean a longer rafter?
For the same run, yes, because the pitch factor grows with the rise. At 4:12 it is 1.054 and at 6:12 it is 1.118.
Does it handle hip and valley rafters?
No. It gives the length of a common rafter running square to the ridge. Hips and valleys run on a diagonal and need a different run.
Why are rafter length and total length separate?
The overhang extends past the wall plate to form the eave, so it adds to the cut length. It does not change the bearing or the birdsmouth.
Link to this tool
Sharing or citing this calculator? Copy a link in the format you need. You're free to quote and cite anything on this page.
https://bentoutils.com/apps/rafter-length-calculator/<a href="https://bentoutils.com/apps/rafter-length-calculator/">Rafter Length Calculator</a>[Rafter Length Calculator](https://bentoutils.com/apps/rafter-length-calculator/)Rafter Length Calculator. BentoUtils. October 1, 2026. https://bentoutils.com/apps/rafter-length-calculator/