Roofing & exterior

Roof Rafter Calculator

Estimate one common rafter’s geometric line length, separating the main body from its sloped overhang.

Created and Written by: Designation: Founder

Technically reviewed by: Riya Kulkarni | BE Civil Engineer

Define the horizontal run & slope

Starting dimensions are editable examples. Geometry only: this result is not a cut list or a lumber-size recommendation. Confirm reference lines and framing details before using measurements.

1. Body run to upper face

For a centered ridge and equal slopes: body run = (full outside-wall span − actual horizontal ridge thickness) ÷ 2. This ends at the near ridge face. The span excludes overhangs; ridge thickness is not its vertical depth. Enter 0 only for an ideal centerline calculation. Switching modes retains separate measurements.

2. Uniform slope & horizontal tail

6:12 means 6 units vertically for 12 horizontally. Enter overhang from the outside-wall line to the intended tail endpoint as a horizontal distance, not a length along the rafter. Body and tail use the same slope. Zero overhang is allowed; zero slope is level geometry, with no gable peak. Use Roof Pitch Calculator to convert measured rise and run.

3. Check the reference line

The straight rafter reference line crosses the outside-wall line, meets the upper ridge/support face, and continues to the projected tail endpoint. Reported rise is the vertical difference between points on that line. It is not ridge elevation above the wall plate.

This model does not locate a birdsmouth, seat cut, height above plate, fascia face or saw cut. It does not size rafters, check loads/connections, choose stock lengths or calculate hip, valley, jack or truss members. Keep those details in the framing design and layout.

EXAMPLE GEOMETRY
14.465 ft

Total geometric line length · 4.409 m / 173.575 in

Full outside-wall span
24 ft
Actual ridge thickness
1.5 in
Run to ridge centerline
12 ft
Ridge deduction along slope
0.07 ft
Adjusted horizontal body run
11.938 ft / 3.639 m
Slope
6:12 / 26.565°
Slope length factor
1.118034
Body line length
13.347 ft
Horizontal overhang
1 ft
Sloped tail length
1.118 ft
Wall-line to upper-face rise
5.969 ft / 1.819 m
Tail drop below wall-line point
0.5 ft
Tail-to-upper-face vertical difference
6.469 ft

Calculation basis

F = √[1 + (rise / 12)²]. Body = adjusted horizontal run × F. Tail = horizontal overhang × F. Total = (run + overhang) × F. Span mode deducts half the ridge thickness horizontally before multiplying; measured-run mode makes no deduction.

A common rafter reference line only. No birdsmouth, cut layout, height above plate, fascia offsets, kerf, stock allowance or structural design included. Dimensions shown to 3 decimals; they are not a cutting tolerance. Decimal horizontal geometry uses exact fractions; square roots use floating point.

Formula and worked example

This tool follows one straight common-rafter reference line through the outside-wall line, up to the near ridge/support face, and down to a projected tail endpoint. It calculates geometric line lengths. It does not produce a cut list, stock size, birdsmouth layout or structural design.

For a symmetric gable with centered ridge, body horizontal run R = (full outside-wall span S − actual horizontal ridge thickness T) / 2. For measured-run mode, R is your horizontal wall-line-to-upper-face distance, with no additional ridge deduction. Let p be vertical rise per 12 horizontal run and H be horizontal overhang. Slope factor F = sqrt[1 + (p/12)²]. Body length = R × F; sloped tail = H × F; total line length = (R + H) × F. Roof angle above horizontal = atan(p/12). Body rise = R × p/12; tail drop = H × p/12.

Independent US geometry

A 24 ft outside-wall span with a 1.5 in actual ridge thickness gives R = (24 − 1.5/12) / 2 = 11.9375 ft. At 6:12, F = sqrt(1.25) = 1.118033988750. Body line length is 13.346530741 ft. A 12 in horizontal overhang adds 1.118033989 ft along the slope, giving 14.464564729 ft total, or 4.408799330 m. Body rise between reference-line points is 5.96875 ft. The ridge shortens the ideal centerline length by 0.069877124 ft along the slope, not simply 0.0625 ft.

For a separate 9:12 check, F is exactly 1.25. With the same span, ridge and overhang, body length is 14.921875 ft, tail is 1.25 ft and total is 16.171875 ft. With zero ridge thickness instead, body run is 12 ft, body length is 15 ft and total is 16.25 ft. These examples use the 3:4:5 triangle relationship.

Independent metric geometry

An 8 m outside-wall span, 40 mm ridge thickness and 500 mm horizontal overhang at 9:12 give R = (8 − 0.04) / 2 = 3.98 m. Body rise is 2.985 m; body length is 4.975 m; sloped tail is 0.625 m. Total line length is 5.6 m. Alternatively, a directly measured 3 m run with 400 mm overhang at 9:12 gives a 3.75 m body, 0.5 m tail and 4.25 m total. Measured-run mode does not deduct a ridge again.

Define the endpoints before measuring

Full span is measured between outside-wall reference lines, without eave overhangs. The gable ridge is assumed centered with equal slopes. Ridge thickness is the actual horizontal width across the span, not ridge-board vertical depth or a nominal lumber label. Zero thickness represents an ideal centerline. Measured-run mode accepts an already adjusted horizontal distance to the upper face and can describe a simple shed rafter. Hidden inputs from the other mode are ignored.

The overhang is horizontal, from the outside-wall line to the intended projected tail endpoint. A tail continuing at the same slope is longer than its horizontal projection. Enter zero if no tail is required. Body and tail are added once for one rafter; do not double the answer because a gable has two roof slopes. Gable-end/rake overhang is in a different direction and is not this input.

Line geometry versus framing layout

Reported rise is between points on the straight rafter reference line. It is not ridge height above a plate, foundation or floor. Birdsmouth, seat-cut position, height above plate, fascia thickness, end-cut geometry, saw kerf and cutting/stock allowance are outside this model. No lumber depth, grade, species, spacing, loading, allowable span, deflection or connection check is performed. A line length alone cannot determine a suitable rafter size or purchased board length. Review the framing design and layout separately.

This page covers common straight rafters at a uniform slope. Hips, valleys, jacks, trusses, curved members, unequal-pitch gable geometry and offset ridges need their own layouts. Zero slope returns level geometry and forms no gable peak. It does not establish roofing-material suitability.

Units and calculation limits

Lengths accept ft, in, yd, m, cm and mm. Changing a length unit converts that measurement using the existing site converter. Decimal fields accept up to 18 decimal places. Active spans/runs must be 0.000001–1,000,000 ft, and ridge-adjusted body run must be at least 0.000001 ft. Ridge and horizontal overhang may be 0–100 ft; ridge must be smaller than full span. Rise per 12 must be 0–120; calculated total line length may not exceed 10,000,000 ft. These bounds are input safeguards, not construction recommendations.

Horizontal dimensions and ridge subtraction use exact decimal fractions; square-root and angle calculations use floating point. Displayed lengths round to three decimals, which is not a cutting tolerance. For slope conversion see Roof Pitch Calculator; for surface measurements use Roof Area Calculator; for a quote-based budget use Roofing Cost Calculator.

Primary references

Swanson Tool Co.: 12/12 roof pitch and rafter reference describes slope and common-rafter line geometry. Dale Diamond’s JLC common-rafter layout example shows an adjusted horizontal run derived from wall span and ridge thickness (September 2017, page 24). References inspected 30 October 2026. Civilable implements the stated common-rafter geometry and original examples above; it does not implement the articles’ cutting layouts.

Related calculators

All calculators

TECHNICAL REVIEWER

Riya Kulkarni | BE Civil Engineer

Riya Kulkarni qualifications and experience
QualificationBE Civil – Shivaji University, Kolhapur (2018)
Experience8+ Years
Technical SpecialisationsStructural Engineering, Construction Materials, Site Execution and Concrete Technology.

Project experience

1. Shree Ganesh Residency

Location: Rajarampuri, Kolhapur

Project Type: G+4 Residential Apartment Building

Technical responsibilities
  • RCC structural construction coordination.
  • Reinforcement and shuttering inspection.
  • Concrete pouring and curing supervision.
  • Monitoring construction materials and workmanship.
  • Site quality-control documentation.

2. Vrindavan Heights

Location: Tarabai Park, Kolhapur

Project Type: G+5 Residential Building

Technical responsibilities
  • Structural drawing interpretation.
  • Reinforcement detailing checks.
  • Concrete workability and placement monitoring.
  • Construction sequencing and site coordination.
  • Building material quality assessment.

3. Sai Krupa Row Houses

Location: Kalamba Road, Kolhapur

Project Type: Residential Row Housing Development

Technical responsibilities
  • Foundation and plinth construction coordination.
  • Brick masonry and plastering inspection.
  • Concrete mixing, placement and curing.
  • Waterproofing and finishing work coordination.
  • Construction progress documentation.

4. Greenview Enclave

Location: Ujalaiwadi, Kolhapur

Project Type: G+3 Residential Apartment Complex

Technical responsibilities
  • Site execution monitoring.
  • RCC work and reinforcement inspection.
  • Construction material management.
  • Concrete quality testing coordination.
  • Workmanship and quality documentation.

5. Lotus Business Plaza

Location: Shahupuri, Kolhapur

Project Type: G+3 Commercial Building

Technical responsibilities
  • Structural construction coordination.
  • Slab and column reinforcement inspection.
  • Concrete placement and quality monitoring.
  • Construction activity sequencing.
  • Contractor and site-team coordination.

6. Omkar Residency

Location: Kadamwadi, Kolhapur

Project Type: G+5 Residential Apartment Building

Technical responsibilities
  • Foundation and superstructure execution coordination.
  • Reinforcement and formwork inspection.
  • Concrete testing and curing monitoring.
  • Material specifications and quality checks.
  • Site inspection reporting.

7. Silver Oak Villas

Location: Kasaba Bawada, Kolhapur

Project Type: Independent Residential Villa Development

Technical responsibilities
  • Residential foundation construction.
  • RCC structural component inspection.
  • Masonry and plastering quality checks.
  • Flooring and finishing coordination.
  • Site execution and material monitoring.

8. Pratham Commercial Complex

Location: Ruikar Colony, Kolhapur

Project Type: Commercial and Retail Building

Technical responsibilities
  • RCC construction coordination.
  • Concrete quality-control procedures.
  • Structural component inspection.
  • Construction material assessment.
  • Execution progress and quality reporting.