Skip to content
Yardox

Roof pitch calculator

Measure the rise over a known run, or enter the angle, and read the roof pitch as x/12, degrees and percent, with the slope factor for rafters and roof area.

Your roof

Roof slope as a triangle: run along the bottom, rise up the side and the angle at the eave12 in6 in26.6°

What you know

I know

Hold a level against the roof or a rafter, measure 12 in (or 1 m) along it, then measure straight down or up to the roof surface.

The vertical distance.

The horizontal distance, not the length along the slope.

Roof pitch6/12
Add this calculator to your website

Free for any website: paste this code where the calculator should appear. It keeps itself up to date, fits its height to the content and links back to the full page with the explanations.

How to use it

  1. 01Pick what you know: a rise over a run you measured, a pitch like 6/12, an angle in degrees, or a slope in percent.
  2. 02To measure from inside the attic or on a gable end, hold a level horizontal, mark 12 in along it, and measure straight up to the underside of the rafter. That height is the rise per 12.
  3. 03Read the pitch in every form at once, plus the slope factor: the length along the roof for each foot of level run.
  4. 04Check the note under the result. Below 4/12 asphalt shingles need extra underlayment, and below 2/12 they are not allowed.

How it is calculated

Every way of writing a slope is the same ratio of rise to run. The calculator turns your input into that ratio and writes it out again in the other forms.

Ratio
r = rise / run
Pitch
rise per 12 = 12 × r
Angle
θ = arctan(r)
Percent
% = 100 × r
Slope factor
k = √(1 + r²)

From degrees the calculator goes the other way: rise per 12 = 12 × tan θ. So 35° is 12 × 0.700 = 8.40/12.

The slope factor is what carpenters use for rafter length and roofers for roof area: run × k gives the length along the slope, and the floor-plan area of a roof times k gives the area to cover.

The shingle limits come from the International Residential Code, section R905.2: asphalt shingles only from 2/12, and double underlayment from 2/12 up to 4/12.

Worked example

A 6/12 roof and a 4/12 rafter

  1. 6/12: r = 6 / 12 = 0.5, so 26.57°, 50 %, slope factor √1.25 = 1.118.
  2. 4/12 with a 16 ft run: slope factor √(1 + 0.333²) = 1.054.
  3. Rafter along the slope: 16 × 1.054 = 16.87 ft = 202.4 in, before the overhang and the ridge cut.
  4. A plan says 35°: 12 × tan 35° = 8.40, so close to 8½/12.

Getting the order right

Measure on the rafter, not the shingles

Shingles and battens add thickness that changes the reading near the eaves. A level on the underside of a rafter in the attic gives the true pitch.

A phone works for a check

A phone inclinometer on a straight board laid on the roof gives degrees. Type them in to get the pitch for the material order.

Area from the floor plan

Measure the house outline with the overhangs, multiply by the slope factor, and you have the roof area without climbing up. The roofing calculator does this for you.

Common mistakes

  • Measuring the rise over a run that is not level.
  • Mixing up percent and degrees: 45° is 100 %, not 45 %.
  • Using the total rise of the roof over half the span, then also halving the run again.
  • Ordering shingles for a low slope without the double underlayment the code asks for.

Questions

How do I find the pitch of a roof?

Measure the rise over 12 in of level run. If it rises 6 in, the pitch is 6/12. You can also enter any rise and run, or an angle from a phone, and the calculator does the rest.

What is a 6/12 pitch in degrees?

26.57°. A 4/12 pitch is 18.43°, 8/12 is 33.69°, and 12/12 is 45°.

What is the minimum pitch for shingles?

The IRC (R905.2) allows asphalt shingles from 2/12. From 2/12 up to 4/12 it requires two layers of underlayment.

What is the slope factor?

The length along the roof for each unit of level run: √(1 + r²). For 6/12 it is 1.118, so a 10 ft run is 11.18 ft along the slope.

How do I convert degrees to pitch?

Multiply the tangent of the angle by 12. 30° gives 12 × 0.577 = 6.93, close to 7/12.

Guides on this topic

Sources

  1. [1]Carpentry Refresher Program Manual, Topic 2: Gable Roof Components and Calculations (CC BY 4.0). Saskatchewan Indian Institute of Technologies. Slope as degrees, percent or unit rise in 12; total rise = unit rise × units of run; line length by Pythagoras; tail length = unit line length × overhang. Worked example: 4/12, 16 units of run gives 202.4 in (16 ft 10⅜ in) and 64 in of rise. Checked November 10, 2026
  2. [2]Cutting Common Rafters (Framing Workbook, Training the Trades). Journal of Light Construction. Run of a common rafter on a full gable roof is half the building width minus half the ridge thickness; rafter length is measured from the top plumb cut to the building line and does not include the overhang. Checked November 10, 2026
  3. [3]Asphalt shingles (IRC R905.2), city building department summary. City of Hopkins, MN. Asphalt shingles only on slopes of 2:12 or more; double underlayment from 2:12 to 4:12. Checked November 10, 2026

Formulas and sources last checked on November 10, 2026. How we calculate