Roof & Septic

Rafter length calculator

Works out how long to cut a common rafter, in feet and inches, and shows the working.

Cut each rafter 14 ft 5 9/16 in long.

14 ft 5 9/16 inridge cut to birdsmouth 13 ft 4 3/16 intail
  • Ridge cut to the birdsmouth13 ft 4 3/16 in
  • Tail, past the wall1 ft 1 3/8 in
  • Plumb cut angle26.6°

A length, not a structural check. Rafter size and spacing come from your local code.

Show the working
  1. Run. Half the width, less half the ridge board: 144 in − 0.75 in = 143.25 in.
  2. Slope factor for this pitch: √(12² + 6²) ÷ 12 = 1.118.
  3. Ridge cut to the birdsmouth: 143.25 × 1.118 = 160.16 in.
  4. Tail: the overhang along the slope, 12 × 1.118 = 13.42 in.
  5. Full length: 160.16 + 13.42 = 173.57 in = 14 ft 5 9/16 in.

Lengths are measured along the top edge and rounded to the nearest 1/16 in. The tail shown above is what is left after the birdsmouth mark, so the two always add up to the full length. How we calculate

Your numbers

widthfeet
12 inrisein 12

Don't know the pitch? Measure it

overhanginches
inches

A 2-by board is 1 1/2 in thick. Enter 0 if the rafters meet with no ridge board.

More: wall sheathing
inches

The rafter sits on the outside of the sheathing. Leave this at 0 if your width already includes it.

How the length is worked out

A common rafter is the long side of a right triangle. The level side is the run: half the building's width, less half the thickness of the ridge board. The upright side is the rise. The pitch tells you how much rise there is for every 12 inches of run.

runriserafter

So the rafter is the run multiplied by a slope factor that depends only on the pitch. For 6 in 12 it is 1.118: every foot of run needs 13 7/16 inches of rafter. The tail is worked out the same way from the overhang, and added on.

A worked example

A garage 24 ft wide with a 6 in 12 roof, a 12 in overhang and a 1 1/2 in ridge board. The run is 144 in less 3/4 in, which is 143 1/4 in. Multiply by 1.118 and the rafter reaches the outside of the wall at 13 ft 4 3/16 in. The 12 in overhang adds 13 7/16 in along the slope. The full rafter is 14 ft 5 9/16 in.

Common questions

Where do I measure the width?

From the outside face of one wall to the outside face of the other, including the sheathing. If you measured to the framing, open "More" and add the sheathing thickness.

Is this the length along the top or the bottom of the rafter?

Along the top edge, from the ridge cut to the tail cut. Hook your tape on the top corner of the ridge cut.

Does it work for hip, valley or jack rafters?

No. This is for common rafters on a gable or shed roof. Hip and valley rafters run at an angle to the walls and need a different factor.

What size lumber do I need?

That depends on the span, the spacing, the load and the wood, and it comes from your local building code's span tables. This page gives the length only.

Related

Last reviewed 18 November 2026 · How we calculate · Report a wrong answer