Fatskills
Practice. Master. Repeat.
Study Guide: Trades Math Basics: Rafter Length Calculations (Span, Pitch, Run, Hip/Valley)
Source: https://www.fatskills.com/trades-math/chapter/consumer-math-rafter-length-calculations-span-pitch-run-hipvalley

Trades Math Basics: Rafter Length Calculations (Span, Pitch, Run, Hip/Valley)

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~5 min read

Trades Math – Rafter Length Calculations (Span, Pitch, Run, Hip/Valley)

What This Is

Rafter length calculations determine the exact length of roof framing members (common rafters, hips, valleys) based on the building’s span, pitch, and run. This is critical for cutting rafters accurately, ensuring structural integrity, and passing licensing exams. Real-world scenario: You’re framing a 24’-wide gable roof with a 6:12 pitch. The building inspector requires precise rafter lengths for approval—guessing wrong means wasted lumber, delays, and failed inspections.


Key Terms & Formulas

  • Span: The horizontal distance between the outside walls supporting the roof (e.g., 24’ for a typical garage). Example: A 28’-wide house with 1’ overhangs on each side has a total span of 30’ (28’ + 2’).

  • Run: The horizontal distance from the outside wall to the center of the ridge (half the span for a gable roof). Example: For a 24’ span, the run is 12’ (24’ ÷ 2).

  • Rise: The vertical height from the top plate to the ridge. Example: A 6:12 pitch over a 12’ run rises 6’ (12’ × 0.5 = 6’).

  • Pitch (Slope): The steepness of the roof, expressed as rise:run (e.g., 4:12 = 4" rise per 12" run). Example: A 8:12 pitch means the roof rises 8" for every 12" of horizontal run.

  • Unit Rise: The rise per foot of run (e.g., 6:12 pitch = 6" unit rise). Example: For a 6:12 pitch, the unit rise is 6" per foot.

  • Hip/Valley Rafter: A rafter that runs diagonally (45°) from the corner of the building to the ridge, supporting jack rafters. Example: On a 24’ × 36’ building, the hip rafter runs from the corner to the ridge at a 45° angle.

  • Jack Rafter: A short rafter that connects a hip or valley to the wall plate. Example: A cripple jack fills the gap between two hip rafters.

  • Rafter Length Formula (Common Rafter): Length = ?(Run² + Rise²) Variables:

  • Run = Horizontal distance (half the span).
  • Rise = Vertical height (Run × Unit Rise). Example: For a 12’ run and 6’ rise, length = ?(12² + 6²) = ?(144 + 36) = ?180-13.42’ (13’ 5").

  • Hip/Valley Rafter Length Formula: Length = ?(Run² + Rise² + Run²) (because it’s a diagonal). Simplified: Length = Run × 1.414 (for a 45° hip/valley). Example: For a 12’ run, hip length = 12’ × 1.414-16.97’ (16’ 11.6").

  • Rafter Table (Framing Square): A pre-calculated chart on a framing square showing rafter lengths per foot of run for common pitches. Example: For a 6:12 pitch, the table shows 13.42" per foot of run (so 12’ run = 13.42 × 12 = 161" or 13’ 5").

  • Birdsmouth Cut: A notch in the rafter where it sits on the wall plate (consists of a seat cut and plumb cut). Example: A 1.5" deep seat cut with a 30° plumb cut for a 6:12 pitch.


Step-by-Step / Process Flow

1. Determine the Span & Run

  • Measure the total span (outside wall to outside wall).
  • Divide by 2 to get the run (for a gable roof). Example: 24’ span-12’ run.

2. Calculate the Rise

  • Multiply the run by the unit rise (from the pitch). Example: 6:12 pitch = 6" rise per foot-12’ run × 6" = 72" (6’ rise).

3. Find the Rafter Length

  • Use the Pythagorean theorem (?(Run² + Rise²)) or the framing square rafter table. Example: ?(12² + 6²) = ?(144 + 36) = ?180-13.42’ (13’ 5").

4. Adjust for Overhang (If Needed)

  • Add the overhang run to the total run before calculating. Example: 1’ overhang on a 12’ run-13’ total run-recalculate rise (13’ × 6" = 6.5’ rise)-new length = ?(13² + 6.5²)-14.53’ (14’ 6.4").

5. Mark & Cut the Rafter

  • Use a framing square to mark the plumb cut (top cut) and seat cut (birdsmouth).
  • Deduct half the ridge board thickness (usually 1.5") from the rafter length. Example: 13’ 5" rafter - 0.75" = 13’ 4.25".

6. Hip/Valley Rafters (If Applicable)

  • Calculate the diagonal run (Run × 1.414).
  • Use the same rise as the common rafter.
  • Apply the Pythagorean theorem (?(Diagonal Run² + Rise²)). Example: 12’ run × 1.414 = 16.97’ diagonal run-?(16.97² + 6²)-17.9’ (17’ 10.8").

Common Mistakes

Mistake 1: Forgetting to Deduct Ridge Board Thickness

  • Correction: Always subtract half the ridge board thickness (usually 0.75") from the rafter length. Why? The ridge board sits between rafters, so each rafter must be slightly shorter.

Mistake 2: Using Total Span Instead of Run

  • Correction: Run = Span ÷ 2 (for gable roofs). Using the full span doubles the rafter length. Why? The run is the horizontal distance from the wall to the ridge, not the full width.

Mistake 3: Misreading the Framing Square

  • Correction: The rafter table on a framing square gives length per foot of run, not total length. Example: For a 6:12 pitch, the table shows 13.42" per foot-multiply by the run (12’)-161" (13’ 5").

Mistake 4: Ignoring Overhang in Calculations

  • Correction: Add the overhang run to the total run before calculating rise and rafter length. Why? The overhang extends beyond the wall, increasing the rafter length.

Mistake 5: Confusing Pitch with Slope Percentage

  • Correction: Pitch = Rise:Run (e.g., 6:12), Slope % = (Rise ÷ Run) × 100 (e.g., 6:12 = 50% slope). Why? Mixing them up leads to wrong rise calculations.

Trade-Specific Insights

1. Code Requires Minimum Pitch for Roofing Materials

  • Asphalt shingles: Minimum 2:12 pitch (some manufacturers require 4:12).
  • Metal roofing: Minimum 3:12 pitch (check manufacturer specs).
  • Flat roofs (modified bitumen): Minimum ¼:12 pitch (¼" per foot). Why? Steeper pitches shed water better and prevent leaks.

2. Hip/Valley Rafters Need Extra Length for "Backing"

  • Backing = Beveling the top edge of a hip/valley rafter to match the roof slope.
  • Rule of thumb: Add 1" per foot of run to the hip/valley length for backing. Example: 12’ run-add 12" to the calculated length.

3. Use a "Story Pole" for Faster Layout

  • Mark rafter lengths, birdsmouth cuts, and overhangs on a 2x4 story pole to transfer measurements quickly. Why? Saves time and reduces errors when cutting multiple rafters.

4. Pre-Cut Rafters Before Raising Walls

  • Lay out and cut all rafters on the ground before framing walls. Why? Easier to measure, adjust, and ensure consistency before lifting into place.

Quick Check Questions

1. A gable roof has a 20’ span and a 8:12 pitch. What is the common rafter length (ignore overhang)?

Answer: 13’ 1.5" Explanation: Run = 20’ ÷ 2 = 10’-Rise = 10’ × 8" = 6.67’-Length = ?(10² + 6.67²)-12.02’ (12’ 0.2") + deduct 0.75" for ridge = 13’ 1.5".

2. A hip roof has a 16’ run. What is the hip rafter length (6:12 pitch, no overhang)?

Answer: 22’ 7.5" Explanation: Diagonal run = 16’ × 1.414-22.62’-Rise = 16’ × 6" = 8’-Length = ?(22.62² + 8²)-23.75’ (23’ 9") + 1" per foot for backing (16") = 22’ 7.5".

3. You’re framing a 10:12 pitch roof with a 14’ run. The rafter table on your framing square is worn out. What’s the rafter length?

Answer: 17’ 5.5" Explanation: Rise = 14’ × 10" = 11.67’-Length = ?(14² + 11.67²)-18.2’ (18’ 2.4") - 0.75" for ridge = 17’ 5.5".


Last-Minute Cram Sheet

  1. Run = Span ÷ 2 (for gable roofs).
  2. Rise = Run × Unit Rise (e.g., 6:12 pitch = 6" per foot).
  3. Rafter Length = ?(Run² + Rise²) (Pythagorean theorem).
  4. Hip/Valley Length = Run × 1.414 (for 45° diagonal).
  5. Deduct 0.75" for ridge board thickness.
  6. Add 1" per foot of run for hip/valley backing.
  7. Minimum pitch for asphalt shingles = 2:12 (check manufacturer).
  8. Overhang increases run-recalculate rise and length.
  9. Framing square rafter table = length per foot of run (multiply by run).
  10. Always confirm pitch with a level—don’t trust plans blindly!