Roof Pitch Calculator

Enter your roof rise and run to get the pitch as an X/12 ratio, the angle in degrees, the slope percent, and the rafter length multiplier. Add your building span, ridge length and overhang to also get the actual rafter length, the roof covering area, and how many rafters to buy. The formula is shown so you can check the math.

Inputs

Enter your measurements

in
Vertical rise for every "Run" of horizontal distance. This is the 6 in a 6/12 pitch.
in
12 in is the U.S. standard reference, the "12" in X/12. Change it only if you measured the rise over a different horizontal distance.
ft
in
The full horizontal width of the roof footprint, outside wall to outside wall.
ft
in
The other building dimension, running parallel to the ridge.
in
Horizontal projection of the rafter tail past the wall. 12 to 24 in is typical.
in O.C.
On-center spacing of the rafters. 16 and 24 in are the two common residential spacings.

This is an estimate, not professional advice. Check your inputs and verify the result against your plans and local building code before you build or order. See terms and disclaimer.

How this calculator works

Slope = Rise ÷ RunAngle (°) = arctan(Rise ÷ Run) × 180 ÷ πRafter length multiplier = √(Slope² + 1)Rafter length (ft) = (Half-span + Overhang) × Multiplier (shed: full span, not half-span)Roof area (ft²) = Rafter length × Roof length × (2 for gable, 1 for shed)

Enter your dimensions and the result updates instantly. A waste allowance is included so you order slightly over rather than running short mid-pour, and ready-mix is rounded up to the nearest quarter yard, which is how it is sold.

Worked example

A 6/12 gable roof over a 24 ft × 30 ft building with a 12 in overhang and rafters at 16 in on center. Inputs: Rise 6 in, Run 12 in, Building span (eave to eave) 24 ft, Roof length (along the ridge) 30 ft, Eave overhang 12 in, Roof style gable, Rafter spacing 16 in O.C.. Result: 6 /12.

Common roof pitches: angle, slope and rafter multiplier

Calculated for a 24 × 30 ft gable roof with a 12 in overhang and rafters at 16 in on center. Tap a pitch to load it in the calculator above.

Slab sizeRoof angle (°)Slope (grade) (%)Rafter length multiplier (×)
2/129.4616.71.0138Use →
3/1214.04251.0308Use →
4/1218.4333.31.0541Use →
5/1222.6241.71.0833Use →
6/1226.57501.118Use →
7/1230.2658.31.1577Use →
8/1233.6966.71.2019Use →
9/1236.87751.25Use →
10/1239.8183.31.3017Use →
12/12451001.4142Use →

Method & assumptions

Roof pitch is the ratio of the vertical rise to the horizontal run it is measured over, most often expressed in the U.S. as X/12, meaning the roof rises X inches for every 12 inches of horizontal run. Technically, framing carpenters call this ratio the "slope"; the term "pitch" strictly refers to the total rise divided by the full building span. In practice the two are used interchangeably on the job site, and this calculator follows that everyday convention: enter any rise and run and it returns the equivalent X/12 figure, the angle in degrees (the arctangent of the slope), and the slope expressed as a percent grade.

The rafter length multiplier, the square root of the slope squared plus one, comes straight from the Pythagorean theorem: it is the sloped distance covered for every one unit of level horizontal run. Multiply it by the horizontal run, which is half the building span for a gable roof (each side carries half the load to the ridge) or the full span for a single-slope shed roof, plus your eave overhang, and you get the actual line length of a common rafter from the ridge to the tip of the overhang. That figure, multiplied by the roof length and by two for a gable's pair of slopes, gives the covering area you need to buy shingles, underlayment or metal panels for, before adding your own waste allowance.

The rafter count comes from spacing common rafters on-center along the ridge length, the same grid logic used for framing joists or studs: divide the ridge length by the spacing and add one for the rafter at the start. Sixteen and 24 inches on-center are the two spacings used on almost every residential roof. Always confirm rafter size and span against your local building code or an engineer for anything beyond a simple gable or shed.

Pro tips and common mistakes

  • Measure rise and run on the level. Hold a torpedo level truly horizontal along the run and measure straight down to the roof surface for the rise, or use a speed square against a rafter. A tilted reference throws off every downstream number.
  • Respect the minimum slope for your roofing. Asphalt shingle manufacturers require at least a 2/12 slope, with special low-slope underlayment between 2/12 and 4/12; NRCA recommends 4/12 or steeper as best practice. Below 2/12 you need a low-slope membrane system, not shingles.
  • Steeper roofs need more material, not just more slope. The rafter length multiplier shows why: a 9/12 roof needs 25% more rafter and covering material than the flat footprint alone, a 12/12 roof needs over 41% more. Budget material and cost accordingly as pitch increases.
  • Add stock beyond the calculated rafter length. Buy rafter lumber a foot or two longer than the calculated length to allow for the plumb cut at the ridge and the birdsmouth notch at the wall plate, the same way stringers are oversized on a staircase.
  • Know the walkability threshold. Roofs steeper than about 6/12 to 7/12 (roughly 30 to 33°) generally require fall protection and are considered unsafe to walk without it. Factor that into labor cost and safety planning before you commit to a steep design.

Frequently asked questions

What does a 6/12 roof pitch mean?
A 6/12 roof pitch means the roof rises 6 inches for every 12 inches of horizontal run. That works out to a 26.57° angle and a 50% slope, the most common pitch on U.S. residential roofs.
How do I calculate roof pitch from rise and run?
Divide the rise by the run to get the slope, then multiply by 12 to express it as X/12. For the angle, take the arctangent of rise ÷ run and convert to degrees. A 4 in rise over a 12 in run, for example, is arctan(4/12) = 18.43°.
What is the minimum roof pitch for shingles?
Asphalt shingle manufacturers set 2/12 as the code minimum, and only with special low-slope underlayment between 2/12 and 4/12. The National Roofing Contractors Association recommends 4/12 or steeper as best practice; below 2/12 you need a low-slope membrane roof instead of shingles.
How much longer is a rafter than the roof’s horizontal run?
Multiply the horizontal run by the rafter length multiplier, the square root of the slope squared plus one. A 6/12 roof has a multiplier of about 1.118, so the rafter is roughly 11.8% longer than the flat horizontal distance it covers; a 12/12 roof is about 41.4% longer.
How much roofing material do I need for a pitched roof?
Multiply the flat footprint area by the same rafter length multiplier to get the actual sloped covering area, then add your own waste allowance for cuts and hips. A 6/12 roof needs about 11.8% more shingles or metal panels than the building’s footprint alone.

References

Related calculators

Cite or embed this calculator

Using this in an article or on your own site? Copy a citation, or embed the live calculator for free.

CiteRoof Pitch Calculator. Calcnaut. https://calcnaut.com/roof-pitch-calculator/
Embed<iframe src="https://calcnaut.com/roof-pitch-calculator/embed/" width="100%" height="640" loading="lazy" style="border:1px solid #e5e7eb;border-radius:14px" title="Roof Pitch Calculator"></iframe> <p style="font:13px/1.5 sans-serif;text-align:center;color:#555">Powered by <a href="https://calcnaut.com/roof-pitch-calculator/" rel="nofollow">Calcnaut</a></p>