Rafter Length Calculator

Span, pitch and overhang in — cut length and board out.

Roof dimensions

Outside wall to outside wall — 24' 6" works too.

Eave projection measured level, not along the slope — the calculator converts it.

Rafter

14′-6 7/16″

cut from a 2×12 × 16 ft

Plate to ridge centerline plus overhang, along the slope

Run (half span)12′-0″
Rise at ridge6′-0″
Plate → ridge13′-5″
Overhang on slope1′-1 7/16″
Plumb-cut angle26.6°
GABLE SECTION 14′-6 7/16″ 26.6° SPAN 24′-0″ 6′-0″ RIDGE AT CENTERLINE · DEDUCT ½ RIDGE THK
Multiplier × 1.1180 per foot of run Rafter sizing comes from span tables (IRC R802) — this tool cuts the length

Lengths run to the ridge centerline — deduct half the ridge thickness (¾″ for 2× stock) at the plumb cut, and seat the birdsmouth fully on the plate.

Summary + link — paste into a quote or text

Estimates, not advice. This calculator exists to give you a working idea of the materials a job needs and a rough cost — not numbers to commit money or construction to. Check the figures yourself, or with an appropriately qualified professional, before you order, quote, or build. Read the full disclaimer

How this rafter length calculator works

A common rafter is the hypotenuse over half the building. The calculator runs the pitch multiplier over the half-span, converts your level overhang to its slope length, and adds them:

run = span ÷ 2 · multiplier = √(1 + (pitch ÷ 12)²)
rafter = run × multiplier + (overhang ÷ 12) × multiplier · to ridge centerline

The answer comes back in carpenter’s feet-and-inches to the sixteenth, with the plumb-cut angle and the shortest standard board (8–20 ft) that covers the cut. At the defaults — a 24 ft building at 6:12 with a 12 in overhang — that’s 14′-6 7/16″ out of a 16 ft board; the full chain is in the cut math section below.

The parts of a rafter, plate to ridge

One board, five names along its length — the vocabulary is the layout, so it’s worth thirty seconds:

Plumb cut (ridge cut)

The top cut, vertical when the rafter stands at pitch — sawn at the pitch angle, 26.6° for a 6:12. It lands against the ridge board, which is why the centerline deduction below matters.

The ridge deduction

This calculator’s length runs to the ridge centerline. A ridge board has thickness, so deduct half of it — ¾ in for 2× stock — measured square off the plumb cut. Skip the deduction and every rafter lands ¾ in long, which the walls notice.

Birdsmouth (seat and heel)

The notch that seats the rafter on the wall plate: a level seat cut and a plumb heel cut, laid out where the rafter crosses the outside of the plate. Keep at least two-thirds of the board’s depth above the notch — over-notching is the classic layout sin.

Tail and overhang

Everything past the birdsmouth. You enter the overhang as level projection — how far the eave sticks out in plan — and the calculator stretches it along the slope, because a 12 in level overhang at 6:12 is 13 7/16 in of actual board.

Collar ties and rafter ties

The horizontal members that keep rafter pairs from spreading the walls (rafter ties, low) or the ridge from opening in wind (collar ties, high). A ridge board roof needs rafter ties or a structural ridge beam — that decision is framing design, not cut length.

What lumber for rafters?

Length is this calculator’s job; depth is the span table’s. IRC R802.4 sizes rafters by four things at once — species, grade, spacing and snow load — so the same 2×8 that spans a garage in Georgia comes up short in Buffalo. How to buy once the table has spoken:

  • Read the span table first: your county’s ground-snow load plus the AWC/IRC rafter tables give the required depth for each spacing — the calculator’s length then names the stock to buy.
  • #2 grade is the framing standard; pick boards straight along the edge, and crown every rafter up — the roof load will flatten it, never the reverse.
  • Past 20 ft of cut length, single sticks run out: go two-piece with a scabbed splice over a purlin, step up to LVL, or switch to trusses.
  • Price the stack as volume: the board foot calculator turns a rafter tally into board feet and dollars.
Table 1 — Rafter stock prices, 2026 retail
BoardTypical range
2×6 × 16 ft$12–18
2×8 × 16 ft$18–28
2×10 × 16 ft$28–40
2×12 × 16 ft$38–55
LVL, per lin ft$6–10
Placeholders, not gospel — lumber moves weekly. Longer stock costs more per foot, which is why the board-length output matters.

Rafter lengths by span and pitch

Table 2 runs the common spans through the engine with a 12 in overhang — cut length first, the board to buy in parentheses.

Table 2 — Cut lengths with a 12 in overhang (board to buy)
Span 4:12 6:12 8:12
16 ft9′-5 13/16″ (10)10′-3/4″ (12)10′-9 13/16″ (12)
20 ft11′-7 1/8″ (12)12′-3 9/16″ (14)13′-2 5/8″ (14)
24 ft13′-8 7/16″ (14)14′-6 7/16″ (16)15′-7 1/2″ (16)
28 ft15′-9 3/4″ (16)16′-9 1/4″ (18)18′-5/16″ (20)
32 ft17′-11 1/16″ (18)19′-1/16″ (20)20′-5 3/16″ (—)
Generated by this calculator's engine; (board length in feet). "—" means past 20 ft stock — go two-piece, LVL, or trusses.

How to measure for rafters

Three numbers off the plans or the plates, one pattern rafter, and the rest is production. Dimension fields take feet-inches (24, 24 ft 6 in) or metric (7.5 m).

  1. Measure the span — outside of wall plate to outside of wall plate, the full building width the roof covers. Measure it at both ends; old walls wander.
  2. Set the pitch from the plans, or match an existing roof with the roof pitch calculator’s level-and-tape method.
  3. Enter the overhang as level projection — how far the eave sticks out in plan. The calculator handles the slope stretch.
  4. Read the cut length and board — then deduct half the ridge thickness (¾ in for 2× stock) square off the plumb cut.
  5. Cut one pattern rafter and test it both ends of the building before cutting the stack — plates that spread an inch turn a perfect pattern into firewood.
  6. Count the sticks: building length ÷ spacing + 1, times two sides — and a few spares for crowns you reject at the pile.

Worked example: rafter length for a 24 ft span

The defaults, worked line by line — 24 ft building, 6:12 pitch, 12 in level overhang:

run = 24 ÷ 2 = 12 ft
multiplier = √(1 + (6 ÷ 12)²) = √1.25 = 1.118
main = 12 × 1.118 = 13.42 ft = 13′-5″ plate to ridge CL
overhang = (12 ÷ 12) × 1.118 = 1.12 ft = 1′-1 7/16″
total = 14′-6 7/16″ → buy a 16 ft board
plumb cut = atan(0.5) = 26.6° · ridge rise = 12 × 0.5 = 6 ft

Note what the overhang did: 12 level inches became 13 7/16 in of board, because the tail runs down the slope like everything else. And the 1½ ft of “spare” board past the cut is not waste — it’s the crown trim, the plumb-cut kerf, and the margin that lets you re-cut one bad end instead of re-buying one bad rafter.

What this rafter calculator doesn’t decide

Cut length is geometry; the rest of a roof frame is structure. Before the saw starts, these come from tables, plans or an engineer:

  • Rafter depth and spacing: IRC R802.4 span tables, entered with your snow load, species and grade.
  • Ridge board vs ridge beam: a board needs rafter ties; a structural beam needs sizing and posts. Cathedral ceilings force the beam conversation.
  • Hip and valley rafters: they run diagonally at their own 17-in unit run — different length, different layout, not this common-rafter math.
  • Uplift and hardware: hurricane ties, blocking and connection schedules per wind zone.
  • The truss alternative: long spans and simple roofs often price better engineered — quotes are free, cranes are not.
  • Permits and inspection: roof framing is inspected framing almost everywhere.

Rafter FAQ

How long a rafter do I need for a 24 ft wide building?

At a 6:12 pitch with a 12 in overhang, each rafter cuts 14 ft 6 7/16 in along the slope — buy 16 ft 2× stock. At 4:12 the same span needs 13 ft 8 7/16 in; at 8:12, 15 ft 7 1/2 in. The calculator names the shortest standard board for any combination.

Does rafter length include the overhang?

Here, yes — the result is plate to ridge centerline plus the overhang converted to its slope length. Enter 0 overhang for the bare plate-to-ridge number. Remember the printed length runs to the ridge centerline: deduct half the ridge thickness (¾ in for 2× stock) at the plumb cut.

What angle do I cut the rafter ends?

The plumb cut equals the pitch angle — 26.6° for a 6:12 roof. Set your saw to it for the ridge cut and the tail cut; the birdsmouth uses the same angle for its plumb face and the complement for the seat.

How far apart are rafters spaced?

16 or 24 inches on center in stick framing, set by the span tables together with the rafter depth — tighter spacing lets the same board span farther. Whatever the spacing, every rafter is the same cut length, which is why one pattern rafter rules the whole roof.

What size lumber should rafters be?

That is a span-table question, not a length question: IRC R802.4 sizes rafters by species, grade, spacing and snow load. This tool gives you the cut length and board length; confirm the depth (2×6, 2×8, 2×10…) against the tables or your plans.

How much overhang should a roof have?

12–24 inches of level projection is the common range — enough to throw water clear of the siding and shade summer glass. Dry climates run wider, high-wind coastal zones tighter; gutters hang off whatever you choose. The calculator converts any overhang to its slope length automatically.

Rafters or trusses?

Trusses win on speed, engineering paperwork and long clear spans; stick-framed rafters win on attic space, complex roofs, and jobs where a crane can’t reach. Cost is closer than folklore says once you price the ridge beam and labor — but a truss package arrives sized, and rafters arrive as this calculator’s cut list.

How do I lay out the birdsmouth?

Mark the plumb line where the rafter crosses the outside of the wall plate, then the level seat cut from it — the seat should bear fully on the plate, and the remaining rafter depth above the notch should be at least two-thirds of the board. Cut one rafter, test it both ends, then use it as the pattern.

Sources and standards

The geometry here is exact trig; the framing rules around it come from the standards inspectors frame to:

  • IRC R802: roof framing — rafter span tables (R802.4), ties and connections.
  • AWC Span Tables for Joists and Rafters: the species-and-grade tables behind every depth decision.
  • Framing-square practice: the unit-run tradition (12 in common, 17 in hip/valley) this page’s layout language comes from.
  • Right-triangle trigonometry: lengths and angles are computed, not looked up — the table above is a printout of the same math the calculator runs.

Embed this rafter calculator on your site

Run the rafter calculator on your own site, free. Paste the snippet where you want it; the visible credit link is the only condition.

More roofing & framing calculators

Rafter 14′-6 7/16″ 16 ft board · to ridge CL