Rafter Length Calculator: Common, Hip, and Valley Rafters
Calculate Rafter Lengths, Bird's Mouth Cuts, Ridge Height, and Roof Area from Pitch and Span
Free rafter length calculator for framers, carpenters, and roofing contractors. Enter roof pitch, building span, and overhang to calculate rafter length for common, hip, and valley rafters. Shows bird's mouth cut dimensions, ridge height, and total roof area with slope factor applied for material ordering.
Every rafter starts with the unit length: how many inches of rafter per foot of run. For a common rafter, it is the square root of (rise squared + 144). For a hip or valley, it is the square root of (rise squared + 288) because the rafter runs diagonally across a 45-degree plan angle. Get this number right and the rest is multiplication. Get it wrong and your ridge will not line up with your walls.
Calculate roofing material quantities from roof area
Roofing Material Calculator →Calculate stair stringer layout and cuts
Stair Stringer Calculator →Check beam deflection for ridge beams and headers
Beam Deflection Calculator →Calculate snow load on pole barn roofs
Pole Barn Snow Load Calculator →How It Works
-
Enter Roof Parameters
Input roof pitch (rise per 12 inches of run), building span (total width), and eave overhang. Select rafter type: common, hip, or valley.
-
Calculate Unit Length
Common rafter unit length = sqrt(rise-squared + 144) inches per foot of run. Hip/valley unit length = sqrt(rise-squared + 288) because they run at 45 degrees in plan.
-
Determine Total Length
Multiply unit length by run in feet (half the span for common rafters). Add overhang length. Subtract half the ridge board thickness measured along the slope.
-
Review Cuts and Area
See bird's mouth cut dimensions (seat cut depth and plumb cut height) for the plate connection. Total roof area uses the slope factor times plan area for material ordering.
Built For
- Framers cutting common rafters for a gable roof and marking plumb and seat cuts
- Carpenters calculating hip rafter length for a hip roof addition
- Roofing contractors converting flat roof area to sloped area for shingle and underlayment ordering
- Timber frame builders determining rafter lengths for post-and-beam structures
- Home inspectors checking whether existing rafters are properly sized for the span
- Shed builders calculating simple rafter layouts for small outbuilding roofs
- Estimators figuring total roof area for bid proposals on re-roofing jobs
Features & Capabilities
Common, Hip, and Valley Types
Calculates unit length and total length for all three rafter types. Hip and valley use the diagonal factor of 16.97 inches per foot.
Bird's Mouth Cut Dimensions
Shows seat cut depth and plumb cut height for the rafter-to-plate connection. Seat cut should not exceed one-third of rafter depth.
Ridge Height Output
Calculates ridge height above the top plate. Accounts for HAP (height above plate at the bird's mouth).
Slope Factor for Roof Area
Converts plan area to actual sloped area using sqrt(pitch-squared + 144) / 12. A 6/12 pitch adds 11.8% to the plan area.
Overhang and Ridge Adjustment
Adds overhang length to the rafter and subtracts the ridge reduction. Both measured along the slope, not horizontally.
PDF Export
Export rafter layout as a branded PDF for job site reference or material ordering.
Assumptions
- Roof framing is conventional stick-built with a ridge board (not a ridge beam or structural ridge).
- Common rafter unit length uses sqrt(rise-squared + 144); hip/valley uses sqrt(rise-squared + 288).
- Bird's mouth seat cut does not exceed one-third of the rafter depth per standard framing practice.
- Overhang is measured horizontally from the outside face of the wall to the fascia line.
Limitations
- Does not perform structural analysis of rafter size, spacing, or species/grade for the given span and loads.
- Compound hip and valley roof intersections with unequal pitches are not calculated.
- Jack rafter lengths (common jacks off a hip or valley) are not individually computed.
- Does not account for dropped or raised plate conditions at different wall heights.
References
- IRC Section R802 — Wood Roof Framing (span tables and construction requirements)
- Carpentry and Building Construction, 6th Edition — Rafter Layout Methods
- Machinery's Handbook — Right Triangle Calculations (unit length derivation)
- Larry Haun — The Very Efficient Carpenter (practical rafter cutting techniques)
Frequently Asked Questions
Learn More
Rafter Framing: Common, Hip, and Valley Rafter Calculations
How to calculate rafter lengths for common, hip, and valley rafters. Unit run/rise, bird's mouth cuts, rafter tails, and roof area estimation.
Roofing Material Estimation: Squares, Slope Factor, and Waste Allowance
How to estimate roofing materials for shingles and metal panels. Slope factor, squares, bundles, underlayment, ice and water shield, and waste allowance.
Related Tools
Shop Heater BTU Sizing Calculator
Calculate the exact BTU output your shop or garage heater needs. Factors in wall R-values, ceiling insulation, slab edge loss, overhead door infiltration, and air changes per hour to size propane, natural gas, and electric heaters correctly.
Overhead Door Infiltration Loss Calculator
Calculate heat loss through overhead doors in shops, garages, and warehouses. Compares open-door vs closed-door losses, seal condition impact, and annual cost of infiltration with payback on door seals and high-speed doors.
Long-Run Voltage Drop Calculator
Calculate voltage drop for long wire runs to detached shops, barns, garages, and outbuildings. Compares copper vs aluminum, shows motor starting voltage impact, and recommends the right wire size for your distance and load.