Roof Rafter Calculator
The ultimate rafter length calculator: accurately calculate rafter length, horizontal run, vertical rise, pitch angle, and slope multiplier for symmetrical gable roofs. Apply the standard rafter length formula to determine exact lumber lengths with eave overhang in feet, inches, or meters.
Rafter Diagram & Geometry
Rafter Framing Terms
- Building Span: Total outside-to-outside building width across the exterior load-bearing walls.
- Half-Span (Run to Plate): Half of the total building span (span / 2).
- Total Horizontal Run: Half-span plus horizontal eave overhang.
- Total Vertical Rise: Elevation from eave tail to roof peak (Run × Pitch / 12).
- Common Rafter: The primary sloping structural member connecting ridge to wall plate.
- Slope Multiplier: The hypotenuse factor √(1 + (Pitch/12)²) used to compute true diagonal length.
How to Calculate Rafter Length (Rafter Length Formula)
Whether you are framing a shed, garage, or residential home, you can calculate rafter length using right-triangle trigonometry and standard pitch multipliers. The roof rafter length forms the hypotenuse of a right triangle whose base is the horizontal run and vertical leg is the roof rise. Using the standard rafter length formula and the Pythagorean theorem (A² + B² = C²), common rafter geometry is defined by the following standard formulas: Using the Pythagorean theorem (A² + B² = C²) and right-triangle trigonometry, common rafter geometry is defined by the following standard formulas:
Half-Span & Total Run
Distance from exterior wall plate to ridge centerline, plus any horizontal eave projection.
Total Vertical Roof Rise
Total vertical height in feet or meters from the eave line up to the central ridge apex.
Common Rafter Length
Solves the right-triangle hypotenuse for the theoretical common rafter line-length.
Angle & Slope Multipliers
Calculates incline angle in degrees, percent grade (Pitch/12 × 100), and unit rafter factor.
Worked Numerical Example (Step-by-Step)
To see how these formulas function together in practice, consider a standard symmetrical gable roof with the following dimensions:
How to Use This Rafter Calculator
Follow these steps to calculate rafter framing dimensions for your project:
- Select Your Measurement Unit: Choose between Feet (ft), Inches (in), or Meters (m). When switched, the calculator automatically converts your values and updates all result labels.
- Enter Total Building Span: Measure the outside wall-to-outside wall width across the building's exterior framing plates.
- Enter Roof Pitch: Input vertical inches of rise per 12 inches of run (e.g., enter 4 for a 4/12 pitch, 6 for 6/12, or 8 for 8/12).
- Enter Optional Horizontal Overhang: Input the horizontal projection extending past the exterior wall top-plate. If the roof has no eave extension, enter 0.
- Review Results & Copy: View the primary geometric rafter length, total horizontal run, total vertical rise, pitch angle in degrees, slope percentage, and multiplier. Click Copy Results to save them to your clipboard.
- Reset Anytime: Click Reset Calculator to restore standard reference inputs (24 ft span, 6/12 pitch, 1 ft overhang).
Limitations & Calculation Assumptions
To avoid framing errors on the job site, understand the critical differences between theoretical geometric rafter length and a finished lumber cut list:
- Geometric Line-Length vs. Cutting List: This calculator computes pure geometric centerline distances from the ridge center down to the eave tip. It does not automatically generate a ready-to-cut lumber list.
- Ridge Board Deductions: When building with a central ridge board, rafters meet against the wood rather than touching each other at the apex. Carpenters must deduct half of the actual ridge board thickness (0.75 inches for standard 2x dimensional lumber) perpendicular to the top plumb cut line.
- Bird's-Mouth Seat Notch: Common rafters rest on the top wall plate via a bird's-mouth cut, consisting of a horizontal seat cut (bearing on the 3.5" or 5.5" wall plate) and a vertical heel cut. Building codes (such as the International Residential Code / IRC) stipulate that the vertical depth of the bird's-mouth seat cut must never exceed one-third of the rafter board's total depth.
- Fascia Board Deductions: If a 2x or 1x subfascia board is installed at the rafter tail, its thickness must be deducted from the lower plumb cut so that gutters and drip edges align properly.
- Symmetrical Gable Roofs Only: This tool is specifically calibrated for common rafters on dual-slope symmetrical gable roofs. It is not designed for hip rafters, valley rafters, or jack rafters, which require separate 17-inch run multipliers and bevel angles.
- Lumber Sizing & Spacing: Determining actual rafter lumber dimensions (2x6, 2x8, 2x10, or 2x12) and rafter spacing (16" or 24" on-center) requires consulting local building code span tables based on wood species, grade, and design snow/wind loads.
Frequently Asked Questions
Common rafter length is calculated using the Pythagorean theorem (A² + B² = C²) on the right triangle formed by the horizontal run and the vertical rise. The formula is: Rafter Length = √(Run² + Rise²), or Run × √(1 + (Pitch / 12)²). For a symmetrical gable roof, run equals half the building span plus any horizontal eave overhang.
Building span is the total outside-wall-to-outside-wall width of the structure. Rafter run is the horizontal distance that a single rafter spans from the exterior wall plate to the center ridge line, which equals half the building span (halfSpan = span / 2). When eave overhang is included, total run is half-span plus the horizontal overhang width.
Yes. When you enter a horizontal eave overhang value, the calculator adds it directly to the half-span to compute the total horizontal run and full geometric common-rafter length from ridge to eave tail. If your roof design has no overhang, simply enter 0.
No. This tool is specifically engineered for common rafters on symmetrical gable roofs. Hip and valley rafters run at 45-degree horizontal angles across corners, spanning 16.97 inches of run per foot of common run rather than 12 inches, requiring specialized diagonal hip/valley framing formulas.
No. The result is a theoretical geometric line-length estimate (the mathematical hypotenuse). Job-site lumber cutting requires framing adjustments: deducting half the actual thickness of the central ridge board (typically 0.75 inches for 2x dimensional lumber) from the top plumb cut, and laying out the bird's-mouth seat notch that bears on the top wall plate.
Related Roofing Calculators & Framing Guides
Calculate pitch ratio, incline angle in degrees, and area multipliers.
Open Tool → Roof GeometryConvert roof pitch to exact slope degrees and radians.
Open Tool → Roof FramingCalculate dual-slope gable roof area, rafter count, and ridge span.
Open Tool → Surface MeasurementConvert ground footprint dimensions and slope pitch into total roof area.
Open Tool → Framing GuideDetailed guide on rafter formulas, ridge deductions, and plumb cuts.
Read Guide → Roofing GuideComplete guide to understanding pitch ratios, slope angles, and classifications.
Read Guide →