Roof Pitch & Rafter Calculator
Enter the roof pitch or angle, the run and the overhang. You'll get the angle, pitch, percent slope, total rise and the rafter length, including the overhang.
- Imperial
- Metric
- Steps shown
- Free
Your measurements
Results
- Rafter length incl. overhang
- —
- Roof angle
- —
- Pitch
- —
- Slope
- —
- Rafter over the run
- —
- Overhang along slope
- —
- Total rise
- —
- Slope factor
- —
Lengths are line lengths to the ridge centreline. Deduct half the ridge thickness and add material for the tail cut.
How we got this
Want your brand in front of people using the Roof Pitch & Rafter Calculator? Sponsor this calculator
Worked example
A gable roof spans 24 ft, so the run is 12 ft. The pitch is 6/12 with a 12 in overhang.
- Slope = 6 ÷ 12 = 0.5, so the angle is arctan(0.5) = 26.6° and the slope is 50%.
- Slope factor = √(1 + 0.5²) = 1.118.
- Rafter over the run = 144 in × 1.118 = 161.0 in, about 13 ft 5 in.
- Overhang along the slope = 12 in × 1.118 = 13 7/16 in.
- Total rafter length = 174.4 in, about 14 ft 6 7/16 in, so 16 ft stock is enough.
- Total rise from plate to ridge line = 144 × 0.5 = 72 in (6 ft).
How it works: the formula
Roof pitch is written as rise in 12: how many units the roof rises for every 12 units of horizontal run. Every result comes from the slope, rise ÷ run:
- Slope = pitch ÷ 12 (or tan(angle) if you enter an angle)
- Angle = arctan(slope)
- Percent = slope × 100
- Slope factor = √(1 + slope²), the rafter length per unit of run
- Rafter length = run × slope factor
- Overhang along the slope = level overhang × slope factor
- Total rise = run × slope
To mark the plumb cut with a speed square, pivot it on the edge of the rafter until the pitch number (the "common" scale) or the angle lines up, then draw along the square's edge.
Assumptions and limitations
- Run is measured level, from the outside of the wall plate to the centre of the ridge (half the span on a gable roof).
- Rafter length is the line length along the top edge of the rafter. Deduct half the ridge board thickness, and allow material for the plumb and tail cuts.
- The overhang is entered as a level distance and converted to its length along the slope.
- Rafter sizes, spans and connections must come from span tables and your local code. This calculator only does the geometry.
Tools for this job
We may earn a commission if you buy through these links, at no extra cost to you. As an Amazon Associate we earn from qualifying purchases. Read our affiliate disclosure
-
Rafter / speed square (7 in)
Marks plumb and seat cuts by pitch or angle without any maths.
See options on Amazon : Rafter / speed square (7 in) (opens in a new tab) -
Steel framing square (16 × 24 in)
The standard tool for laying out stringers and rafters.
See options on Amazon : Steel framing square (16 × 24 in) (opens in a new tab) -
Chalk line reel
Snaps long, straight layout lines on rafters, sheathing and decks.
See options on Amazon : Chalk line reel (opens in a new tab)
Frequently asked questions
What does a 6/12 roof pitch mean?
A 6/12 pitch (said "6 in 12") rises 6 inches for every 12 inches of horizontal run. That is a slope of 0.5, a 50 percent grade, or an angle of about 26.6 degrees.
How do I convert roof pitch to degrees?
Divide the rise by 12 and take the arctangent: angle = arctan(rise ÷ 12). For example, a 4/12 pitch is arctan(0.333) ≈ 18.4°, and a 12/12 pitch is exactly 45°.
How do I calculate rafter length?
Multiply the run by the slope factor √(1 + (rise ÷ 12)²). For a 6/12 roof the factor is 1.118, so a 12 ft run needs a rafter about 13 ft 5 in long, plus the overhang measured along the slope.
What is the run of a rafter?
For a simple gable roof, the run is half the building span: the horizontal distance from the outside of the wall plate to the centre of the ridge. On a shed (lean-to) roof the run is the full span.
Do I need to subtract the ridge board?
Yes, for a cut rafter. This calculator gives the line length to the ridge centreline. When you lay out the rafter, shorten it by half the ridge board thickness, measured square to the plumb cut.
What is the most common roof pitch?
In the US, pitches between 4/12 and 9/12 are most common on houses. In the UK and Australia, roofs are usually described in degrees, with 22.5° to 35° typical for tiled roofs. The minimum pitch depends on the roofing material.
Related calculators
-
Woodworking & joinery
Miter Angle Calculator
Miter saw settings for frames and polygons, and long-point lengths for trim.
-
Stairs & steps
Stair Calculator
Risers, treads, stringer length and angle from your total rise, with code-limit warnings.
-
Lumber & materials
Drywall & Plywood Sheet Estimator
How many 4×8 (or metric) sheets you need for walls, floors or ceilings.