Rafter Length, Explained: Span, Run, Overhang and What to Buy
By the RoofPitchIQ Team · Last updated December 5, 2026
Before you order a single board, you need to know how long each rafter must be — and that length comes from a right triangle you already know. Look at the roof from the side and you see a right triangle: run along the bottom, rise going up, rafter sloping between them. It is calculated by ‘the square root of ((run)² + (rise)²)’ and this is used to establish what size of lumber is needed. While the equation is straightforward and has been so for 2000 years (it is Pythagoras’ theorem), the terminology can be unclear. This article clarifies terms including: span, run, rise, overhang, birdsmouth and ridge cut. Finally it shows how to use this information and concludes with a simple principle for ordering lumber – always round up to the next available size. Rafter lengths cannot be extended, so must be ordered correctly. However, if a rafter is too long it can then be trimmed.
Span, run and rise, defined once
Span is the total distance from wall to wall. On a gable roof the run is half the width of the house, so a home 28 feet across gives a 14-foot run. Rise is the vertical height that the roof reaches above the run. Pitch is rise per 12 inches of run. There is no ridge on a shed roof, which only has a single slope so here the run equals the span. As with the equations, firstly record the values for span, run and rise and then ensure that you are clear about which value is required by an equation. Most commonly people incorrectly substitute span in for run. This in effect doubles both the rafter length and order. The second most common mistake is not recognizing that the rise is not the distance from the floor to the ridge, but rather the distance from the wall plate to the ridge.
The formula, and why it is Pythagoras
As explained above, the rafter is the hypotenuse of a right-angled triangle comprising of the run and rise. Square the run, square the rise, add those two numbers, and the square root of the total is your rafter length. With a 14-foot run at 6:12, the rise works out at 7 feet: 14 squared is 196, 7 squared is 49, and the square root of 245 is 15.65 feet. Irrespective of whether the roof is gable, hip or shed in style, this equation will work provided that the run and rise values are correct. There is a shortcut. Every pitch has a multiplier, and the run times the multiplier gives the same answer: at 6:12 the multiplier is 1.118, and 14 times 1.118 is 15.65 feet. The multiplier is in fact the square root of (1 + (rise/run)²). Again, whichever method is most convenient can be used as both are mathematically equivalent since they relate to the identical right-angled triangle. The equation used by the calculator on this website is also based on this principle and so can be used to confirm manual calculations.
Overhang: add it to the run, not to the rafter
Overhang is the eave, which is the section of roof extending beyond the walls. Unlike the rafter itself, it is not added onto the rafter length but rather onto the run. Do not forget the eaves. The board must reach past the wall, so add the overhang to the run before you multiply. A 1-foot overhang turns the 14-foot run into 15 feet, and the rafter becomes 16.77 feet. There is a noticeable difference in rafter length depending on whether the run is 14ft or 15ft. At 6:12, this produces a rafter of 15.65ft or 16.77ft. Consequently, boards must change from 16ft to 18ft. Clearly then, it is good practice to calculate the required rafter length prior to travelling to the lumber yard. Include the overhang measurement on your order so that both the supplier and carpenter have the correct information.
Cuts: birdsmouth and ridge
Alongside the theoretical rafter length, a rafter is then reduced in length to accommodate for the birdsmouth (the cut which enables the rafter to sit on the wall plate) and ridge (where the rafter connects to the ridge board) cuts. The carpenter makes these reductions. Therefore, again, it is the theoretical rafter length which is used as the basis for calculation. Boards must then be purchased in slightly larger sizes than this theoretical length so that, even after the above cuts have been made, there is still sufficient rafter. Boards of exactly the theoretical length will not be long enough and cannot be rectified. Purchase the next size up and allow the carpenter to cut the board to the necessary size.
What to buy: standard lengths
Boards are available in standard sizes of 12, 14, 16, 18, 20, 22 and 24ft. Add the overhang to the run before you calculate the rafter length, then round up to the next standard board size. For instance, theoretical rafter lengths of 15.65ft and 16.77ft would require 16ft and 18ft boards respectively. Although it may seem prudent to purchase a larger board than is required, this is unnecessary as it constitutes a waste of money. Likewise, although it may appear that a smaller board can be made to work through cutting, it cannot. Again, it is best to purchase the next standard size up as this will be the most economically viable option which is still large enough.
Hip and valley rafters: longer, and different
Hip and valley rafters are longer than common rafters as they slope across the roof as opposed to up it. As a hip rafter spans the same rise but a greater horizontal distance, it is calculated using Pythagoras’ theorem (square root of rise squared plus diagonal run squared). As the diagonal run is longer than the common run, so too is the hip rafter. This site provides a calculator for common rafters. Hip and valley rafters must however be calculated separately. For a regular hip, the multiplying factor is equal to the square root of the pitch squared plus 288, divided by 12. Should a roof include hips and/or valleys, request that the roofer or framer carries out separate calculations for these rafters. Do not purchase common rafter sized boards as they will then be too small.
Worked example
Span – 28ft. Pitch – 6:12. Roof type – gable. Overhang – 1ft. Run = 14ft + 1ft = 15ft. Rise = (15 x 6)/12 = 7.5ft. Rafter length = square root of (15 squared + 7.5 squared) = 16.77ft. Therefore, 18ft boards should be purchased.
Key takeaways
Always record the pitch (in addition to its equivalent in degrees and percentage) as this is the first item of information which will be requested by subsequent roofers. Take two separate measurements and rely on the consistent result. Refer to the IRC table to identify minimum material requirements prior to placing an order. Multiply to establish an area and then include waste. Again, round up rafter lengths to the next suitable standard size. As a roofing system, it is essential that all components (pitch, material, flashing, ventilation and drainage) are compatible. Even if a specific value is correct in isolation, it may prove incorrect if the other elements of the system are not in harmony. This site’s calculator and chart are tools to confirm your calculations. Input your information, analyze your results and then cross reference these with the roofer’s quotation. Investigate any discrepancies.
What to do next
Initially utilize the calculator. Enter the measured run and rise values to determine the pitch, angle, percentage slope, multiplying factor and rafter length. Next, employ the estimator to establish area and number of squares. Finally, refer to the chart to confirm these values correspond with those detailed in the table. Where a re-roof is taking place, request 2-3 written quotes. Supply all roofers with identical pitch and area information and analyze quotations item by item. Should a roof be in disrepair or if its pitch is being altered, consult a qualified roofer or structural engineer prior to purchasing. In addition, investigate the local building code to identify relevant regulations for the house’s location.
Frequently asked questions
How do I get the number fast?
Add the overhang to the run, then times it by the multiplier for your pitch.
Which board size should I order?
The first standard size above the length you worked out — 12, 14, 16, 18, 20, 22 or 24 feet.
Does the overhang go in before or after the maths?
Before — fold it into the run first, then multiply.