The formula
Pythagoras: rise² + run² = hypotenuse². So hypotenuse = √(a² + b²), and a missing leg = √(c² − b²). With an angle: rise = run × tan A, hypotenuse = rise ÷ sin A.
Type any two of the rise, the run, the hypotenuse and the angle, in feet and inches or meters. Or check a corner is square with the 3-4-5 rule.
a² + b² = c², worked to the 1/16 inch, the way rafters, stairs, braces and layouts are measured.
Pythagoras: rise² + run² = hypotenuse². So hypotenuse = √(a² + b²), and a missing leg = √(c² − b²). With an angle: rise = run × tan A, hypotenuse = rise ÷ sin A.
A rafter with a 6 ft rise over a 12 ft run: √(36 + 144) = √180 = 13.416 ft, or 13 ft 5 in. The angle is the inverse tangent of 6 ÷ 12 = 26.57°, the pitch of a 6 in 12 roof.
Mark 3 ft along one line and 4 ft along the other: if the marks are exactly 5 ft apart, the corner is square. Any multiple works, such as 6-8-10 or 9-12-15, so use the biggest that fits. For a rectangle, both diagonals also measure the same.
| Rise and run | Hypotenuse | Angle A |
|---|---|---|
| 3 and 4 | 5 | 36.87° |
| 6 and 8 | 10 | 36.87° |
| 5 and 12 | 13 | 22.62° |
| 8 and 15 | 17 | 28.07° |
| 7 and 24 | 25 | 16.26° |
| Pitch | Hypotenuse per 12 in | Angle |
|---|---|---|
| 3 in 12 | 12.37 in | 14.04° |
| 4 in 12 | 12.65 in | 18.43° |
| 6 in 12 | 13.42 in | 26.57° |
| 8 in 12 | 14.42 in | 33.69° |
| 12 in 12 | 16.97 in | 45° |
Framing a roof or stairs? The rafter length calculator and stair calculator carry on from here. Price the work on the contractor estimate template.
Square the two legs, add them and take the square root: √(a² + b²). With legs of 6 and 8 the hypotenuse is √100 = 10.
Square the hypotenuse, take away the square of the known leg and take the square root: √(c² − a²). With a hypotenuse of 13 and a leg of 5, the other leg is √144 = 12.
Divide the rise by the run and take the inverse tangent. A 6 ft rise over a 12 ft run is tan⁻¹(0.5) = 26.57 degrees.
A triangle with sides of 3, 4 and 5 always has a right angle, so measuring 3 and 4 along two lines and getting 5 between the marks proves the corner is square. Multiples like 6-8-10 work the same way.
Half the rise times the run: a triangle with legs of 6 and 8 has an area of 6 × 8 ÷ 2 = 24.