Roof Pitch Calculator

Pitch (in 12)—
Roof angle (degrees)—
Slope (%)—
Rafter length (cm)—

How Roof Pitch Calculator is calculated: Pitch = rise / run x 12. Angle = arctan(rise / run). Slope = rise / run x 100%. Rafter = sqrt(rise squared + run squared).

What is a roof pitch calculator?

A roof pitch calculator turns two measurements, the rise and the run of a roof, into the four numbers builders actually use: the pitch in 12, the angle in degrees, the slope as a percentage, and the rafter length. The rise is how far the roof climbs vertically, and the run is how far it travels horizontally from the wall to the ridge. The defaults are a 150 cm rise over a 300 cm run: a 6-in-12 pitch, an angle of 26.6 degrees, a slope of 50.0%, and a rafter length of 335.4 cm.

Pitch is the language of roofing. When a builder says a roof is 6-in-12, they mean it rises 6 units for every 12 units of run, and everything else follows from that ratio: the angle, the rafter length, and how much material the roof needs. A roofing calculator takes the next step and works out the material from the roof area, and an area calculator helps with the footprint the roof covers.

This calculator is for homeowners checking a roof, builders pricing a job, and anyone buying roofing material who needs to know the real slope rather than guessing from the ground. It works in any unit, as long as the rise and the run are measured in the same one: centimetres, inches, or feet all give the same pitch.

Everything runs in your browser. Nothing you type is uploaded, stored, or shared, and you can use the calculator as many times as you like without signing up. The numbers are exact geometry, but the rafter length is the slope length only: it does not include the overhang or the ridge cut, and the article explains what to add.

How a roof pitch calculator works

The pitch is the rise divided by the run, scaled to 12. A 150 cm rise over a 300 cm run is a ratio of 0.5, and 0.5 times 12 is 6, so the pitch is 6-in-12. That is the number written on plans and quoted by roofers, and it is the same whatever unit you measured in, because the units cancel in the division.

The angle is the arctangent of the same ratio. The arctangent of 0.5 is 26.6 degrees, which is the angle the rafter makes with the horizontal. The slope percentage is the ratio times 100, so 0.5 becomes 50.0%. These are three ways of saying the same thing, and different trades prefer different ones: roofers quote the pitch, engineers quote the angle, and drainage guides quote the percentage.

The rafter length is the hypotenuse of the right triangle formed by the rise and the run, found with Pythagoras: the square root of rise squared plus run squared. For the defaults that is the square root of 150 squared plus 300 squared, which is the square root of 112,500, or 335.4 cm. That is the length of the rafter from the wall plate to the ridge, before any overhang is added.

The results update the moment you change a number. There is no submit button and no page to reload, so you can try a steeper rise and watch the pitch, the angle, and the rafter length all move together. That instant feedback is what makes the tool useful while a roof design is still being discussed.

The pitch in 12 explained

The pitch in 12 is the standard way to describe a roof in the US, Canada, and much of the building trade elsewhere. The second number is always 12, and the first number is how much the roof rises over that 12 units of run. A 6-in-12 roof rises 6 inches for every 12 inches it runs, which is the same as rising 6 cm for every 12 cm, or 6 feet for every 12 feet. The ratio is what matters, not the unit.

Common pitches have familiar feels. A 4-in-12 roof is low and modern, at 18.4 degrees, and it sheds water slowly. A 6-in-12 roof is the common middle at 26.6 degrees. An 8-in-12 roof is steep at 33.7 degrees, and a 12-in-12 roof is a 45-degree pitch that looks dramatic and sheds snow fast. The defaults sit at 6-in-12, the most ordinary roof of all.

The pitch decides what roofing material you can use. Flat-ish roofs below about 3-in-12 need membrane or metal systems, because tiles and shingles rely on slope to shed water and will leak on a shallow pitch. Steep roofs above 9-in-12 need fixings on every tile and are harder and slower to work on. The pitch is not just a number: it narrows the choice of material.

People often confuse pitch with angle, and the confusion causes real mistakes. A 6-in-12 pitch is 26.6 degrees, not 6 degrees and not 60 degrees, and ordering material for the wrong angle wastes money. The calculator shows both side by side, so the conversion is never a guess.

A worked example

Work through the defaults by hand, so you can check the maths yourself. Rise 150 cm, run 300 cm. The ratio is 150 over 300, which is 0.5. Multiply by 12 to get the pitch: 6.0 in 12. Take the arctangent of 0.5 to get the angle: 26.6 degrees. Multiply the ratio by 100 to get the slope: 50.0%. Take the square root of 150 squared plus 300 squared to get the rafter: 335.4 cm.

The calculator gives Pitch (in 12): 6.0, Roof angle: 26.6 degrees, Slope: 50.0%, Rafter length: 335.4 cm. Check the rafter by squaring it: 335.4 squared is about 112,500, which is 150 squared plus 300 squared. The numbers close, which is how you know the geometry is right.

Now try a steeper roof. Rise 200 cm, run 300 cm. The ratio is 0.667, the pitch is 8.0 in 12, the angle is 33.7 degrees, the slope is 66.7%, and the rafter is 360.6 cm. The result is Pitch: 8.0, Angle: 33.7 degrees, Slope: 66.7%, Rafter: 360.6 cm. The same run with a taller rise gives a steeper roof and a longer rafter, which is exactly what you would expect.

Now try a low roof. Rise 100 cm, run 400 cm. The ratio is 0.25, the pitch is 3.0 in 12, the angle is 14.0 degrees, the slope is 25.0%, and the rafter is 412.3 cm. That is a shallow modern roof, and at 3-in-12 it sits at the edge of what tiles can handle: most tile makers want at least 4-in-12, so this roof would need a membrane or a metal system.

Why roof pitch matters

Pitch decides how a roof handles weather. A steep roof sheds rain and snow fast, which is why snowy regions build steep roofs, and a shallow roof holds water longer, which is why flat roofs need membranes. The pitch also decides wind load: a steep roof catches more wind, and a shallow roof catches less, which matters for fixings in storm areas.

Builders use the pitch to price a job. The rafter length and the roof area both grow with the pitch, and so does the amount of material: a 12-in-12 roof has about 41% more surface than a flat roof of the same footprint, because the slope stretches the area. A paint calculator works the same way for walls, turning an area into tins of paint, and the roof area is the input the roofing material needs.

Homeowners use the pitch to check a quote or a plan. If a builder says the roof is 6-in-12 and the measurements say 8-in-12, the material quantities will be wrong, and the quote will be wrong with them. A minute with a tape measure and this calculator settles the question before money changes hands.

The pitch also decides whether a loft can become a room. A shallow roof leaves no headroom at the edges, and a steep roof leaves plenty, which is why loft conversions start by measuring the pitch. The angle the calculator reports is the number the conversion designer needs first.

Roof pitch calculator vs measuring the angle directly

Measuring the angle directly means holding a protractor or a phone against the rafter, which is awkward on a ladder and unreliable when the rafter is old or the roof is already covered. Measuring the rise and the run with a tape is easier and more accurate, and the calculator turns those two lengths into the angle exactly.

The calculator also gives you the rafter length, which a protractor cannot. That length is what you need to order timber, and it comes from the same two measurements, so one trip up the ladder answers both questions. A tile calculator then turns the roof area into a tile count, using the pitch to correct the area for the slope.

Neither tool replaces the other entirely. The tape measure gives the facts, and the calculator turns them into pitch, angle, slope, and rafter length. If the roof is already built and you cannot measure the run, an angle reading is a useful cross-check: the pitch for a 26.6-degree angle is 6-in-12, and the calculator confirms it in the other direction.

One thing the calculator cannot do is account for the overhang or the ridge. The rafter length it reports runs from the wall plate to the ridge centreline. Add the overhang past the wall, usually 30 to 60 cm, and the ridge cut when you order timber, or the rafters will come up short.

Common roof pitch mistakes

The first mistake is measuring the run to the wrong point. The run is from the outside of the wall to the centre of the ridge, not to the edge of the roof, and not to the inside of the wall. Measuring to the eave instead of the wall makes the run too long and the pitch too shallow.

The second mistake is mixing units. The rise in centimetres and the run in inches gives a meaningless ratio, and the pitch comes out wrong by a factor of 2.54. Measure both in the same unit, and check the unit before trusting the answer.

The third mistake is reading the pitch as degrees. A 6-in-12 pitch is 26.6 degrees, and ordering flashing or fixings for a 6-degree roof would be a costly error. The calculator shows both, so read the label, not just the number.

The fourth mistake is forgetting the overhang in the rafter length. The calculator's rafter runs wall to ridge, and the timber you order needs the overhang added, plus a little extra for the ridge cut. Ordering the exact calculator length leaves the rafters short at the eaves.

The fifth mistake is assuming the pitch is the same on both sides of the roof. Older houses often have different pitches front and back, and a single measurement on one side does not describe the other. Measure both sides when the roof is not symmetrical.

How to use this roof pitch calculator

Measure the rise and the run in the same unit. The run is the horizontal distance from the outside of the wall to the centre of the ridge; the rise is the vertical distance from the wall plate to the ridge. Type both into the calculator and read the pitch, the angle, the slope, and the rafter length instantly.

Use the pitch when talking to a roofer, the angle when talking to an engineer, and the slope percentage when checking drainage guidance. Use the rafter length to order timber, remembering to add the overhang and the ridge cut on top of the calculator's number.

Everything runs in your browser. Nothing you type is uploaded, stored, or shared, and you can use the calculator as many times as you like without signing up. Screenshot the results to keep them with your measurements.

Remember that the rafter length is the slope length from wall to ridge only. Add the eaves overhang, usually 30 to 60 cm, before ordering, and check the pitch on both sides of the roof if the building is old or the roof looks uneven.

Frequently Asked Questions

It means the roof rises 6 units for every 12 units it runs horizontally, which is an angle of 26.6 degrees and a slope of 50%. The second number is always 12, so the first number is the whole description. A 6-in-12 pitch is the most common roof in many places: steep enough to shed rain well and shallow enough to work on safely.

Measure the run horizontally from the outside of the wall to the centre of the ridge, and the rise vertically from the wall plate to the ridge, both in the same unit. Enter both into the calculator and it gives the pitch in 12, the angle, the slope, and the rafter length. If you can only reach the rafter itself, measure its length and its horizontal run instead.

Steeper is better for snow: a pitch of 8-in-12 or more, about 33.7 degrees, sheds snow well, while a shallow roof below 4-in-12 holds it and carries a heavy load. The exact answer depends on your local snowfall and your building code, which sets a minimum pitch and a snow load for the structure. Check the code before choosing.

No. The calculator's rafter length runs from the wall plate to the ridge centreline only. Add the eaves overhang, usually 30 to 60 cm, plus a little for the ridge cut, when you order timber. Ordering the exact calculator length would leave the rafters short at the eaves.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.