Rafter Length Calculator
Cutting a common rafter starts with one critical measurement. That measurement is the true length along the slope. This calculator finds it from four everyday inputs. You enter the total span of the building. You add the roof pitch as rise over twelve. Overhang and ridge thickness complete the picture. The result arrives in both feet and inches. Guesswork at the saw bench wastes expensive lumber fast. A short rafter cannot be stretched after cutting. A long one at least allows a second trim. Getting the line length right first time saves both. The tool suits carpenters, roofers and confident self builders. It also helps students learning roof framing math.
The Geometry Behind Rafter Length
A common rafter forms the hypotenuse of a right triangle. One side runs horizontally and is called the run. Another side rises vertically as the total rise of the roof. The rafter itself slopes between those two sides. Its length therefore exceeds the horizontal run always. Steeper pitches stretch the rafter further beyond the run. Shallow pitches add only a modest extra length. Pythagoras links the three sides with a classic rule. Carpenters have used that rule for centuries on site. Modern calculators simply apply it without manual square roots. Understanding the triangle helps you sanity check results. If a result is shorter than the run, something is wrong. That simple check catches most input mistakes early. Framers often write the length on the ridge board itself. Gang cutting stacked rafters speeds work once the pattern is proven. Keep the pattern rafter separate so it never gets installed accidentally.
Span, Run and the Half Rule
Span means the full width the roof must cross. Most gable roofs split that width into two slopes. Each slope covers half the total building span. So the run for one rafter equals half the span. A 24 foot span gives each rafter a 12 foot run. Ridge boards sit between the two sloping sides. Half the ridge thickness comes off the run too. Each rafter effectively starts at the ridge center line. Deducting half the board keeps the peak geometry exact. Skipping that deduction leaves rafters slightly too long. The error grows with thicker ridge boards. This calculator deducts the half thickness automatically for you. Enter the full span, never a pre-halved figure. A sharp pencil line improves cutting accuracy noticeably on site. Keep offcuts sorted, since blocking often uses the same stock. Rain swollen boards can measure a fraction longer when checked.
Pitch and the Slope Factor
Pitch describes how steeply the roof climbs. It is written as rise over a twelve inch run. A 6 over 12 pitch rises six inches per foot. Carpenters convert pitch into a slope factor for length. The factor equals the rafter length per foot of run. Mathematically it is the square root of 144 plus rise squared. That total is then divided by twelve for scale. A 6 pitch gives a factor near 1.1180. Multiply any run by the factor for slope length. A 12 pitch gives a factor near 1.4142 instead. Higher factors reveal how quickly steep roofs consume lumber. The calculator shows the factor used in your result. Checking it against printed rafter tables builds confidence. Moist lumber can shrink slightly as it dries after installation. Windy days make long rafter placement a two person job. Record final lengths on the plan set for future repair work.
Roof Angle in Degrees
Pitch can also be expressed as an angle. The angle comes from the arctangent of rise over twelve. A 6 over 12 pitch makes about 26.57 degrees. An 8 over 12 pitch makes about 33.69 degrees. Angles help when setting bevel gauges and saws. Many modern saws display degrees rather than pitch marks. Having both forms avoids conversion errors on site. The result panel includes the angle for this reason. It also helps when ordering factory made trusses. Suppliers often ask for pitch, angle or both together. One consistent set of figures keeps orders accurate. Record the angle beside the length on your cutting list. Rafter tables in framing books confirm these factors independently. Long rafters for steep roofs may need special delivery arrangements.
Why the Overhang Needs Slope Length
Eaves overhang is usually specified as a horizontal distance. That is the distance the eave projects past the wall. But the rafter travels along the slope, not horizontally. So the overhang portion is longer than its horizontal measure. The same slope factor converts it correctly. Twelve horizontal inches at 6 pitch become 13.42 sloped inches. Forgetting that conversion leaves eaves shorter than planned. Short eaves reduce weather protection for walls below. They also change the intended shadow line of the building. This calculator adds the sloped overhang automatically. Enter the horizontal overhang as drawn on your plans. The tail cut allowance remains a separate site decision. Most framers add a little extra for final trimming. Photographing the first fitted rafter helps remote plan checks. A plumb bob helps transfer ridge marks accurately on site.
Ridge Board Deductions in Practice
Two rafters meet at the ridge board on gable roofs. The board itself occupies space at the peak. Standard ridge stock is often 1.5 inches thick. Each rafter run shortens by half that thickness. On paper the deduction looks tiny and easy to skip. Across a full roof it decides whether peaks align. Misaligned peaks create wavy ridge lines later. Roofers notice such waves when laying the covering. This calculator asks for the ridge thickness directly. Enter zero only for designs without a ridge board. Structural ridge beams can be far thicker than boards. Use the true beam thickness in those designs instead. Your engineer drawings state the correct dimension clearly. Consistent overhangs keep gutter lines straight across the facade. Chalk lines fade quickly outdoors, so cut soon after marking.
Line Length Versus Board Length
The calculated figure is the theoretical line length. It runs from ridge center to the tail end. Real boards need small practical additions around it. The plumb cut at the peak follows the ridge angle. The seat cut at the wall removes a corner notch. Those cuts shape ends without changing overall line length. Framers often order the next standard board length up. That gives room for layout marks and trimming. A result of 14.46 feet suggests a 16 foot board. Ordering exact lengths risks boards arriving slightly short. Lumber also varies a little between individual pieces. Keep the line length as your marking reference always. Cuts then follow from one trusted number. Some builders add a small tail allowance for fascia alignment. Two framers checking one measurement catch most arithmetic slips early.
Common Rafters Versus Hip and Jack Rafters
This calculator covers common rafters only. Common rafters run straight from ridge to wall plate. They all share the same length on a simple gable roof. Hip roofs add diagonal hip rafters at the corners. Jack rafters then fill between hips and eaves at angles. Those pieces need different lengths and compound cuts. Their math builds on the common rafter as a base. Knowing the common length is still the first step. It sets the scale for every other roof member. Gable roofs on houses, garages and sheds use commons throughout. If your design is a plain gable, this tool fits fully. For hips and valleys, move to specialized calculations next. Carpenters treat the common rafter as the roof master pattern. Steep pitches demand extra care when handling long boards overhead. Fascia boards hide minor tail differences, but length errors show.
Working From Plans Versus Measuring a Roof
Plans state the intended span and pitch directly. Reading them avoids climbing before the design stage ends. Existing roofs sometimes lack surviving plans, though. Then the span comes from measuring the building walls. Measure outside wall to outside wall for the full span. Pitch can be measured in the attic with a level. Rest the level on a rafter and mark twelve inches. Then measure the vertical rise at that mark point. That gives rise over twelve without roof climbing. Old buildings may have settled or irregular framing. Measure at several points and expect small variations. Use the most consistent figures for your calculation. A test rafter remains wise on renovation projects especially. Marking both faces of the board prevents mirrored cutting errors. Metal connector plates at the ridge follow the same pitch angle.
How to Use the Rafter Length Calculator
Gather the span and pitch from your plans first. Ridge thickness and planned overhang complete the inputs. Then follow these steps.
- Measure or read the total building span in feet.
- Type the full span into the first box provided.
- Enter the roof pitch as rise per twelve inches.
- Add the horizontal eaves overhang in inches next.
- Enter the ridge board thickness in inches as well.
- Press the Calculate button to reveal the rafter length.
- Note the length in feet and inches for cutting.
- Check the roof angle for setting your saw bevel.
- Use Reset before working through a different roof design.
Worked Example 1: A 24 Foot Span at 6 Pitch
Inputs
A garage roof spans 24 feet in total. Pitch is 6 over 12, a very common choice. Eaves overhang measures 12 inches horizontally. The ridge board is a standard 1.5 inches thick.
Calculation
Half the span is 12 feet, minus 0.06 feet for half the ridge. That leaves a run of 11.94 feet for the rafter. The slope factor for 6 pitch is 1.1180. Base length equals 11.94 times 1.1180, giving 13.35 feet. The overhang adds 1 times 1.1180, which is 1.12 feet.
Result
Total rafter length comes to 14.46 feet overall. In inches that equals 173.57 inches of line length. The roof angle reads 26.57 degrees for saw settings. A 16 foot board covers this rafter comfortably.
Worked Example 2: A 30 Foot Span at 8 Pitch
Inputs
A house roof spans 30 feet across the building. The design pitch rises 8 inches per twelve of run. Planned overhang reaches 18 inches past the wall. The ridge board again measures 1.5 inches thick.
Calculation
Half the span gives 15 feet, minus the ridge share. The working run is therefore 14.94 feet here. Slope factor for 8 pitch works out to 1.2019. Base length equals 14.94 times 1.2019, giving 17.95 feet. The overhang adds 1.5 times 1.2019, or 1.80 feet.
Result
The total rafter length is 19.76 feet here. That equals 237.06 inches along the slope. The roof angle comes out at 33.69 degrees. Boards of 20 feet would leave almost no trimming room.
Practical Tips for Cutting Accurate Rafters
- Always enter the full span, never half of it.
- Confirm pitch from plans instead of guessing from appearance.
- Cut one test rafter and dry fit it before batch cutting.
- Mark the line length on the board top edge first.
- Order the next standard board length above the result.
- Recheck ridge thickness when plans switch to a beam.
- Keep a printed rafter table nearby as a cross check.
Frequently Asked Questions
These answers explain common rafter length questions. They cover span, pitch and cutting practice. Always follow local codes and engineered designs for structural work.
Span and Pitch Basics
1. What is the difference between span and run?
Span is the full width of the building. Run is half of that width for one slope. Each common rafter works from the run value. This calculator halves the span internally already.
2. How do I find my roof pitch?
Measure vertical rise over twelve horizontal inches. A level and tape on the roof surface works. Plans and truss drawings also state the pitch. Attic access sometimes gives the easiest measurement point.
3. What pitch suits most houses?
Pitches between 4 and 9 over 12 are common. Snowy regions lean toward the steeper end. Shallow pitches need suitable covering materials too. Local climate and style shape the choice.
4. Does pitch change the number of rafters?
Pitch changes rafter length, not rafter count directly. Count depends on building length and spacing instead. Steeper pitches do raise material weight slightly. Length and count answer different planning questions.
5. Can I use this for a shed roof?
A single slope roof uses its full span as run. This tool assumes two slopes meeting at a ridge. For shed roofs, use dedicated single slope methods. The geometry differs at the top support.
Overhangs and Ridge Details
6. Should overhang be measured horizontally or along the slope?
Plans almost always state overhang as horizontal projection. Enter that horizontal figure in the calculator here. The tool converts it to slope length automatically. Entering slope length would double count the pitch effect.
7. What ridge thickness should I enter?
Enter the actual thickness of your ridge member. Standard boards measure about 1.5 inches thick. Engineered beams can measure several inches instead. Check the drawing for the specified member size.
8. What if my design has no ridge board?
Enter zero for the ridge thickness value. Some designs meet rafters with metal connectors instead. Others use a structural beam counted separately. Zero removes the deduction from the run.
9. How much extra length should I order?
Order the next standard board size above the result. That leaves room for cuts and minor defects. Most yards stock even foot lengths for framing. Extra offcuts often serve elsewhere on site.
10. What is a birdsmouth cut?
It is the notch that seats the rafter on the wall. The notch has a horizontal seat and vertical heel. Its depth follows code limits for the board. The cut shapes support without changing line length.
Cutting and Checking
11. Why dry fit the first rafter?
A test rafter proves the math on real lumber. It reveals layout or input errors before batch cutting. Adjustments then cost one board, not dozens. Professionals treat the first piece as a pattern.
12. What saw angle does the roof angle set?
Plumb cuts follow the roof angle from vertical layout lines. Saw settings depend on your marking method used. The calculator reports the pitch angle in degrees. Match it carefully when setting bevel gauges.
13. Can I check the result with a framing square?
Yes, step off the run and rise along the board. Traditional stepping reproduces the same slope length physically. It is slower but excellent for verification. Both methods should agree within a small tolerance.
14. What happens if I enter span in inches?
The result would be wildly wrong and obvious. Span belongs in feet in this calculator. Overhang and ridge values belong in inches. Keep each unit in its labeled box.
15. Does this replace engineered roof design?
No, it calculates geometry length only. Loads, lumber grades and connections need proper design. Building codes govern structural adequacy in your area. Consult an engineer for anything beyond standard spans.
CONCLUSION
Rafter length follows from simple, reliable geometry. Halve the span, deduct half the ridge, then apply the slope factor. Add the sloped overhang to complete the line length. The calculator performs each step instantly and shows its workings. Check the factor and angle in the results for confidence. Cut one pattern rafter first, then proceed with the full set.
