Calculator Hero

Rafter Calculator

Calculates common rafter length, total length with overhang, plumb cut angle, and bird's mouth dimensions for any roof pitch.

Last updated: June 11, 2026

Rafter anatomy

RafterRiseRun / Half-spanOverhangBird's mouthPlumbcut

Full width of the building (ridge to ridge / outer wall to outer wall)

:12

Horizontal distance the eave extends beyond the wall

in

Actual thickness of ridge board (1.5 in for 2× lumber)

Enter total rafter count for linear footage output

Results

Common Rafter Length

13.35 ft

4.07 m · ridge to wall plate, no overhang · run: 11.94 ft

Total Rafter with Overhang

14.46 ft

4.41 m · includes 1.12 ft overhang along slope

Plumb Cut Angle

26.57°

Seat cut = 63.43° (90° − plumb)

Rise per Rafter

5.97 ft

71.63 in · 1.82 m

Bird's Mouth — Seat Cut

3.50 in horizontal

Standard top plate (2×4) width

Bird's Mouth — Plumb Cut

1.75 in depth

Vertical notch depth at wall plate

Common Pitch Reference

  • 4:12 pitch18.43°
  • 6:12 pitch26.57°
  • 8:12 pitch33.69°
  • 10:12 pitch39.81°
  • 12:12 pitch45.00°

Rafter Formula

length = √(run² + rise²)

run = span/2 − ridge/2; rise = run × pitch/12

Min. Rafter Bearing (IRC R802)

  • At ridgeNo bearing required
  • At wall plate1.5 in minimum
  • Collar tie height≤ ⅓ of rafter rise
  • Ceiling joist tieAt or below top plate

What Is a Rafter? Roof Framing Fundamentals

This rafter calculator computes common rafter length, count, board feet, and lumber cost from roof span and pitch. A rafter is a structural member in a roof frame that runs from the ridge board (at the peak) down to the top plate of the wall, supporting the roof deck (sheathing), underlayment, and roofing material. Rafters are the primary load-carrying members of a traditional stick-framed roof — they resist the weight of snow, wind uplift, and the roofing material itself, and transfer those loads down through the wall framing to the foundation.

Key rafter components and terminology:

  • Common rafter — runs perpendicular from ridge to wall plate; the rafter calculated by this tool; most residential roofs use common rafters at 16" or 24" on-center spacing
  • Hip rafter — runs diagonally from the ridge to a corner of the building in a hip roof; longer than common rafters; requires a different calculation using a hip/valley factor of 17 instead of 12
  • Valley rafter — runs from the ridge down into a valley where two roof planes meet; the opposite of a hip rafter; same hip/valley factor applies
  • Jack rafter — a short rafter that runs from a hip or valley rafter to the wall plate or ridge; each is a different length, calculated with the common difference formula
  • Ridge board — the horizontal board at the peak that rafters frame into on both sides; not a structural ridge beam (which carries load) — a ridge board simply provides a nailing surface
  • Bird's mouth — the L-shaped notch cut into the bottom of a rafter where it bears on the top plate; the seat cut provides a flat bearing surface; the plumb cut is vertical against the plate
  • Tail — the portion of the rafter that extends past the wall to form the eave overhang; protects siding and windows from rain

IRC Section R802 governs rafter sizing for residential construction. Critical requirements include: rafters must provide at least 1.5 inches of bearing at the wall plate (R802.6), the bird's mouth notch must not exceed one-third the rafter depth (R802.7.1), and ceiling joists or rafter ties must be present to resist outward thrust at the wall plates (R802.3.1).

How to Use This Rafter Calculator

Enter your building span (the full width from outer wall to outer wall), select your roof pitch, and set your eave overhang. The calculator instantly returns the common rafter length from ridge to wall plate, the total rafter length including overhang, the plumb cut angle for the ridge cut, and the bird's mouth dimensions for the wall plate notch. It also accepts a ridge board thickness so the shortening allowance is applied automatically. For the full roof material picture — shingles, underlayment, and bundles — see our roofing calculator.

How to Calculate Common Rafter Length

Rafter length is calculated with the Pythagorean theorem. The rafter is the hypotenuse of a right triangle whose legs are the run (horizontal) and rise (vertical).

  1. Find the run: run = (span ÷ 2) − (ridge thickness ÷ 2). For a 24 ft span with a 1.5 in ridge board: run = 12 − 0.0625 = 11.9375 ft.
  2. Find the rise: rise = run × (pitch ÷ 12). For a 6:12 pitch: rise = 11.9375 × 0.5 = 5.97 ft.
  3. Apply Pythagorean theorem: rafter = √(11.9375² + 5.97²) ≈ 13.34 ft.
  4. Add the overhang: overhang_length = overhang_run ÷ cos(pitch_angle). For a 12 in horizontal overhang at 6:12: 1 ÷ cos(26.57°) ≈ 1.12 ft.
  5. Total rafter = 13.34 + 1.12 = 14.46 ft. Order lumber at the next standard length above this.
AdvertisementResponsive Ad

Plumb Cut Angle and Seat Cut Angle

The plumb cut at the ridge end of a rafter is the angle at which the rafter is cut so its face is perfectly vertical (plumb). It equals atan(pitch ÷ 12) in degrees. For a 6:12 roof, the plumb cut angle is atan(0.5) ≈ 26.57°.

The seat cut at the bird's mouth is the complementary angle: 90° − plumb cut. For a 6:12 roof, seat cut = 63.43°. Both cuts use the same bevel setting on a speed square or miter saw — just flip the reference. A roof pitch calculator can also help you find the exact angle from rise and run measurements.

Setting Your Speed Square

Hold your speed square against the rafter stock with the pivot point at the edge. Read the pitch number (6 for 6:12) on the "Common" row — that gives you the plumb line. Rotate 90° to get the level (seat) line. Mark both lines at the bird's mouth location, then cut. The depth of the plumb cut at the bird's mouth should not exceed one-third of the rafter depth (IRC R802.7.1).

Bird's Mouth: Seat Cut and Plumb Cut Depth

The bird's mouth is the L-shaped notch where the rafter bears on the top plate. It has two faces:

  • Seat cut (horizontal face): Must bear fully on the top plate. For a 2×4 top plate, the seat cut is 3.5 in wide. For a 2×6 plate, it can extend to 3.5 in without exceeding the IRC one-third depth rule.
  • Plumb cut (vertical face): The depth of this cut = seat_horizontal × tan(pitch_angle). For a 3.5 in seat on a 6:12 roof: 3.5 × tan(26.57°) = 3.5 × 0.5 = 1.75 in deep.

Per IRC Section R802.7.1, the notch depth at the bird's mouth must not exceed one-third of the rafter's actual depth. For a 2×8 (7.25 in actual), the maximum notch is 7.25 ÷ 3 = 2.42 in. If your calculated plumb cut depth exceeds this, you need a larger rafter or a different plate width.

Rafter Overhang: How It's Calculated

Overhang is specified as the horizontal distance the eave extends past the wall — typically 12 to 24 inches for residential roofs. The actual length of rafter timber in the overhang is longer than the horizontal measurement because it follows the slope:

overhang_length = overhang_run ÷ cos(pitch_angle)

For a 12 in horizontal overhang on a 6:12 roof: 12 ÷ cos(26.57°) = 12 ÷ 0.8944 ≈ 13.4 in (1.12 ft) of rafter stock. Wider overhangs proportionally increase material. Always include the overhang in your total rafter length when ordering lumber.

AdvertisementResponsive Ad

Lumber Sizing and Material Ordering

Once you have the total rafter length (including overhang), round up to the next available dimensional lumber length — 8, 10, 12, 14, 16, 18, or 20 ft. For example, a 14.46 ft total rafter requires 16 ft stock. This leaves a small cutting allowance. Multiply by the total rafter count (both sides of the roof) to get the total linear footage to order. Use our board foot calculator to convert linear footage to board feet if your lumber yard prices by BF.

IRC Rafter Size Guidance

The International Residential Code (IRC Table R802.4.1) provides span tables based on lumber species, grade, rafter spacing, and snow load. As a general starting point for #2 Southern Yellow Pine at 16 in OC with a 20 psf live load: 2×6 spans up to about 11 ft, 2×8 up to 15 ft, 2×10 up to 18 ft, and 2×12 up to 21 ft. Verify with your local jurisdiction — climate and ground snow load vary significantly by region.

Sources & References

  1. National Design Specification (NDS) for Wood ConstructionAmerican Wood Council

Frequently Asked Questions

Related Calculators

Advertisement

320 × 50 — Mobile Anchor