Skip to Calculator

Rafter Calculator

Calculate rafter length, birdsmouth cut, ridge height, and lumber needs for your roof framing project. Get precise measurements for any roof pitch.

Updated
feet
inches
feet
📐

Enter your building dimensions above to calculate rafter length, birdsmouth cuts, and lumber needs.

Based on International Residential Code —·Updated Mar 2026·Free, no signup

How to Use This Calculator

Enter Building Dimensions

Input the building span (width from outside wall to outside wall) and total building length.

Select Pitch & Spacing

Choose the roof pitch and rafter on-center spacing. Standard residential is 6/12 pitch at 16" OC.

Set Overhang & Lumber

Enter the desired eave overhang and select the rafter lumber size appropriate for your span.

Review Measurements

See rafter length, birdsmouth cuts, ridge height, HAP, and the total number of rafters needed for both sides of the roof.

How We Calculate

Rafter calculations use standard construction geometry based on the Pythagorean theorem and trigonometric relationships between roof pitch, span, and rise. The common rafter run is half the building span minus half the ridge board thickness (a deduction often overlooked in simple calculators). The rafter line length is the hypotenuse of the right triangle formed by the run and rise, calculated as √(run² + rise²). The overhang tail length is computed separately using the same pitch angle and added to get the total rafter length.

Birdsmouth calculations follow the standard framing practices outlined in the International Residential Code (IRC) Section R802 and the American Wood Council's Wood Frame Construction Manual. The birdsmouth notch allows the rafter to sit flat on the wall plate while maintaining the correct roof angle. The seat cut (level portion) and plumb cut (vertical portion) dimensions are derived from the rafter depth and roof angle using trigonometric functions. The Height Above Plate (HAP) is the remaining rafter depth above the birdsmouth, which must be at least two-thirds of the rafter depth per IRC requirements to maintain structural integrity.

Rafter count is calculated by dividing the building length by the on-center spacing and adding one, then doubling for both sides of a gable roof. Standard residential construction uses 16-inch OC spacing for most applications, with 24-inch OC suitable for shorter spans with lighter load requirements. The rafter lumber size must be appropriate for the span — 2×6 rafters are generally suitable for runs up to 10 feet, 2×8 for up to 14 feet, 2×10 for up to 18 feet, and 2×12 for longer spans, per IRC span tables.

Sources & References

  • International Residential Code — Section R802 Roof Framing (iccsafe.org)
  • American Wood Council — Wood Frame Construction Manual (awc.org)
  • Fine Homebuilding — Rafter Layout and Calculation Guide (finehomebuilding.com)

Data last verified:

Frequently Asked Questions

ToolSite Team

We build free, accurate calculators.