Construction Calculators

Jump to a tool or explore below.

Free Rafter Length Calculator

Rafter Length Calculator

Enter run and pitch or rise, overhang, and ridge board thickness to get common rafter length, stock length, birdsmouth cuts, and the hip or valley factor.

Common & Tail Length
Birdsmouth Cuts
Hip & Valley Factor

Common Rafter Length Calculator

Run is measured level from the outside of the wall to the ridge centerline.

Calculator inputs

Half the building span on a gable: outside of wall to ridge centerline.

Used when slope is from total rise.

Level distance from wall face to fascia.

2x8 = 7-1/4 in, 2x10 = 9-1/4 in, 2x12 = 11-1/4 in.

Usually the wall plate width: 3-1/2 in on a 2x4 wall.

Planning estimate only. Confirm field measurements, product coverage, local requirements, waste, pricing, and supplier quantities before ordering or bidding.

Worked Example: 24 ft Gable at 6/12

A 24 ft wide building, 6/12 pitch, 2x8 rafters (7-1/4 in actual), a 1-1/2 in ridge board, a 12 in level overhang, and a 3-1/2 in seat on a 2x4 wall.

StepMathResult
Run24 ft / 212 ft (144 in)
Slope factorsquare root (1 + 0.5²)1.118
Common rafter(144 - 0.75) x 1.118about 160-3/16 in (13 ft 4-3/16 in)
Tail12 x 1.118about 13-7/16 in
Total rafter lengthcommon + tailabout 14 ft 5-9/16 in
Stocktotal + plumb-cut allowance (7.25 x 0.5)16 ft
Birdsmouth heel cut3.5 x 6 / 121-3/4 in
Total rise12 ft x 6 / 126 ft

Slope, Hip, and Valley Factors by Pitch

Multiply the run by the common factor for a common rafter, or by the hip/valley factor for a regular hip or valley where both roof planes share the pitch. Lengths below are for 12 ft of run, before the ridge deduction and tail.

PitchAngleCommon factorHip/valley factorCommon rafter, 12 ft runHip, 12 ft run
3/1214.0°1.0311.43612.37 ft17.23 ft
4/1218.4°1.0541.45312.65 ft17.44 ft
5/1222.6°1.0831.47413.00 ft17.69 ft
6/1226.6°1.1181.50013.42 ft18.00 ft
7/1230.3°1.1581.53013.89 ft18.36 ft
8/1233.7°1.2021.56314.42 ft18.76 ft
9/1236.9°1.2501.60115.00 ft19.21 ft
10/1239.8°1.3021.64115.62 ft19.70 ft
12/1245.0°1.4141.73216.97 ft20.78 ft

Cutting the Birdsmouth

Seat cut

The level cut that bears on the wall plate. Its length is usually the plate width, 3-1/2 in on a 2x4 wall or 5-1/2 in on a 2x6 wall.

Heel cut

The plumb cut against the outside of the wall. Its height is the seat length times the pitch over 12: 1-3/4 in for a 3-1/2 in seat at 6/12.

Height above plate

The plumb depth of rafter left above the seat. Keeping it the same on every rafter keeps the roof plane flat, and it sets the ridge height.

Depth rule of thumb

A widely used rule keeps the seat cut to no more than one third of the rafter depth. On a steep roof with a wide plate, shorten the seat or use a deeper rafter.

Need the pitch from a measured rise and run first? Use the roof pitch calculator.

Automate your framing takeoffs and quotes.

Quote more framing jobs with less time spent counting members and rebuilding material lists. BuildVision extracts framing counts and measurements from your plans and carries them through your rates and assemblies into a branded quote. Your team checks the quantities and pricing before sending. Try it free on your own plans.

How the Rafter Length Calculator Works

A common rafter is the hypotenuse of a right triangle: the horizontal run from the outside of the wall to the center of the ridge, and the rise from the wall plate to the ridge. Multiply the run by the slope factor, the square root of 1 plus the pitch squared over 144, and you have the rafter length along its line. Take half the ridge board thickness off the run first, and add the overhang tail at the same slope.

The calculator does those steps from either the pitch in inches per foot or the total rise, and adds the parts carpenters need when they cut: the stock length to buy, the birdsmouth heel cut and height above plate, how deep the seat cut goes compared with the rafter depth, and the hip or valley factor for a regular hip roof where both roof planes share the same pitch.

Rafter length formulas

  • Slope factor = square root (1 + (pitch / 12) squared)
  • Common rafter length = (run - ridge thickness / 2) x slope factor
  • Tail length = horizontal overhang x slope factor
  • Total rafter length = common rafter length + tail length
  • Total rise = run x pitch / 12
  • Birdsmouth heel cut = seat length x pitch / 12
  • Hip or valley factor = square root (pitch squared + 288) / 12

Estimating Steps and Checks

1

Find the run

On a gable roof, run is half the building span measured from the outside of the wall framing. A 24 ft wide building has a 12 ft run. On a shed roof, the run is the full horizontal distance between supports.

2

Enter the pitch or the rise

Enter pitch as inches of rise per 12 in of run (a 6/12 roof is 6). If you know only the total rise from plate to ridge, choose total rise and the calculator works out the pitch.

3

Add overhang, ridge, and rafter size

Enter the overhang measured level from the wall to the fascia, the ridge board thickness (1-1/2 in for a 2x ridge), the actual rafter depth, and the seat length, which is usually the wall plate width.

4

Cut a pattern rafter

Mark the ridge plumb cut, measure the common length along the rafter to the birdsmouth, lay out the seat and heel cuts, then add the tail. Test-fit one rafter and use it as the pattern.

Common Checks

  • Worked example: a 24 ft wide gable at 6/12 with a 1-1/2 in ridge, 2x8 rafters, and a 12 in overhang. Run is 144 in, less 3/4 in for the ridge. Slope factor is 1.118, so the common rafter is about 13 ft 4-3/16 in and the tail adds 13-7/16 in, for 14 ft 5-9/16 in total. Buy 16 ft stock.
  • Birdsmouth: with a 3-1/2 in seat on a 6/12 roof the heel cut is 1-3/4 in. A widely used rule of thumb keeps the seat cut to no more than one third of the rafter depth; check the plans and the notching limits in your code.
  • Hip and valley: for a regular hip roof the hip travels 16.97 in for every 12 in of common run, so the factor is the square root of pitch squared plus 288, divided by 12. At 6/12 the factor is 1.5, so a 12 ft common run gives an 18 ft theoretical hip before the ridge deduction and tail.
  • Rafter size and spacing come from the IRC rafter span tables (Tables R802.4.1(1) to R802.4.1(8) in the 2021 edition) or an engineer, based on span, snow load, dead load, and species.

Rafter Length Calculator FAQs

How do you calculate rafter length?

Multiply the run by the slope factor. For a 6/12 pitch the slope factor is the square root of 1 + 0.5 squared = 1.118. A 12 ft run gives 12 x 1.118 = 13.42 ft to the theoretical ridge line. Deduct half the ridge thickness from the run first, and add the overhang at the same slope.

How long is a rafter for a 24 foot span?

Run is half the span, 12 ft. At 4/12 the common rafter is about 12.65 ft, at 6/12 about 13.42 ft, at 8/12 about 14.42 ft, and at 12/12 about 16.97 ft, before the ridge deduction and the overhang. Add the overhang tail and buy the next stock length up.

What is the run of a rafter?

The run is the horizontal distance the rafter covers, from the outside of the wall plate to the centerline of the ridge. On a symmetrical gable it is half the building span. Overhang is measured separately and added as the tail.

How deep can a birdsmouth cut be?

A common rule of thumb is that the seat cut should not go deeper than one third of the rafter depth, leaving at least two thirds of the rafter above the wall. The calculator shows the seat cut depth as a share of the rafter depth. Confirm the limit with the plans and the notching rules in your local code.

How do I calculate a hip or valley rafter length?

On a regular hip roof the hip runs diagonally, 16.97 in for each 12 in of common run. Multiply the common run by the square root of pitch squared plus 288, divided by 12. For 6/12 that factor is 1.5, so a 12 ft run gives an 18 ft theoretical hip before the ridge deduction and tail.

Why subtract half the ridge board?

The run is measured to the center of the ridge, but each rafter stops at the face of the ridge board. Shortening the run by half the ridge thickness (3/4 in for a 1-1/2 in board) and multiplying by the slope factor gives the length to the plumb cut.

What is the slope factor for common roof pitches?

Slope factor is the rafter length per foot of run: 4/12 is 1.054, 5/12 is 1.083, 6/12 is 1.118, 7/12 is 1.158, 8/12 is 1.202, 9/12 is 1.25, 10/12 is 1.302, and 12/12 is 1.414. The table on this page lists the hip and valley factors alongside them.

What lumber length should I buy for rafters?

Add the common length, the tail, and an allowance for the plumb cut at the ridge, then round up to the next stock length. The calculator adds the rafter depth times the pitch for the plumb cut and rounds up to an even foot length.

Estimating Software by Trade

Try it on your own plans

Automate your framing takeoffs and quotes.

Quote more framing jobs with less time spent counting members and rebuilding material lists. BuildVision extracts framing counts and measurements from your plans and carries them through your rates and assemblies into a branded quote. Your team checks the quantities and pricing before sending. Try it free on your own plans.

First takeoff free · No card · $299/seat/month after

Rafter Length Calculator | Pitch, Overhang & Hip Rafters