Roof pitch calculator
This roof pitch calculator works out your roof slope as an angle in degrees, a percent grade and a slope ratio, and the rafter length and total rise if you add a run. Enter a rise per twelve, an angle, or a rise and run you measured. Add a run and it gives the rafter length.
Your roof
PARSED 6/12
OPTIONAL · ADD A RUN FOR THE RAFTER LENGTH
Cut details · optional
PAST THE WALL, MEASURED LEVEL
HALF COMES OFF EACH RAFTER
Needs a run, span, total rise or rafter length above.
26.5651°≈
Multiply your run by 1.118034 for the rafter length. Hips and valleys at this pitch are in the app.
angle = atan(rise ÷ 12)
RUN 12" RISE 6" ANGLE 26.5651°
Common roof pitches
Each of these has a page with its angle, grade and rafter lengths across five building spans:
1/12 · 2/12 · 3/12 · 4/12 · 4.5/12 · 5/12 · 6/12 · 6.5/12 · 7/12 · 8/12 · 9/12 · 10/12 · 11/12 · 12/12
Every pitch from 1/12 to 24/12 in one table is on the roof pitch chart, and the multiplier for each is on the roof pitch multiplier table.
Use this free online roof pitch calculator to convert a roof pitch to its angle in degrees, its percent grade, its slope ratio and its rafter factor. Pitch is written as rise per twelve inches of run: a 6/12 roof rises 6 inches for every foot of level run. Enter the pitch and all four values appear at once. Switch to DEGREES to go from an angle to a pitch, or to MEASURE to enter a rise and run you took from the roof itself.
How to calculate roof pitch
To calculate roof pitch, divide the rise by the run and multiply by 12. The result is the rise per 12 inches of run, written as X/12. You need two measurements and one line of arithmetic, and it is the same sum whether you work out the pitch in the attic, at the eave or from a set of plans.
- Measure the rise, the vertical height the roof climbs.
- Measure the run, the level distance under that rise, in the same unit. On a gable roof the run is half the building's span.
- Divide the rise by the run and multiply by 12. That is your pitch over 12.
- Round to the nearest half pitch. Roofs are framed to whole and half pitches, so 5.8/12 is a 6/12 roof.
Roof pitch formula
- pitch (rise per 12) = rise ÷ run × 12
- angle = atan(rise ÷ run)
- percent grade = rise ÷ run × 100
Every roof pitch calculation on this page is one of those three equations. A roof that rises 5 ft over a 10 ft run is 5 ÷ 10 × 12 = 6, so it is a 6/12 pitch. Its angle is atan(5 ÷ 10) = 26.57°, and its grade is 50%.
Plans often give the overall span instead of the run. To figure out the pitch of a 24 ft wide gable with the ridge 6 ft above the wall plates, halve the span first. The run is 12 ft, and 6 ÷ 12 × 12 = 6/12. Using the whole span is the usual way people determine a pitch wrong, and it gives exactly half the right answer.
Or enter the rise and run in MEASURE mode above and the calculator does the division. If you only need to estimate roof pitch from the ground, see how to measure roof pitch below.
Roof pitch vs roof slope vs roof angle
All three describe how steep a roof is. They differ only in how the number is written.
Roof pitch is the rise per 12 inches of run, such as 6/12. It is the US framing convention, and it is what plans and lumber yards use.
Roof slope is the same steepness written as a ratio, 1 : 2, or as a percent grade, 50%. Most people use slope and pitch to mean the same thing, so this page works as a roof slope calculator too.
Roof angle is the steepness in degrees, 26.57° for a 6/12 roof. It is what a saw, a speed square or a digital angle finder reads.
| Pitch | Slope ratio | Percent grade | Angle |
|---|---|---|---|
| 4/12 | 1 : 3 | 33.3% | 18.43° |
| 6/12 | 1 : 2 | 50.0% | 26.57° |
| 12/12 | 1 : 1 | 100.0% | 45.00° |
Older carpentry books define pitch another way, as the rise divided by the whole span. Under that rule a "1/4 pitch" roof rises 6 ft over a 24 ft span, which is a 6/12 slope today. A 1/3 pitch is 8/12, and a 1/2 pitch is 12/12. If an old drawing gives a single fraction with no /12 after it, it is probably this kind.
Roof pitch to degrees chart (1/12 to 12/12)
The roof pitch angles, percent grade and rafter factor for the pitches houses and sheds are built to. Each pitch links to its own page with rafter lengths worked out.
| Pitch | Angle | Percent grade | Rafter factor |
|---|---|---|---|
| 1/12 | 4.76° | 8.3% | 1.0035 |
| 2/12 | 9.46° | 16.7% | 1.0138 |
| 3/12 | 14.04° | 25.0% | 1.0308 |
| 4/12 | 18.43° | 33.3% | 1.0541 |
| 4.5/12 | 20.56° | 37.5% | 1.0680 |
| 5/12 | 22.62° | 41.7% | 1.0833 |
| 6/12 | 26.57° | 50.0% | 1.1180 |
| 6.5/12 | 28.44° | 54.2% | 1.1373 |
| 7/12 | 30.26° | 58.3% | 1.1577 |
| 8/12 | 33.69° | 66.7% | 1.2019 |
| 9/12 | 36.87° | 75.0% | 1.2500 |
| 10/12 | 39.81° | 83.3% | 1.3017 |
| 11/12 | 42.51° | 91.7% | 1.3566 |
| 12/12 | 45.00° | 100.0% | 1.4142 |
Every pitch from 1/12 to 24/12 is on the full roof pitch chart, and the hip and valley factor for each is on the roof pitch multiplier table.
Roof pitch to degrees: converting pitch to a roof angle
Builders talk in ratios; saws and digital angle finders need degrees. The conversion is one arctangent: roof angle = atan(rise ÷ 12). A 4/12 pitch comes out at 18.4349°, a 6/12 pitch at 26.5651°, and a 12/12 pitch is exactly 45°. Only 12/12 gives an exact angle; every other pitch produces an irrational number, so the calculator marks every answer except 12/12 with ≈ to show the value is rounded.
Degrees to roof pitch (roof angle to pitch)
Going the other way is one tangent: rise per 12 = tan(angle) × 12. A 45° roof is exactly 12/12. A 30° roof is 6.93/12, which is framed as 7/12. 22.5° is 4.97/12, framed as 5/12, and 18° is 3.90/12, framed as 4/12. Roofs are framed to whole and half pitches, so the DEGREES mode gives the nearest half pitch beside the exact figure. Every whole pitch from 1/12 to 24/12 is on the roof pitch to degrees chart.
| Angle | Exact rise per 12 | Nearest framed pitch |
|---|---|---|
| 15° | 3.22 | 3/12 |
| 20° | 4.37 | 4.5/12 |
| 25° | 5.60 | 5.5/12 |
| 30° | 6.93 | 7/12 |
| 35° | 8.40 | 8.5/12 |
| 40° | 10.07 | 10/12 |
| 45° | 12.00 | 12/12 |
A 15° roof is a shallow 3/12. A 20° roof sits between 4/12 and 4.5/12, closer to 4.5. A 40° roof is a hair over 10/12, and a framed 10/12 is 39.81°.
Roof slope as percent grade and ratio
Roof slope is often given as a percent grade or a ratio rather than over 12. Roof pitch is written four ways, and which one you need depends on who is asking. Percent grade, sometimes called the gradient, is rise ÷ run × 100, so a 6/12 roof is a 50% grade, the figure drainage drawings use. Slope ratio is written 1 : n, so 6/12 is 1 : 2. Degrees are what a saw or an angle finder reads. All four appear together above.
Roof height and total rise from pitch
Roof height from pitch is one multiplication: total rise = run × pitch ÷ 12, with the run in feet. On a gable roof the run is half the building's span. On a shed or lean-to roof it is the full width, because there is only one slope.
- A 24 ft wide gable at 6/12 has a 12 ft run, so it rises 12 × 6 ÷ 12 = 6 ft 0 in.
- A 30 ft wide gable at 8/12 has a 15 ft run, so it rises 15 × 8 ÷ 12 = 10 ft 0 in.
- A 10 ft wide shed at 4/12 rises 10 × 4 ÷ 12 = 3.33 ft, which is 3 ft 4 in.
That is the rise from the top of the wall plate to the ridge line, measured along the top edge of the rafters. Add the wall height for the height of the building. The ridge board and the rafter depth move the real peak by an inch or two, so take those from the plan if the number has to be exact.
Enter a run above in RISE PER 12 or DEGREES mode and the calculator shows the total rise beside the rafter length. The rafter is the long side of the same right triangle, so the diagonal calculator gives it too, from a rise and run in feet and inches.
Shed and lean-to roof pitch
Shed roof pitch depends on the roofing material. Asphalt shingles need at least 2/12, but most builders start at 3/12 for reliable drainage. Metal depends on the panel: standing seam is allowed down to 1/4 in 12, lapped panels with sealant to 1/2 in 12, and lapped panels without sealant need 3/12. Calculating roof pitch for a shed works the same way as for a house, except that a single-slope shed's run is its full width, not half.
A lean-to roof attached to a house wall is worked out the same way. The run is the full distance it projects from the wall, and the rise is the height difference between the ledger on the wall and the beam at the outer edge. A lean-to that projects 8 ft, with the ledger 2 ft higher than the front beam, is 2 ÷ 8 × 12 = 3/12.
Patio covers and pergolas with a solid roof use the same arithmetic. Their minimum slope comes from the panel maker, and 1/4 in per foot is the usual floor for drainage. The minimum pitch table below has the figure for each material.
Minimum roof pitch by roofing material
Every roof covering has a minimum slope, below which water backs up under the laps. These figures are from the International Residential Code (IRC) 2021, Chapter 9. Check your local code and the manufacturer's installation instructions, because either can ask for more.
| Roofing material | Minimum slope | Note |
|---|---|---|
| Asphalt shingles | 2/12 | Double underlayment from 2/12 to under 4/12 (R905.2.2) |
| Clay or concrete tile | 2.5/12 | Double underlayment from 2.5/12 to under 4/12 (R905.3.3) |
| Metal roof shingles | 3/12 | R905.4.2 |
| Metal panels, lapped, no sealant | 3/12 | R905.10.2 |
| Metal panels, lapped with sealant | 1/2 in 12 | R905.10.2 |
| Metal panels, standing seam | 1/4 in 12 | R905.10.2 |
| Slate | 4/12 | R905.6.2 |
| Wood shingles and shakes | 3/12 | R905.7, R905.8 |
| Built-up, modified bitumen, single-ply (TPO, EPDM, PVC) | 1/4 in 12 | Coal-tar built-up: 1/8 in 12 |
A flat roof is never truly flat. It needs at least 1/4 in of fall per foot, which is 1/4 in 12, a 2.08% grade or 1.19°. In the UK that slope is simply called the fall. Across a 16 ft flat roof, 1/4 in per foot is 4 in from the high side to the low side.
Rafter factor and what it means for your cut list
The rafter factor (or roof pitch factor) is the number you multiply a horizontal run by to get the roof rafter length. For a 6/12 pitch the rafter factor is 1.118034, so a 12 ft run gives a 13 ft 5 in common rafter (160.997 in), before the ridge deduction and overhang are counted. Enter the run above and the calculator works it out. The formula is √(144 + P²) ÷ 12 — the hypotenuse of a right triangle 12 in wide and P in tall, expressed per foot of run. The roof pitch multiplier table lists the factor for every pitch, with the hip and valley factor beside it.
The factor gives you length, not size. Whether a rafter is a 2×6 or a 2×8, and whether it sits at 16 or 24 in on center, depends on the span, the snow and dead loads, and the species and grade of the lumber. Take that from the rafter span tables in your local code, or from an engineer.
Rafter length with an overhang, and for a shed roof
For the roof rafter length with an overhang, add the overhang to the run before you multiply, measured level rather than along the slope. At 6/12, a 12 ft run with a 12 in overhang is 13 ft of run, so the rafter is 14 ft 6-7/16 in. A shed or lean-to roof has one slope, so its run is the full level distance the rafter covers, not half the building: a 10 ft wide shed at 4/12 needs a 10 ft 6-1/2 in rafter, or 11 ft 7-1/8 in with a 12 in overhang. For a diagonal that is not on a roof, use the diagonal calculator. To add the overhang to the run in feet, inches and fractions, or take the ridge allowance off the result, use the Feet and Inches Calculator.
Roof area from pitch (roofing squares)
A sloped roof has more surface than the footprint under it, and the rafter factor tells you how much more. Roof area = footprint area, overhangs included, × rafter factor. Roofing squares = roof area ÷ 100.
A 30 × 40 ft footprint is 1,200 sq ft. At 6/12 the rafter factor is 1.1180, so the roof is 1,200 × 1.1180 = 1,341.6 sq ft, about 13.4 squares before 10 to 15% for waste. Work out the footprint on the square footage calculator, then multiply by the factor from the chart above.
How to measure roof pitch (inside, outside or from the ground)
From inside the attic, hold a level against the underside of a rafter, mark 12 inches along it from where it touches the rafter, and measure straight up to the rafter — that is your rise per twelve. From a ladder at the eave, the method is the same against the roof surface. From the ground, take a square-on photograph of the gable end and measure the rise and run on the image: pitch is a ratio, so scaling does not change the answer. Round to the nearest half inch before you type it — roofs are framed to whole and half pitches.
A phone or a digital angle finder is quicker. Lay it on a rafter in the attic or flat on the roof surface, read the angle, and enter it in DEGREES mode to get the pitch. If you're asking "what pitch is my roof?", the attic method is the most accurate, because a rafter is a straight edge and a shingled surface is not.
Questions about roof pitch
How do you calculate roof pitch?
Divide the rise by the run and multiply by 12: a roof that rises 5 ft over a 10 ft run is 5 ÷ 10 × 12 = 6, a 6/12 pitch. With a level, hold it out twelve inches from the roof surface and measure straight down to it; that drop is the rise per twelve. The steps and worked examples are under how to calculate roof pitch above.
What is a 4/12 roof pitch in degrees?
18.4349°, which is atan(4 ÷ 12). As a percent grade that is 33.33%, the slope ratio is 1 : 3, and the rafter factor is 1.054093.
What is a 6/12 roof pitch in degrees?
26.5651°. It is the most common residential pitch, its grade is 50.00%, and its rafter factor is 1.118034 — so a 12 ft run gives a 13 ft 5 in rafter.
What pitch is a 45 degree roof?
12/12, exactly. The rise and the run are equal, so the angle is 45°, the grade is 100% and the rafter factor is 1.414214.
What pitch is a 30 degree roof?
tan(30°) × 12 = 6.93, so 6.93/12, which is framed as 7/12. A true 7/12 pitch is 30.2564°.
What pitch is a 22.5 degree roof?
tan(22.5°) × 12 = 4.9706, so a fraction under 5/12. A true 5/12 pitch is 22.6199°.
What is the most common residential roof pitch?
Most houses sit between 4/12 and 9/12, and 6/12 is the pitch that turns up most often in stock plans. Below 3/12 you are into low-slope territory and shingles stop being the right covering.
How do you work out rafter length from pitch and run?
Multiply the run by the rafter factor for the pitch, which is √(144 + P²) ÷ 12. At 6/12 the factor is 1.118034, so a 12 ft run gives a 13 ft 5 in rafter and a 16 ft run gives 17 ft 10-11/16 in. Enter the pitch and the run above and the calculator does it. That is the length along the top edge, before the ridge deduction and the overhang.
What is the rafter factor?
The number you multiply a horizontal run by to get the length along the rafter. It is √(144 + P²) ÷ 12, where P is the rise per twelve. It saves you working the hypotenuse every time.
How do you add an overhang to rafter length?
Add the overhang to the run, measured level, then multiply by the rafter factor. At 6/12 a 12 ft run plus a 12 in overhang is 13 ft of run, and 156 in × 1.118034 is 14 ft 6-7/16 in of rafter.
How do I find the pitch of my roof from the ground?
Take a square-on photograph of the gable end, measure the rise and run on the image, and divide: pitch is a ratio, so scaling does not change the answer. Round to the nearest half-inch — roofs are framed to whole and half pitches.
What pitch is my roof?
Hold a level against a rafter or the roof surface, mark 12 inches along it, and measure straight from that mark to the rafter or roof. That distance in inches is your pitch over 12, so 7 in means a 7/12 roof. With a phone or a digital angle finder, read the angle off the roof surface and enter it in DEGREES mode above.
What is a 15 degree roof pitch?
About 3.22/12, because tan(15°) × 12 = 3.22. Roofs are framed to whole and half pitches, so a 15° roof is built as 3/12, which is 14.04°. At 3/12, asphalt shingles are allowed but need double underlayment under the IRC, and standing-seam metal is well inside its limit.
What is a 20 degree roof pitch?
About 4.37/12, since tan(20°) × 12 = 4.37. The nearest half pitch is 4.5/12, which is 20.56°. If the plan calls for a whole pitch, 4/12 is 18.43°, so 20° falls between the two and closer to 4.5/12. Enter 20 in DEGREES mode above for the grade and rafter factor.
What is a 40 degree roof pitch?
About 10.07/12, since tan(40°) × 12 = 10.07. It is framed as 10/12, which is 39.81°, an 83.3% grade with a rafter factor of 1.3017. Anything steeper than 4/12 counts as a steep roof under OSHA's fall protection rules, so plan the access before work starts.
What is the difference between roof pitch and roof slope?
In everyday use, none: both describe how steep the roof is. Strictly, pitch is the rise per 12 inches of run, written 6/12, and slope is the same steepness as a ratio, 1 : 2, or a percent grade, 50%. Older carpentry books used pitch for rise over the whole span, so a 1/4 pitch roof there is a 6/12 slope today.
What is the minimum roof pitch for a metal roof?
It depends on the panel. Under IRC R905.10.2, standing-seam metal can go down to 1/4 in 12, lapped non-soldered panels with sealant to 1/2 in 12, and lapped panels without sealant need 3/12. Metal roof shingles need 3/12. The manufacturer's instructions can ask for more, so check them and your local code.
How do you calculate roof height from pitch?
Multiply the run in feet by the pitch and divide by 12. For a gable the run is half the span, so a 24 ft wide gable at 6/12 rises 12 × 6 ÷ 12 = 6 ft from the wall plate to the ridge. For a shed roof use the full width. Add the wall height for the height of the building.
What is a 9/12 roof pitch in degrees?
36.87°, which is atan(9 ÷ 12). A 9/12 roof has a 75% grade, a slope ratio of 1 : 1.33 and a rafter factor of exactly 1.25, so a 12 ft run gives a 15 ft rafter. Rise, run and rafter make a 3-4-5 triangle, which is why the numbers come out clean.
