Free Roof Pitch Calculator for Rise, Run, and Rafters

This roof pitch calculator is for the two measurements you can take on a roof, a rafter, or a drawing: the vertical rise and the horizontal run. From that right triangle it reports the familiar U.S. pitch (rise per 12 inches of run), the angle in degrees, the slope as a percent, and the length of the sloped side. You can work in inches or centimeters; if you switch units, the values already in the boxes are converted so the triangle you measured stays the same size. The arithmetic runs in your browser and is not sent to a server.

Measurement units

Pitch 6/12 X-in-12 convention
Angle 26.565° Pitch angle
Slope 50% Rise ÷ run × 100
Rafter length 13.416 in Hypotenuse of the triangle

Rise, run, and rafter triangle

Roof pitch triangle A right triangle with the run along the base, the rise as the vertical side, and the rafter as the hypotenuse.

Pitch, angle, slope, and rafter length

Both inputs have to use the same unit. The four results below are ordinary right-triangle identities. You can repeat any of them with a pocket calculator or on paper.

Pitch (X-in-12)

pitch = (rise / run) × 12

Angle in degrees

angle = arctan(rise / run)

Slope percent

slope % = (rise / run) × 100

Rafter length

rafter = √(rise² + run²)

What a 6-in-12 pitch is naming

In U.S. residential work, pitch is almost always written as a pair, such as 6/12 or 6-in-12. The first number is how many inches the roof rises; the second is a fixed 12-inch run, which matches one foot of horizontal travel and the body of a framing square. A 6/12 roof therefore climbs 6 inches for every 12 inches it travels horizontally. The same ratio can describe a short porch roof or a long main slope — pitch is not a length, it is a steepness.

That is why both sides of the triangle have to be entered. A rise by itself does not tell you the pitch until you know the run it was measured over. Once rise and run use the same unit, the ratio is what matters. Fifteen centimeters of rise over thirty centimeters of run is still a 6/12 pitch, because 15 ÷ 30 is the same as 6 ÷ 12.

A geometric pitch is not a permit, a span table, or a shingle approval. Local building rules, climate loads, and manufacturer limits vary. This page will not decide whether a given pitch is allowed on a particular building.

How to measure rise and run

Run is a level distance, not the distance your tape follows up the shingles. If you measure along the roof surface you are reading the hypotenuse, which this page later reports as a simple rafter length — that figure is an output, not an input.

A practical field method is to hold a level for 12 inches, or any convenient horizontal span, then measure plumb from the far end of that level up to the underside of the rafter or the roof deck. The plumb reading is the rise; the level length is the run. In an attic you can also take a larger sample: the height from the top of the wall plate to the ridge, and the horizontal distance from the outside of the plate to the point under the ridge. Use the same unit on both sides. If a plan shows a rise in inches and a span in feet, convert one of them before you type the numbers. This form will not invent a missing unit conversion.

What the four results represent

The page applies four standard identities from the same right triangle.

Pitch, in the 12-inch convention, is (rise ÷ run) × 12, then written over 12. For a 6-inch rise and a 12-inch run, (6 ÷ 12) × 12 = 6, shown as 6/12.

The pitch angle is arctan(rise ÷ run), converted from radians to degrees. For 6 and 12 that angle is about 26.565°. Doubling the pitch does not double the angle: 12/12 is exactly 45°, not twice 26.565°.

Percent slope is (rise ÷ run) × 100. The 6/12 example is a 50% slope; 3/12 is 25%; 12/12 is 100%. A 100% slope is a 45-degree roof, not a vertical wall. Do not drop a percent figure into a note that expects an X-in-12 pitch, or the other way around.

Rafter length, as shown here, is the hypotenuse: √(rise² + run²). For 6 and 12 that is √180, about 13.416 in the same unit. If the run is zero, or if a value is negative, the form stops with an on-page error instead of printing an invalid result. A rise of zero with a positive run is treated as a flat line: 0/12, 0°, 0% slope, and a “rafter” equal to the run.

Two calculations you can repeat without the form

First, a 5-in-12 sample. Rise = 5, run = 12. Pitch = 5/12. Angle = arctan(5/12) ≈ 22.620°. Slope = 41.667%. Hypotenuse = √(25 + 144) = √169 = 13 exactly, in whatever unit you used. Type 5 and 12 in the boxes above and the four results should match.

Second, a 9-in-12 sample. Rise = 9, run = 12. Pitch = 9/12. Angle = arctan(9/12) ≈ 36.870°. Slope = 75%. Hypotenuse = √(81 + 144) = √225 = 15 exactly. That pair is a useful check because the rafter length comes out to a whole number.

If you start with the default 6-inch rise and 12-inch run and switch the units to centimeters, the inputs become 15.24 cm and 30.48 cm. Pitch, angle, and slope stay 6/12, 26.565°, and 50%, because the physical triangle did not change. Only the rafter length’s unit label changes (about 34.078 cm, which is the unrounded inch hypotenuse times 2.54).

A chart of standard pitches from 2/12 to 12/12

Most houses in North America are framed somewhere between 4/12 and 9/12, with 4/12, 6/12, and 8/12 especially common. Lower pitches drain more slowly and often need a covering rated for that slope. Steeper roofs, including 10/12 and a 12/12 (45°) roof, change walking safety and flashing details. The rows in the table are geometry only. They are not a list of pitches a code official or a shingle manufacturer will accept. Choosing a row loads that ratio into the form above, using a rise of N and a run of 12 in the unit currently selected.

Standard roof pitch chart, 2/12 through 12/12
Pitch Angle Slope Rafter on a 12-unit run

Select a row to fill the calculator. The last column is the hypotenuse for a 12-unit run in the current unit.

The table is a convenience for standard ratios, not a code reference. Whether a pitch is allowed on a given building still depends on the covering, the climate, the structure, and the local official.

Why pitch, degrees, and percent are easy to mix up

All four outputs move together because they come from one triangle, but they are labeled for different habits. Carpenters usually say “six-twelve.” Drainage and some civil drawings prefer a percent slope. Angle is the number a protractor or a digital level would show. Because the relationship is a tangent, not a straight line, you cannot scale degrees the way you scale pitch: going from 6/12 to 8/12 adds two inches of rise per foot of run, but the angle only moves from about 26.565° to about 33.690°.

What this rafter length is not

The hypotenuse is the straight-line distance between the two points you measured. A board you would actually cut usually needs more information: the overhang past the wall, the thickness of a ridge board, and the seat or birdsmouth cut at the plate. None of those are included here.

If you scale a 6-inch-by-12-inch sample up to a 6-foot rise over a 12-foot run, the pitch stays 6/12 and the hypotenuse scales to about 13.416 feet. That scaling only holds when both inputs stay in the same unit and you are still talking about the bare triangle, not a finished rafter ticket.

What this page will not decide

The calculator is geometry. It does not check structure, snow or wind load, ventilation, span tables, or whether a roof covering is approved for a given pitch in your area. Building rules and product limits differ by place and by manufacturer. Use the numbers to understand a drawing or a measurement you already took, and have a licensed contractor, architect, or engineer review any work that has to meet a code or carry a load.

Frequently asked questions

Why is pitch written with 12 in the denominator?

The 12-inch run matches one foot of horizontal travel and the body of a common framing square. A 6/12 pitch means six inches of rise for every 12 inches of run. If you measured a different run, the calculator still reduces the ratio to that X-in-12 form.

Can I measure along the slope instead of a level run?

Not if you want pitch or angle from this form. Run has to be a level, horizontal distance. A measurement along the shingles or the top of the rafter is the hypotenuse, which this page reports as a simple rafter length — that figure is an output, not an input.

What if my run is not 12 inches?

Enter the rise and run you actually measured, in the same unit. Pitch is (rise / run) × 12, so a 10-inch rise over a 20-inch run is still 6/12. The default boxes use 6 and 12 only as a familiar starting example.

Does the rafter length include overhang or a birdsmouth?

No. The length is the straight-line hypotenuse of the rise-and-run triangle you typed. Overhang past the wall, ridge-board thickness, and a seat or birdsmouth cut are not included and have to be added separately if you are cutting a board.

Can these numbers replace a code check or a contractor?

No. The page is geometry only. It does not inspect structure, snow or wind load, ventilation, span tables, or whether a covering is approved for a pitch in your area. Have a licensed professional review work that must meet a code or carry a load.