Skip to content

Roof Pitch Calculator

Written by Orion Tate Orion Tate
Reviewed by Prof. Omar Farooq Prof. Omar Farooq, PhD in Mechanical Engineering

Last updated 2026-08-18 · 4 cited sources

Roof pitch is the steepness of a roof plane, given as the vertical rise across a fixed horizontal run — by convention 12 units, which is why slopes are written 4:12, 6:12 or 8:12 — or as the angle that plane makes with level ground. A roof climbing 6 inches for every 12 inches it travels sideways is a 6-in-12 roof, and that is an angle of 26.6 degrees.

Two measurements go in: the rise and the run, both in the same unit. One line comes back, the angle in degrees to one decimal place. The ratio itself, the rafter length and the true roof area are not printed; the chart further down converts the angle into all three.

Only the proportion between your two figures counts, so the Measurement Unit selector has no effect on the number: 15 and 30 return 26.6° whether you label them inches or centimeters. Take both readings off the same tape and the answer holds either way.

Roof Pitch Calculator

Enter your values below.

Roof Pitch Result

Enter your details and press “Calculate” to see your results.

The roof pitch shows how steep a roof is. It can be expressed as an angle in degrees or as a simple ratio of rise over run. Enter the vertical height (rise) and horizontal distance (run) to calculate your roof's slope.

What Is Roof Pitch?

Every sloped roof is a right triangle in disguise. The horizontal leg is the run, the vertical leg is the rise, and the sloping face you can see is the hypotenuse, which is also the rafter line. Pitch is the relationship between the first two legs, and almost everything else about the roof follows from that one proportion: which coverings are legal on it, how much material it swallows, and whether anyone can stand on it.

Rise, Run, and the X-in-12 Notation

Rise is how far the roof climbs vertically. Run is how far it travels horizontally to do it, measured on the level rather than along the slope. Both belong to a single roof plane, taken from the eave toward the ridge, never across a valley or over a dormer.

American roofing fixes the run at 12 and quotes the rise against it, which compresses the whole vocabulary of the trade into one number: a 4:12, a 7:12, a 12:12. The 12 is arbitrary but universal, so a framer can say “it's an eight” and every other trade on site knows the plane sits at 33.7 degrees without measuring anything.

You do not have to measure a 12-inch run to get there. Rise divided by run, multiplied by 12, converts any honest pair into the standard notation: 14 inches of rise over a 24-inch run is 7.00 in 12.

Pitch, Slope, Degrees, Percent

Four descriptions of one quantity are in circulation. The X-in-12 ratio is what roofers and building codes use. Degrees is what architects, solar designers and anyone setting a miter saw use. Percent slope, which is rise divided by run times 100, is what surveyors and drainage engineers use, so a 6:12 roof is a 50% slope. The fourth is the angle's tangent, the bare decimal 0.5, which is what the trigonometry underneath is actually handling.

The model code settles the wording. In the roof-assemblies chapter cited at the foot of this page, “slope” appears 87 times and “pitch” three, and where “pitch” does appear it carries the identical meaning: “3:12 pitch to < 4:12”. An older carpentry usage made pitch the rise over the full span instead of the run, so a 6:12 roof on a 24-foot span was quarter pitch. That survives only in old framing tables. For anything specified, permitted or bought today, pitch means rise per 12 of run.

What This Calculator Returns

The panel prints one line: the words Roof Pitch Angle, then the degrees to one decimal. Enter 8 and 12 and it reads Roof Pitch Angle: 33.7°. Nothing appears beneath it — no ratio, no rafter length, no area.

The input side is equally spare, because the angle depends on the ratio alone. The tool never needs to know how big the roof is or which tape you used. Everything the panel leaves out is worked through in the sections below.

Rise and run measured on a roof plane to find the pitch angle

Turning an angle into an order is a separate job: the footprint has to be scaled up by the slope, divided into squares and padded for waste, which is the work done by the Roof Shingle Calculator.

How Do You Calculate Roof Pitch?

The arithmetic is one division and one inverse trigonometric function. Getting an honest rise and run off a real roof is the part that goes wrong, which is why measuring gets as much room here as the math.

The Roof Pitch Formula, Written Out

Divide the rise by the run, then take the arctangent of the result. Arctangent — the inverse tangent, written arctan or tan⁻¹ — is the function that answers the question “what angle has this ratio between its opposite and adjacent sides?” It is the exact inverse of the tangent, and it is the only piece of trigonometry a roof needs.

Formula

angle in degrees = arctan(rise ÷ run) × 180 ÷ π

rise per 12 of run = (rise ÷ run) × 12
percent slope      = (rise ÷ run) × 100

The first line is what the calculator evaluates. The second is the one it does not do for you, and it is the number your supplier will ask for. The third is the same ratio wearing a surveyor's hat.

How to Measure Rise and Run

Three ways to get the pair, all producing the same ratio:

  • On the roof: lay a level on the slope, hold it horizontal, and mark a run along it. Twelve inches works; twenty-four inches is steadier. Measure straight down from the mark to the roof surface, perpendicular to the level. That drop is the rise.
  • In the attic: press the level against the underside of a rafter instead of the shingles. Identical geometry, no ladder, and nothing to slip on.
  • Gable to ridge: measure the horizontal distance from the outside wall in to a point below the ridge, and the vertical height from the ceiling joist up to the underside of the ridge board. A 60-inch rise over a 120-inch run returns 26.6°, the same answer 6 and 12 give.

Both figures must be in the same unit and taken on one roof plane. A run measured along the slope rather than on the level reads long, and the pitch that comes back is too shallow.

Step by Step

  • Choose one roof plane and take the run on the level — say 24 inches.
  • Measure the rise: the vertical drop from the free end of the level down to the roof — say 14 inches.
  • Leave Measurement Unit on Inches. The selector does not change the answer, so it only has to match your own notes.
  • Type 14 into Vertical Height (Rise) and 24 into Horizontal Distance (Run).
  • Press Calculate. The readout shows Roof Pitch Angle: 30.3°.
  • For the trade ratio, do the division yourself: 14 ÷ 24 × 12 = 7.00, so this is a 7-in-12 roof.

Both fields open empty, so nothing is computed until you press the button, and the panel does not update again while you type. Change a figure and press Calculate a second time.

Worked Example: an 8-in-12 Roof

A level held out 12 inches from the roof face drops 8 inches to meet the shingles. Rise 8, run 12, unit inches.

Rise 8 in, run 12 in
Roof Pitch Angle: 33.7°

The same roof is a 66.7% slope to a drainage engineer, and its sloping face measures 1.202 times the ground it covers. It sits above the federal 4-in-12 dividing line, so for work-safety purposes it is a steep roof rather than a low-slope one.

Worked Example: a 24-Inch Level and a 14-Inch Drop

Longer levels give steadier numbers because the same slip of the tape covers a smaller share of the reading. Held out 24 inches, this roof drops 14.

Rise 14 in, run 24 in
Roof Pitch Angle: 30.3°

Rise divided by run times 12 turns that into 7.00 in 12, and typing 7 and 12 into the same form returns Roof Pitch Angle: 30.3° once more. Only the ratio was ever in play.

Worked Example: 40 cm Over 100 cm

Metric measurements need no conversion first. A 100 cm run with a 40 cm drop goes in as 40 and 100.

Rise 40 cm, run 100 cm
Roof Pitch Angle: 21.8°

Switching Measurement Unit to Centimeters returns that same 21.8°, because the tool divides both entries by 2.54 and a ratio is untouched by dividing both of its sides by the same number. In American notation this plane is 4.80 in 12: legal for asphalt shingles, and just past the 4-in-12 mark where the double-underlayment requirement stops.

Roof Pitch Chart: Ratio, Degrees and Percent

Every slope you are likely to meet, with the angle this calculator returns for it. The multiplier column is the length of the sloping face per unit of run, so one figure scales both rafter length and surface area.

PitchAnglePercent slopeRafter and area multiplier
1/4 : 121.2°2.1%1.000
1/2 : 122.4°4.2%1.001
1 : 124.8°8.3%1.003
2 : 129.5°16.7%1.014
2 1/2 : 1211.8°20.8%1.021
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
18 : 1256.3°150.0%1.803
24 : 1263.4°200.0%2.236

Read the multiplier as a price tag. A 40 by 30 foot gable covers 1,200 square feet of ground; at 6:12 the roof surface is 1,341.6 square feet, at 8:12 it is 1,442.2, and at 12:12 it is 1,697.1. Framing, sheathing, underlayment and covering all scale with that surface figure, never with the footprint.

Rafter length uses the same column. A 15-foot horizontal run at 8:12 needs a rafter of 15 × 1.202, which is 18.03 feet before any overhang, and the ridge sits 10.00 feet above the wall plate. Up to about 3:12 the multiplier is within 3.1% of 1.000, which is why low-slope estimating can ignore it and steep-roof estimating cannot.

Converting Degrees Back to a Ratio

Drawings arrive in degrees; suppliers and framers work in twelfths. Going back the other way is the tangent, not the arctangent.

Formula

rise per 12 of run = tan(angle) × 12
AngleRise per 12 of runNearest standard pitch
15°3.22between 3:12 and 4:12
20°4.37between 4:12 and 5:12
22.5°4.97a shade under 5:12
25°5.60between 5:12 and 6:12
30°6.93a shade under 7:12
35°8.40between 8:12 and 9:12
40°10.07just over 10:12
45°12.00exactly 12:12

Of those eight, only 45° lands on a whole twelfth. A drawing calling for 30° gets built as a 7:12, which this calculator returns as 30.3°: about a quarter of a degree steeper than drawn, and small enough to vanish under the covering.

How to Read Your Result

A rise of 6 against a run of 12 produces the single line Roof Pitch Angle: 26.6°, and that is the entire output. What the number means depends on which threshold you are standing near.

Where the Category Lines Fall

One threshold governs safety. Federal construction rules define a low-slope roof as “a roof having a slope less than or equal to 4 in 12 (vertical to horizontal)” and a steep roof as one “having a slope greater than 4 in 12”. In degrees the line sits at 18.4°, and it carries real weight above 6 feet: roofing work on a low-slope roof may be protected by a warning line paired with a safety monitoring system, or by a safety monitor alone where the roof is 50 feet or less in width, while a steep roof permits only guardrails with toeboards, safety nets or a personal fall arrest system.

A second threshold governs water. Below roughly 2:12, which is 9.5°, runoff is slow enough that wind-driven rain can travel back up under overlapping pieces, which is why every shingle and tile in the next table has its code minimum at or above that line. What the code still allows below it are built-up roofs, metal panels with folded or sealed seams, and mineral-surfaced roll roofing down to 1:12.

Steeper than that and the limit stops being geometry. Roofers set roof jacks, staging or a lift once a plane is no longer safe to stand on, and where that point falls depends on the covering, the weather and the crew. The calculator returns 63.4° for a 24-in-12 mansard face without comment; what it costs to work on that face is no part of the number.

Minimum Slope by Roofing Material

Model code sets a floor for every covering. The slopes below are quoted from Chapter 9 of the 2012 Seattle Residential Code, the edition of the model text adopted and published by the City of Seattle; each angle is what this calculator returns for that slope.

Roofing materialMinimum slopeAngleCode section
Built-up roof1/4 : 121.2°R905.9.1
Standing-seam metal panel1/4 : 121.2°R905.10.2
Lapped metal panel, with lap sealant1/2 : 122.4°R905.10.2
Mineral-surfaced roll roofing1 : 124.8°R905.5.2
Asphalt shingles2 : 129.5°R905.2.2
Clay and concrete roof tile2 1/2 : 1211.8°R905.3.2
Metal roof shingles3 : 1214.0°R905.4.2
Wood shingles3 : 1214.0°R905.7.2
Wood shakes3 : 1214.0°R905.8.2
Lapped metal panel, no lap sealant3 : 1214.0°R905.10.2
Slate shingles4 : 1218.4°R905.6.2

Three rows repay a second look. Asphalt shingles are permitted from 2:12, but from 2:12 up to 4:12 the code calls for double underlayment, so a roof between 9.5° and 18.4° costs more to prepare than a steeper one does. Clay and concrete tile carry the same double-underlayment requirement from 2 1/2 : 12 to 4:12. Standing-seam metal ties built-up roofing for the shallowest slope on the list, both at 1/4 : 12, because a folded seam gives water no lap to climb.

Codes are adopted locally and revised on a cycle, and coal-tar built-up roofing is allowed shallower still, down to 1/8 in 12 or 0.6°. Treat the table as the shape of the rule, then confirm the edition your jurisdiction actually enforces before ordering.

When a Field Is Blank, Zero or Negative

A blank field and a typed zero take different paths. Press Calculate with Vertical Height (Rise) left empty and nothing is computed at all: the amber “Check your inputs” panel appears with the line “Enter a value for Vertical Height.” Leave both boxes empty and it names both, as “Enter a value for: Vertical Height, Horizontal Distance.” The message drops the parenthetical from each label, which is why it reads Vertical Height rather than Vertical Height (Rise). Neither field is exempt from that check, so an empty box is never read as a zero.

A zero or a negative number is a different case, because something was actually entered. Those clear the empty-field check, reach the formula and are refused there, and the panel then shows a large 0° with the words Invalid input under it rather than the amber notice. Read that 0° as “the tool declined”, not as “your roof is flat”. Both boxes need a value above zero.

Each field declares a minimum of 0.1, but the form is not validated by the browser, so smaller entries pass straight through: a rise of 0.05 against a run of 12 returns Roof Pitch Angle: 0.2°. The two checks above are the only ones that bite: a value in both boxes, and both of them above zero.

Limits: When This Does Not Apply

One Plane at a Time

The calculation describes a single flat roof plane. Gambrels and mansards carry two different pitches by design, saltboxes are asymmetric, and on a hip roof the hip rafter itself runs at a shallower angle than either plane it separates. Measure and enter each plane on its own; a roof with more than one slope has no single pitch to report.

The Unit Selector Changes Nothing

Choosing Centimeters divides both entries by 2.54, and dividing both sides of a ratio by the same number leaves the ratio exactly where it started. A rise of 15 and a run of 30 return 26.6° under either setting. The control exists for your own bookkeeping, and it cannot rescue the mistake it looks like it should catch: a rise recorded in inches paired with a run recorded in centimeters is wrong under both settings.

An Angle Is Not a Code Check

Learning that a plane sits at 14.0° tells you it is a 3-in-12 and that asphalt shingles clear the minimum. It says nothing about whether the deck, underlayment, ice barrier, fastener pattern, exposure or wind rating satisfy the code where you live, and several of those vary with slope in their own right.

Pitch alone also settles nothing about load. Whether a structure can carry the snow that lands on it is a structural calculation against a design ground snow load, and steepness cuts both ways: a steeper plane sheds snow more readily and presents more area to the wind.

Where Your Measurement Error Goes

Precision comes from a long run, not from the calculator. Read a 6-in-12 roof off a 12-inch level and a quarter-inch slip in the rise moves the answer between 25.6° and 27.5°, a spread of 1.91 degrees. Make the same quarter-inch error against a 24-inch level, where the nominal rise is 12 inches, and the spread narrows to 26.1° through 27.0°, or 0.95 degrees. Both spreads are the difference between the underlying angles rather than between the rounded readouts, and doubling the run halves the damage.

A level that is not truly level costs more than that. One degree of tilt over a 24-inch run displaces the mark by 0.42 inches, which reports a genuine 26.6° roof as 27.4°. Check the bubble before the tape.

What the Number Leaves Out

Rafter length, ridge height, roof area, overhang and the waste allowance on a material order all sit downstream of pitch, and none of them appear in the panel. The multiplier column in the chart above covers rafter length and roof area; ridge height is a separate step, the run times rise over 12, and overhang and waste depend on decisions the geometry cannot make for you.

Frequently Asked Questions

What angle is a 6/12 roof pitch?

26.6 degrees. Entering a rise of 6 and a run of 12 returns the single line Roof Pitch Angle: 26.6°. The same roof is a 50% slope, and its sloping face is 1.118 times the footprint beneath it.

What is the minimum roof pitch for asphalt shingles?

2 in 12, which is 9.5 degrees. Model code allows asphalt shingles only on slopes of two units vertical in 12 units horizontal or greater, and from 2:12 up to 4:12 (9.5° to 18.4°) it requires double underlayment. Slate needs 4:12, wood shingles and shakes 3:12.

How do I convert roof pitch to degrees?

Take the arctangent of rise divided by run, then multiply by 180 and divide by pi. For an 8-in-12 roof that is arctan(8 ÷ 12) = 33.7 degrees. The calculator does this step; enter 8 and 12 and it returns Roof Pitch Angle: 33.7°.

How do I convert degrees back into an X-in-12 pitch?

Multiply the tangent of the angle by 12. A 30-degree roof is tan(30°) × 12 = 6.93 in 12, so it gets framed as a 7:12, which reads 30.3° here, about a quarter of a degree steeper than drawn. A 45-degree roof is exactly 12:12, and of the eight angles charted on this page it is the only one that lands on a whole twelfth.

Does choosing inches or centimeters change the result?

No. The angle depends only on the ratio between rise and run, and the centimeter setting divides both by 2.54, which leaves that ratio unchanged. A rise of 15 and a run of 30 return 26.6° under both settings. What matters is that your two numbers share one unit.

What counts as a low-slope roof?

For federal construction safety rules, a low-slope roof is one with a slope less than or equal to 4 in 12, and a steep roof is anything greater. In degrees the line sits at 18.4°. Roofing trade practice draws a second line near 2:12, or 9.5°, below which sealed membranes replace overlapping shingles and tiles.

How much larger is a roof than the floor it covers?

Multiply the footprint by the slope multiplier. A 40 by 30 foot gable covers 1,200 square feet of ground; at 6:12 the roof surface is 1,341.6 square feet, at 8:12 it is 1,442.2, and at 12:12 it is 1,697.1. Below 3:12 the multiplier is 1.031 or less, so the difference is under 3.1%.

Why does the calculator show 0 degrees and Invalid input?

Because a zero or a negative number was entered in Vertical Height (Rise) or Horizontal Distance (Run). The formula refuses those and the panel prints 0° with Invalid input beneath it. A field left blank is caught before the formula runs and gets the amber “Check your inputs” panel instead, naming the field that is empty — for example “Enter a value for Vertical Height.” Either way, put a positive number in both Vertical Height (Rise) and Horizontal Distance (Run), then press Calculate again.

Sources & References

  1. [1] Occupational Safety and Health Administration, U.S. Department of Labor (2023). 29 CFR 1926.500 — Scope, application, and definitions applicable to this subpart (Fall Protection): definitions of “low-slope roof” and “steep roof” — U.S. Government Publishing Office (govinfo)
  2. [2] Occupational Safety and Health Administration, U.S. Department of Labor (2023). 29 CFR 1926.501 — Duty to have fall protection: roofing work on low-slope roofs (b)(10) and steep roofs (b)(11) — U.S. Government Publishing Office (govinfo)
  3. [3] (2012). Seattle Residential Code, Chapter 9: Roof Assemblies (Section R905, minimum deck slopes by roof covering) — Seattle Department of Construction and Inspections
  4. [4] Weisstein, E.W. Inverse Tangent — Wolfram MathWorld

Methodology. This calculator uses standard construction and material-estimation formulas. It is reviewed and maintained by the Vast Calculators editorial team.

Last updated ·

Results are estimates for general use; verify critical figures independently.

What to Work Out Next

See all Construction Calculators