Skip to main content
Shops & Outbuildings Free Pro Features Available

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.

Pro Tip: Do not forget the ridge reduction. The rafter does not run all the way to the center of the building. It stops short by half the ridge board thickness, measured along the slope. For a 1.5-inch ridge board on a 6/12 pitch, the reduction is about 0.84 inches along the rafter. Miss this and every rafter is 3/4 inch too long, which pushes the ridge up and throws off your sheathing layout.

PREVIEW All Pro features are currently free for a limited time. No license key required.

Rafter Length Calculator

How It Works

  1. 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.

  2. 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.

  3. 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.

  4. 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

A bird's mouth is a notch cut into the bottom of a rafter where it sits on the wall top plate. It has two cuts: the seat cut (horizontal, rests on the plate) and the plumb cut (vertical, against the outside of the plate). The seat cut depth should not exceed one-third of rafter depth. The bird's mouth provides a stable bearing surface and prevents sliding.
A hip rafter runs diagonally from the corner to the ridge at 45 degrees in plan. Its run is longer than a common rafter by a factor of 1.414 (square root of 2). The unit length is sqrt(rise-squared + 288) inches per foot of common run. Multiply by common rafter run in feet to get the hip rafter length.
The slope factor converts flat area to sloped roof area. It equals sqrt(pitch-squared + 144) / 12. Common values: 4/12 = 1.054, 6/12 = 1.118, 8/12 = 1.202, 12/12 = 1.414. Multiply plan area by slope factor to get the actual sloped area for material ordering.
Rafter size depends on span, spacing, species, grade, and loads. Rough guide for number-2 SPF at 24 inch OC with 20 PSF live load: 2x6 spans about 10 ft, 2x8 about 13 ft, 2x10 about 16 ft, 2x12 about 20 ft. Always check IRC Table R802.4 for your specific conditions.
Ridge height above the top plate = (pitch / 12) x run, where run is half the building span minus half the ridge board thickness. Add wall height and HAP (the vertical distance from plate top to rafter top at the bird's mouth). The ridge board should be one size deeper than the rafters.
Disclaimer: Rafter length calculations are for layout and material estimation. Verify lumber sizes against IRC span tables or engineering calculations for your specific loads, species, and grade. Local building codes may have additional requirements.

Learn More

Shops & Outbuildings

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.

Shops & Outbuildings

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

Shops & Outbuildings Live

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.

Shops & Outbuildings Live

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.

Shops & Outbuildings Live

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.