LayoutMath

Rafter Length Calculator: Span, Overhang and Birdsmouth Cut

This rafter length calculator takes the span and the roof pitch and turns out the rafter length, the birdsmouth cut and the tail — for one common rafter or the whole roof. The math is the same rise-over-run as the roof pitch calculator and the stair calculator, just laid out for roof framing. Use it as a roof rafter calculator for a gable, a shed or a lean-to; hip and valley rafters are sized off the common rafter, not separate. The IRC span check is built in.

Rafter inputs and result

Start here. Span and pitch give you the length. Seat cut and rafter depth only matter for the birdsmouth.

Try an example

Roof

Roof type
7.315 m
ft
:12
304.8 mm
in
More optionsSeat cut and rafter depth
38.1 mm
in
88.9 mm
in
234.9 mm
in

Result

You need to cut each common rafter 14 feet 5 9/16 inch long, overhang included. It runs 11 feet 11 1/4 inch across and rises 5 feet 11 5/8 inch, at 26.57°. The birdsmouth is within the code limit.

Common rafter, ridge to wall
13 feet 4 3/16 inch

Run 11 feet 11 1/4 inch, rise 5 feet 11 5/8 inch, 26.57°.

With overhang
14 feet 5 9/16 inch

Buy a 16-foot board. Rafters grow with the tail, so the rise grows too.

Birdsmouth
HAP 8 9/16 inch (8.592 inches)

Seat 3 1/2 inch · plumb 1 3/4 inch · notch depth 1 9/16 inch of 9 1/4 inch.

Hip or valley, regular 45° plan
19 feet 4 7/8 inch

Factor 1.5 × run. Buy a 24-foot board. Theoretical line before cheek cuts.

  • Passes: Birdsmouth notch ≤ ¼ of the rafter depth (1 9/16 inch of a 2 5/16 inch limit), IRC R802.7.1
  • Passes: Height above plate leaves wood above the notch
Roof half-spanRun and rise of the common rafter
11′ 11 1/4″5′ 11 5/8″

Type the building span and the pitch. This rafter length calculator gives you the common rafter length, the length with overhang, the birdsmouth seat and plumb cuts, and the hip or valley length. It works as a roof rafter calculator for gable and shed roofs, and as a birdsmouth cut calculator that sizes the seat. Shed roof? Switch it on. Cut one pair, test-fit it on the walls, then batch the rest.

  • Free
  • No signup
  • Reviewed 20 October 2026
  • Estimates only

Quick answer A 24′ (7.32 m) span at 6:12 with a 1½ inches ridge board has a common rafter run of 11′ 11 1/4″ and a line length of 13′ 4 3/16″ up to the ridge. Add a 12 inches overhang and the rafter measures 14′ 5 9/16″, so buy 16 feet stock.

RidgeRafterCeiling joistBirdsmouthOverhang

How the rafter math works

Every common rafter is the same length

How to figure rafter length for a whole roof: every common rafter on the same slope and span is the same length, so a rafter length calculator only has to work one out. Half the span runs from the outside of one wall to the theoretical center of the ridge. Take off half the ridge thickness so the rafter stops at the face of the ridge board. From that run the rise follows the pitch, and the line length is the slope distance.

The overhang adds rise as well as run

To calculate the length of rafters for a roof with eaves, remember the overhang is a horizontal projection: it gets added to the run, and the whole run is multiplied by the pitch factor. The tail keeps falling on the same slope, so its rise grows with it. It is not the building rise pasted onto a longer run. A hip rafter calculator applies √(2 + (pitch ÷ 12)²) to the run, because a hip or valley on a regular 45° plan corner is longer again.

Shed and lean-to roofs

A shed or lean-to roof has one slope and no ridge. The shed roof rafter calculator treats the run as the full span: the rafter goes from the high wall to the low wall, there is no hip, and the high wall has to stand taller than the low wall by the rise.

The birdsmouth

For the birdsmouth, open More options and enter the seat cut and the rafter depth. The calculator gives the height above the plate and checks the notch against the quarter-depth limit, so you find out the notch is too deep before you cut it into a rafter.

The pitch cut and the seat cut

The pitch cut is the angle of the plumb cut, which is the roof pitch itself. On a speed square, set the pivot on the rafter edge and the pitch number (6 for a 6:12 roof) on the same edge, then scribe along the blade. For the seat cut, mark the plumb line where the rafter crosses the outside of the wall. The seat starts that many inches up from the bottom edge: seat width times pitch ÷ 12. Height above plate is the plumb distance left from there to the top edge.

What to work out next

If you only have a rise and a run, find the pitch first with the roof pitch calculator. Once the rafters are sized, the roofing calculator turns the same span and pitch into roof square feet and shingles, and the feet and inches calculator adds up rafter and overhang lengths.

Formula

The formula

L=(S2−t2+o)1+(p12)2

L = rafter length with tail, S = span, t = ridge thickness, o = horizontal overhang, p = pitch (x in x:12).

The same sums, step by step

run          = (span / 2) − (ridge thickness / 2)      gable
run          = span                                    shed / lean-to, no ridge
rise         = run × (pitch / 12)
multiplier   = √(1 + (pitch / 12)²)
line length  = run × multiplier
tail length  = (run + overhang) × multiplier
birdsmouth plumb (inches up for a seat cut) = seat cut × (pitch / 12)
height above plate (HAP) = rafter depth × multiplier − plumb
notch depth  = plumb / multiplier     limit = ¼ × rafter depth
hip factor   = √(2 + (pitch / 12)²)
hip length   = run × hip factor

Worked examples

24 feet span, 6:12

Show the working

Half of 24 feet is 144 inches. A 1½ inches ridge shortens the run by ¾ inch to 143.25 inches. Rise is half of that, 71.63 inches. The line length is 143.25 × 1.118 = 13′ 4 3/16″. A 12 inches overhang adds to the run before the same multiplier: 14′ 5 9/16″. The seat cut of 3½ inches on a 2×10 leaves 8 9/16″ height above plate.

16 feet span, 8:12, deep seat on a 2×8

Show the working

A steeper pitch makes the plumb cut taller for the same seat. Here the notch is 1 15/16″ deep against a quarter-depth limit of 1 13/16″ on a 2×8, so the birdsmouth check fails. It would have passed a one-third rule, which is why the check follows IRC R802.7.1. Try a 2×10 or a shallower seat.

Shed roof: 12 feet wide, 4:12

Show the working

A shed rafter runs the whole 144 inches, with no ridge to subtract. Rise is 144 × 4 ÷ 12 = 48 inches, so the high wall stands 4′ taller than the low wall. The line length is 144 × 1.0541 = 12′ 7 13/16″. A 12 inches overhang at the low eave brings the rafter to 13′ 8 7/16″, so buy 16 feet stock.

UK roof: 6 m span, 35° pitch

Show the working

A 35° roof is 8.40:12. With a 6000 mm span, a 38 mm ridge, a 300 mm overhang and 47×175 mm rafters, the common rafter run is 2981 mm and the line length is 3639 mm. With the tail it is 4005 mm, so buy 14 feet timber.

Rafter length table by pitch and span

Need a quick number before you open the calculator? Read it off here. Each cell is the line length along the top edge of a common rafter, with no overhang and the ridge thickness ignored, straight from the calculation above. Add the tail from the calculator for any overhang, because the tail is not just extra run: it keeps falling on the same slope.

Common rafter length for a gable roof, by pitch and building span

Common rafter length for a gable roof, by pitch and building span
Pitch12 feet span16 feet span20 feet span24 feet span
3:126′ 2 3/16″8′ 2 15/16″10′ 3 11/16″12′ 4 7/16″
4:126′ 3 7/8″8′ 5 3/16″10′ 6 1/2″12′ 7 13/16″
5:126′ 6″8′ 8″10′ 10″13′
6:126′ 8 1/2″8′ 11 5/16″11′ 2 3/16″13′ 5″
8:127′ 2 9/16″9′ 7 3/8″12′ 1/4″14′ 5 1/16″
10:127′ 9 3/4″10′ 4 15/16″13′ 3/16″15′ 7 7/16″
12:128′ 5 13/16″11′ 3 3/4″14′ 1 11/16″16′ 11 5/8″

Shed roof rafter length, by pitch and building width

Shed roof rafter length, by pitch and building width
Pitch8 feet wide10 feet wide12 feet wide14 feet wide
2:128′ 1 5/16″10′ 1 5/8″12′ 2″14′ 2 5/16″
3:128′ 2 15/16″10′ 3 11/16″12′ 4 7/16″14′ 5 3/16″
4:128′ 5 3/16″10′ 6 1/2″12′ 7 13/16″14′ 9 1/16″
6:128′ 11 5/16″11′ 2 3/16″13′ 5″15′ 7 13/16″
8:129′ 7 3/8″12′ 1/4″14′ 5 1/16″16′ 9 15/16″
12:1211′ 3 3/4″14′ 1 11/16″16′ 11 5/8″19′ 9 9/16″

Pitch cut, seat cut and plumb cut by roof pitch

Marking a birdsmouth? These are the numbers. The seat cut sits flat on the wall plate, and the plumb cut is how far up the plumb line the seat starts. The last column is the one that saves a rafter: the longest seat you can cut before the notch passes a quarter of the board.

Cut angles and birdsmouth height above plate by pitch, 3½ inches seat on a 2×10

Cut angles and birdsmouth height above plate by pitch, 3½ inches seat on a 2×10
PitchRoof angle off levelPlumb cut off the rafter edgePlumb cut up from the bottom edgeHeight above plateLongest seat inside the ¼ limit
3:1214.04°75.96°7/8″8 11/16″9 1/2″
4:1218.43°71.57°1 3/16″8 9/16″7 5/16″
5:1222.62°67.38°1 7/16″8 9/16″6″
6:1226.57°63.43°1 3/4″8 9/16″5 1/8″
7:1230.26°59.74°2 1/16″8 11/16″4 9/16″
8:1233.69°56.31°2 5/16″8 13/16″4 1/8″
9:1236.87°53.13°2 5/8″8 15/16″3 13/16″
10:1239.81°50.19°2 15/16″9 1/8″3 9/16″
12:1245°45°3 1/2″9 9/16″3 1/4″

How many inches up for a plumb seat cut, by pitch and seat width

How many inches up for a plumb seat cut, by pitch and seat width
Seat cut4:126:128:1212:12
3 1/2″1 3/16″1 3/4″2 5/16″3 1/2″
5 1/2″1 13/16″2 3/4″3 11/16″5 1/2″

Rafter mistakes that cost a board

A rafter is cut once and copied, so one wrong number is repeated down the roof. These are the mistakes to catch first.

Pasting the building rise onto the tail

The tail keeps falling on the same slope, so its rise grows with its run. Holding the rise constant makes the tail too short, by about 2.6 inches on a 24 feet span at 6:12 with a 12 inches overhang.

Forgetting the ridge thickness

The theoretical apex is the center of the ridge, but the rafter stops at its face. A 1½ inches ridge shortens each run by ¾ inch.

Multiplying the common length by √2 for a hip

At 6:12 that overstates the hip by about 5 percent. The hip factor is √(2 + (pitch ÷ 12)²) applied to the common run.

Cutting the birdsmouth too deep

The IRC limits a notch at the end of a sawn rafter to one quarter of its depth. Check the notch before you cut it into a rafter.

Buying the line length

The board has to be longer than the line, because the cuts at each end use wood. Add one rafter depth and round up to the next stock length.

Cutting every rafter before testing a pair

Cut one pair, test-fit it on the walls, then batch the rest.

Rafter checklist before you cut

Work down this list to calculate the length of rafters for a roof without a second trip to the yard.

Measure

  • Measure the building span between the outsides of the walls.
  • Measure or choose the pitch.
  • Decide the overhang, measured level, and the ridge thickness.

Choose

  • Gable roof or shed roof.
  • Seat cut and rafter depth, if you want the birdsmouth checked.
  • Stock length: line length plus one rafter depth, rounded up.

Cut

  • Cut one pair and test-fit it on the walls.
  • Trace it for the rest.
  • Check rafter size and spacing against the span tables for your lumber.

Rafter terms

The words on a roof framing plan.

Common rafter
A rafter that runs square to the ridge from the wall plate to the ridge board.
Run
The horizontal distance a rafter covers, from the outside of the wall to the ridge.
Line length
The straight length of a rafter along the slope, before the cuts.
Tail
The part of the rafter that projects past the wall to form the overhang.
Birdsmouth
The notch that lets a rafter sit on the wall plate.
Plumb cut
The vertical cut at the end of a rafter, at the angle of the pitch.
Seat cut
The level cut of the birdsmouth that rests on the top of the plate.
Height above plate
The depth of rafter left above the birdsmouth, measured plumb.
Hip rafter
A rafter that runs diagonally from a corner of the building to the ridge.

Code notes

Rafter size comes from span tables

Rafter size comes from span tables, not from this length. IRC roof framing is in IRC 2021 Chapter 8, Roof-Ceiling Construction, and the wood design values behind it are explained for residential wood by the American Wood Council. A ridge board is not a structural ridge beam; if the ridge supports the rafters, it is designed as a beam.

The birdsmouth limit, hips and line lengths

IRC R802.7.1 limits a notch at the end of a sawn rafter to one quarter of its depth. The birdsmouth check uses that limit. Hip and valley lengths assume a regular 45° plan corner; irregular hips, where the pitches differ, need a different run. All lengths are theoretical line lengths before shortening for cheek cuts.

Rafters in the UK

In the UK, rafter sizes and spans come from the span tables for the timber grade you buy (for example the TRADA tables) and from the roof design. This page gives the geometry only.

Section numbers refer to IRC 2021 section numbers; England Approved Document K. Local amendments are common, so confirm with your building authority.

FAQ

Hover a question to read the answer. Click to keep it open.Tap a question to open it.

Length and overhang

How do you calculate rafter length?

For a common rafter, take half the building span, subtract half the ridge thickness, and call that the run. Rise is the run times pitch over 12. The line length to the ridge is the run times √(1 + (pitch ÷ 12)²). Add the horizontal overhang to the run before multiplying if you want the tail. The board to buy is that length plus one rafter depth, rounded up to the next stock length.

Why subtract half the ridge thickness?

The theoretical apex is the center of the ridge, but the common rafter stops at the face of the ridge board. So its horizontal run is shorter by half the ridge thickness. A 1½ inch ridge shortens the run by ¾ inch.

How do I calculate rafter length with an overhang?

This rafter calculator with overhang finds the common rafter from the run and the pitch, then adds the tail: the horizontal overhang times the same multiplier. The overhang adds rise as well as run, because the tail keeps falling on the same slope. Hold the rise constant and the tail comes out too short, by about 2.6 inches on a 24 feet span at 6:12 with a 12 inch overhang.

Is this a common rafter calculator for the whole roof?

Yes. Every common rafter on the same span and pitch is the same length, so the calculator only has to work one out. Enter the span, the pitch, the ridge thickness and the overhang, then use that length for every common rafter in the roof.

How long should my rafters be?

Long enough to span from the outside of the wall to the ridge, plus the overhang. The calculator gives you the line length — the slope distance from the birdsmouth to the ridge. The board you buy has to be longer: add the overhang (the tail), plus a few inches for the plumb and birdsmouth cuts. Round up to the next stock length.

How do I figure rafter length without a calculator?

Use the Pythagorean theorem: rafter length = √(run² + rise²). The run is half the building span minus half the ridge thickness. The rise is the run times the pitch (a 6:12 pitch means 6 inches of rise per 12 of run). Add the overhang and round up to the next lumber length.

What size lumber do I need for rafters?

2×6 is common for spans up to about 10 feet at 24 inches on center on a 4:12 to 8:12 pitch. 2×8 takes you to about 12 feet, 2×10 to 15 feet, 2×12 to 18 feet — but it depends on your snow load, species and grade. The IRC span tables give you the exact call. This calculator does the length; the rafter size comes from the span table.

Hips and sheds

How long is a hip rafter?

On a regular hip, where the corner is 45 degrees in plan, the hip run is the common run times √2 and the length is the common run times √(2 + (pitch ÷ 12)²). Do not just multiply the common rafter by √2: at 6:12 that overstates the hip by about 5%. This is the theoretical line before cheek cuts and jack rafters.

How do I calculate shed roof rafter length?

Choose Shed / lean-to. A shed rafter runs from the high wall to the low wall, so the level run is the full building width and there is no ridge board. The line length is the width times √(1 + (pitch ÷ 12)²). Add the overhang to the run before multiplying to get the tail. The high wall has to be taller than the low wall by the width times pitch ÷ 12.

Can I use this as a roof rafter length calculator for a hip roof?

Yes. It gives the common rafter and also the hip or valley length for a regular 45° corner in plan. A hip where the pitches differ needs a different run, and the lengths are theoretical lines before the cheek cuts.

Birdsmouth and cuts

What is a birdsmouth?

The notch that lets the rafter sit on the wall plate. The seat cut is the horizontal flat, usually the plate width. The plumb cut is the vertical face. Height above plate is what is left of the rafter above the notch. IRC R802.7.1 limits a notch at the end of a rafter to one quarter of its depth.

How many inches up for a seat cut?

Mark the plumb line where the rafter crosses the outside of the wall, then measure up it from the bottom edge by the seat width times pitch ÷ 12. A 3½ inch seat on a 6:12 roof is 1¾ inches up, and on a 12:12 roof it is 3½. The level seat starts there, and the plumb distance from there to the top edge is the height above plate.

What is a pitch cut?

The angle where the rafter meets the ridge or the wall, which equals the roof pitch. On a speed square, put the pivot on the rafter edge, the pitch number on the same edge, and scribe along the blade. A 6:12 pitch cut is 26.6 degrees off level, or 63.4 degrees off the rafter edge.

How does the birdsmouth cut calculator check the notch?

Open More options and enter the seat cut and the rafter depth. The calculator gives the height above the plate and compares the notch with the quarter-depth limit in IRC R802.7.1, so you find out the notch is too deep before you cut it.