Rafter Length Calculator – Common, Hip & Valley Rafters Explained
Cutting rafters accurately is one of the key skills in roof framing. The Rafter Length Calculator from MyTimeCalculator helps you turn building span, pitch and overhang into usable dimensions, so you can double-check layout math or visualize how roof geometry changes as you adjust the design.
The calculator uses right-triangle trigonometry, treating each rafter as the hypotenuse of a triangle with a horizontal run and vertical rise. By entering span and pitch, you can compute the sloping rafter length, roof rise and cut angles without digging through tables or reference books.
1. Mode A – Simple Common Rafter Length
The Simple Common Rafter tab focuses on the most common scenario: a symmetrical gable roof where the building span, pitch and overhang are known. Behind the scenes, the calculator:
- Computes the run as half of the building span.
- Uses pitch (rise per 12) to find the total rise over that run.
- Applies the Pythagorean theorem to get rafter length from wall to ridge.
- Converts the horizontal overhang into a rafter tail length along the slope.
- Adds core length and tail length to give the total rafter length.
The mode also reports the plumb cut angle at the ridge in degrees. This is the angle you would set on a miter saw or layout square for the vertical cut at the top of the rafter.
2. Mode B – Hip & Valley Rafter Geometry
Roofs with hips and valleys use rafters that run diagonally in plan view. These hip and valley rafters are longer than common rafters with the same pitch because their horizontal run is measured along a diagonal across the building footprint.
The Hip & Valley tab takes building width and length, plus pitch and overhang, and:
- Computes the common rafter run as half the width.
- Derives the hip plan run from corner to ridge using diagonal geometry.
- Calculates common rafter length and hip/valley rafter length.
- Estimates the number of common rafters along the length using your chosen spacing.
- Approximates the number of jack rafters running into each hip.
For real-world roofs with dormers, intersecting hips or complex layouts, this mode gives a useful starting point, but you should always refine counts and lengths to match your plans and local code details.
3. Mode C – Pro Framing Layout
Professional framers often need to adjust rafter layout for ridge board thickness and birdsmouth cuts. The Pro Framing Layout tab introduces these details while keeping the math readable:
- The run is shortened by half the ridge board thickness so that rafters bear correctly against the ridge.
- The calculator finds the rise to the top of the ridge using the adjusted run and pitch.
- It computes rafter length from plate to ridge plus a sloping tail based on overhang.
- It reports the plumb cut angle and corresponding level (seat) cut angle.
- It uses birdsmouth seat depth as an input to approximate heel height.
This mode is intended as a framing helper and cross-check. It does not replace engineered drawings or the details shown on project plans, but it can help you sanity-check numbers or translate design pitch into practical layout angles.
4. How Rafter Length is Calculated from Span and Pitch
The core of all three modes is the right triangle formed by run, rise and rafter length. If the building span is S and the roof is symmetrical, the run is S/2. With pitch specified as R per 12 units of run (for example 6:12), the rise over that run is:
The common rafter length from wall to ridge is then:
Overhang is converted to a sloping tail length using a rafter factor based on pitch. For each 12" of horizontal run, the rafter length increases by √(12² + Pitch²), so a given horizontal overhang is multiplied by the same factor per foot of run.
5. Understanding Plumb and Level Cut Angles
The plumb cut angle is the angle between the top edge of the rafter and a vertical line. In trigonometric terms, it is:
The seat (level) cut angle for the birdsmouth is simply 90° minus the plumb angle. Reporting both angles makes it easier to set saws or framing squares, especially if you are checking a pitch that is not listed on a printed framing square.
6. Practical Tips for Using the Rafter Length Calculator
- Use the Simple Common Rafter tab first to get a feel for how pitch and span affect rafter length and roof rise.
- Switch to Hip & Valley Geometry when you have a hip roof or want to estimate how many common and jack rafters you will need for a basic layout.
- Move to the Pro Framing Layout tab when you want framing-friendly outputs that incorporate ridge thickness, birdsmouth seat depth and cut angles.
- Always compare calculator outputs with your plans, building codes and manufacturer requirements before ordering lumber or cutting rafters in bulk.
- For structural questions such as rafter sizing, deflection limits or load capacity, consult a qualified engineer or your local building authority.
Related Tools from MyTimeCalculator
Rafter Length Calculator FAQs
Frequently Asked Questions
Quick answers to common questions about using span, pitch, overhang and ridge thickness to compute rafter lengths and cut angles.
For a simple gable roof you usually need the building span (outside to outside), the roof pitch (rise per 12 of run) and the overhang. From these, the calculator finds the half-span run, roof rise and rafter length using the Pythagorean theorem, and converts horizontal overhang into a tail length along the rafter.
Hip and valley rafters run diagonally in plan view. The calculator finds the diagonal run from a corner to the ridge using the building width and length, then applies the same pitch to compute a sloping length. The result is an approximation for simple hip roofs. Complex roofs with multiple hips, valleys or dormers should be checked against detailed drawings or layout methods used by experienced framers.
When you add a ridge board, the theoretical meeting point of two rafters shifts by half the ridge thickness. Adjusting the run for this thickness changes the rafter length slightly. Birdsmouth seat depth affects how high the rafter sits above the wall plate, which is reflected in the heel height. Including these values in the calculation produces numbers that better match the pieces you actually cut on site.
No. The Rafter Length Calculator focuses on geometry: runs, rises, lengths and angles. It does not check loads, allowable spans, deflection or fastening requirements. For code compliance and structural safety you should use span tables provided by your building authority, manufacturer documentation or a licensed engineer, then use the calculator to help visualize and verify geometric dimensions only.
For simple gable and basic hip roofs the geometry used is standard and matches common framing methods. For roofs with multiple hips, valleys, dormers or irregular shapes, the calculator still provides useful approximations, but it cannot see every detail of the design. Use it for planning and cross-checking, and rely on your plans, layout lines and local expertise to finalize lengths and counts for complex projects.
The current version assumes feet and inches for inputs and outputs. You can still use it with metric projects by converting dimensions to feet before entering them, then converting the results back to millimeters or meters as needed. A future version may include a dedicated unit switch between imperial and metric systems.