Calculate My Reno All Calculators
Free materials calculator

Roof Pitch & Rafter Length Calculator

Enter your run, full span or shed width and the roof pitch - as a 4:12 ratio, an angle in degrees or a plain rise over run - and get the common rafter length, the pitch and roof angle in every form, the rise to the ridge and the slope factor for working out roof area. Gable, shed or lean-to, in feet or metres.

Roof slope

01. Roof type & size

Rafter run (half the span): 4.00 ft

02. Roof pitch

Slope class: conventional slope

Slope cross-section
4.47 ft2.00 ft rise4.00 ft run26.6°
Common rafter (incl. overhang)
4.81ft rafter

Roof pitch

6 : 12

Angle

26.6°

Rise

2.00 ft

Grade

50%

  • Wall to ridge4.47 ft
  • Overhang tail0.34 ft
  • Slope factor (area ×)1.1180

Multiply your roof footprint area by 1.118 to get the actual sloping area.

Guide & worked example

How this calculator works

A pitched roof is a right triangle. The horizontal run goes from the outside wall to the ridge in the centre, the vertical rise is how far the ridge sits above the wall plate, and the common rafter is the sloping line that joins them. Everything keys off the slope ratio, rise divided by run:

slope ratio  = rise ÷ run         (a 6:12 pitch = 6 ÷ 12 = 0.5)
angle        = atan(slope ratio)
slope factor = sqrt(1 + slope ratio²)   ← rafter per unit of run
rafter       = run × slope factor       = sqrt(run² + rise²)
overhang     = horizontal overhang × slope factor

You can enter the pitch as a x:12 ratio, as an angle in degrees, or as a plain rise over the run, and the calculator converts between all three. The slope factor doubles as the roof-area multiplier: multiply the flat footprint area by it to get the real sloping surface area for sheathing and shingles.

Worked example

This example follows the unit system you pick in the calculator above.

A 6 : 12 roof over a 26 ft span (so a 13 ft run), with a 1 ft eave overhang:

  1. Slope ratio: 6 ÷ 12 = 0.5 (rise per unit of run).
  2. Rise: 13 × 0.5 = 6.5 ft from wall plate to ridge.
  3. Angle: atan(0.5) = 26.6° (grade 50%).
  4. Slope factor: √(1 + 0.5²) = 1.118.
  5. Common rafter: 13 × 1.118 = 14.53 ft wall to ridge.
  6. Overhang tail: 1 × 1.118 = 1.12 ft, so the full rafter is 15.65 ft.

Roof pitch conversion table

The same handful of pitches come up again and again. This table maps the US x:12 ratio onto the angle, the percentage grade and the slope (rafter) factor:

Pitch (x : 12)AngleGrade %Slope factorTypical use
1 : 124.8°8.3%1.003Low-slope / near-flat, membrane roofing
2 : 129.5°16.7%1.014Lowest slope for most metal panels
3 : 1214.0°25%1.031Minimum for many shingle warranties
4 : 1218.4°33.3%1.054Common low-conventional pitch
6 : 1226.6°50%1.118The default “medium” pitch
8 : 1233.7°66.7%1.202Steeper conventional roof
9 : 1236.9°75%1.250Start of the steep-slope band
12 : 1245.0°100%1.414Classic steep roof, rise equals run

The slope factor column is the quick way to size a roof: take the flat plan area of the roof, multiply by the factor for your pitch, and you have the sloping area to cover. For the full breakdown of every pitch in degrees, percent and slope factor, see the roof pitch chart.

Roof slope, roof angle and roof pitch

These three are the same idea in different words. Pitch is the rise-over-run ratio a builder reads off a framing square, usually written x:12. The roof angle is that slope measured in degrees from horizontal. Slope (or grade) is the same thing as a percentage. This tool shows all three at once, so a “roof slope calculator” and a “roof angle calculator” are just this calculator read in different columns - pick the pitch form you have and read off the rest.

Gable, shed and lean-to roofs

Pick the roof type in the calculator so the run is worked out correctly:

  • Gable / pitched - two slopes meeting at a central ridge. Each rafter runs from the wall to the ridge, so the run is half the full span. Enter the span and the calculator halves it, or switch to “run only” if you measured wall-to-ridge directly.
  • Shed / lean-to (single slope) - one slope from a low wall to a high wall, also called a mono-pitch or skillion roof. The rafter spans the full width, so enter the width wall-to-wall. See the dedicated shed roof pitch calculator and lean-to roof pitch calculator for the typical minimum slopes.

Run, span and the rafter

Two points trip people up:

  • Run is not the building width. For a symmetric gable, each rafter spans from the wall to the ridge in the middle, so the run is half the full span. Use the Run / Full span toggle to enter whatever you measured.
  • The rafter the calculator gives is the line length. It is the straight sloping distance from the wall plate to the ridge (plus the overhang tail if you add one). When you cut real rafters you still need to allow for the ridge board thickness (deduct half its thickness from the run), the birdsmouth seat cut at the wall, and a little waste at each end.

Tips for setting out rafters

  • Measure the run carefully - a small error in the run is multiplied by the slope factor in the rafter, and again across every rafter on the roof.
  • If you are matching an existing roof, measure the pitch first, set it by angle off a digital level, then read the x:12 ratio the calculator gives so you can talk to your timber supplier in their terms.
  • Order rafters a little long and cut to fit on site; the plumb cut at the ridge and the seat cut at the wall both eat into the board.
  • For the roof covering, work in sloping area (footprint × slope factor), not the flat footprint, or you will under-order sheathing, underlay and shingles.
  • Always check span tables and your local building requirements for the rafter size and spacing - this calculator gives lengths and angles, not structural sizing.

Frequently asked questions

01

How do I calculate rafter length from pitch and run?

The common rafter is the hypotenuse of a right triangle whose horizontal leg is the run (wall plate to ridge centre) and whose vertical leg is the rise. So rafter = square root of (run squared + rise squared). If you only know the pitch, first turn it into a rise: a x:12 pitch means rise = run × (x ÷ 12). The calculator does both steps and then adds the sloping length of any eave overhang you enter.

02

What does a roof pitch like 4:12 or 6:12 mean?

A x:12 pitch is the rise in inches for every 12 inches of horizontal run - it is a ratio, so it works the same in feet or metres. A 4:12 roof climbs 4 units for every 12 across (an 18.4° angle), and a 6:12 climbs 6 for every 12 (26.6°). A 12:12 roof rises as fast as it runs, which is a 45° angle. Enter the ratio, an angle or a rise and the calculator shows all three.

03

How do I convert roof pitch to degrees?

Divide the rise by the run to get the slope ratio, then take the arctangent (atan) of that ratio. For a 6:12 pitch the ratio is 6 ÷ 12 = 0.5, and atan(0.5) = 26.57°. A 4:12 is 18.43°, an 8:12 is 33.69° and a 12:12 is exactly 45°. Pick "Angle (degrees)" in the calculator to go the other way and read the matching x:12 pitch.

04

What is a roof slope calculator?

It is the same tool as a roof pitch calculator - slope, pitch and angle are three ways of describing the same steepness. Pitch is the rise-over-run ratio written x:12, the angle is that slope in degrees, and the slope (or grade) is it as a percentage. This calculator shows all three at once, so whether you call it a roof slope, roof pitch or roof angle calculator, you enter the form you know and read off the rest, plus the rafter length.

05

Is the run the same as the building width?

It depends on the roof type. For a symmetric gable roof the run is half the building span, because each rafter only reaches from the outside wall to the ridge in the centre - an 8 m wide building has a 4 m run. For a shed or lean-to (single slope) roof the run is the full width, since one rafter spans the whole way. Pick the roof type above and the calculator works the run out for you.

06

What is the slope factor and how do I find roof area?

The slope factor is the rafter length per unit of run - the square root of (1 + slope ratio squared), which is the same as the secant of the roof angle. Multiply the flat footprint (plan) area of the roof by the slope factor to get the actual sloping surface area you need to cover with sheathing, felt and shingles. A 6:12 roof has a slope factor of about 1.118, so a 100 m² footprint is roughly 112 m² of roof surface.

07

Does the rafter length include the overhang?

The headline figure does. The calculator shows the common rafter from the wall plate to the ridge, the extra sloping length of the eave overhang (the rafter tail), and the two added together. Enter the overhang as a horizontal distance and it is converted to its sloping length using the same slope factor. Remember to add a little extra for the plumb and seat (birdsmouth) cuts when you order timber.

08

What is a low slope versus a steep slope roof?

Roofers group pitches into bands: under about 2:12 is flat or near-flat (needs membrane, not shingles), 2:12 to 4:12 is low slope, 4:12 to 9:12 is conventional slope where most shingle and tile products work without special detailing, and 9:12 and above is steep slope. The calculator labels the band as you change the pitch so you can sanity-check the design against your roof covering.

Related calculators