Skip to main content
🏗️ Roofing & Framing

Roof Pitch Calculator

From rise and run, find the roof angle in degrees, the pitch as x:12, the slope percentage and the rafter length — converting freely between every way of expressing a roof slope.

Angle in degrees
x:12 pitch
Slope %
Rafter length
100% Free
🏗️ Open Full Civil Calculator 📖 Read the Guide

Roof pitch — Quick answer

Pitch is rise over run. The same number becomes an angle, an x:12 ratio, a percentage, and — as a hypotenuse — the rafter length.

angle = atan(rise/run) · pitch = (rise/run)×12 : 12
slope% = (rise/run)×100 · rafter = √(rise²+run²)

Worked example: rise 4, run 12. Angle = 18.4°, pitch 4:12, slope 33.3%, rafter factor 1.054 (12.65 ft over a 12 ft run).

Common pitches

PitchAngleSlope %
4:1218.4°33.3%
6:1226.6°50.0%
12:1245.0°100%

Used for: rafters, roof framing, sheathing, gutters, solar mounting.

🏗️ Roof Pitch Calculator

Enter rise and run in the same units. Add the horizontal run (half span) for the actual rafter length.

Roof angle
Pitch (x:12)
Slope %
Rafter length

⚠️ "Run" is the horizontal distance from the wall to the ridge (half the span for a symmetric gable). Add eave overhang and subtract half the ridge thickness for the cut rafter length.

Roof pitch is just the rise over the run — how far the roof climbs for a given horizontal distance — but trades quote it in four different ways. Carpenters use the x:12 ratio (rise per 12 of run), engineers use the angle in degrees, surveyors use a percentage, and everyone eventually needs the rafter length, which is simply the diagonal across the rise and run. They are all the same slope wearing different clothes, and this calculator converts between them from one pair of numbers.

Reviewed: June 19, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: right-triangle roof geometry.

The roof-pitch equations

Angle & pitch ratio
angle = atan(rise / run)  ·  pitch = (rise / run) × 12 (x : 12)
Slope percentage
slope% = (rise / run) × 100
Rafter length
rafter = √(rise² + run²) = run × √(1 + (rise/run)²)

The rise-to-run fraction is the single quantity behind every form: feed it to arctangent for the angle, multiply by 12 for the carpenter's ratio, by 100 for the percent. The rafter is the hypotenuse, so it always exceeds the run by the "rafter factor" √(1 + (rise/run)²) — about 1.05 for a 4:12 roof and 1.41 for a 12:12. Multiply your horizontal run by that factor to get the sloping rafter line.

Worked example — a 4:12 roof

Scenario: A gable roof rises 4 ft for every 12 ft of run, with a 12 ft run from wall to ridge.

Angle, ratio & slope
angle = atan(4/12) = 18.4° · pitch = 4:12 · slope = 33.3%
Rafter length
rafter = √(4² + 12²) = √160 ≈ 12.65 ft (factor 1.054)

The 4:12 roof sits at a gentle 18.4°, sheds water well and is still safe to walk. Over the 12 ft run each rafter line is about 12.65 ft before you add the eave overhang and trim for the ridge board. Steepen it to 9:12 and the angle jumps to 36.9° with a 1.25 rafter factor — more dramatic, more material, and steep enough to want roof anchors when working on it.

Frequently Asked Questions

How do you calculate roof pitch?

Pitch = rise/run. As x:12 it's the rise per 12 run (4 over 12 = 4:12); as an angle it's atan(rise/run) ≈ 18.4° for 4:12.

How do I convert pitch to degrees?

angle = atan(x/12). 6:12 = atan(0.5) ≈ 26.6°; 12:12 = 45°. Reverse: x = 12 × tan(angle).

How do you find rafter length?

rafter = √(rise² + run²). A 4 ft rise / 12 ft run ≈ 12.65 ft. Add overhang and ridge allowance.

What is a common roof pitch?

Most homes are 4:12 to 9:12. 6:12 (~27°) is very common; below 2:12 is low-slope needing membrane roofing.

Pitch vs slope?

Same steepness: pitch as a ratio (6:12), slope as an angle or percent. This tool shows all three from rise and run.

Ready to perform complete calculations?

Use the full AI Calculator suite for roofing and framing with a professional PDF report.

🏗️ Open Full Calculator — Free

No registration required · 350+ engineering calculators · PDF report export