Roof geometry, framing layout and material takeoffs

Rafter Length Calculator

The hypotenuse is the easy part. Two adjustments decide whether the rafter fits: the rafter lands on the face of the ridge board rather than its centreline, so half the ridge thickness comes off along the slope, and the overhang you specified horizontally is longer once it follows the roof. On an 8/12 pitch a 24 inch overhang is nearly 29 inches of rafter. This calculator applies both and shows each separately.

Rafter length
15' 0.28" 180.28" — line length, less ridge shortening, plus overhang along the slope
Line length
13' 5.00" Ridge centre to the outside of the wall plate — √(144.0² + 72.0²)
Ridge shortening
−0.84" Half of a 1.5" ridge, measured along the slope. The rafter meets the ridge face, not its centreline.
Overhang along the slope
+20.12" A 18" horizontal overhang becomes 20.12" of rafter at this pitch
Run
144.0" Half of a 24 ft span
Total rise
72.00" 6" of rise per 12" of run
Plumb cut angle
26.6° Seat cut is the complement, 63.4°. Slope is 50.0%.
Roof area multiplier
×1.1180 Multiply the building footprint by this to get sloped roof area for material takeoff
ridge centreline plate − half the ridge, along the slope line length + overhang A 24" horizontal overhang is 28.8" of rafter at 8/12
Line length, less ridge shortening, plus overhang measured along the slope

Line length, and where the measurement actually starts

Rafter geometry is calculated between two theoretical points, and neither of them is where you put a saw.

The line length runs from the centreline of the ridge to the outside face of the wall plate, measured along the slope. It is pure trigonometry: the hypotenuse of a triangle whose legs are the run and the rise. Everything else is an adjustment to it.

The rafter does not reach the ridge centreline, because a ridge board occupies that space. Half its thickness comes off, measured along the slope rather than horizontally — which is why the shortening is slightly more than half the board thickness.

At the other end, the seat cut sits on the plate and the tail extends beyond it. The plate end is where the line length terminates; the tail is additional.

Skipping the ridge shortening makes every rafter long by the same amount, and the error does not cancel. Both rafters of a pair are long, so the pair either will not close at the ridge or forces the walls outward. It is one of the most common framing errors on a first roof.

Common, hip and valley rafters are different calculations

This calculator handles common rafters — the ones running perpendicular from plate to ridge. Hip and valley rafters run diagonally and use different arithmetic.

A common rafter rises its pitch over 12 inches of run, because it travels straight up the slope. A hip or valley rafter travels diagonally across the plan, so for every 12 inches it advances along the wall it also moves 12 inches perpendicular — a diagonal distance of about 17 inches.

That is why hip and valley layout uses a unit run of 17 rather than 12. An 8/12 common rafter has a slope factor of 1.202; the hip on the same roof works to 8 over 17, giving a much shallower apparent pitch and a longer rafter.

Jack rafters — the shortened commons that die into a hip or valley — have the same slope factor as the commons, but each is a different length, decreasing by a fixed common difference determined by the spacing and the hip run.

Framing squares have hip, valley and jack tables stamped on the blade for exactly this reason. If your roof has hips, the numbers on this page apply only to the common rafters within it.

Cutting from the calculation

Turning a length into cuts takes three angles, and two of them are the same number.

The plumb cut at the ridge is set to the pitch angle from vertical — 26.6 degrees for a 6/12 roof. The seat cut, where the rafter bears on the plate, is its complement. Both are marked from the same framing square setting: the pitch on the tongue against 12 on the blade.

The birdsmouth is the notch formed by the seat cut and its vertical face. Its depth matters: leaving less than about two thirds of the rafter depth above the notch weakens it in the same way a stringer notch does, and many jurisdictions limit it explicitly.

The tail cut can be plumb, square or level depending on the soffit detail, and it does not affect structure.

The reliable method is to cut one rafter, offer it up in place, confirm it fits at both ends, and only then use it as a pattern for the rest. A calculation gets you to a test piece, not to a stack of finished rafters.

What this is based on

  • Right-triangle geometry: line length = run × √(1 + (pitch/12)²)
  • Standard framing practice for ridge shortening and sloped overhang conversion

Geometry only. This calculator does not size the rafter — species, grade, depth, spacing, span and snow load determine that, under IRC rafter span tables or an engineered design. Verify cut lengths on a test rafter before cutting a full set.

Frequently asked questions

What is ridge shortening and why does it matter?

Rafter geometry is calculated to the centreline of the ridge, but the rafter physically stops at the face of the ridge board. You subtract half the ridge thickness, measured along the slope rather than horizontally. Skip it and every rafter is long by that amount, which pushes the walls out.

Why is my overhang longer than the number I entered?

Because overhang is normally specified as a horizontal projection but the rafter follows the slope. The conversion is the same slope factor used for the main rafter — at 8/12 it is about 1.20, so 24 horizontal inches is 28.8 inches of material.

What is the roof area multiplier for?

Multiply the building footprint by it to get the actual sloped roof area. It is how you convert a floor plan into shingle, underlayment and sheathing quantities without measuring the roof itself.

Does this work for hip and valley rafters?

No. This calculates common rafters, which run perpendicular to the ridge. Hip and valley rafters run diagonally and use a 17 inch unit run instead of 12, giving a different slope factor.

How do I convert pitch to degrees?

The angle is the arctangent of rise over run. A 6/12 pitch is 26.6 degrees, 8/12 is 33.7, and 12/12 is exactly 45. The plumb cut is set to this angle and the seat cut to its complement.