Why Rafter Math Matters
Every piece of lumber in a roof frame depends on accurate rafter calculations. Cut a common rafter 3/4 inch too long and the tails overshoot the wall, pushing your fascia line out and misaligning the soffit. Cut it too short and the overhang falls short of the plan, leaving your eaves exposed. On hip and valley rafters — which can be 18 to 22 feet long — a miscalculated length means scrapping an expensive board and starting over.
This guide walks through the math behind common, hip, valley, and jack rafters with real worked examples. For instant calculations including birdsmouth cuts, overhang, ridge shortening, and a complete jack rafter cut list, use our free rafter calculator.
Understanding Roof Pitch
Roof pitch is expressed as the number of inches the roof rises for every 12 inches of horizontal run. A 6/12 pitch means 6 inches of rise per 12 inches of run, producing a roof angle of 26.57 degrees. Common residential pitches range from 4/12 (low slope, common on ranch-style homes) to 12/12 (45 degrees, a very steep roof). Pitches below 2/12 are considered flat and require special membrane roofing.
To measure an existing roof pitch from inside the attic:
- Hold a 2-foot level against the underside of a rafter, perfectly horizontal
- Measure 12 inches along the level from the lower end
- From that 12-inch mark, measure vertically up to the rafter
- That vertical distance in inches is your pitch (e.g., 6 inches = 6/12 pitch)
Alternatively, set a speed square on the rafter edge and read the pitch from the Common scale. For detailed pitch conversions between all formats, use our roof pitch calculator.
Types of Rafters
Common Rafters
Common rafters run perpendicular from the wall top plate to the ridge board at the full roof slope. They are the most basic roof framing member and the starting point for all rafter calculations. In a simple gable roof, common rafters are the only rafter type needed. Their length depends on three things: the run (half the building span), the pitch, and the ridge board thickness.
Hip Rafters
Hip rafters run diagonally from the ridge to an outside corner of the building. In plan view (looking straight down), a hip rafter travels at 45 degrees to the common rafters. This means its horizontal run is longer than the common rafter run by a factor of √2 (1.4142). Hip rafters are typically one or two sizes larger than common rafters (e.g., 2×10 hips with 2×8 commons) because they carry the load from jack rafters on both sides.
Valley Rafters
Valley rafters run diagonally from the ridge to the inside corner where two roof planes intersect. Geometrically they are the mirror image of hip rafters — same length formula, same √2 run adjustment, same compound angle cuts. The difference is that a valley creates a concave channel (where water collects and flows) rather than a convex ridge.
Jack Rafters
Jack rafters are shortened common rafters that terminate at a hip or valley rafter instead of running to the ridge. Hip jacks run from the wall plate up to the hip rafter. Valley jacks run from the ridge down to the valley rafter. All jacks on one side of a hip or valley are equally spaced and decrease in length by a constant increment. Each jack requires a compound angle cut (cheek cut) where it meets the hip or valley.
Calculating Common Rafter Length
The common rafter length calculation follows these steps:
- Determine the run: Measure the building span (outside wall to outside wall) and divide by 2. For a 28-foot wide building: run = 14 feet = 168 inches.
- Calculate the slope multiplier: For any pitch P/12, the multiplier is √(1 + (P/12)²). For an 8/12 pitch: √(1 + 0.667²) = √1.444 = 1.2019.
- Multiply run by slope multiplier: 168" × 1.2019 = 201.92" = 16'9-15/16".
- Subtract ridge shortening: Deduct half the ridge board thickness from the rafter length. For a 2× ridge (1.5" actual): deduct 3/4". Adjusted length: 201.17".
- Add overhang: Multiply the overhang distance by the slope multiplier. For a 12" overhang at 8/12: 12" × 1.2019 = 14.42".
- Total rafter stock needed: 201.17 + 14.42 = 215.59" (approximately 18 feet). Order 18-foot or 20-foot lumber.
Worked Example: 24-Foot Span at 6/12 Pitch
- Span: 24 feet, Run: 12 feet (144 inches)
- Slope multiplier for 6/12: √(1 + 0.25) = 1.1180
- Rafter length: 144 × 1.1180 = 160.99 inches
- Ridge deduction (2×8 ridge, 1.5" thick): 0.75 inches
- Adjusted: 160.24 inches (13'4-1/4")
- Overhang (18"): 18 × 1.1180 = 20.12 inches
- Total stock: 180.36 inches — order 16-foot lumber
The Birdsmouth Cut
The birdsmouth is a notch cut into the rafter where it sits on the wall plate. It has two components:
- Seat cut: The horizontal cut that rests flat on the top plate. Its length should match the plate width (typically 3.5 inches for a 2×4 wall or 5.5 inches for a 2×6 wall).
- Plumb cut: The vertical cut against the outside face of the wall. This is cut at the roof pitch angle.
The Height Above Plate (HAP) is the vertical distance from the plate to the top edge of the rafter at the birdsmouth. Standard practice maintains a HAP of at least 3-1/2 inches, ensuring at least 2/3 of the rafter depth remains intact. A 2×6 rafter (5.5" actual depth) with a 3.5" HAP has a seat cut depth of 2 inches — well within structural limits.
Critical rule: All rafters must have the same HAP. If the HAP varies from rafter to rafter, the roof surface will have visible waves. Mark a story pole with the HAP dimension and check every birdsmouth against it before cutting.
Hip and Valley Rafter Calculations
Hip and valley rafters travel diagonally across the building plan at 45 degrees. This creates two key differences from common rafters:
- Longer run: The hip/valley run equals the common rafter run × √2 (1.4142). If the common run is 12 feet, the hip run is 16.97 feet.
- Shallower effective pitch: Because the hip travels a longer horizontal distance for the same rise, its effective pitch angle is less steep than the common rafter. The hip/valley slope multiplier is √(1 + (rise per foot)²/288).
For a 6/12 roof pitch, the common rafter slope multiplier is 1.1180, but the hip/valley slope multiplier is 1.0607. The hip rafter length = hip run × hip slope multiplier.
Check Cuts and Backing Angles
Where the hip rafter meets the ridge, it requires a cheek cut (also called a side cut) — a compound angle cut that creates a knife-edge shape fitting against the ridge board. The cheek cut angle depends on the roof pitch and requires both a miter angle and a bevel angle on the saw.
Hip rafters also need a backing angle — a bevel cut along the top edge so the roof sheathing lies flat against the hip. Without backing, the sheathing panels on each side of the hip would meet at a ridge instead of lying flat. Our rafter calculator computes the exact backing angle for your pitch.
Jack Rafter Layout
Jack rafters are equally spaced along the hip or valley and decrease in length by a constant amount. The jack decrement equals the rafter spacing multiplied by the common rafter slope multiplier.
For 16" on-center spacing at a 6/12 pitch:
- Jack decrement: 16" × 1.1180 = 17.89 inches
- Longest hip jack: common rafter length − one decrement
- Each subsequent jack: subtract 17.89" from the previous one
- All jacks get the same cheek cut angle where they meet the hip rafter
The jack cheek cut angle is different from the common rafter plumb cut — it accounts for the 45-degree approach to the hip. Using the common plumb cut angle on jack rafters produces a gap at the hip. Our calculator generates the complete jack cut list with the correct cheek cut angle.
Using Rafter Tables on a Speed Square
Most speed squares and framing squares have rafter tables stamped on them. Here is what the common numbers mean:
| Table Row | What It Means | Example (6/12) |
|---|---|---|
| Length Common Rafters per Foot Run | Slope multiplier × 12 | 13.42" |
| Length Hip/Valley Rafters per Foot Run | Hip slope multiplier × 12 | 18.00" |
| Difference in Length of Jacks (16" OC) | Jack decrement at 16" spacing | 17.89" |
| Difference in Length of Jacks (24" OC) | Jack decrement at 24" spacing | 26.83" |
To use these tables: multiply the "per foot run" value by the number of feet of common rafter run. For a 12-foot run at 6/12: 13.42 × 12 = 161.04 inches. Then subtract ridge shortening and add overhang as described above.
Common Rafter Calculation Mistakes
- Forgetting ridge shortening: Every common rafter is shorter than the theoretical length by half the ridge board thickness (typically 3/4"). This small deduction has a big effect — if all rafters are 3/4" too long, the fascia line pushes out nearly an inch on each side.
- Measuring from inside walls: Run is measured from the outside face of the wall sheathing to the ridge centerline, not from the inside of the wall frame. Measuring from the inside adds the wall thickness to every calculation.
- Inconsistent HAP: If birdsmouth depth varies between rafters, the roof surface develops visible waves. This is especially noticeable with lighter roofing like metal panels.
- Not crowning lumber: Always sight down each rafter and install with the crown (natural bow) facing up. Gravity and roof load flatten the crown over time. Crown- down installation creates a permanent low spot.
- Wrong cheek cut on jacks: Jack rafters need a compound cheek cut angle, not a common plumb cut angle. Using the wrong angle produces gaps where jacks meet the hip or valley.
Practical Framing Tips
- Cut and test-fit one common rafter before cutting the full batch. Clamp it in position, check the birdsmouth seat, and verify the overhang dimension at the fascia line.
- Mark rafters in opposing pairs — left and right sides of the ridge. Cut them simultaneously to ensure symmetry.
- Hip and valley rafters are 1.414 times the common run — order lumber long enough. Running short by a few inches means scrapping an expensive 20-foot board.
- Gang-cut all jack rafters for one side at the same time. They share the same cheek cut angle and differ only in length by the constant decrement.
- Verify the building is square before starting rafter layout. Measure both diagonals of the top plate — they should be equal within 1/4 inch. An out-of-square building means the hip rafters will not land at the corners.
For all rafter types — common, hip, valley, and jack — enter your building dimensions and pitch into our free rafter calculator to get instant, accurate results with a complete cut list. Pair it with our roof pitch calculator to convert between all pitch formats.