Rafter Length Calculator

Calculate common rafter line length, hip and valley rafter length, plumb cut angle, bird's mouth seat cuts and stock lumber ordering lengths from your building span and roof pitch.

✓ Imperial and metric✓ Package size results✓ Private by design
01
Enter your projectRoof span and rafter geometry
02
Your resultUpdates as you type
Common rafter length 0

Hip / valley rafter0

for pitched hip roofs

Plumb cut angle0

degrees from vertical

Buy this0

Rounded up to whole packages.

Actual run (span/2 minus half ridge)0
Line length (ridge to wall)0
Overhang tail length0
Bird's mouth seat cut0
Total rafter cut length0
How this was calculated
RafterPitch 4/12RunRise
Live Rafter Cut Geometry & Slope
Advertisement

Understanding common rafter geometry

Roof framing relies on right-triangle geometry. A common rafter spans from the exterior wall top plate up to the central ridge beam. The horizontal distance from the outside of the wall plate to the center of the ridge beam is the half-span. Because the ridge board sits between the two rafter pairs, the actual horizontal run of each rafter is the half-span minus half the thickness of the ridge board. For a standard 2x dimensional ridge board measuring 1.5 inches thick, you deduct 0.75 inches from the half-span.

Once you know the exact horizontal run and the roof pitch (expressed as inches of vertical rise per 12 inches of horizontal run), you calculate the rafter line length using the Pythagorean theorem or pitch multiplier. The line length is the distance along the rafter from the plumb cut at the ridge to the plumb cut at the bird's mouth heel. Adding the rafter tail overhang gives the total length of lumber required before cutting.

The formulaRafter Line Length = Run x sqrt(1 + (Pitch / 12)^2)

Total Rafter Length = Line Length + (Overhang Run x sqrt(1 + (Pitch / 12)^2)). Hip rafter length = sqrt(2 x Run^2 + Rise^2).

A worked rafter example

Suppose you are framing a shed or garage with a 24-foot exterior span, a 4/12 roof pitch, a 12-inch horizontal overhang, and a 1.5-inch thick 2x dimensional ridge board using 2x6 rafters.

  • Span in inches: 24 feet x 12 = 288 inches.
  • Ridge deduction: 288 minus 1.5 = 286.5 inches.
  • Actual horizontal run: 286.5 / 2 = 143.25 inches (11 feet 11 1/4 inches).
  • Pitch factor for 4/12: sqrt(1 + (4/12)^2) = sqrt(1 + 0.1111) = 1.0541.
  • Line length: 143.25 inches x 1.0541 = 151.00 inches (12 feet 7 inches).
  • Overhang tail length: 12 inches x 1.0541 = 12.65 inches (1 foot 0 5/8 inches).
  • Total cut length: 151.00 + 12.65 = 163.65 inches (13 feet 7 5/8 inches).
  • Lumber order: Order 14-foot 2x6 boards. 14 feet is 168 inches, providing plenty of room for square end trimming.

Cutting the bird's mouth notch

The bird's mouth is the notch cut into the bottom edge of the rafter that allows it to bear flat on the wall top plate. It consists of two cuts: the level seat cut that rests on the top plate and the plumb heel cut that rests against the outside face of the wall framing. According to modern building codes (IRC Section R802), the seat cut should bear at least 1.5 inches on wood plates, and the depth of the notch must never exceed one-third of the rafter depth. Cutting deeper than one-third severely weakens the rafter at its primary support point.

Pitch (Rise/12)Angle (Degrees)Pitch MultiplierHip Multiplier
3 / 1214.0 deg1.03081.4362
4 / 1218.4 deg1.05411.4530
5 / 1222.6 deg1.08331.4744
6 / 1226.6 deg1.11801.5000
7 / 1230.3 deg1.15771.5298
8 / 1233.7 deg1.20191.5635
9 / 1236.9 deg1.25001.6008
10 / 1239.8 deg1.30171.6415
12 / 1245.0 deg1.41421.7321

Hip and valley rafter calculation

Hip rafters form the external ridge on roofs that slope down on four sides, while valley rafters form the internal intersection where two roof planes meet. Because hip and valley rafters run at a 45-degree angle in plan view relative to the common rafters, their horizontal run is 1.4142 times longer for every foot of common run. Their pitch is measured over 17 inches of horizontal run rather than 12 inches. A 4/12 common roof has a 4/17 hip pitch. Hip rafters must be cut from larger dimensional lumber (typically one nominal size wider, such as a 2x8 hip for 2x6 common rafters) to provide full bearing for the angled jack rafter plumb cuts.

Common mistakes in rafter framing

  • Forgetting the ridge board deduction. If you calculate line length from the center of the span without subtracting half the ridge board, each rafter will be too long, forcing the walls out of plumb or pushing the ridge up.
  • Over-cutting the bird's mouth. Cutting more than one-third into the rafter depth drastically reduces roof capacity and will fail local building framing inspections.
  • Measuring along the wrong edge. Line length is measured along the top edge of the rafter, starting from the plumb cut point at the ridge down to the plumb line above the exterior wall plate.
  • Ordering exact length lumber. Dimensional framing lumber is sold in two-foot increments (8 ft, 10 ft, 12 ft, 14 ft, 16 ft). Always round up to the next commercial stock size.
Advertisement
Common questions

Rafter Length Calculator FAQ

Straight answers to the questions people ask most about this calculation.

How do I calculate rafter length?

Multiply the rafter horizontal run (half the building span minus half the ridge board thickness) by the pitch multiplier: sqrt(1 + (pitch/12)^2). Add the overhang tail to determine total lumber cut length.

What is the pitch multiplier for a 4/12 roof?

The pitch multiplier for a 4/12 roof is 1.0541. For example, a 10-foot run results in a line length of 10.541 feet (10 feet 6 1/2 inches).

How deep should a bird's mouth cut be?

The vertical heel cut of a bird's mouth should never exceed one-third of the rafter depth. For a 2x6 rafter (5.5 in actual depth), the maximum notch depth is 1.83 inches.

Why is a hip rafter longer than a common rafter?

Hip rafters run at a 45-degree angle to the exterior walls, which increases their horizontal run by 41.4% compared to common rafters for the same roof rise.

What size lumber should I use for rafters?

Rafter sizing depends on span, snow load, spacing (16 in or 24 in on-center), and lumber grade. Residential spans up to 10 feet commonly use 2x6 lumber, while spans of 12 to 16 feet typically require 2x8 or 2x10 lumber.

How do I find the plumb cut angle?

The plumb cut angle is 90 degrees minus the roof angle. For a 4/12 roof (18.4 degree slope), the plumb cut is 71.6 degrees from the horizontal edge, or 18.4 degrees off a speed square's pivot.

Do I need a ridge board for rafter framing?

Yes, in conventional stick framing, rafters must bear against a ridge board that is at least the full depth of the rafter plumb cut. A 2x6 rafter requires at least a 2x8 ridge board.

How do I calculate rafter overhang?

Multiply your desired horizontal soffit overhang by the pitch multiplier. A 12-inch horizontal overhang on a 6/12 pitch (multiplier 1.118) equals 13.4 inches of rafter tail length.

Advertisement
Result 0