Rafter length calculator

A rafter with a 12 ft horizontal run and 5 ft of rise (a 5/12 pitch) is 13 ft long, or 14.08 ft with a 1 ft overhang, at a roof angle of 22.6°.

Find the sloping rafter line from rise, horizontal run and overhang: length = (run + overhang) × √(1 + (rise/run)²).

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

Example: a 12 ft run with 5 ft of rise (a 5/12 pitch) and a 1 ft overhang. Type your own roof over it.

More options

Sloping length

14.0833

More results
Compare with other numbers

Save the current answer, then change an input to compare. This clears when you leave.

Rounding and decimal places

Rounding changes how numbers are shown, not how they are calculated.

Automatic precision rounds answers for reading: up to six significant digits, with whole numbers kept in full. Thousands separators such as 1,000 are accepted; use a dot for decimals.

More
Quick calculator

Use +, −, ×, ÷, parentheses and %. This doesn’t change the tool above.

Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

How it works

This is line length, not a cut list. Ridge thickness, birdsmouth, seat cuts, stock length, structural loads and code checks are excluded.

Next: Roof pitch calculator

How the sloping length changes with horizontal run

Other inputs keep their starting values: Rise over that run: 5; Horizontal overhang: 1. Examples only, not recommendations.

Horizontal runSloping length
69.111958
1214.083333
2425.536772
Cite this page

ToolOctopus. “Rafter length calculator.” Updated . https://tooloctopus.com/rafter-length-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.