Skip to main content

roof calculator

Rafter Length Calculator

The Rafter Length Calculator applies length = √(run² + rise²) to entered measurements and returns common rafter length. A numerical default is embedded in the served HTML before JavaScript runs. Use it for planning, then verify field measurements, current codes, product instructions, and structural assumptions before ordering or cutting.

Enter measurements

in

Enter a positive field measurement in in.

in

Enter a positive field measurement in in.

in

Enter a positive field measurement in in.

Calculated result

175.5 in

Rafter length uses the roof-triangle hypotenuse and extends the same slope through the overhang.

Roof angle
22.62°
Slope factor
1.0833
Rafter Length scaled diagram Scaled planning diagram using the server-rendered default values. run 162 in rise 60 in rafter 175.5 in
Scaled visual aid. Dimensions in the result table govern; do not scale a cut directly from the drawing.

Printable result and cut list

Rafter Length default worked result
ItemValueJob note
Primary result175.5 inVerify before cutting or ordering.
Roof angle22.62°Calculated from the entered dimensions.
Slope factor1.0833Calculated from the entered dimensions.
Formula used by this calculator
FormulaExpressionNote
Primary formulalength = √(run² + rise²)Round the final result, not each intermediate value.

How the rafter length calculation works

Enter the job dimensions in the form. The calculator normalizes the values, applies length = √(run² + rise²), and updates the main result, supporting values, diagram labels, and print table together.

The first displayed example is calculated during the static build. That makes the formula and a complete numerical result readable in page source, while the browser script handles later input changes.

Worked example

The prefilled values form a complete common rafter length example. Change one field at a time and compare the updated result with the formula table to catch unit or transcription mistakes.

Common errors to avoid

  • Mixing nominal and actual material dimensions.
  • Entering diameter where the formula expects radius, or total run where it expects one tread.
  • Rounding every intermediate value instead of rounding the final purchase or cut quantity.
  • Treating a planning result as a stamped structural design or local-code approval.

Guide cluster

Rafter Length guides

Frequently asked questions

Does the rafter length calculator work without JavaScript?

The default worked result, formula, diagram, and result table are included in the served HTML. JavaScript is only needed to recalculate after you change an input.

Which unit should I use?

Use the imperial page for US customary inputs or open the metric twin for millimetres, centimetres, and metres.

Can I use the result for purchasing material?

Use it as a quantity and layout check, then add the stated waste allowance and confirm package coverage, stock dimensions, and field conditions.

Does this replace building code or an engineer?

No. The calculator is a planning aid. Current local code, product documentation, and a qualified engineer govern structural and life-safety decisions.

More calculators

iPhone companion

Keep jobsite math available offline

The website calculators and charts stay free. The BuildMath iPhone app keeps its supported construction calculations available when the jobsite has no connection.

View BuildMath on the App Store

Last reviewed .