Roof Pitch Calculator
Find the rafter length and the roof pitch from a rise and a run.
Converts the pitch between degrees, percent and rise per 12, in metric, imperial and mixed units.
Updated November 12, 2026
What this calculator does
A roof slope can be written as a ratio of rise to run, as an angle, as a percentage, or as a rise per 12 — and plans, roofers and level apps rarely agree on which one to use. This calculator holds all of those descriptions in one form, together with the three lengths of the triangle they describe: the rise, the run and the rafter.
Fill in what you actually know and the other boxes follow. Two of the three lengths complete the triangle, and any one of the three slope boxes fills in the other two. That means you can start from a measured rafter and a run, from a pitch printed on a drawing, or from a rise you can reach with a tape, and end up with the numbers a supplier or a carpenter will ask you for.
The arithmetic is plain right-triangle geometry — no allowances are built in for overhangs, notches or material — so treat the answers as the theoretical triangle and read the limits below before cutting anything.
For a measured roof
A rise and a run taken on site become a rafter length and a pitch in the forms a roofer recognises.
For a drawing
A pitch noted as 6:12, 26.57° or 50% is the same roof — the form converts between them.
For a repair
An existing rafter and the run it covers give the pitch the new covering and flashing have to match.
How to use it
Type the two numbers you trust
The form accepts any two of the rise, the run and the rafter length, or one of those lengths together with a slope. Leaving a box empty is fine.
Enter each measurement in the unit you took it in
The three lengths do not have to share a unit: a rise in feet with a run in metres is fine, and each box reports its answer in its own unit. The feet-and-inches and metres-and-centimetres entries hold the two parts separately, so a tape reading of 5 ft 10 in goes in as it was read.
Read the boxes that filled themselves
Numbers you did not type are calculated from the ones you did. A rise of 3 m over a run of 4 m is a 5 m rafter, a 36.8699° pitch, 75% and 9:12 — four descriptions of one roof.
A 9:12 roof rises 9 units for every 12 units across, which is the same slope as 75% and the same angle as 36.87°.
Change your mind in any box
Typing into a calculated box makes that number the one the others are solved from, so you can hold a pitch steady and vary a length, or the other way round, without starting over.
A slope on its own fixes the shape but not the size. Type only an angle or a percentage and the three length boxes stay empty until one length joins it.
Three ways to write one pitch
All three of the slope boxes describe the same tangent, so none of them is more correct than the others — but they are read very differently on site. The percentage is the rise divided by the run, printed out of 100. The rise per 12 is the same ratio counted over a run of 12. The angle is the one a level or a protractor measures, in degrees from the horizontal.
| Rise per 12 | Slope (%) | Angle (°) |
|---|---|---|
| 2:12 | 16.67 | 9.46 |
| 3:12 | 25.00 | 14.04 |
| 4:12 | 33.33 | 18.43 |
| 5:12 | 41.67 | 22.62 |
| 6:12 | 50.00 | 26.57 |
| 8:12 | 66.67 | 33.69 |
| 10:12 | 83.33 | 39.81 |
| 12:12 | 100.00 | 45.00 |
Percentages and angles rounded to two decimals. Each row is the value this page returns for that rise per 12.
The traps worth knowing. A 4:12 pitch is not 4 degrees — it is 18.43°, because 4 in 12 is a ratio, not an angle. The same goes for 30° being close to 7:12 rather than 30:12. And the two numbers of a ratio are always in the same unit, so 6:12 is six inches per foot on a framing square and 6 cm per 12 cm on a metric drawing; the pitch itself has no unit.
When someone quotes a pitch by its percentage, remember that percentages add up only along the slope: a 50% roof rises half the run, but its surface is only about 12% longer than the plan, not 50%. The roofing calculator applies that slope factor to a footprint when you need the area to order.
The geometry behind the numbers
The rise, the run and the rafter form a right triangle: the rafter is the hypotenuse, and the pitch is the angle between the rafter and the horizontal. Three relationships tie the six boxes together.
Read the other way round, a slope is all you need to turn one length into the rest of the triangle:
Every length is converted to one base measurement before the triangle is solved, so the unit inside each box never changes the answer — only the number printed in it. Degrees and radians are two ways of writing the same angle: a pitch of 0.6435 rad is the same roof as 36.87°.
The direction you can work in depends on which boxes already hold a number. This is the map:
| You enter | You get back |
|---|---|
| Any two of the rise, the run and the rafter | The third length and all three slope forms |
| A rise or a run, plus any slope form | The other two slope forms, the missing leg and the rafter |
| Any one slope form on its own | The other two slope forms; the lengths need one more number |
| A rafter length, plus any slope form | The other two slope forms; add a rise or a run for the legs |
The last row surprises people. A rafter and a pitch describe the roof exactly, but the two legs are solved from the rise-and-run pair or from a slope plus one of those legs, so one of them has to join the rafter before they fill in.
If a value looks wrong, check it in the other direction: enter the rafter you were given and the run you measured, and see whether the rise matches the wall height. A unit menu set to the wrong scale shows up immediately that way.
Measuring tips and common mistakes
The run is half the span, not the span. On a symmetrical gable roof the run is measured from the ridge to the outside face of the wall — one side only. An 8 m wide gable with a 1.5 m rise is a 1.5 m rise over a 4 m run: 37.5%, 4.5:12, 20.556°. Feeding the 8 m span in as the run halves the pitch.
Measure the rise vertically. Hold a tape or a level line down from the ridge and read the height straight down to the top of the wall plate. A measurement taken along the slope is the rafter length, and entering it as the rise will overstate the pitch.
A phone level is enough for the angle. Lay it on the underside of a rafter or on a straight edge along the roof and read the angle from the horizontal, then put that number in the angle box. Do the same on two or three rafters, not one — old roofs sag, and a single rafter can be a degree or two off.
The rafter length here is the theoretical line. It runs from the ridge to the wall plate and stops there. Stock for a real cut needs the overhang added — measured along the slope, not in plan — and the birdsmouth notch taken out of the depth rather than the length.
Steepness is a safety line, not just a style choice. US construction safety rules define a steep roof as one steeper than 4 in 12 — about 18.4°, the 4:12 row of the table above — and require fall protection for employees working on a steep roof with unprotected edges 6 ft or more above a lower level. See the 29 CFR 1926.500 definitions and the fall-protection duty in 29 CFR 1926.501. No calculator can tell you whether a roof is safe to walk; that depends on the covering, the weather and your own equipment.
Two worked examples
A garden office roof measured in feet
A lean-to over a run of 12 ft climbs 5 ft from the wall plate to the high edge. Enter 5 ft as the rise and 12 ft as the run.
That is a 5:12 roof, 41.67%, and a rafter of 13 ft before the overhang. Two small things are worth noticing: the rafter box answers in whichever unit it is set to, so left in metres it shows 3.9624; and typing the 12 ft run as 144 in changes nothing at all, because each box converts on its own.
Use it for: ordering 13 ft stock plus the overhang, and telling the supplier the roof is 5:12 before choosing a covering.
A pitch taken from a drawing
A drawing gives a 5 m run and a 35° pitch, with no rise marked. Enter those two and the form works back:
The pitch reads 70.0208% and 8.40249:12, so it is a little under 8.5:12. If you need to talk about it to a roofer who works in ratios, say 8.4:12; the drawing itself is still right at 35°.
Use it for: checking the ridge height against the section drawing, ordering rafters, or handing the pitch on to someone who quotes in ratios.
Limits and safety notes
- •Geometry only. This page solves the rise, run and rafter triangle. It makes no allowance for overhangs, ridge board or wall plate thickness, birdsmouth notches, rafter depth and span limits, or the spacing between rafters.
- •One roof shape. The relationships assume a simple right-angled triangle — a gable, a lean-to or a shed roof measured on one side. Hip, valley, gambrel and curved roofs have more geometry than these six boxes describe; the rafter length calculator also counts the trusses along the eave and prices them if you are planning the whole frame.
- •No minimum or maximum pitch. What a roof may actually be built at depends on the covering, its fixings, the underlay, snow and wind exposure, and local building regulations. Every covering's manufacturer publishes its own minimum slope and its own fixing schedule; this page does not replace either.
- •The 30 m warning is a sanity check. A rafter longer than thirty metres is almost always a unit menu on the wrong scale rather than a real roof. The warning keeps the number on screen so you can see what went wrong; it is not a structural limit.
- •Not a structural or code review. Rafter sizing, fixing, fire performance and fall protection are decisions for a qualified carpenter, roofer or engineer working to your local code. The results here are for planning and checking, not for signing off a roof.
Frequently asked questions
Why do the rise and the run stay empty when I enter a rafter length and a pitch?
The two legs are filled from a rise-and-run pair, or from a slope plus one of those two legs. A rafter length with a pitch gives you the other two slope forms immediately, but the legs need one more number to be placed — type the rise or the run if you have it, and the remaining box follows.
In practice the run is usually the easier one to measure: it is the horizontal distance from the wall to the ridge, one side only.
Why does the form refuse a pitch of exactly 90 degrees?
Ninety degrees is a vertical face, not a roof: the rafter would stand on end and the run would be zero, so the triangle collapses. The angle box stops just below a right angle, and the percentage and rise per 12 grow without limit as you approach it — a 60° roof is already 173%, or about 20.8:12.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Bolt Circle Calculator
Lay out a circular bolt pattern: turn the hole count, radius, first-hole angle and centre offset into an x and y coordinate for every hole.
Bowl Segment Calculator
Turn a segmented bowl's segment count, outer radius, wall thickness and allowances into cut-ready segment lengths, blank thickness and cutting angle.
Material Removal Rate Calculator
Work out how much material a machining pass removes per minute for turning, milling, grooving, drilling or grinding. Enter the cut geometry and the cutting speed, read the removal rate in ten flow units, or leave one box empty to solve back for it.
Beam Deflection Calculator
Find how far a simply supported or cantilever beam bends under a point load, a uniform load, a linearly varying load, a triangular load or an end moment. Enter the span, the load and the flexural rigidity, or the modulus of elasticity and area moment of inertia separately, and read the maximum deflection and where it occurs.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.