Rafter length calculator
Common rafter length, ridge height and the two angles you need at the saw, from the span of the building, the pitch and the overhang.
Default scenario: 30 ft span, 6:12 pitch, 1 ft eave overhang. Change a field and recalculate for your roof.
Your result
17 ft 10.7 in rafters
a 7 ft 6 in ridge above the wall plate, on a 30 ft span at 6:12
| Run to the ridge | 15 ft | 30 ft span ÷ 2 |
| Pitch multiplier | 1.118 | √(144 + 6²) ÷ 12 |
| Rafter length | 17 ft 10.7 in | (15 + 1) × 1.118 |
| Ridge height | 7 ft 6 in | Run × 6 ÷ 12 |
| Plumb cut angle | 26.6° | Angle at the ridge, from horizontal |
| Overhang along the slope | 1 ft 1.4 in | 1 ft horizontal × multiplier |
| Rafter tail for a 6 in fascia | 7.4 in | Subtract the fascia depth if the tail dies into it |
- Rafter length is measured along the top edge, from the outside of the wall to the top of the ridge board.
- The ridge height is measured from the top of the wall plate to the top of the ridge, using the same rise per foot of run.
Before you buy
- This is geometry, not a span table. Check IRC Table R802.4.1 or the lumber stamp for the size and spacing your span allows.
- Deduct half the ridge board thickness when you cut, and cut a test rafter before you cut the run.
- Hip and valley rafters are longer than common rafters; they need their own layout.
The triangle behind every rafter
A common rafter is the hypotenuse of a right triangle. The run is half the building span, because the ridge sits in the middle. The rise is the run times the pitch divided by 12. The rafter length is the square root of the run squared plus the rise squared, which is the same as the run times the pitch multiplier.
For a 30 ft span at 6:12 the run is 15 ft, the rise is 7.5 ft, and the rafter is √(15² + 7.5²) = 16.77 ft. Adding a 1 ft horizontal overhang makes the run 16 ft and the rafter 17.89 ft, or 17 ft 10.7 in. The multiplier does the same work in one step: 16 × 1.118 = 17.89.
Why the overhang goes on the run
The overhang is measured horizontally, from the outside of the wall to the fascia. It is part of the run, not part of the rise, so it is added to the horizontal distance before the multiplier is applied. Adding a foot to the rafter after the multiplier instead produces a tail that is about an inch short, which shows up as a fascia that does not line up.
The rafter tail also has to make the turn down the fascia. If the tail dies into a 6 in fascia board, subtract about 6 in from the slope length, which the calculator shows as a separate row. Cut one rafter, hold it in place and check the fascia line before cutting the rest.
Ridge height is measured to the top of the ridge
The ridge height in the result is from the top of the wall plate to the top of the ridge board. That is the number you use for siding, chimney height and the gable vent. The underside of the ridge is lower by the depth of the ridge board, and the rafter's plumb cut meets that underside, which is why the cut length is shorter than the top-edge length.
On a 2 × 10 ridge, the difference is about 9-1/4 in vertically. Deduct half the ridge thickness horizontally when you lay out the plumb cut, and measure the first rafter against the actual ridge rather than against the drawing.
The birdsmouth and the seat cut
Most rafters sit on a wall plate with a birdsmouth: a horizontal seat cut that bears on the plate and a vertical heel cut that lets the rafter drop into place. The seat cut removes material from the rafter, so the effective depth at the bearing point is less than the nominal size. A seat cut that is too deep turns a 2 × 8 into a 2 × 6 at the worst possible place.
Common practice keeps the seat cut to about one third of the rafter depth, with the heel cut square to the plumb line. The geometry here does not include the birdsmouth; it gives the top-edge length, which is the line you measure along before any cuts.
Span, not length, decides the lumber
This calculator will happily return a rafter length for any span you type. That does not mean a 2 × 6 can carry it. Rafter size depends on the span, the spacing, the species and grade, the roof load and the deflection limit, and it comes from IRC Table R802.4.1 or the lumber supplier's span table.
A 30 ft span at 24 in on center in a snow country is a different rafter from the same span in coastal California. Use this tool to get the length, then use the span table to get the depth. If the two disagree, the span table wins.
Hips, valleys and jack rafters
A common rafter runs square from the eave to the ridge. A hip rafter runs diagonally from the corner of the building to the ridge, so its run is the diagonal of the plan, which is √2 times longer than a common rafter's run. A valley rafter is the same length as the hip on the same roof.
Jack rafters are the short ones that fill between a hip or valley and the ridge. Each has its own length, and they are usually cut in pairs. This calculator does not produce jack lengths; the framing square and the roof plan do.
Rafter ties and ridge support
A ridge board is not a beam. It holds the rafter tops in line while the roof is built, and the roof's outward thrust is resisted by rafter ties, ceiling joists or a structural ridge. Removing a ceiling joist to open up an attic changes that load path, and the ridge can sag even if every rafter is the right size.
Collar ties near the upper third reduce rafter spread but are not a substitute for a proper ridge beam or rafter ties, and they are not required in every roof. If you are changing the framing, have someone check the load path.
Cutting order that saves material
- Cut one rafter and test-fit it at both ends.
- Use it as a pattern for the rest, checking the ridge cut against the actual ridge board.
- Number the rafters and keep the crown of the lumber up.
- Install pairs opposite each other so the ridge stays straight.
- Brace the first pair before you climb onto the next one.
A roof is a system: the sheathing ties the rafters together, the ventilation keeps the deck dry, and the pitch decides both. Change one and check the others.
A worked example
A 30 ft span at 6:12 with a 1 ft overhang. Run 15 ft, multiplier 1.118, rafter (15 + 1) × 1.118 = 17.89 ft, or 17 ft 10.7 in. Ridge height 15 × 6 ÷ 12 = 7.5 ft, or 7 ft 6 in. Plumb cut angle 26.6°. Overhang along the slope 1.118 ft, about 13.4 in.
Frequently asked
How long is a rafter for a 30 ft span at 6:12?
With a 1 ft overhang, about 17 ft 10.7 in. The run to the ridge is 15 ft, plus 1 ft of overhang, times the 1.118 multiplier.
How high is the ridge on a 30 ft span at 6:12?
The ridge is 7 ft 6 in above the top of the wall plate. Half the span is 15 ft, and 15 × 6 ÷ 12 = 7.5 ft.
Do I add the overhang before or after the multiplier?
Before. The overhang is a horizontal distance, so add it to the run and then multiply. If you multiply first and add a foot, the tail comes out short by about an inch.
Why is my rafter cut shorter than the calculator?
The number here is the top-edge length to the top of the ridge. Deduct half the ridge board thickness, and make sure the birdsmouth seat is measured from the same reference line.
Can I use this as a span table?
No. It gives geometry, not strength. Rafter size and spacing come from IRC Table R802.4.1 or the lumber grade stamp, and those depend on species, load and deflection limits.
Where these numbers come from
- Roof Pitch Multiplier: Calculator, Table & Guide — Roof Observations (Jack Gray, RRO), read Nov 20, 2026
- APA Panel Roof Sheathing (Engineered Wood Construction Guide excerpt) — APA – The Engineered Wood Association, read Nov 20, 2026
Figures that come from our own arithmetic rather than a published table are marked house rule on the method page. No price is shown anywhere on this site because no supplier publishes one national figure that would be true for your town and your roof.
Related: roof pitch · roof squares · sheathing · pitch chart