Rafter Length & Roof Pitch Calculator

Rafter Length & Roof Pitch Calculator

Calculate common rafter length, roof pitch, plumb cuts, and birdsmouth seat cuts with ridge board deduction and overhang. Free framing carpenter diagram.

Presets label
Parameters & Inputs
Lbl unit rise4:12
Lbl low pitchLbl standard pitchLbl steep pitchLbl walkable limit

Hint roof span

Unit ft
Unit in
Hint ridge inches
Hint overhang inches
Hint plate inches
Hint seat bearing
IRC R802.4.5
Unit ft
Lbl framing blueprint
Span Exceeds Prescriptive Limit4:12 (18.43°)
Svg wallSvg wallTie: 7'-6 3/16"Svg line: 12'-7"Svg rise: 3'-11 3/4"Svg span: 24'-0"Svg true run: 11'-11 1/4"Svg plumb cut: 71.6°Svg eave: 16"
Kpi theoretical length12'-7"151.00" Unit decimal
Kpi overall timber13'-11 1/16"Hint timber length
Kpi recommended stock14' Lbl standard4267.2 mm Lbl standard lumber
Kpi plumb cut71.6°Hint plumb cut
Kpi seat cut18.4°Hint seat cut
Kpi total rise3'-11 3/4"Hint total rise
Kpi theoretical length12'-7"
Kpi overall timber13'-11 1/16"
Kpi recommended stock14' Unit stock
Kpi plumb cut71.6°
Kpi total rise3'-11 3/4"
Kpi irc statusLbl irc pass

Disclaimer text

Technical Reference & Architecture Guide

Rafter Length & Roof Pitch Calculator Guide

Calculate common rafter length, roof pitch, plumb cuts, and birdsmouth seat cuts with ridge board deduction and overhang. Free framing carpenter diagram.

Rafter Length & Roof Pitch Calculator Guide — Client-Side In-Memory Architecture & Data Flow
Rafter Length & Roof Pitch Calculator Guide — Client-Side In-Memory Architecture & Data Flow

Key Parameters & Controls

Roof Pitch (Unit Rise / 12 or Slope Angle)ratio_or_degrees

Vertical rise in inches per 12 inches of horizontal run (e.g. 4:12 = 18.43°, 6:12 = 26.57°, 8:12 = 33.69°, 12:12 = 45.00°). Determines water runoff rate, snow shedding capacity, and dead/live load vectoring.

Default: 4:12 (18.43°)
Building Span vs True Runlength_measurement

Span is the full exterior building width between wall plates. Theoretical half-span is Span / 2. True Run subtracts half the thickness of the ridge board: Run = (Span / 2) - (Ridge Thickness / 2).

Default: 24 ft Span / 11 ft 11-1/4 in True Run
Ridge Board Deductiontimber_dimension

Horizontal deduction perpendicular to the plumb line. For standard 2x lumber (actual 1.5" thick), 0.75" (19 mm) is deducted from the apex of each common rafter. For structural engineered beams (LVL/GLB), deduct half the actual beam thickness (e.g. 1.75").

Default: 1.5 in (Actual 0.75 in deduction per rafter)
Birdsmouth Cut (Seat & Heel Cut)framing_notch_geometry

The triangular notch bearing on the top plate. Seat cut is the horizontal bearing surface (minimum 1.5 inches / 38 mm under IRC R802.7). Heel cut is the vertical plumb surface. Under IRC R802.7.1.1, heel notch depth must never exceed 25% (D/4) of the rafter depth.

Default: 3.5 in Seat Cut (2x4 wall plate)
Height Above Plate (HAP / Stand)vertical_height

The vertical distance from the top corner of the wall plate (heel of the birdsmouth) straight up to the top edge of the rafter. Crucial for keeping rafter lines planar across unequal walls and overhangs.

Default: 4.25 in (for 2x6 timber)
Overhang Run & Fascia Allowanceeave_projection

The horizontal distance the rafter tail projects beyond the exterior wall sheathing. Tail cut length follows the same pitch hypotenuse factor minus fascia sub-board thickness.

Default: 16.0 in Run

Pro Tips & Best Practices

Never Subtract the Full Ridge Thickness from a Single Rafter

The #1 rookie framing error is deducting the full 1.5-inch ridge board thickness from each rafter cut. Because the ridge board sits centered between two opposing rafters, each rafter only gives up HALF the ridge thickness (0.75 inches for standard 2x lumber), measured square to the plumb cut line.

Strict IRC 25% Notch Depth Limit Protects Against Shear Failure

According to IRC Section R802.7.1.1, notches on the ends of rafters shall not exceed 1/4 the rafter depth (D/4). For a 2x6 (5.5" actual depth), the maximum allowable vertical heel cut is 1.375". Cutting a deeper birdsmouth severely weakens horizontal shear resistance at the bearing point and will cause code inspection failure.

Measure Along the Work Line, Not the Timber Edge

Theoretical rafter length is calculated along the center work line from the ridge plumb cut to the birdsmouth heel. Never pull your tape measure along the bottom edge of the board, as the notch geometry will distort your true length by several inches.

Lock the HAP (Height Above Plate) to Prevent Roof Dips

When laying out multiple rafters from lumber with slight mill variances (e.g. 5-3/8" vs 5-1/2"), always mark from the top edge down to set a uniform Height Above Plate (HAP). If HAP varies, your sheathing surface will form humps and dips across the roof plane.

Common Gotchas & Troubleshooting

⚠️Birdsmouth notch depth exceeds 1/4 of the timber depth (IRC warning triggered).

Reduce the seat cut bearing width (e.g. from 5.5" down to 3.5" with plate blocking), increase rafter lumber size (e.g. step up from 2x6 to 2x8), or increase the roof pitch angle.

⚠️Rafter pair apex sits too high or leaves a gap at the ridge board.

Verify whether the ridge deduction was measured perpendicular to the plumb cut or horizontally. The deduction must be applied perpendicular to the plumb line by half the ridge thickness, or along the rafter line by (Half Ridge Thickness * secant(angle)).

⚠️Accumulated tape measure creep on long roof runs.

Do not step off rafters one by one with a framing square. Use the mathematical line length from this calculator to cut one master pattern rafter. Test fit the pattern on both ends of the building before scribing production rafters.

⚠️Tail overhang hangs too low, obstructing window headers.

Check your HAP and tail cut angle. A plumb-cut tail drops lower than a square-cut tail. Switch to a double-cut tail (plumb face + level soffit return) or reduce the overhang horizontal run.

Frequently Asked Questions

How do you calculate rafter length using roof pitch and run?▼

Rafter line length equals the run multiplied by the roof pitch factor: Length = True Run * sqrt(1 + (Pitch/12)^2). For example, on a 12-foot run with a 4:12 pitch, the pitch factor is sqrt(1 + (4/12)^2) = 1.0541. Line length = 12 ft * 1.0541 = 12.649 ft (12 feet 7-13/16 inches). Then add the overhang length and subtract half the ridge board thickness.

How much do you deduct for the ridge board on a rafter?▼

Deduct exactly half the actual thickness of the ridge board. For a standard 2x nominal ridge board (which measures 1.5 inches thick), deduct 3/4 inch (0.75 in / 19 mm). Measure 3/4 inch horizontally back from the theoretical apex plumb line, or 3/4 inch perpendicular to the plumb cut face.

What is the maximum depth for a birdsmouth cut under IRC building code?▼

Under International Residential Code (IRC) Section R802.7.1.1, an end notch on a rafter cannot exceed one-fourth (1/4 or 25%) of the actual timber depth. For a 2x4 (3.5" deep), max notch is 0.875". For a 2x6 (5.5" deep), max notch is 1.375". For a 2x8 (7.25" deep), max notch is 1.813". The seat cut must also provide at least 1.5 inches of continuous bearing on wood plates.

What is the difference between roof span, roof run, and rafter length?▼

Roof span is the total exterior width of the building from outside wall plate to outside wall plate. Roof run is half the span (for a symmetrical gable roof) minus half the ridge board thickness. Rafter length is the hypotenuse of the triangle formed by the run and the roof rise, extending from the ridge board to the wall plate birdsmouth.

How do you determine the plumb cut and seat cut angles for any roof pitch?▼

The plumb cut angle (ridge and tail plumb face) is calculated as 90° - arctan(Rise / Run). For a 6:12 pitch, plumb cut = 90° - arctan(6/12) = 90° - 26.57° = 63.43° off the timber edge (or 26.57° off vertical). The seat cut angle (horizontal level cut) is exactly equal to arctan(Rise / Run) = 26.57°.

Related Tools & Utilities

All Tools →