Roof Pitch Calculator Explained: Rise, Run, Angle and Rafter Length
Roof pitch is the ratio of rise to run, expressed as X-in-12, as an angle in degrees, or as a percent grade. This guide walks through the formula, a worked example, the common residential pitches, how to measure rise and run safely, and the mistakes that turn into wasted timber.
What roof pitch actually means
Roof pitch is the steepness of a roof, expressed as the ratio of how far it rises vertically for a fixed amount of horizontal travel. In US framing the fixed horizontal reference is 12, so a roof that climbs 6 inches over every 12 inches of horizontal run is a "6 in 12" pitch. The roof pitch calculator takes the rise and run you measured and converts that single ratio into the four numbers everyone on a job site actually needs: pitch in X-in-12 form, slope angle in degrees, slope as a percent grade, and rafter length as the diagonal between wall plate and ridge.
Carpenters, roofers, structural engineers and code officials all describe the same slope in different ways. A framer speaks X-in-12; a surveyor speaks percent grade; an architect on a drawing usually writes degrees. They are equivalent and interchangeable. The reason to keep all three in mind is that shingle manufacturers spec their products in X-in-12, road and ramp codes spec slopes in percent, and CAD tools default to degrees. Get the conversion wrong and you can order the wrong underlayment, miscount the bundles, or cut a rafter two inches short.
How roof pitch is calculated
A pitched roof, viewed end-on, is a right triangle. Rise is the vertical leg from the top of the wall plate up to the underside of the ridge board. Run is the horizontal leg from the same wall plate inwards to the point directly under the ridge — half the span for a symmetric gable roof. The rafter is the hypotenuse, and once rise and run are fixed every other number follows from basic trigonometry.
ratio = rise / run pitch (X-in-12) = 12 × ratio slope angle = atan(ratio) expressed in degrees slope percent = 100 × ratio rafter length = √(rise² + run²) Pythagorean theorem
Two things in this formula trip people up. First, the X-in-12 notation is not a measurement, it is a scaling: it always anchors run at 12 and asks how high the roof climbs over those 12 units. So a 6-in-12 roof and a 60-in-120 roof are identical pitches. Second, the units of rise and run must match, but they do not have to be the units anyone else works in. Feet, inches, centimetres and millimetres all work as long as both sides use the same one. The roof pitch calculator is deliberately unit-agnostic for this reason; the rafter length it returns is in whatever unit you fed in.
Rafter length from the formula is the structural span only — the diagonal from wall plate to ridge. Real timber needs extra at both ends for the birdsmouth notch that sits on the wall plate, the overhang past the eave, and the plumb cut against the ridge. More on that below.
Worked example: from rise and run to a full pitch spec
Take a residential gable roof with a 6 foot rise from wall plate to ridge and a 12 foot run (so the building is 24 feet wide at the eaves). Every number on the calculator output falls out of one ratio.
inputs rise = 6 ft run = 12 ft ratio 6 / 12 = 0.5 pitch (X-in-12) 12 × 0.5 = 6 → "6 in 12" slope angle atan(0.5) = 26.565° slope percent 100 × 0.5 = 50% rafter length √(6² + 12²) = √180 ≈ 13.416 ft
A 6-in-12 roof is the most common residential pitch in North America. The 26.57° angle is shallow enough that asphalt shingles install with a single layer of underlayment, steep enough for snow and rain to shed cleanly, and walkable without scaffolding for most healthy adults. The 13.42 foot rafter is the structural diagonal — add 18 to 24 inches for overhang and birdsmouth before ordering timber.
Push the same building to an 8-in-12 pitch instead. Run is still 12 feet, but rise climbs to 8 feet. Ratio = 0.6667, angle = 33.69°, percent grade = 66.67%, rafter length = √208 ≈ 14.42 ft. One extra foot of ceiling height at the ridge bought you a foot of extra rafter and roughly 7 degrees of steepness, which is enough to shift the building from "easy walkable" to "rope-and-harness territory" for most roofers. The roof pitch calculator makes the trade-off explicit, which is the point of running the numbers before committing to a design.
Factors that affect pitch choice and rafter length
Climate and snow load
Steeper roofs shed snow and rain faster. In high-snowfall regions building codes push minimum pitches up so that snow slides off before live load exceeds the rafter design. Mountain and northern designs commonly run 10-in-12 to 12-in-12 for this reason. Hot, dry climates have no such constraint and often use 3-in-12 to 5-in-12 to keep walls shaded and material costs down. The pitch you settle on before checking the local code can be undone by the snow load table.
Roofing material limits
Every roofing material has a minimum pitch below which the manufacturer will not warranty it. Asphalt shingles need at least 2-in-12 with double underlayment, ideally 4-in-12 or steeper for normal installation. Standing-seam metal can run as low as 1/2-in-12 with sealed seams. Clay and concrete tiles want 4-in-12 minimum, often 5-in-12. Slate is happiest above 6-in-12. Going below the manufacturer floor voids the warranty and usually fails on the first driven-rain event.
Span and structural sizing
For a given run, a steeper pitch produces a longer rafter and a higher ridge. Both affect the size of timber you need. Rafter span tables in the International Residential Code (IRC) tabulate maximum allowable spans for each lumber size, species, grade, snow load and pitch — a 2x8 SPF rafter at 4-in-12 spans further than the same rafter at 8-in-12 because the steeper one carries more snow load at a worse bending angle. Always check the relevant span table once the calculator hands you a rafter length.
Aesthetics and historical context
Pitch is one of the strongest signals of architectural style. Cape Cod and Colonial houses run 9-in-12 to 12-in-12. Ranch and mid-century modern run 3-in-12 to 5-in-12. Victorian and Gothic Revival climb to 18-in-12 and beyond. A renovation that gets the pitch wrong reads as wrong immediately even when every other detail is correct. If you are matching an existing structure, measure the existing roof and aim for the same X-in-12 ratio, then let the roof pitch calculator derive the rafter length for the new bay.
Common pitches and what they are used for
A handful of pitches do the bulk of residential and light commercial work. Knowing them by sight saves time when scoping a job.
- 2-in-12 to 3-in-12 (9.5° to 14.0°) — low-slope roofs, typically with membrane systems (TPO, EPDM, modified bitumen) rather than shingles. Common on additions, garages and modernist designs. Below 2-in-12 most building codes classify the roof as flat and require a fully waterproof membrane.
- 4-in-12 to 6-in-12 (18.4° to 26.6°) — the everyday North American residential range. Easy to walk, shingle-friendly, low material waste. The default for new tract housing.
- 8-in-12 to 10-in-12 (33.7° to 39.8°) — steeper traditional and craftsman-style roofs. Not safely walkable without harness or roof jacks. Sheds snow well and gives more attic head height for finished rooms above.
- 12-in-12 (45°) — Cape Cod and Saltbox archetype. Equal rise and run, exactly 45 degrees, 100% grade. Maximum head room in the attic. Roof jacks and scaffolding mandatory.
- Above 12-in-12 (over 45°) — Victorian, Gothic Revival, French Second Empire, church and steeple construction. Treated as a vertical surface for installation purposes; weather load is wind rather than gravity.
How to measure rise and run accurately
For a quick reading without climbing, work from inside the attic. Hold a 12-inch level horizontally against the underside of a rafter, set the bubble, and measure straight down from the far end of the level to the rafter surface. That distance is the rise per 12 inches of run, so the pitch reads directly off the tape: 6 inches down = 6 in 12, 8 inches down = 8 in 12. The roof pitch calculator will then convert that to angle and rafter length.
For the actual rafter length on an existing or proposed building, measure two things on a horizontal site: the ridge height above the wall plate (rise), and the horizontal distance from wall plate to the point directly below the ridge (run). On a symmetric gable, run is half the full span at the eaves. Drop both numbers into the calculator and the diagonal pops out. For a hip roof, the common rafters use the same rise and run; the hip rafters themselves run at 45° in plan and need a separate hip-jack calculation that this tool does not cover.
Phone-app inclinometers are useful sanity checks but not trusted measurements. Calibration drifts and a roof that reads 26.4° on the phone could be anywhere from 25° to 28° in reality — enough to change a shingle warranty or order the wrong drip edge. Tape-and-level remains the trade standard for a reason.
Common mistakes
Treating the rafter length as the cut length. The number out of the calculator is the structural diagonal from wall plate to ridge. Real rafters need a birdsmouth notch (1.5 to 2 inches of horizontal seat cut where the rafter lands on the top plate), an overhang past the eave (commonly 12 to 24 inches), and a plumb cut against the ridge board. Add 18 to 24 inches to the calculated length before ordering timber, and cut one rafter as a template before committing to the rest.
Mixing units between rise and run. Putting rise in inches and run in feet quietly multiplies the pitch by twelve. The math gives no error — it returns a 72-in-12 roof and a wildly wrong angle, and the only signal that something is off is whether you noticed the result looks absurd. Both inputs must use the same unit, period.
Confusing pitch with slope or grade. A 6-in-12 pitch is a 50% grade, not a 6% grade. A 12-in-12 pitch is a 100% grade, not a 12% grade. The X-in-12 ratio and the percent grade are related (percent grade = X × 100 ÷ 12) but not interchangeable. Reading "6 in 12" as "6 percent slope" is a classic mistake on plans drawn by non-builders.
Ignoring the manufacturer minimum. The 2-in-12 floor for asphalt shingles is a warranty condition, not a guideline. The same applies to clay tile at 4-in-12 and slate at 6-in-12. Below the manufacturer minimum the material may install fine and fail on the first wind-driven rain event, with no warranty cover when it does.
Assuming the whole roof is one pitch. Many houses combine a main roof and dormers, or a primary roofline with a lower porch roof, each at a different pitch. Measure each plane separately and run the calculator for each. A mistake on a dormer can shorten its rafters by a foot and leave the framers improvising at midday.
When to bring in a structural engineer
The geometry the roof pitch calculator returns is exact arithmetic, but the structural decisions that flow from it are not pure math. Whether a given rafter size can carry the local snow load over the calculated span depends on lumber species and grade, spacing, ceiling joist or collar-tie restraint, and the load path down to the foundations. The IRC span tables cover the common cases; anything irregular — long spans, cathedral ceilings without ceiling joists, mixed materials, complex hip-and-valley layouts — should be sized by a structural engineer rather than by extrapolating from a tape measure and a calculator.
Permits matter too. Most jurisdictions require a permit for any change in roofline or structural framing, and the application typically wants pitch in degrees as well as in X-in-12. Running the numbers up front and writing all three forms onto the drawing avoids a round-trip with the building department after submittal.
Where roof pitch connects to the rest of construction math
Once rise and run are settled, several downstream calculations follow. Roof surface area for material ordering is run length × rafter length × 2 (both slopes of a gable) — the square footage calculator will give you the area of the underlying rectangle, which you then multiply by the pitch factor (rafter ÷ run) to get true sloped area. The area converter handles the m² ↔ ft² conversion if your supplier quotes in metric. For flat or low-slope work involving paving rather than roofing, the asphalt calculator sizes tonnage by area and depth, and the concrete calculator does the same for slabs. Stair pitch is a closely related problem with its own constraints — the stair calculator handles riser, tread, and stringer length using the same Pythagorean machinery.
Frequently asked questions
Detailed answers to the most common roof-pitch questions sit alongside the inputs on the roof pitch calculator page. The short version: 6-in-12 is the typical North American residential default; pitch in X-in-12 always anchors run at 12 and varies the first number; degrees, X-in-12 and percent grade describe the same slope in three notations; rafter length out of the calculator is structural diagonal only, so add for birdsmouth and overhang before cutting; and the asphalt-shingle minimum is 2-in-12 with double underlayment.
Frequently asked questions
What does a "6 in 12" roof pitch mean?
It means the roof rises 6 units vertically for every 12 units of horizontal run. The 12 is fixed by US framing convention and the first number tells you how steep the roof is. A 6-in-12 pitch is about 26.57° from horizontal, a 50% grade, and a rafter length of √180 ≈ 13.42 per 12 units of run. It is the most common North American residential pitch — easy to walk, shingle-friendly, and low waste on timber and material.
How do I convert roof pitch to degrees?
Divide the rise by the run, take the arctangent, and convert to degrees. For an X-in-12 pitch the formula is angle = atan(X / 12) × 180 / π. Common values: 4-in-12 = 18.43°, 6-in-12 = 26.57°, 8-in-12 = 33.69°, 9-in-12 = 36.87°, 10-in-12 = 39.81°, 12-in-12 = 45°. The roof pitch calculator does the conversion automatically once you enter rise and run.
What is the difference between pitch, slope and grade?
They describe the same steepness in different notation. Pitch in carpentry is the X-in-12 ratio. Slope in mathematics is rise divided by run, often expressed as percent grade for roads and ramps. Angle in degrees is the trigonometric form. All three are equivalent: a 6-in-12 pitch is a 50% slope is a 26.57° angle. The calculator returns all three so you can match whichever notation your plans, supplier, or building code requires.
How do I measure rise and run without climbing on the roof?
From inside the attic, hold a 12-inch level against the underside of a rafter, set the bubble, and measure straight down from the far end of the level to the rafter. That distance is the rise per 12 inches of run, giving the X-in-12 pitch directly. From outside, place a level horizontally on the roof surface and measure down to the surface 12 inches along. For a whole-roof figure, measure ridge height above the wall plate and the horizontal half-span — those are your rise and run.
How much extra timber do I need on top of the calculated rafter length?
The rafter length returned by the calculator is the structural diagonal between wall plate and ridge. Real rafters need a birdsmouth notch where they seat on the wall plate, an overhang past the eave (typically 12 to 24 inches), and a plumb cut at the ridge. Add at least 18 to 24 inches before ordering timber, and cut one rafter as a template before committing to the rest of the stack.
What is the minimum roof pitch for asphalt shingles?
Asphalt shingle manufacturers and most building codes require at least a 2-in-12 pitch (about 9.5°), with double underlayment between 2-in-12 and 4-in-12. Below 2-in-12 the roof is classified as low-slope and needs a membrane system (TPO, EPDM, modified bitumen) rather than shingles, because wind-driven rain can be forced uphill against the laps. There is no structural upper limit for shingles, but above 12-in-12 (45°) walkability becomes a real safety issue.
Why are some roofs much steeper than others?
Climate, material, and style. High-snowfall regions push pitches up to 10-in-12 or 12-in-12 so snow slides off before live load exceeds the rafter design. Tile, slate and metal each have their own minimum pitches that constrain the design from below. Architectural style sets expectations too: ranch houses run 3-in-12 to 5-in-12, Cape Cod and Colonial run 9-in-12 to 12-in-12, Victorian and Gothic Revival climb past 18-in-12. The roof pitch calculator gives you the math; the constraints come from the code book and the design brief.
Informational only. Not personalised financial, legal, or tax advice.