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

—
Rafter length (including overhang allowance)
—
Feet
—
Inches
—
Pitch Angle
—
Roof Multiplier

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.

Roof Pitch TriangleRun (12 units)Rise (X in.)Rafter Lengthθ Pitch Angle
Pitch = Rise ÷ Run · Rafter² = Rise² + Run²

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:

Rafter Length = √(Rise² + Run²)

where Rise = (Pitch ÷ 12) × Run. For example, a 6:12 pitch with a 12 ft run gives:

Rise = (6 ÷ 12) × 12 = 6 ft
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

Pitch8 ft Run10 ft Run12 ft Run14 ft Run16 ft Run
4:128.43 ft10.54 ft12.65 ft14.76 ft16.87 ft
6:128.94 ft11.18 ft13.42 ft15.65 ft17.89 ft
8:129.61 ft12.02 ft14.42 ft16.83 ft19.23 ft
10:1210.41 ft13.02 ft15.62 ft18.22 ft20.83 ft
12:1211.31 ft14.14 ft16.97 ft19.80 ft22.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:

PitchUnit Length (per ft of run)
4:121.054 ft
5:121.083 ft
6:121.118 ft
7:121.158 ft
8:121.202 ft
9:121.250 ft
10:121.302 ft
12:121.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 Span16″ OC24″ OC
Up to 10 ft2×62×6
10–14 ft2×82×8
14–18 ft2×102×8 or 2×10
18–22 ft2×122×10
22 ft+Engineered lumberEngineered 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.

Sources