Free rafter length calculator
Rafter length from run and pitch
Type a run — or a span, and it halves it — with the pitch, and you get the line length from the ridge to the plate three ways at once: feet and inches to the sixteenth, decimal feet, and plain inches. Alongside it sits the figure a framing square is stamped with, the length of rafter per foot of run, so the answer can be checked against the tool in your hand. The same triangle then gives the hip or valley off that corner, the ladder of jack rafters at 12, 16, 19.2 or 24 inch centers, and the stock length that covers the piece in one board.
- 100% free
- No signup
- Common, hip, valley and jacks
- Framing-square step-off
- Stock length in feet
Measured level, not along the slope. 14' 3 1/2", 171 in and 4.34 m all read the same.
Leave the overhang at zero and the answer stops at the plate, which is the number most plans dimension.
Common rafter, ridge to plate
13' 5"
13.416 ft · 161 in · rises 6' over the run
Stepping it off with a framing square
13.42 in of rafter for every foot of run. That is 12 full steps of the square and no odd inches to chase.
Hip and valley off the same corner
- Run, measured in plan
- 16' 11 5/8"
- Per foot of common run
- 18 in
- Length
- 18'
- Slope on its own run
- 4.24 in 12
the diagonal of a 12 in square, 16.97 in, which framers round to 17 on the blade. The hip climbs the same rise across a longer run, so it always lies flatter than the commons it meets.
Jacks, 16 in on center
Each one is 17.89 in shorter than the last.
- Jack 1, run 10' 8"11' 11 1/8"
- Jack 2, run 9' 4"10' 5 1/4"
- Jack 3, run 8'8' 11 5/16"
- Jack 4, run 6' 8"7' 5 7/16"
- Jack 5, run 5' 4"5' 11 9/16"
- Jack 6, run 4'4' 5 11/16"
Stock length to buy
14 ft
7" falls off each piece before the cuts.
How to find a rafter length
The measurement is level, the answer is on the slope, and the square is the check.
Enter the level distance, never the sloped one
Run is the horizontal half of the building, from the outside of the wall to the ridge centerline; span is the whole width and this halves it for you. Both are measured on the flat, which is why a laser or a tape stretched across the ceiling joists beats anything read up the roof. If the only figure you have is off a drawing, take it from the plan view rather than the section — a sectional dimension often follows the slope and is already longer than the run.
Say which way you know the slope
Two routes lead to the same triangle. Rise per 12 is the framing convention and what a plan note gives you: 6 means six inches of climb for every foot travelled. Total rise is the whole height gained from the plate to the ridge, which is what you have when a drawing dimensions the ridge height instead of the pitch, or when you are matching an existing roof you have already measured. Either one fixes the shape; the run then fixes the size.
Check the per-foot figure against the square in your hand
Before you cut anything, compare the inches-per-foot-of-run number against the rafter table stamped on the blade of a framing square. They should agree to the sixteenth: at 6:12 the square reads 13.42 for a common and 18.00 for a hip. When they disagree, the pitch went in wrong, and it is far cheaper to find that out against a square than against a stack of cut lumber.
Technical specifications
| Slope input | Rise per 12 in of run, or the total rise from plate to ridge — either resolves the same triangle |
|---|---|
| Length reported | To the nearest 1/16 in, to three decimals of a foot and to hundredths of an inch |
| Common per foot of run | The square root of 144 plus the rise squared: 13.42 in at 6:12, matching a framing square's first rafter line |
| Hip and valley per foot | The square root of 288 plus the rise squared, which lands on exactly 18.00 in at 6:12 |
| Hip run in plan | 16.97 in for every 12 in of common run — the diagonal of a 12 in square, rounded to 17 on the blade |
| Jack common difference | 17.89 in at 16 in centers on a 6:12 roof, 26.83 in at 24 in centers |
| Jack ladder | The first six jacks from the corner, each with its own run and finished length |
| Offcut | What falls off an 8, 10, 12, 14, 16, 18, 20 or 24 ft stick once the piece is cut from it |
Frequently asked questions
Is rafter length measured along the top edge or the bottom edge of the board?
Either, because the two cuts are parallel and the distance between two parallel lines is the same wherever you measure it. That is only true once both ends are plumb cuts, which is the normal case. It stops being true the moment one end is square-cut or the tail is cut level for a soffit return, and then the top edge and the bottom edge differ by the board depth multiplied by the pitch — 4 5/8 in on a 2x10 at 6:12.
Why is a hip rafter flatter than the common rafters it meets?
Because it climbs the same rise across a longer run. On a square corner with equal pitches, the hip travels the diagonal of the plan, which is 16.97 in for every 12 in the common travels. The rise at the top is identical, so the hip's own slope is the common pitch divided by the square root of two: a 6:12 roof carries a hip at 4.24:12. That is why hip layout swaps the 12 on the framing square blade for a 17 — and why the seat cut on a hip is a different angle from the seat cut on the commons beside it.
What are the numbers stamped on a framing square blade for?
They are this calculation, precomputed for each whole pitch, and they have been stamped on the blade for well over a century. The first line is the length of a common rafter per foot of run, the second is the hip or valley per foot of common run, and the two below are the difference in length of jacks at 16 and 24 in centers. A square gives you four figures per pitch and nothing between them; this page gives the same four for a 6 1/2:12 and for a run of 14 ft 3 1/2 in.
The plan gives a ridge height instead of a pitch. Can I still get a rafter length?
Yes — switch the slope input to total rise and enter the height gained from the top of the wall plate to the underside of the ridge. The pitch falls out of that and the run, and the page shows it so you can sanity-check it against a number anyone frames to. Watch what the drawing measures from: a ridge height taken from finished floor or from grade includes the wall height and will report a roof roughly twice as steep as the one being built.
Do all the jack rafters step down by the same amount?
On an equal-pitch hip with evenly spaced jacks, yes — the common difference is the spacing multiplied by the per-foot factor, so at 16 in centers on a 6:12 every jack is 17.89 in shorter than the one before it. It stops holding on an irregular hip, where the two roof planes have different pitches and the hip does not run at 45 degrees in plan; there the two sides have separate common differences and separate cheek-cut bevels. Uneven spacing at an opening breaks it too, which is why the ladder here lists each jack with its own run.
My run is 19 ft 7 in. Does the odd 7 inches actually matter?
It adds 7.83 in of rafter at 6:12, so yes. The step-off panel splits the run into whole feet and the odd inches for exactly this reason: nineteen full swings of the square plus one part step, rather than twenty swings and an argument. Odd runs are the normal case on a remodel, where the walls were framed to whatever the old foundation gave them, and rounding the run to the nearest foot before calculating is how a rafter ends up short at the ridge.
Does this length include the tail and the ridge deduction?
The headline figure does not — it is the line length from the ridge centerline to the outside of the plate, which is the dimension a plan and a lumber list both use. Enter an overhang and the tail is added below it, on the slope, so you can see how much longer the board is than the projection. The half-ridge shortening is deliberately left out here and handled where the rest of the cuts are, because it changes with the ridge material rather than with the roof.
About rafter length and the framing square
Rafter length is one square root, and everything interesting about it is in what gets measured. The run is horizontal and the length is not, so the two are related by the slope factor — but a run taken along an old rafter, off a section drawing, or across a foundation rather than a plate is a different number from the one the formula wants, and no amount of precision downstream recovers it. The convention that makes this workable on a job is the measuring line: pick the run to the ridge centerline, mark plumb at both ends, and the length is the same on any edge of the board.
The four figures a steel framing square carries on its blade are worth knowing because they turn the whole layout into repeated addition. Length of common rafter per foot of run; length of hip or valley per foot of common run; difference in length of jacks at 16 in centers, and at 24. A carpenter with those four numbers can lay out a hip roof by stepping the square along a board, and every one of them is the same triangle evaluated once. The square only carries whole pitches, though, and only for a run in whole feet — which is why the two things this page adds are half pitches and odd inches, the two cases a remodel produces constantly and a stamped table never covers.
Hips and valleys are where the arithmetic stops being obvious. The hip runs the diagonal, so its plan run is longer by the square root of two while its rise stays put, and it therefore lies flatter than the commons — the reason its per-foot constant is built on 288 rather than 144. When the cuts, the birdsmouth and the ridge deduction are what you actually need, the rafter calculator carries them; when the pitch itself is unknown, the roof pitch calculator works it back out of a measurement and the roof pitch chart lists the per-foot constants for every pitch at once. The same step-off logic drives a stair stringer, the surface these rafters carry is sized on the roof area calculator, and the walls holding them up come off the framing calculator.
What happens to the run you type
Every number on this page is worked out by JavaScript running in the tab you are reading it in. Nothing you type — measurements, quantities, the prices your supplier quoted you — is uploaded, logged or kept, which is also why the calculators carry on working on a site with no signal.
The jack ladder and the hip figures are recalculated on every keystroke by the script already loaded with the page. No request goes out while you type, which is why it keeps answering in an attic with one bar of signal.