Rafter Length CalculatorLive
1
Enter the roof geometryFor a centered symmetrical gable.

Geometry only. This tool does not size rafters or lay out birdsmouth and saw cuts.

2
Live common-rafter geometryReference points and line length update together.
Live common rafter geometryCommon rafter side elevation at 6/12. The effective horizontal run is 12 ft 0 in, the line length to the bearing line is 13 ft 5 in, and the total line length including overhang is 14 ft 6 7/16 in.EFFECTIVE RUN · 12 ft 0 inHORIZONTAL OVERHANGEXTERIOR BEARING LINERIDGE CENTERLINETOTAL RAFTER LINE · 14 ft 6 7/16 in

Upper reference: Ridge centerline. Check or convert roof pitch.

Total rafter line length14 ft 6 7/16 in14.53 ft
Line to bearing13 ft 5 in
Sloped tail length1 ft 1 7/16 in
Run used12 ft 0 in
Roof angle26.57°

12 ft 0 in horizontal run × 1.118 pitch factor = 13 ft 5 in rafter line to the bearing reference. Upper reference: Ridge centerline.

How to calculate common rafter length

  1. 01
    Choose span, run, or measured rise

    Use span only for a centered symmetrical gable. Otherwise enter the actual horizontal run.

  2. 02
    Enter pitch and overhang

    Enter X/12 pitch and measure overhang horizontally, not along the rafter edge.

  3. 03
    Read the line length

    Use the body and tail results to understand the geometry before laying out cuts.

The rafter length calculator finds the sloped geometric line from the upper roof reference to the exterior bearing line, then adds the sloped tail when you enter a horizontal overhang. It does not determine structural rafter size or final cut layout. The Gable Roof Guide explains when half-span geometry is appropriate.

Define span, run, and the ridge reference

Measure building span horizontally between the two exterior bearing lines. On a centered symmetrical gable, one roof run extends from a bearing line to the ridge centerline and equals half the span.

If a ridge board occupies the centerline, its face sits half the board thickness away from that line. Apply this deduction only when the run is explicitly measured to the ridge centerline.

Preserve measured geometryWhen you enter rise and run directly, those values already define the right triangle. The calculator does not apply a separate ridge deduction.

Span, run, ridge centerline, and ridge-board faceA centered gable framing image with a controlled overlay showing span between exterior bearing lines, run from the left bearing line to the ridge centerline, and the half-board deduction to the ridge-board face.ROOF RUNBUILDING SPANRIDGE CENTERLINE½ RIDGE-BOARD THICKNESSBEARING LINEBEARING LINERUN = ½ SPAN ONLY FOR A CENTERED SYMMETRICAL GABLE
Define the upper endpoint before calculating. A ridge-board face sits half the board thickness away from the ridge centerline.

Rafter length formulas and methodology

The engine converts every length to inches, gets the pitch ratio and multiplier from the shared Roof Pitch Calculator engine, and retains full precision until display. U.S. results round to the nearest 1/16 inch.

Shared rafter modelHorizontal run × pitch multiplier

Centered-gable run

run = span ÷ 2

Pitch multiplier

√(1 + (pitch ÷ 12)2)

Line to bearing

effective run × multiplier

Total line length

(effective run + overhang) × multiplier

Line length is not final cut layout

The calculated line runs parallel to the rafter edge. It connects the selected upper reference to the exterior bearing reference, then continues along the tail when you include overhang.

A framing layout still needs verified plumb cuts, birdsmouth geometry, bearing, fascia treatment, stock allowance, and member sizing. Keep those decisions separate from this geometric result.

Rafter line length compared with cut-layout detailsA realistic common-rafter framing image with a controlled overlay. The measured line runs from the ridge-board face across the exterior bearing reference and continues to the tail; cut-layout details remain separate.CALCULATED LINE LENGTHRIDGE-BOARD FACEBEARING REFERENCERAFTER TAILCUT LAYOUT AND MEMBER SIZING ARE VERIFIED SEPARATELY
The result is a geometric line length. Verify birdsmouth depth, plumb cuts, fascia treatment, stock allowance, and structural requirements separately.

Rafter length for a 12-foot horizontal run

This engine-generated table shows how pitch changes common-rafter line length before overhang or ridge-board adjustment. Use the complete pitch and angle chart for additional slope conversions.

PitchAngleMultiplierLine length
0/120.00°112 ft 0 in
3/1214.04°1.030812 ft 4 7/16 in
4/1218.43°1.054112 ft 7 13/16 in
6/1226.57°1.11813 ft 5 in
8/1233.69°1.201914 ft 5 1/16 in
10/1239.81°1.301715 ft 7 7/16 in
12/1245.00°1.414216 ft 11 5/8 in

Common rafter calculation mistakes

  1. 01Dividing span by two for an offset ridge or shed roof.
  2. 02Measuring overhang along the slope instead of horizontally.
  3. 03Subtracting ridge-board thickness from a run that already ends at the board face.
  4. 04Applying a ridge deduction to directly entered rise-and-run geometry.
  5. 05Treating geometric line length as structural member sizing or final cut length.

Limitations and safety

This calculator includes
Common-rafter geometry, pitch conversion, ridge reference, and horizontal overhang.
It excludes
Structural capacity, lumber grade, loads, spacing, connections, birdsmouth design, and hip, valley, or jack rafters.
Work safely
Use plans and accessible measurements where possible. Follow OSHA residential fall-protection guidance for framing and work at height.

Technical references

Rafter length calculator questions

How do I calculate rafter length from span and pitch?

For a centered symmetrical gable, divide the building span by two to get the horizontal run. Multiply that run by the pitch multiplier, or calculate the square root of run squared plus rise squared. Add the sloped tail separately when the rafter extends beyond the exterior bearing line.

Is rafter run always half the building span?

No. Run equals half span only for a centered symmetrical gable. Use the actual horizontal distance for a shed roof, offset ridge, unequal roof planes, or any layout that does not place the ridge at the center of the span.

Does overhang increase rafter length?

Yes. Enter overhang as its horizontal projection. The calculator multiplies that horizontal distance by the same pitch factor to find the additional sloped tail length.

How do I account for ridge-board thickness?

When span or run is measured to the ridge centerline, subtract half the ridge-board thickness from the horizontal run before calculating the line to the ridge-board face. Do not apply that deduction when the run already ends at the board face or when rise and run directly define the measured triangle.

Can I use this calculator for a shed or lean-to roof?

Yes. Select Run + Pitch and enter the full horizontal run for the roof plane. Do not divide that run by two. Confirm the actual upper endpoint before applying any ridge-board adjustment.

Does this calculator determine rafter size or birdsmouth cuts?

No. It calculates geometric common-rafter line length. Lumber size, species, grade, spacing, loads, connections, bearing, birdsmouth depth, and cut layout require approved plans, applicable code provisions, manufacturer instructions, or qualified structural guidance.