Rafter Length Calculator
Calculate common rafter length for any roof pitch and span.
Get the exact cut length including ridge deduction and overhang, in feet-inches and decimal feet.
What Is a Common Rafter? A common rafter runs from the ridge board at the roof’s peak down to the top plate (cap plate) of the exterior wall. It is the most frequently cut rafter in a gable roof. The rafter has two critical cuts: a plumb cut (vertical) at the ridge board end, and a bird’s-mouth cut (a notch) where it sits on the wall plate.
The Pythagorean Foundation Rafter length calculation is pure Pythagorean theorem. The run (half the building width) is one leg of the right triangle. The rise (run × pitch / 12) is the other leg. The rafter is the hypotenuse. For a 6:12 pitch on a 24-foot wide building: run = 12 ft, rise = 12 × 6/12 = 6 ft, rafter = √(12² + 6²) = √(180) = 13.42 ft.
The Rafter Multiplier Method Rather than recalculating the Pythagorean theorem every time, carpenters use a rafter multiplier (also called the rafter factor), which is the hypotenuse length per foot of run. For 6:12 pitch the multiplier is 1.118. Multiply your run in feet by 1.118 to get the theoretical rafter length. Speed squares have rafter tables printed on them listing these multipliers for every pitch from 1:12 to 24:12.
Ridge Deduction The rafter does not reach the centerline of the ridge. It stops at the face of the ridge board, so half the ridge thickness has to come off the theoretical length.
The run is not part of it. What you deduct is half the ridge thickness, measured along the rafter, which means half the thickness times the rafter multiplier:
Ridge deduction (inches) = ridge thickness ÷ 2 × rafter multiplier
For a 1.5-inch ridge board at 6:12 pitch: 1.5 ÷ 2 × 1.118 = 0.84 inches, a shade over three quarters of an inch. Small, but it is the difference between a plumb cut that seats against the ridge and one that leaves a gap you can see from the driveway.
A common ridge board is a 2×10 or 2×12 on edge, both of which are 1.5 inches thick. Engineered ridge beams and LVL are often 1.75 or 3.5 inches, which doubles or quadruples the deduction, so measure yours rather than assuming.
Overhang Addition The overhang (soffit) extends the rafter beyond the wall plate to create the eave. Add the overhang horizontal distance (in feet) multiplied by the rafter multiplier to get the additional rafter length needed beyond the wall.
Always Add Cutting Allowance After calculating the theoretical length, always add 2–3 inches to allow for the actual saw cuts (plumb cut at ridge, bird’s mouth at wall). Buy lumber in standard lengths of 10, 12, 14, 16, 18 and 20 feet, then take the next length up from your calculated measurement.
Cut one, check it, then cut the rest
Whatever this or any other calculator tells you, the first rafter is a pattern, not a finished part. Cut it, carry it up, and set it against the ridge and the wall plate before you touch the second one. Buildings are not square, ridge boards are not always where the drawing says, and top plates wander. A 3/8-inch error found on rafter one costs ten minutes. Found on rafter twenty-four, it costs a day.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.