Roof Pitch Calculator

Roof pitch, angle, slope and rafter length from rise and run, a pitch ratio or an angle.

How far the roof goes up, in any unit.

How far it goes across, in the same unit as the rise.

The width the roof spans, wall to wall. Gives the ridge rise and rafter length for a symmetrical gable roof.

Roof pitch

6 in 12

26.6° or 50%

Rise per 12 of run
6 in 12
Angle
26.6°
Slope as a percentage
50%
Rafter length factor
1.118
Roof area compared with its footprint
1.118 times
Rise from wall to ridge
6 ft
Rafter length from wall to ridge
13.42 ft

A rise of 6 over a run of 12 is a roof that rises 6 inches for every 12 inches across, at an angle of 26.6 degrees.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

Roof pitch compares how far a roof rises with how far it runs across. In the US it is written as rise over 12 inches of run, so a 6 in 12 roof climbs 6 inches for every 12 inches it goes across. Other countries often give the roof angle in degrees, and builders sometimes use a percentage.

All three describe the same slope. The slope is rise divided by run. The pitch is the slope times 12, the angle is the arctangent of the slope, and the percentage is the slope times 100.

The rafter factor is the square root of 1 plus the slope squared. It tells you how much longer a rafter is than the flat distance it covers, and how much bigger the sloped roof surface is than the footprint of the building. Multiply the footprint area by the factor to get the roof area.

If you enter the building width, the calculator gives the rise from the wall to the ridge and the rafter length for a simple gable roof, not counting the overhang.

Check it by hand: a 6 in 12 roof rises 6 for every 12 of run, so the slope is 6 ÷ 12 = 0.5. The angle is arctan(0.5) = 26.57°, and the percent grade is 0.5 × 100 = 50%. The rafter factor is √(1 + 0.5²) = √1.25 = 1.118. On a 24 ft wide building the run to the ridge is 12 ft, so the rise is 12 × 0.5 = 6 ft and the rafter is 12 × 1.118 = 13.42 ft.

Slope = rise ÷ run
Pitch (in 12) = slope × 12
Angle = arctan(slope)
Percent = slope × 100
Rafter factor = √(1 + slope²)

Worked example

A roof that rises 6 inches over a run of 12 has a slope of 0.5. That is a 6 in 12 pitch, an angle of 26.6 degrees and a slope of 50%.

The rafter factor is 1.118. For a building 24 feet wide, the run from wall to ridge is 12 feet, the ridge is 6 feet higher than the walls, and each rafter is 13.42 feet long.

Good to know

  • Rafter length here is measured along the roof from the wall line to the ridge. It does not include the overhang, the birdsmouth cut or the ridge board thickness.
  • Very low pitches under about 2 in 12 need special roofing materials. Check the minimum slope for the roofing you plan to use.
  • To measure an existing roof from the ground, ask a pro, or measure the rise and run in the attic along a rafter. Do not climb a steep roof without safety equipment.

Questions people ask

How do I find the pitch of a roof?

Measure a level run of 12 inches along a rafter in the attic, then measure straight up from that mark to the rafter. That rise in inches is the pitch. A rise of 6 means a 6 in 12 roof.

What is a 6 in 12 roof in degrees?

A 6 in 12 pitch is 26.6 degrees. A 4 in 12 is 18.4 degrees, an 8 in 12 is 33.7 degrees and a 12 in 12 is 45 degrees.

What is a normal roof pitch?

Most houses in the US have pitches between 4 in 12 and 9 in 12. Pitches below 4 in 12 are low slope, and above 9 in 12 are steep.

How do I convert roof pitch to a percentage?

Divide the rise by the run and multiply by 100. A 6 in 12 roof is 6 ÷ 12 = 0.5, which is 50%.

What is the angle of a 4 in 12 roof?

The slope is 4 ÷ 12 = 0.3333 and arctan(0.3333) = 18.43°.

Part of the guide: Roof, stair, deck and structure calculators

Formulas and text last checked on 6 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.