Audited 27 Jul 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Roof Pitch Calculator

Convert a roof's rise and run into its x-in-12 pitch, angle in degrees, rise-over-run ratio and the slope multiplier used for rafter lengths and roof area.

Roof Pitch Calculator

Vertical rise measured over the run below, in inches.
Horizontal run, in inches. Roofing trade convention measures rise per 12 inches of run.
Pitch (slope) multiplier
1.118
Sloping length per unit of horizontal run, √(rise² + run²) ÷ run; multiply a run by it for rafter length or a plan area for roof surface.
Rise-over-run ratio
0.5
Pitch angle (degrees)
26.5651
Equivalent slope (rise per 12 in run)
6

Background.

Ask a roofer how steep a roof is and the answer will be something like "six in twelve": the roof climbs 6 inches for every 12 inches it travels horizontally. Ask a solar installer or an engineer and you may hear 26.6 degrees. Both describe the same roof. Measure a rise over any horizontal run you like, in inches, and the pitch comes back in every form people use: the plain ratio of rise to run, the angle above horizontal, the rise per 12 inches of run, and the slope multiplier.

The x-in-12 form is the working language of the trade because it is what a carpenter's framing square reads directly, and because code and manufacturer rules are written in it. The 2021 International Residential Code, for example, allows asphalt shingles only on roofs of 2-in-12 or steeper and requires a double layer of underlayment between 2-in-12 and 4-in-12. Degrees are easier to picture, and they are what an angle-finder app or a solar mounting bracket gives you.

The multiplier is the least familiar of the four results and the one that goes furthest. It is the length of the sloping rafter line for each unit of horizontal run, 1.118 on a 6-in-12 roof, so it turns a run measured on a plan into a rafter length and a plan area into roof surface. Nothing in the geometry assumes a particular roof size, which is why one measurement, taken anywhere along a straight rafter, describes the whole plane.

What is roof pitch calculator?

Roof pitch is the steepness of a roof plane, set by a right triangle whose legs are the vertical rise and the horizontal run and whose long side follows the roof surface. The ratio rise ÷ run is the slope; multiplied by 100 it becomes a percentage, so a 6-in-12 roof has a 50% slope. The pitch angle is the angle between the roof and the horizontal. The x-in-12 figure restates the same slope as the rise over a 12-inch run. Older carpentry books use pitch differently, as rise divided by the whole span of the building, which is why a 6-in-12 roof is sometimes called a quarter pitch.

How to use this calculator.

  1. Measure a rise and the run it occurs over. The simplest way is a level held horizontally against the roof or the underside of a rafter, marked at 12 inches, with the vertical distance measured from that mark to the roof line.
  2. Enter both in inches, up to 240 each. Any run works: 9 inches of rise over a 24-inch run is converted to its 12-inch equivalent for you.
  3. If you are working from a plan, use the horizontal distance from the outside wall to the ridge as the run; on a symmetrical gable that is half the building's width.
  4. Read the x-in-12 pitch to compare with code or shingle-wrapper minimums, the angle for solar or angle-finder work, and the multiplier for rafter lengths or roof area.

The formula.

M = √(rise²+run²) ⁄ run

Four results come from the same two measurements. The ratio is rise ÷ run. The angle is θ = arctan(rise ÷ run), converted from radians to degrees by multiplying by 180/π. The slope multiplier is √(rise² + run²) ÷ run, which is Pythagoras: the square root gives the length of the sloping side, and dividing by the run expresses it per unit of horizontal distance; it can also be written √(1 + ratio²) or 1 ÷ cos θ. The x-in-12 pitch is rise × 12 ÷ run. Because every result depends only on the proportion between rise and run, the unit cancels: feet over feet give the same angle and multiplier as inches over inches. A rise of 0 is a level surface, with a ratio and angle of 0 and a multiplier of 1; a run of 0 would be a vertical wall, so the run must be positive. Steepness and angle are not proportional. Each extra inch of rise adds fewer degrees as the roof steepens: 3-in-12 is 14.04°, 6-in-12 is 26.57°, 8-in-12 is 33.69° and 12-in-12 is exactly 45°.

A worked example.

Example

A roof is described as 6-in-12, so the rise is 6 inches and the run 12. The ratio is 6 ÷ 12 = 0.5, a 50% slope. The angle is arctan(0.5) = 26.5651°. The multiplier is √(6² + 12²) ÷ 12 = √180 ÷ 12 = 13.4164 ÷ 12 = 1.118, and because the run is already 12 the x-in-12 figure simply repeats the rise: 6. The multiplier is what a framer uses next. On a gable 28 ft wide the run from wall to ridge is 14 ft, so each common rafter measures about 14 × 1.118 = 15.65 ft along its slope before the overhang is added and the ridge board allowed for. A measurement taken in the attic rarely lands on exactly 12 inches. A rise of 9 inches over a 24-inch run gives a ratio of 0.375, an angle of 20.556° and a multiplier of 1.068; scaled to a 12-inch run it is 9 × 12 ÷ 24 = 4.5, a 4.5-in-12 roof.

rise In6
run In12

Frequently asked questions.

How can I measure the pitch without going up on the roof?
From the attic, hold a level horizontally against the underside of a rafter, mark the level 12 inches from where it touches, and measure straight up from that mark to the rafter. That vertical distance is the rise per 12. From outside, the same level-and-tape method works on the gable trim or a straight section of fascia at the rake.
My angle-finder app gives degrees. How do I turn that into x-in-12?
Multiply the tangent of the angle by 12. A reading of 20° is about 4.37 in 12, 30° about 6.93, 35° about 8.40, 40° about 10.07 and 45° exactly 12. Enter that figure as the rise with a run of 12 to get the multiplier and the other results.
Is my roof steep enough for asphalt shingles?
Under the 2021 International Residential Code asphalt shingles need a slope of at least 2-in-12, a 17% slope, and roofs from 2-in-12 up to 4-in-12 need a double layer of underlayment. Shallower roofs call for a low-slope system such as a membrane. Shingle manufacturers' instructions and the locally adopted code can be stricter, so check both.
What do quarter pitch, third pitch and half pitch mean?
They come from an older convention that divides the rise by the full span of the building rather than by the run. Because the run is half the span on a symmetrical gable, a quarter pitch is 6-in-12, a third pitch is 8-in-12 and a half pitch is 12-in-12, a 45° roof. Mixing the two conventions doubles or halves the slope, so confirm which one a drawing uses.
Can a flat roof be entered with zero rise?
Yes. A rise of 0 gives a ratio of 0, an angle of 0° and a multiplier of exactly 1. Real flat roofs are built with a slight fall so water drains; for most membrane roofs the residential code's minimum is a quarter inch per foot, which you can enter as 0.25 over 12 to see that it works out to about 1.19°.
Do rise and run have to be in inches?
No, only the same unit. The ratio, angle and multiplier are pure proportions, so a rise of 7 ft over a run of 14 ft gives exactly the results of 6 inches over 12. The x-in-12 figure then reads as units of rise per 12 units of run, which is the same number whichever unit you used.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
M = √(rise²+run²) ⁄ run
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon