BCTheBuildingCode

How to calculate roof pitch

Roof pitch is rise over run — how far the roof climbs vertically for every 12 units it travels horizontally. Measure a 12-inch run, measure the matching rise, and you have your pitch: a 4-inch rise over a 12-inch run is a 4:12 roof. From that one ratio you can work out the angle in degrees, the percentage grade, and the slope factor that gives you rafter length and roof area.

Want the numbers without the arithmetic? Use the roof pitch calculator → Enter rise and run and it returns the pitch ratio, angle, grade, slope factor and rafter length at once. The sections below explain what each number means and how to measure pitch yourself.

1. What “rise over run” actually means

Every sloped roof is really just a right-angled triangle. The horizontal distance the roof covers is the run, the vertical height it gains over that distance is the rise, and the sloping roof surface itself is the hypotenuse. Roofers describe the steepness of that triangle as a ratio of rise to run, and by long-standing convention the run is fixed at 12. So a roof written as “4:12” or “4 in 12” rises 4 inches for every 12 inches — every foot — of horizontal travel. The bigger the first number, the steeper the roof.

Fixing the run at 12 is just a habit that makes pitches easy to compare and to cut. Mathematically the ratio is the only thing that matters, so a 6:12 roof and a 1:2 roof are exactly the same steepness — 6 over 12 reduces to 1 over 2. The calculator keeps the familiar x:12 form because that is what framing squares, rafter tables and building plans use, but it will also tell you when a ratio simplifies to cleaner whole numbers.

2. How to measure roof pitch yourself

The most reliable method needs only a spirit level and a tape measure. Rest one end of the level on the roof surface (or against the underside of a rafter in the attic, which is safer) and raise the other end until the bubble is centred so the level is truly horizontal. Measure 12 inches out along the level from the point where it touches the roof, and at that 12-inch mark measure straight down to the roof surface. That vertical measurement is your rise over a 12-inch run, which isyour pitch: a 5-inch drop means a 5:12 roof.

A framing or speed square is even quicker if you have one — its pivot and degree markings let you read the angle directly off a rafter. From the ground you can get a close estimate by standing at a gable end, sighting along the slope of the roof, and using a phone's level or angle app to read the degrees, then converting with the table below. Phone estimates are fine for a rough idea, but for ordering materials or cutting rafters, confirm with the level-and-tape method, because a degree or two of error changes the rafter length and the amount of roofing you need to buy.

3. The three formulas behind every roof pitch calculator

Once you have the rise and run, three short formulas turn that ratio into everything else. The angle in degrees is the arctangent of rise divided by run: angle = arctan(rise ÷ run). A 4:12 roof gives arctan(4 ÷ 12) = arctan(0.333) = 18.4°. The percentage grade is simply rise ÷ run × 100, so the same 4:12 roof is a 33.3% grade — this is why a 3:12 roof is often called a “25% roof”, because 3 ÷ 12 = 0.25.

The third and most useful number is the slope factor, sometimes called the rafter or roof multiplier. It is the length of the sloping side of the triangle for each unit of run: factor = √(rise² + run²) ÷ run. For a 4:12 roof that is √(16 + 144) ÷ 12 = √160 ÷ 12 ≈ 1.054. The slope factor matters because it converts flat, horizontal measurements — which are easy to take from a plan or a footprint — into the real sloped distances and areas you actually need.

4. Roof pitch reference table

Every common x:12 pitch as an angle, a percentage grade and a slope factor. Pure trigonometry — no rounding tricks.

PitchAngleGradeSlope factor
1:124.8°8.3%1.003
2:129.5°16.7%1.014
3:1214.0°25.0%1.031
4:1218.4°33.3%1.054
5:1222.6°41.7%1.083
6:1226.6°50.0%1.118
7:1230.3°58.3%1.158
8:1233.7°66.7%1.202
9:1236.9°75.0%1.250
10:1239.8°83.3%1.302
11:1242.5°91.7%1.357
12:1245.0°100.0%1.414

For a pitch that is not a whole number on 12 — say 4.5:12 — the calculator gives the exact angle, grade and factor rather than forcing you to interpolate between rows.

5. What common pitches look like

Low-slope roofs from about 2:12 to 4:12 look almost flat from the ground and are common on porches, extensions and modern homes; they read as a gentle incline of roughly 9° to 18°. The 4:12 to 9:12 range — angles of about 18° to 37° — covers the great majority of pitched residential roofs and is what most people picture as a “normal” gable. Anything 9:12 and steeper, climbing past 37°, starts to feel dramatic: think steep cottage roofs, A-frames and traditional designs built to shed heavy snow. A 12:12 roof sits at exactly 45°, rising as fast as it runs.

Pitch is not just an aesthetic choice. Steeper roofs shed rain and snow faster, give more usable attic or loft space, and tend to last longer because water spends less time on them. Shallower roofs use less material and are easier and safer to work on, but they put more demand on the underlayment and flashing to stay watertight, which is why very low slopes often need a continuous membrane rather than overlapping shingles or tiles.

6. Using the slope factor for rafter length and roof area

The slope factor is what makes a pitch calculation practical. To find a common rafter's length, take the horizontal run it covers — usually half the building's width for a simple gable — and multiply by the slope factor. On a 4:12 roof spanning a 24 ft wide building, each rafter runs 12 ft horizontally, so its body length is 12 × 1.054 ≈ 12.65 ft, before you add the overhang and subtract for the ridge board and the seat cut at the wall. The calculator does this rise-and-run-to-rafter step for you once you enter the run.

The same factor scales area. The flat footprint of a roof — its length times its width measured on the ground — is easy to get, but the actual roof surface you have to cover with shingles, felt or metal is larger because it tilts. Multiply the flat plan area by the slope factor to get the true sloped area: a 4:12 roof needs about 5.4% more material than its footprint suggests, while a 12:12 roof needs roughly 41% more. Forgetting this is one of the most common reasons people under-order roofing materials.

7. Minimum slope, materials and the building code

Pitch decides which roofing materials you can use. As a general guide, the shallower the roof, the more it depends on a sealed, water-shedding system: very low slopes typically call for a continuous membrane, while standard overlapping products like asphalt shingles, tiles and most metal panels are designed for steeper roofs and may require extra underlayment below a certain pitch. The exact minimum slope for any given product, and any extra underlayment requirement, is set by the manufacturer's instructions and your local building code — these are real, enforceable numbers, so always confirm them for your specific material and jurisdiction rather than relying on a rule of thumb. This guide and the calculator help you measure and convert your pitch; they do not replace the code or the manufacturer's specification.

Common questions

How do I calculate my roof pitch?
Measure the rise over a fixed horizontal run and divide. Hold a level horizontally against the roof, measure 12 inches along it, then measure straight down to the roof surface — that vertical drop is the rise. A 4-inch drop over 12 inches is a 4:12 pitch. The formula is pitch = rise ÷ run, written as the rise per 12 units of run.
What is the 25% rule in roofing?
A 25% grade is the same as a 3:12 pitch — a rise of 3 over a run of 12 equals 3 ÷ 12 = 0.25, or 25%. Percentage grade and the x:12 ratio describe the same slope two different ways: divide the rise by the run and multiply by 100 to get the percentage.
What is the slope of a 4x12 roof pitch?
A 4:12 pitch is a slope of 18.4° (arctan of 4 ÷ 12), a 33.3% grade, and a slope factor of about 1.054. That factor means the sloped roof surface is roughly 5.4% longer than its flat footprint, so a rafter spanning 12 ft of run is about 12.6 ft long.
Can I measure my roof pitch from the ground?
Yes, approximately. From a gable end, sight along the roof line and use a phone's angle/level app to read the slope angle, then convert with the table below. For an exact figure, the level-and-tape method against the roof or inside the attic against a rafter is more reliable — measure 12 inches of run and read the rise.

Reference & education only. Not professional, engineering, or code-compliance advice. Estimates are based on published model codes; local amendments and your Authority Having Jurisdiction (AHJ) govern. Always verify against the current adopted code and a licensed professional before doing work.

Last reviewed 2026-06.

More guides

Keep reading

View all 10 guides →

More free tools

Other tools you might need

View all 11 free tools →All Roofing tools & guides →