Using the Rafter Length Calculator
This page finds the straight-line length of a rafter from the rise and the run. The length is the square root of rise squared plus run squared. A rise of 6 and a run of 12 return 13.416407864999. The slope angle for that pair is 26.5651 degrees.
Both numbers must be in the same unit, and both must be greater than zero. The page does not add a ridge plumb cut, a birdsmouth, or a code overhang. If the overhang is extra horizontal run, add it to the run before you type.
Rise, Run, and the Hypotenuse
Rise is the vertical leg. Run is the horizontal leg. The rafter is the sloping side that closes the right triangle. The page squares each leg, adds the squares, and takes the square root.
The headline is that length, in the same unit you used for the legs. The lines repeat the rise, the run, and the angle in degrees. The angle is the angle between the rafter and the horizontal run, from the arctangent of rise divided by run.
A rise of 0 would make a flat line, and the page rejects it. A run of 0 would make a vertical line, and the page rejects that too. A rafter in this tool is a triangle with two positive legs.
How 6 and 12 Become 13.416407864999
Six squared is 36. Twelve squared is 144. The sum is 180. The square root of 180, at the working precision this page uses, is 13.416407864999. Quote that full headline when you are checking the page. A calculator that rounds the root to 13.42 is showing a rounded figure, not a different triangle.
The angle line is 26.5651 degrees. That is the arctangent of 6/12, printed to four decimal places. It is not a roof pitch in the form 6:12, though you can see the 6 and the 12 in the input lines and call the pitch 6 in 12 yourself.
A board’s volume is a different product. The Board Foot Calculator turns thickness, width, and length into board feet. It does not take a square root of a rise and a run. Do not send a rafter triangle to that page and call the result a rafter length.
A 45-Degree Check
Enter a rise of 10 and a run of 10. The two squares are equal, the angle should be 45 degrees, and the length should be the square root of 200. If the angle line is not 45, the arctangent is not using rise over run. If the length equals 20, the page added the legs instead of taking the root.
Halving both legs halves the length. Rise 5 and run 5 should be half of the 10-and-10 result. The angle stays 45. Scaling both legs by the same factor scales the hypotenuse and leaves the angle alone.
A negative rise is rejected. Type the size of the leg. The page does not treat a minus sign as a downward slope with a positive length.
A Note for a 6-in-12 Roof
Write “rise 6, run 12, length 13.416407864999, angle 26.5651 degrees” and the unit. A later reader can recompute the root of 180. “About 13 and a half” cannot be checked against the page, and it hides whether overhang was included.
A round pipe is a different shape. The Pipe Volume Calculator multiplies pi by the radius squared and by the length. A rafter is not a cylinder. The two lengths can both be called a length and still answer different questions.
If you added an overhang to the run, write the addition in the note. “Wall run 12, overhang 1, typed run 13” explains a length that will not match a coworker who typed 12. The page saw 13. The note has to show where 13 came from.
Cuts the Page Does Not Make
The hypotenuse is the line from the outer point of the run up to the rise, before a saw shortens it for a ridge cut or a seat cut. Those cuts change the piece you order and the line you measure on the lumber. They are not in this formula. Add the allowance your own method uses, and label it as yours.
Pitch spoken as “6 in 12” means rise 6 for each 12 of run. You can type 6 and 12 for one unit of run, then multiply the headline by the number of those units. You can also type the full rise and the full run in one step. Both routes should agree. If they do not, an intermediate rounding slipped in.
The angle is in degrees, not in percent grade. A percent grade would be rise divided by run, times 100. For 6 and 12 that is 50 percent. The page does not print 50. It prints the angle. Do not call 26.5651 a percent.
Mistakes that Change the Length
Adding rise and run produces 18 for the sample, which is longer than the hypotenuse. The straight cut across is shorter than walking the two legs. If a result is longer than rise plus run, the arithmetic left the triangle.
Mixing units is silent. A rise in inches and a run in feet produces a number with no physical meaning. Convert both legs first. The headline will not name the unit.
A hand root can confirm the sample. The 4-Function Calculator can multiply 6 by 6 and 12 by 12 if you type those steps. It will not take the square root unless the operation you need is available there. Compare 36 + 144 with 180, then compare the page’s root with 13.416407864999.
How the Length Moves
Doubling both legs doubles the length and leaves the angle fixed. Doubling only the rise makes a steeper angle and a longer hypotenuse, but not twice as long. For the sample, doubling the rise to 12 with the run still 12 is the 45-degree case, length equal to the square root of 288.
A small error in the longer leg moves the hypotenuse more than the same error in the shorter leg, because the squares give the longer leg more weight. Check the run first when the run is the long leg, which it is on a roof shallower than 45 degrees.
The page does not remember the previous pair. Each run stands alone. There is no list of rafters to total. Add the headlines yourself if you have several lengths, and label the total as yours.
Writing the Triangle down
Record rise, run, unit, length, and angle. If you rounded the length for a cut list, keep the unrounded headline beside the rounded figure. Say that you rounded.
A line between two known points is a different fill. The Linear Interpolation Calculator estimates a y on the straight line through two points. It does not take a square root of a rise and a run. Use it for a table. Use this page for the triangle.
Reset restores rise 6 and run 12. Calculate immediately and confirm 13.416407864999 before you type a roof you cannot already check on paper.
What the Page Does Not Do
It does not choose a lumber size. It does not check snow load, span tables, or a building code. The length is geometry from the two legs you typed.
It does not convert inches to feet. It does not price the board. It does not draw the birdsmouth. Those steps stay in your note if you do them.
It does not accept a zero leg. A flat or vertical result is not offered as a rafter length.
Two Legs and a Root
One line is enough when it is complete. “Rise 6, run 12, unit inches, length 13.416407864999, angle 26.5651 degrees, no overhang in the run.” A crew can cut from a rounded number and still audit the root. “Rafter 13.4” cannot be turned back into the triangle.
Write the overhang decision every time, even when the overhang is zero. “Overhang not included” and “overhang 1 foot already inside the run” are different triangles. The page cannot see which one you meant. The note is the only record of that choice.
Keep the 6-and-12 check in the job folder. After it matches, new roofs are data entry. Before it matches, do not order lumber from the page. The root of 180 is short enough to recognize. If the headline moves, the working precision or the inputs moved. Stop and read the two legs.
Do not average two rises and run the page once unless the roof really has that average for the full run. A roof that changes pitch is two triangles. Two lines and a total you label as your addition are the honest record. One averaged line hides the steeper piece, and the square root is not linear, so the average of the lengths is not the length of the averaged legs.
Teach the equal-leg case before the 6-in-12 case. Rise 10 and run 10 give 45 degrees, which students can predict. Then show 6 and 12, and let them see an angle near 26.6 degrees rather than 45. Students who expect “half of 45” because 6 is half of 12 will be wrong, and the page is the correction. The angle is the arctangent of the ratio, not half of a steeper angle.
A Triangle, Not a Cut List
The useful sentence is: “For this rise and this run, the hypotenuse is this length at this angle.” That sentence matches the tool. A sentence that says “order this board and it will fit the ridge” adds cuts and lumber the tool did not see. Keep the order in your own words, next to the hypotenuse, not inside quotation marks attributed to the page.
Checking the Triangle
Enter rise 6 and run 12. Confirm the length 13.416407864999 and the angle 26.5651 degrees. Enter rise 10 and run 10. Confirm a 45 degree angle. Enter a rise of 0. Confirm the page rejects it. Those three runs cover the worked roof, the equal-leg case, and the zero check.
Sheet counts are a different use of a width and a height. The Drywall Calculator counts sheets on a wall. It does not return a rafter hypotenuse. Use it for the wall. Use this page for the triangle.