HispashopRafter Calculator

Rafter Calculator

Cutting rafters starts with a few numbers: the span, the pitch and the overhang. Enter them and the calculator gives the rafter length along the line from ridge to wall plate, the overhang tail, the total length to buy, the rise, the plumb and seat cut angles and a safe birdsmouth depth — in feet, inches and sixteenths or in millimetres.

Common rafter calculator

Rafter Layout Kit

Rafter layout kit: Excel rafter calculator for multiple roofs, printable rafter layout sheets, a pitch and length-factor table, a rafter cut list and a roof framing checklist.

Formats: XLSX, PDF, DOCX. Instant download after payment (link valid 72 hours, up to 5 downloads). AI-assisted: the templates were drafted with AI help and reviewed and laid out before publishing.

$5.00 USD, one-time 5 files · about $1.00 each

7-day money-back guarantee. Full refund within 7 days of purchase, even after you download.

Free sample: Rafter Calculator (PDF, 97 KB)

Full refund within 7 days — see the refund policy and license.

Free printables

Single sheets you can print right now, no sign-up. The full pack adds every sheet in one download plus the editable files.

Browse the free printables →

Rafter terms

TermMeaning
SpanDistance between the outside edges of the two wall plates
RunHorizontal distance covered by one rafter — half the span, less half the ridge board
RiseVertical height from the top of the wall plate to the ridge
PitchRise per 12 units of run, such as 6 in 12
Line lengthRafter length measured along its top edge line from ridge to plate
Overhang / tailThe part beyond the wall that forms the eave
Plumb cutVertical cut at the ridge and tail
BirdsmouthNotch where the rafter sits on the wall plate: seat cut plus heel (plumb) cut

The formulas

Pitch table

PitchAngleLength factor
3 in 1214.0°1.031
4 in 1218.4°1.054
5 in 1222.6°1.083
6 in 1226.6°1.118
7 in 1230.3°1.158
8 in 1233.7°1.202
9 in 1236.9°1.250
10 in 1239.8°1.302
12 in 1245.0°1.414

Worked example

A 24 ft wide building with a 6-in-12 roof and a 1½ in ridge board has a run of (288 − 1.5) ÷ 2 = 143.25 in per side. The length factor for 6 in 12 is 1.118, so the line length is about 160.16 in (13′ 4 3/16″). A 12 in horizontal overhang adds 13.42 in of tail, giving a total of about 173.6 in (14′ 5 9/16″) — so buy 16 ft boards. The roof angle is 26.57°, the rise is 6 ft, and a 3½ in seat cut gives a heel 1¾ in deep, well within a third of a 2×8 rafter.

Marking and cutting

  1. Choose the straightest board as a pattern rafter and mark the crown (the slight bow) to face up.
  2. Mark the plumb cut at the ridge end with a speed square set to the pitch.
  3. Measure the line length along the top edge (or a measuring line) and mark the plumb line of the birdsmouth.
  4. Mark the seat cut square to the plumb line, then the tail length and tail plumb cut.
  5. Cut the pattern, test-fit it on both walls, then use it to mark the rest.
  6. Remember to deduct half the ridge thickness (already done by the calculator’s run).

Building codes and loads

Rafter size and spacing depend on the span, roof load, snow load and timber grade. Span tables in the building code (such as the International Residential Code in the US) or from timber associations give the maximum span for each size and spacing. This calculator gives geometry only — always check sizes, spacing, fastening and bracing against your local code, and consult an engineer or building official for anything beyond a simple shed or garage roof.

Hip, valley and jack rafters

This calculator covers common rafters, which run from the wall plate to the ridge at right angles to both. Hip and valley rafters run diagonally at 45° in plan on a regular hip roof, so their run is the common run multiplied by √2 (about 1.414) and their slope is shallower — often described as “pitch in 17” instead of “in 12”. Jack rafters are shortened commons that land on a hip or valley, each one shorter than the last by a fixed amount equal to the rafter spacing times the length factor.

Metric users

Switch to millimetres and enter the span in metres, the ridge thickness, overhang, rafter depth and plate width in millimetres. Pitch is still entered as rise per 12, which works for any unit: a 6-in-12 roof has the same angle (26.57°) whether measured in inches or millimetres. If you know the roof angle instead, pitch = 12 × tan(angle).

What the template pack includes

An Excel rafter calculator for several roofs, printable rafter layout sheets, a pitch and length-factor table, a cut list and a roof framing checklist.

Frequently asked questions

How do I calculate rafter length?

Multiply the run (half the span minus half the ridge) by √(1 + (pitch/12)²), then add the tail length.

What angle is a 6/12 roof?

About 26.57°.

How deep can a birdsmouth be?

A common rule is no more than one-third of the rafter depth.

Does the ridge board change rafter length?

Yes, subtract half its thickness from each run.

What size lumber should I buy?

The next standard length above the total rafter length, allowing a little extra for trimming.

Does it replace building code span tables?

No, it gives geometry only; check sizes and spacing against local code.

How do I convert a roof angle to pitch?

Pitch = 12 × tan(angle); for example, 30° is about 6.93 in 12.

What is the most common roof pitch?

Many homes use pitches between 4 in 12 and 9 in 12; 6 in 12 is very common.

Where do I measure the span?

From the outside edge of one wall plate to the outside edge of the other.