FRAMING & STRUCTURAL TOOL

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.

Calculate Common Rafter Dimensions

Total exterior wall-to-wall width of the structure.
Inches of vertical rise per 12 inches of run (e.g., enter 4 for 4/12, 6 for 6/12, 8 for 8/12).
Horizontal overhang extending past exterior wall plate. Enter 0 if no overhang.
GEOMETRIC COMMON RAFTER LENGTH
14.53 ft (14' 6")
Total diagonal length including eave overhang
Total Horizontal Run: 13.00 ft
Total Vertical Rise: 6.50 ft
Half-Span (Building Run): 12.00 ft
Rafter Line (to Plate): 13.42 ft
Overhang Tail Length: 1.12 ft
Pitch Angle: 26.57°
Slope Percentage: 50.00%
Slope Multiplier: 1.1180
Assumption Notice: This calculation provides a geometric line-length estimate for common rafters on symmetrical gable roofs. It does not deduct for ridge board thickness, fascia boards, or bird's-mouth seat cuts. Read the framing limitations below before cutting lumber.

Rafter Diagram & Geometry

Rafter geometry diagram showing run, rise, overhang, and rafter length Dynamic rafter diagram displaying horizontal run, vertical rise, eave overhang, pitch angle, and geometric hypotenuse rafter length. Pitch: 6.0 / 12 | Multiplier: 1.1180 Wall Plate 14.53 ft 13.00 ft 6.50 ft 26.6°

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:

Step 1 • Geometry

Half-Span & Total Run

Half-Span = Building Span ÷ 2 Total Run = Half-Span + Overhang

Distance from exterior wall plate to ridge centerline, plus any horizontal eave projection.

Step 2 • Elevation

Total Vertical Roof Rise

Rise = Total Run × (Pitch ÷ 12)

Total vertical height in feet or meters from the eave line up to the central ridge apex.

Core Formula

Common Rafter Length

Rafter Length = √(Run² + Rise²) or: Total Run × √(1 + (Pitch ÷ 12)²)

Solves the right-triangle hypotenuse for the theoretical common rafter line-length.

Trigonometry

Angle & Slope Multipliers

Pitch Angle (°) = arctan(Pitch ÷ 12) × (180 ÷ π) Slope Multiplier = √(1 + (Pitch ÷ 12)²)

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:

Building Span24 ft
Roof Pitch6 / 12 (26.57°)
Eave Overhang1 ft (12 in)
Step 1: Calculate Half-Span & Total Run
Half-Span = 24 ft ÷ 2 = 12 ft  |  Total Run = 12 ft + 1 ft = 13 ft
Step 2: Calculate Vertical Rise
Rise = 13 ft × (6 ÷ 12) = 13 × 0.5 = 6.5 ft
Step 3: Calculate Slope Multiplier & Angle
Slope Multiplier = √(1 + (6/12)²) = √1.25 ≈ 1.11803  |  Pitch Angle = arctan(0.5) ≈ 26.57°
Step 4: Calculate Geometric Common Rafter Length
Rafter Length = √(13² + 6.5²) = √211.25 ≈ 14.53 ft (14' 6")
Or via Multiplier: 13 ft × 1.11803 = 14.53 ft

How to Use This Rafter Calculator

Follow these steps to calculate rafter framing dimensions for your project:

  1. 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.
  2. Enter Total Building Span: Measure the outside wall-to-outside wall width across the building's exterior framing plates.
  3. 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).
  4. Enter Optional Horizontal Overhang: Input the horizontal projection extending past the exterior wall top-plate. If the roof has no eave extension, enter 0.
  5. 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.
  6. 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.

Search Calculators & Guides