Roof Pitch Calculator · https://calcnaut.com/roof-pitch-calculator/
Roof Pitch Calculator
Enter your roof rise and run to get the pitch, angle, slope percent and rafter length multiplier. Add the span, ridge length, overhang and maximum on-center spacing to estimate a simple gable or shed layout. The count does not select the structural rafter size or spacing.
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
Roof pitch = Rise ÷ Run × 12 (the x-in-12 figure)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 the rise and run and the result updates instantly. There is no waste allowance in these figures: this is roof geometry, not a materials count. Add your own margin when you order shingles, and remember that rafters need extra length for the birdsmouth and ridge cuts.
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, 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.
| Pitch | Roof angle (°) | Slope (grade) (%) | Rafter length multiplier (×) | |
|---|---|---|---|---|
| 2/12 | 9.46 | 16.7 | 1.01 | Use → |
| 3/12 | 14.04 | 25 | 1.03 | Use → |
| 4/12 | 18.43 | 33.3 | 1.05 | Use → |
| 5/12 | 22.62 | 41.7 | 1.08 | Use → |
| 6/12 | 26.57 | 50 | 1.12 | Use → |
| 7/12 | 30.26 | 58.3 | 1.16 | Use → |
| 8/12 | 33.69 | 66.7 | 1.2 | Use → |
| 9/12 | 36.87 | 75 | 1.25 | Use → |
| 10/12 | 39.81 | 83.3 | 1.3 | Use → |
| 12/12 | 45 | 100 | 1.41 | Use → |
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. To turn that area straight into squares, shingle bundles, underlayment rolls and a material cost, run the numbers through our roofing calculator.
The entered spacing is treated as a maximum. We divide the ridge length by it, round the number of intervals up, and add one end position. The displayed actual spacing is therefore equal to or less than the requested maximum. This is a quantity layout for a simple gable or shed, not structural design: rafter size and permitted spacing depend on species, grade, loads, span, connections and the adopted code.
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?
How do I calculate roof pitch from rise and run?
What is the minimum roof pitch for shingles?
How much longer is a rafter than the roof’s horizontal run?
How much roofing material do I need for a pitched roof?
Sources and references
These references and structured source records support the method and material data used on this page.
- Roof pitch (Wikipedia)
- 2024 IRC Chapter 8: Roof-ceiling construction
- ARMA: Installation of Asphalt Shingles on Lower Sloped Roofs
- Rafter (Wikipedia)
- NIST/ALSC Voluntary Product Standard PS 20, American Softwood Lumber Standard, 5.3.1 (standard lengths in 1 ft or 2 ft multiples)
- AWC Span Tables for Joists and Rafters: tabulated on-center spacings are design limits
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.
Roof Pitch Calculator. Calcnaut. https://calcnaut.com/roof-pitch-calculator/<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/?utm_source=embed&utm_medium=referral&utm_campaign=calculator-embed" rel="nofollow">Calcnaut</a></p>