
Rafter Length and the Right Triangle
Span, run, rise, pitch, and line length, then a rafter's length worked two ways on three roofs, a 24-ft span at 6 in 12, 28 ft at 8 in 12, and 30 ft at 10 in 12: by the Pythagorean theorem, and by the framing square's unit length, checked with a calculator. The overhang measured level, the ridge reduction of half the ridge's thickness, the cut length and the board it takes, a shed roof with its reversed notch, and twelfths against sixteenths on the mark.
- 13 min
- 11 steps
- 9 questions
- 8 hands-on
- Lesson 10 of 25 in Layout and Carpentry Math
In this lesson
- Span, run, rise, and pitch
- Line length from the right triangle
- The unit length method
- Overhang
- The ridge reduction
- Cut length and the board you buy
- A shed roof
- Twelfths, sixteenths, and rounding
- Tables and manuals for the bench
- Work one roof from the tape
Picking up where you left off.
A rafter is the long side of a right triangle, and its length comes from the other two sides. Three numbers fix it: the span, the pitch, and the overhang. One addition and one deduction then turn the triangle’s answer into a board you can cut. Why a roof pushes on its walls and what holds it are in Roof Framing: Rafters and Trusses; this lesson is only how long the rafter is.
Span, run, rise, and pitch
Span is the horizontal distance between the outside edges of the top plates. Total run is half of it, always measured level. Total rise is the height from the plate to the top of the triangle. Unit run is fixed at 12 inches for a common rafter, and unit rise is what the rafter climbs in those 12 1.
Line length is the hypotenuse, from the outside edge of the top plate to the centerline of the ridge 1. It is a geometric line, not a piece of wood. The Navy calls the imaginary line it lies on the measure line 1.
“Pitch” carries an old trap. The Navy’s manual defines it as rise over span, so 6 in 12 is a 1/4 pitch, and says the word was giving way to “cut,” the rise per 12 of run 1. Hodgson’s carpenters said half pitch, third pitch, and quarter pitch, naming the ridge’s height as a fraction of the span 2. This course writes rise in 12; the degrees and the conversions are in Degrees, Pitch, and Slope.
Take the span from the building. Larry Haun, who framed tracts around Los Angeles, measured it at the top plates at both ends rather than trust the blueprints 3, and John Spier straightens and squares the walls before he figures a rafter 4. If the two ends disagree, the rafter’s length is the smaller problem.
Match up
This exercise needs JavaScript.
Run, rise, and projection are measured level or plumb. Only the line length and the tail length are measured on the slope.
Label it
This exercise needs JavaScript.
Span runs between the outside edges of the top plates; the line length runs from the plate’s outside edge to the ridge centerline. The overhang is measured level, out from the wall.
Line length from the right triangle
The rise is the run times the unit rise over 12, and the length is the square root of run squared plus rise squared. Spier’s version: square the rise, square the run, add the two, and take the square root; a construction calculator does it in feet and inches, and any calculator with a root key will do 4. Work in inches.
For a 24-ft span at 6 in 12:
- Run: 24 ft ÷ 2 = 12 ft = 144 in.
- Rise: 144 × 6 ÷ 12 = 72 in.
- Squares: 20,736 + 5,184 = 25,920.
- Root: 160.997 in, which marks as 13 ft 5 in.
| Span, pitch | Run | Rise | Squares added | Line length | To the 1/16 |
|---|---|---|---|---|---|
| 24 ft, 6 in 12 | 144 in | 72 in | 25,920 | 160.997 in | 13 ft 5 in |
| 28 ft, 8 in 12 | 168 in | 112 in | 40,768 | 201.911 in | 16 ft 9 15/16 in |
| 30 ft, 10 in 12 | 180 in | 150 in | 54,900 | 234.307 in | 19 ft 6 5/16 in |
The usual mistake is skipping the halving and working from the span, which gives a rafter twice too long. The next is mixing feet and inches inside the root.
Work it out
This exercise needs JavaScript.
168 squared is 28,224 and 112 squared is 12,544. They add to 40,768, whose square root is 201.91 inches, or 16 ft 9 15/16 in.
The unit length method
The same triangle shrinks to one foot of run: the square root of 12 squared plus 6 squared is 13.416 inches of rafter per foot. The Navy calls that figure the bridge measure 1; the first line of the rafter table prints it under each rise, rounded to hundredths, and Framing, Combination, and Try Squares shows where. Multiply by the run in feet.
The Navy’s two examples: a 7-in rise on a 16-ft span is 13.89 × 8 = 111.12 in; a 6-in rise on a 25-ft span has a run of 12 ft 6 in, or 12.5 ft, so 13.42 × 12.5 = 167.75 in, 13 ft 11 3/4 in 1. Odd inches of run become a decimal of a foot first: 6 ÷ 12 = 0.5.
Check the table with a calculator, because it is rounded:
| Roof | Table × run | Exact | Difference |
|---|---|---|---|
| 6 in 12, 12-ft run | 13.42 × 12 = 161.04 | 160.997 | +0.043 |
| 8 in 12, 14-ft run | 14.42 × 14 = 201.88 | 201.911 | −0.031 |
| 10 in 12, 15-ft run | 15.62 × 15 = 234.30 | 234.307 | −0.007 |
A table figure can be off by up to 0.005 per foot, or 0.07 in over 14 ft, a little more than 1/16. That is why Swanson’s Blue Book prints 13 ft 5 1/16 in for the 24-ft roof 5 and the root gives 13 ft 5 in. Both are good. Choose one and cut every rafter from it.
Work it out
This exercise needs JavaScript.
144 plus 81 is 225, so the unit length is exactly 15 inches per foot of run. The run is 10 ft, so the line length is 150 inches, 12 ft 6 in. It is a 3-4-5 triangle times three.
Overhang
The projection is the level distance from the building line to the tail cut. The drawings give it, and the rafter’s tail is that run on the same slope: unit length times the projection in feet 1.
- 6 in 12, 16-in projection: 13.42 × 16 ÷ 12 = 17.89, or 17 7/8 in.
- 8 in 12, 12-in projection: 14.42 × 1 = 14.42, or 14 7/16 in.
- 10 in 12, 18-in projection: 15.62 × 1.5 = 23.43, or 23 7/16 in.
The overhang is measured out from the wall, not down the rafter. Lay 16 inches along a 6-in-12 rafter and the eave comes out 14 5/16 inches wide.
Work it out
This exercise needs JavaScript.
18 inches is 1.5 ft of run, and 15.62 x 1.5 = 23.43 inches, about 23 7/16. Measured down the rafter by mistake, 18 inches would give a level overhang of only 13.8 inches.
The ridge reduction
The line length runs to the center of the ridge, and the rafter stops at the ridge’s face. So half the ridge’s thickness comes off each rafter, 3/4 inch for a 1 1/2-in ridge. The Navy calls the line length the theoretical length, and what’s left the actual length 1.
The 3/4 is a level measure: square off the plumb line, as Haun says 3, because the ridge’s face is plumb. Along the rafter’s sloped edge the same deduction reads longer, 3/4 times the unit length over 12:
| Pitch | Along the edge |
|---|---|
| 6 in 12 | 0.84 in, 27/32 |
| 8 in 12 | 0.90 in, 29/32 |
| 10 in 12 | 0.98 in, 31/32 |
Haun accepts a plain 3/4 along the edge at 6 in 12 and under with a 2x ridge 3; that error is 3/32 at 6 in 12 and 5/16 at 12 in 12. His other way is to take the ridge’s thickness off the span before figuring. The run becomes 143 1/4 in, and 143.25 × 13.416 ÷ 12 = 160.16, the same as 161.00 − 0.84.
Omit the ridge board and the rafters meet each other 1, with nothing to deduct.

Quick check
Half the ridge goes to each rafter, and the ridge’s face is plumb, so the 3/4 in is a level measure. On the sloped edge it comes to 27/32 in at 6 in 12.
Cut length and the board you buy
Along the top edge, from the tail’s plumb cut to the ridge’s, the cut length is the line length, minus the reduction on the edge, plus the tail. Both plumb cuts lean the same way across the board, so the rafter is a parallelogram and the board must be longer than the cut length by the depth times the unit rise over 12.
| Roof, rafter | Cut length | Lean | Board | Buy |
|---|---|---|---|---|
| 24 ft, 6 in 12, 2x8, 16-in overhang | 178.05 in | 3 5/8 in | 15.14 ft | 16 ft |
| 28 ft, 8 in 12, 2x10, 12-in overhang | 215.43 in | 6 3/16 in | 18.47 ft | 20 ft |
| 30 ft, 10 in 12, 2x10, 18-in overhang | 256.76 in | 7 11/16 in | 22.04 ft | 24 ft |
The third misses a 22-footer by half an inch. The lumber sizes here serve the arithmetic; rafter size comes from the span tables, which in Wisconsin are valid at 3 in 12 or steeper 6.
A shed roof
A shed roof is half a gable with a difference: the run is the span less the width of the top plate on the high wall, because the rafter’s notch there is reversed, and any overhang on that side is measured from the plate’s inner edge. The rafter has two bird’s mouths, and the high wall stands taller than the low wall by the total rise 1.
For a shed 12 ft outside to outside, with 2x4 walls, at 4 in 12:
- Run: 144 − 3 1/2 = 140 1/2 in.
- Rise: 140.5 × 4 ÷ 12 = 46.83, or 46 13/16 in. Frame the high wall that much taller.
- Length: the root of 140.5 squared plus 46.83 squared is 148.10 in, or 12 ft 4 1/8 in.
- Check: 12.65 × 140.5 ÷ 12 = 148.11.
Work it out
This exercise needs JavaScript.
The run is the span less the plate on the high wall: 120 - 5.5 = 114.5 inches. The measuring line ends at the inside of that plate.
Twelfths, sixteenths, and rounding
Two systems meet on a rafter. The second kind of table on a square reads in twelfths, because the back’s outer edges are graduated that way: a 1/6 pitch on a 12-ft run reads 12, 7, 10, meaning 12 ft 7 10/12 in 7. A tape reads sixteenths. To convert, multiply the twelfths by 16 and divide by 12: 10 × 16 ÷ 12 = 13.33, so 13/16. The exact figure is 151.79 in, or 12 ft 7 13/16 in.
The trap is reading 12, 7, 10 as 12 ft 7.1 in, which is 3/4 inch short. The same trap sits in decimals: 161.04 inches is 13 ft 5 in, not 16 ft 1 in, and 0.42 of an inch is not 4/12.
For hundredths, the Navy multiplies by 16 and rounds: 0.12 × 16 = 1.92, so 2/16 or 1/8; a decimal of 5 or more adds a sixteenth 1. A twelfth can be off 1/24 in at worst, a sixteenth 1/32. Neither matters as much as doing it once: carry the decimals to the end and round the last number, not each step.
What an error does: with the run fixed, a pair of rafters 1/8 in too long lifts the ridge by 1/8 divided by the sine of the pitch, 0.28 in at 6 in 12. The real trouble is rafters that disagree, which Spier says show up as humps and hollows in the finished roof 4.
Find the mistake
This exercise needs JavaScript.
10 × 16 ÷ 12 = 13.33, so 13/16: 12 ft 7 13/16 in, against an exact 151.79 inches. A twelfth is not a tenth.
Tables and manuals for the bench
- The Navy’s Builder 3 & 2, Volume 2, chapter 2, free as a PDF, works gable, hip, intersecting, and shed roofs with figures 1.
- FM 5-426, Carpentry, chapter 7, has both kinds of table 7.
- Haun’s “Framing a Gable Roof,” Fine Homebuilding no. 60, is the piecework method in five pages 3.
- A rafter book or a construction calculator. Haun looked his lengths up in a rafter book 3, and Spier’s calculator gives feet and inches directly 4.
- Next door. The marks themselves are in Laying Out a Common Rafter.
Work one roof from the tape
Measure a garage or shed: span at the plates at both ends, overhang out from the wall, and pitch with a square and level. Figure the line length by the root and again by unit length, then the tail, the ridge reduction, the cut length, and the board you would buy. Measure a real rafter from the inside if you can reach one, and write down how far your figure lands from it.
Lesson complete
Nice work.
Teach it back
In two sentences, explain Rafter Length and the Right Triangle to a friend who missed it.
Related lessons
Among the starsLessons that point here
- ArchitectureTrusses and Frames
- European WorkshopsDrawing a Hip Rafter by the Trait
- Japanese WorkshopAsanoha: The Hemp Leaf Pattern
- Residential ConstructionRoof Framing: Rafters and Trusses
- Timber FramingBraces and Knee Braces
- Timber FramingTying Joints: Posts, Tie Beams, Plates, and Rafters
- Layout and Carpentry MathFraming, Combination, and Try Squares
- Layout and Carpentry MathDegrees, Pitch, and Slope
- Layout and Carpentry MathLaying Out a Common Rafter
- Layout and Carpentry MathHips, Valleys, and Jacks
- Layout and Carpentry MathConstruction Calculators and Shop Tables
Sources for this lesson
- 2Fred T. Hodgson. ABC of the Steel Square and its Uses. Frederick J. Drake & Co., Wilmette, Illinois (undated); Project Gutenberg ebook 49273 (2015). verifiedPublic domain. The Nicholls framing rule's directions: under 8 the first line reads 14.42, x 8 = 115.36 inches or 9 ft 7 3/8 in; the second line reads 18.78, x 8 = 150.24 or 12 ft 6 1/4 in for the hip or valley; cuts for the hip use 17 on the body and the rise on the tongue, for commons and jacks 12 and the rise; the third line, 19 1/4 inches, is the first jack and the difference between jacks at 16-inch centers, the fourth, 2 ft 4 7/8 in, at 2-ft centers; the fifth line, 10 and 12, gives the side cut of jacks; in cutting jacks allow half the thickness of the hip or valley, since the lengths on the square run to center lines. Stepping off: a 30-ft building at half pitch is stepped 15 times at 12 and 12 from a backing (gauge) line run into the angle of the notch, then set back half the thickness of the ridge-board; every 17 inches on the rafter is nearly a foot on the level; a 30 ft 9 in building adds a partial step of 4 1/2 inches. Half-pitch, quarter-pitch, and so on name the ridge height as a fraction of the span; half pitch is 45 degrees, third pitch nearly 34, quarter pitch about 27. A 24-ft building at half pitch has a 17-ft rafter. Hip or valley: the diagonal of a foot is practically 17 inches, so use 17 for run; for an octagon rafter use 13. Jacks: if there are to be five, divide the common rafter into six equal parts for a pattern, though that will not always work.
Also cited in Hips, Valleys, and Jacks, Laying Out a Common Rafter.
- 3Larry Haun. Framing a Gable Roof. Fine Homebuilding, no. 60 (May 1990), pp. 83-87. 1990. verifiedPieceworkers' methods from Los Angeles tracts. Stack rafters on edge on site-built rafter horses, crowns up, flush the ridge ends against a stud, measure down the two outside rafters, and snap a line for the heel cuts. A layout tee from a 2-ft 1x the width of the rafters, the ridge cut scribed with a Speed Square and the heel line about a foot down, with a 1x2 fence, marks every ridge cut and bird's mouth; cut the ridges with the rafters on edge, then flip them and cut the seats, overcutting just enough to remove the bird's mouths. Gang-cutting with a beam saw and a swing-table or dado worm-drive saw; with gang-cut bird's mouths there is no overcut to weaken the tail. Tips: measure the span at the top plates at both ends rather than trusting the blueprints. Subtract half the ridge thickness from the rafter length; theoretically that is measured perpendicular to the ridge cut, but at 6 in 12 and under with a 2x ridge, measuring along the rafter's edge is close enough; or subtract the whole ridge thickness from the span before using the rafter book. The tails are cut in place after a line is snapped across them, which keeps the fascia straight; mark the plumb cut with the layout tee or a bevel. Cited at: p. 86.
Also cited in Laying Out a Common Rafter, Construction Calculators and Shop Tables.
- 4John Spier. Cutting and Setting Common Rafters. Fine Homebuilding, no. 142 (November 2001), pp. 56-61. 2001. verifiedA Block Island, Rhode Island, builder's method. Straighten, plumb, and square the walls first: plate-to-plate measurements at both ends, diagonals, a string line gauged with blocks. He works with a calculator from the bottom edge: run = (inside plate-to-plate distance minus the ridge thickness) / 2, rise by proportion from the pitch, length by squaring rise and run, adding, and taking the square root; construction calculators do it in feet and inches. The first rafter is a pattern: choose a straight piece and mark the crown; mark the plumb cut with a rafter square; current codes want the bottom of the ridge cut to bear fully on the ridge, and the length of the plumb cut sets the minimum ridge width. The seat cut's angle is the complement of the plumb cut (10 in 12: about 40 and 50 degrees); its length is the width of the wall plate plus the sheathing; the heel cut completes the bird's mouth. Draw the tail and its trim and soffit details full size on the pattern. Test-fit a couple of rafters, using them to brace the ridge, or test with a block the ridge's thickness between the ridge cuts. Then nail plywood blocks on the pattern's top edge over the ridge cut and over the bird's mouth seat so every rafter is marked uniformly regardless of width and crown; mark the crown on all stock, reject excessive crown or bow, and mark with crowns up. Overcutting the bird's mouth with a circular saw is generally acceptable except when the notch goes more than two-thirds of the way across the rafter or the tail carries a wide overhang; then cut to the corner and finish with a handsaw. Nail the bird's mouth first, with the ridge end held slightly high. Cited at: p. 56; p. 58; p. 60.
Also cited in Laying Out a Common Rafter, Construction Calculators and Shop Tables.
- 5Cutting a Common Rafter (The Blue Book, topic). Swanson Tool Co.. verifiedRafter length = the square root of run squared plus rise squared; 5 in 12 gives 13.00 inches per foot of run; 6 in 12 on a 24-ft span gives 13.42 x 12 = 161.04 inches, 13 ft 5 1/16 in. Deduct half the ridge thickness. If the lumber is not straight, put the crown up. Pivot the square on the top edge to the rise on the COMMON scale and mark the plumb cut; measure the rafter length along the top edge and mark a second plumb line, which represents the outside wall; add the tail length and mark its plumb cut; tails may be cut on the ground or marked to a line after the rafters are up. A 6 in 12 plumb cut is 26.57 degrees off vertical.
Also cited in Laying Out a Common Rafter, Construction Calculators and Shop Tables.
- 6Wis. Admin. Code SPS 321.27, Roof design and framing. Wisconsin Legislative Reference Bureau (Uniform Dwelling Code, Department of Safety and Professional Services). verifiedRegister November 2024 No. 827. (1)(b): the joist and rafter tables in SPS 325 Appendix A are valid for roofs of at least 3 in 12; lesser slopes need engineering or a ridge beam. (4)(a): rafters shall be notched to fit the exterior wall plate and fastened to the wall. (4)(b): rafters meeting at a ridge attach to a ridge board whose depth is at least the length of the rafter's cut end; nominal 1 inch thick where rafters are opposite or offset less than their thickness, 2 inches where offset more. (4)(d): bearing for wood rafters per the NDS but never less than 1 1/2 inches on wood or metal or 3 inches on masonry or concrete. (6)(a): valley rafters without bearing beneath are doubled and at least 2 inches deeper than the common rafters to permit full bearing at the beveled end; (6)(b): hip rafters without bearing beneath are the same thickness as commons and at least 2 inches deeper, for full contact with the jacks. (8)(b): notches in the top or bottom of ceiling joists and rafters may not exceed 1/6 of the depth, be longer than 1/3 of the depth, or sit in the middle third of the span; notches at the ends may not exceed 1/4 of the depth; bird's mouth cuts may not exceed 1/3 of the rafter's depth unless the seat cut bears fully on the wall plate. Cited at: (1)(b).
Also cited in Roof Framing: Rafters and Trusses, Tying Joints: Posts, Tie Beams, Plates, and Rafters, Hips, Valleys, and Jacks and 1 more.
- 7FM 5-426, Carpentry, chapter 7: Roof Systems (Rafters). Headquarters, Department of the Army. 1995. verifiedPublic domain, dated 3 October 1995. Rafters (pp. 7-2 to 7-4): spaced 16 to 48 inches apart; nailed to the plate, not framed into it; common rafters run at right angles from plate to ridge and are the basis for laying out the other types; hip, valley, and jack (hip jack, valley jack, cripple jack, which touches neither ridge nor plate). Rafter layout (pp. 7-5 to 7-6): find the total run, half the span (a 20-ft building has a 10-ft run); lay the stock on sawhorses with the crown or bow as the top edge; pick a straight piece for the pattern rafter, or keep the crown away from you; with 8 on the tongue and 12 on the blade along the top edge, mark the ridge plumb cut along the tongue; for a rafter 12 feet and 1/6 inch long, measure that from the plumb cut and mark the seat plumb line the same way; measure the overhang and mark the tail plumb cut, though the tail is often cut square; the level cut or width of the seat is the width of the plate, measured perpendicular to the plumb cut; square the lines down the sides with a try square. Step-off method: step as many times as there are feet in the run; for a 20 ft 8 in building the run is 10 ft 4 in and the 4 inches are stepped as a partial step. When laying off rafters by any method, recheck the work; when two rafters have been cut, put them in place to see if they fit, where minor adjustments can be made without waste. Type 1 rafter table on the face of the blade; Type 2 on the back gives run, rise, and pitch for seven pitches: 1/6 pitch with a 12-ft run reads 12, 7, 10, meaning 12 ft 7 10/12 in; inches and twelfths when the run is in inches. Cited at: p. 7-8.
Also cited in Laying Out a Common Rafter.