Rafter Length Calculator
Enter your roof pitch and run to instantly calculate rafter length — includes ridge board adjustment
Last reviewed: November 2026 · Marcus Webb, NRCA-certified roofer
Calculate Rafter Length
What Is Rafter Length?
The rafter is the structural beam that runs from the ridge board at the peak of your roof down to the top plate of the wall (the bird’s mouth cut). Rafter length determines how much lumber you need, how steep the cut angles are, and how long the finished slope will be.
Rafter length is different from span (the full width of the building) and different from run (half the span, measured horizontally). The calculator above uses run as its input because a gable roof’s two opposing rafters each span only half the building width.
The Rafter Length Formula
Rafter length is the hypotenuse of the right triangle formed by the rise and run of your roof. Use the Pythagorean theorem:
where Rise = (Pitch ÷ 12) × Run. For example, a 6:12 pitch with a 12 ft run gives:
Rafter Length = √(6² + 12²) = √(36 + 144) = √180 ≈ 13.42 ft
If you’re using a ridge board, subtract half the ridge board’s thickness (measured horizontally after adjusting for pitch angle) from the run before calculating. The calculator handles this automatically when you select a ridge board size.
How to Measure Run
Run is always measured horizontally, not along the slope. For a simple gable roof:
- Measure the total width of the building (outside of wall to outside of wall)
- Subtract the wall thickness on both sides
- Divide by 2 — that’s your run
For example, a 28 ft wide building with 2×6 exterior walls (5.5 in. each): Run = (28 − 0.92) ÷ 2 ≈ 13.54 ft.
Rafter Length Chart — Common Pitches and Runs
| Pitch | 8 ft Run | 10 ft Run | 12 ft Run | 14 ft Run | 16 ft Run |
|---|---|---|---|---|---|
| 4:12 | 8.43 ft | 10.54 ft | 12.65 ft | 14.76 ft | 16.87 ft |
| 6:12 | 8.94 ft | 11.18 ft | 13.42 ft | 15.65 ft | 17.89 ft |
| 8:12 | 9.61 ft | 12.02 ft | 14.42 ft | 16.83 ft | 19.23 ft |
| 10:12 | 10.41 ft | 13.02 ft | 15.62 ft | 18.22 ft | 20.83 ft |
| 12:12 | 11.31 ft | 14.14 ft | 16.97 ft | 19.80 ft | 22.63 ft |
Rafter Unit Length (Per Foot of Run)
Framers often work with unit rafter length — the rafter length per foot of run. Multiply by your actual run to get total rafter length:
| Pitch | Unit Length (per ft of run) |
|---|---|
| 4:12 | 1.054 ft |
| 5:12 | 1.083 ft |
| 6:12 | 1.118 ft |
| 7:12 | 1.158 ft |
| 8:12 | 1.202 ft |
| 9:12 | 1.250 ft |
| 10:12 | 1.302 ft |
| 12:12 | 1.414 ft |
How Many Rafters Do I Need?
Rafters are typically spaced 16 inches or 24 inches on center (OC). To calculate the number of rafters for one side of a gable roof:
- Divide the building length by the spacing (in feet): 32 ft ÷ 1.333 ft = 24 spaces at 16″ OC
- Add 1 for the end rafter: 24 + 1 = 25 rafters per side
- Double for both sides: 50 rafters total
Always add 10% for waste, cuts, and any damaged lumber when ordering.
Bird’s Mouth Cut Depth
The bird’s mouth is the notch cut into the rafter where it sits on top of the wall plate. Most codes limit the seat cut depth to no more than one-third of the rafter’s actual depth. For a 2×8 rafter (7.25 in. actual), the maximum seat cut is about 2.4 inches.
Frequently Asked Questions
Does rafter length include the overhang?
Not by default. This calculator gives the rafter length from the ridge to the top of the wall plate (the bird’s mouth). If your design includes a roof overhang (soffit), add that horizontal distance — converted to slope length — separately.
What’s the difference between rafter length and common rafter length?
They’re the same thing. “Common rafter” is the framing term for the standard rafter that runs perpendicular from ridge to wall plate. Hip rafters, valley rafters, and jack rafters all have different length formulas.
How accurate is this calculator?
Results are accurate to within 1/16 inch for standard inputs. Always verify with a framing square or speed square on site before cutting lumber.
Choosing the Right Rafter Size
Once you know rafter length, you need to pick the right lumber dimension. Rafter size is governed by span, spacing, species, and load — but these guidelines apply to most residential builds using Southern Yellow Pine or Douglas Fir (No. 2 grade):
| Rafter Span | 16″ OC | 24″ OC |
|---|---|---|
| Up to 10 ft | 2×6 | 2×6 |
| 10–14 ft | 2×8 | 2×8 |
| 14–18 ft | 2×10 | 2×8 or 2×10 |
| 18–22 ft | 2×12 | 2×10 |
| 22 ft+ | Engineered lumber | Engineered lumber |
Always verify against your local code’s span tables. In high-snow regions (ground snow load over 30 psf), size up one board width from baseline.
Transferring Rafter Length to Lumber
After you get a rafter length from this calculator, here’s how to translate it to actual cuts on site:
- Plumb cut (ridge end): Set your circular saw to the pitch angle in degrees. For a 6:12 pitch that’s 26.57°. This angled cut goes at the top end of the rafter where it meets the ridge board.
- Bird’s mouth: Mark the wall plate position with a framing square. Set the tongue at the rise (6 for 6:12), body at 12 (run). Where those lines cross the rafter edge, mark the seat cut (horizontal) and the plumb cut (vertical).
- Tail cut: If your design includes an overhang, extend the rafter past the bird’s mouth by the horizontal overhang distance, then make a second plumb cut for the fascia.
Always cut one test rafter and dry-fit it before cutting the full batch. A small error on rafter 1 costs one board — the same error on rafter 25 costs a full day.
Ridge Height vs. Rafter Length
Rafter length is the diagonal slope distance from ridge to wall plate. Ridge height — the vertical distance from wall plate to bottom of ridge — is a separate figure: Rise = (Pitch ÷ 12) × Run. For a 6:12 pitch with a 12 ft run, the ridge sits exactly 6 ft above the top plate. Check this number before framing to confirm attic clearance and ceiling height.
Eave Overhang and Tail Rafter Length
The calculator gives you the structural rafter length — the distance from the ridge board down to the bird’s mouth seat cut at the top of the wall plate. Most roofs also include an eave overhang: the portion of the rafter that extends past the wall to form the soffit. That extension is called the tail rafter, and its length is calculated separately and added to the structural figure.
Calculating tail length: The tail rafter runs at the same pitch angle as the main rafter, so apply the same roof multiplier to the horizontal overhang distance:
Tail Length = Horizontal Overhang × Roof Multiplier
For a 6:12 pitch (multiplier 1.118) with a 16-inch horizontal overhang: tail length = (16 ÷ 12) × 1.118 = 1.49 ft, or about 17.9 inches measured along the slope.
Total board length to purchase: Add the structural rafter length and the tail length together, then round up to the next standard lumber length — 8, 10, 12, 14, or 16 ft. Never round down; a rafter that comes up short by even half an inch cannot be used.
Example: 6:12 pitch, 10 ft structural run, 18-inch overhang:
- Structural rafter: 11.18 ft
- Tail rafter: (18 ÷ 12) × 1.118 = 1.68 ft
- Total board needed: 12.86 ft — purchase 14 ft lumber
Common mistake: Some users add the overhang distance to the run input before entering values. The Run field should contain only the structural run — the horizontal distance from the ridge centerline to the outer face of the wall. Enter only the structural run, then add the calculated tail length afterward.
Standard residential eave overhangs range from 12 to 24 inches (1 to 2 ft). Many local building codes specify a minimum overhang for drainage away from the foundation — confirm with your jurisdiction before cutting lumber. For a boxed soffit, also allow for the fascia board thickness when planning the tail cut angle.
