Roof Slope to Angle Calculator: Degrees & Ratio
- Slope Percentage
- %
- Result
- Pitch Ratio
- Result
- Rise (vertical)
- 6 in
- You entered
This calculator converts a roof pitch (slope) expressed as a ratio of rise over run into an angle in degrees, and it also gives you the slope percentage. You enter the rise (vertical increase) and run (horizontal distance), and you get back the roof angle in degrees, the slope percentage, and the pitch ratio. The calculator uses the standard arctangent formula, so you can quickly find the angle for any common roof pitch like 4/12, 6/12, or 9/12.
Formula
The roof angle is the arctangent (inverse tangent) of the rise divided by the run. In mathematical terms:
Angle (degrees) = arctan(rise / run) × (180 / π)
Where:
- Rise = vertical height increase (in inches, feet, or any unit)
- Run = horizontal distance (in the same unit as rise)
- arctan = inverse tangent function (also written as tan⁻¹)
- π ≈ 3.14159
The multiplication by (180/π) converts radians to degrees. If you want the slope percentage, just divide rise by run and multiply by 100.
Worked Example
Using the default values from the calculator: rise = 6 inches, run = 12 inches.
- Divide rise by run: 6 ÷ 12 = 0.5
- Find the arctangent of 0.5: arctan(0.5) ≈ 26.565° (in radians, that’s about 0.46365)
- Convert to degrees: 0.46365 × (180/π) ≈ 26.565°
- Slope percentage: 0.5 × 100 = 50%
- Pitch ratio: 0.5 (or 6:12)
The calculator shows the roof angle as 26.57°, slope percentage as 50.0%, and pitch ratio as 0.50. That matches the manual calculation.
Why Roof Slope Matters
Roof slope—also called pitch—is a fundamental design parameter. It affects how quickly water and snow shed off the roof, what materials you can use, and even the overall look of a building. A steeper roof (higher angle) sheds water faster, but it also increases material costs and wind exposure. A low-slope roof (under 3:12 or about 14°) requires special waterproofing membranes instead of standard shingles.
Building codes in many regions specify minimum slopes for different roofing materials. For example, asphalt shingles typically need a slope of at least 2:12 (about 9.5°) or 4:12 (18.4°) depending on the manufacturer and local code. Metal panels can often go lower, but they still need a minimum pitch to prevent water infiltration at seams.
How the Calculator Works
The calculator uses the tangent function from trigonometry. In a right triangle, the tangent of an angle equals the opposite side divided by the adjacent side. For a roof, the rise is the opposite side, and the run is the adjacent side. So the roof angle is the arctangent of (rise ÷ run).
Most calculators and programming languages have an atan2(y, x) function that handles this directly. Here, we use atan(rise/run) because the rise and run are always positive for a roof slope. The result is in radians, so we multiply by 180/π to get degrees.
If you know the angle in degrees and want to find the pitch, you can use the formula: rise/run = tan(angle). For example, a 30° roof has a pitch of tan(30°) ≈ 0.577, which is roughly a 7:12 pitch.
How to Choose the Right Slope
Choosing a roof slope involves balancing several factors:
- Climate: Snowy regions need steeper slopes (6:12 or more) to prevent snow buildup. Rainy areas can use moderate slopes (4:12 to 6:12).
- Material: Shingles, tiles, metal, and membrane each have minimum and maximum recommended slopes.
- Architecture: Steeper roofs often look more traditional, while low-slope roofs suit modern or commercial designs.
- Cost: Steeper roofs use more material and are harder to walk on, increasing labor costs.
- Attic space: A steeper roof creates more usable attic space, but also more volume to heat or cool.
For a typical residential home in a temperate climate, a 4:12 to 6:12 pitch is common. If you live in a heavy snow area, you might go up to 8:12 or higher. Always check local building codes and manufacturer recommendations before finalizing.
Common Mistakes and Misconceptions
One frequent error is mixing units. The rise and run must be in the same unit for the ratio to be correct. If you measure rise in inches and run in feet, you’ll get a wrong angle. Always convert to the same unit first.
Another mistake is confusing slope percentage with angle. A 100% slope is a 45° angle, not 100°. The slope percentage is rise/run × 100, so a 6:12 pitch is 50%, while the angle is about 26.6°.
Some people also think that a 12:12 pitch is a 90° angle—it’s not. A 12:12 pitch means the rise equals the run, so the angle is 45°. A vertical wall would be infinite slope, not 12:12.
Finally, be careful with rounding. If you round the angle to a whole number, you might lose precision needed for cutting rafters. Keep at least two decimal places for accurate work.
Limitations of the Formula
The arctangent formula assumes a simple right triangle. It works perfectly for a straight roof slope. However, real roofs often have hips, valleys, and multiple pitches. The angle you calculate for a single slope may not apply to the entire roof. For complex roofs, you need to calculate each section separately.
Also, the formula gives the geometric angle, not the actual angle you might measure with a protractor on a curved or warped roof. And it doesn’t account for roof overhangs, thickness of materials, or any structural factors. The calculator is a starting point, not a substitute for professional design.
Frequently Asked Questions
What is a 4/12 roof pitch in degrees?
A 4/12 pitch means 4 inches of rise for every 12 inches of run. Using the formula: arctan(4/12) = arctan(0.3333) ≈ 18.43°. So a 4/12 roof is about 18.4°.
How do I convert roof slope to degrees without a calculator?
You can use a trigonometric table or a scientific calculator. If you have a smartphone, the calculator app in scientific mode has an arctan (tan⁻¹) function. Alternatively, you can memorize common conversions: 3/12 ≈ 14.0°, 6/12 ≈ 26.6°, 9/12 ≈ 36.9°, 12/12 = 45°.
What is the difference between roof pitch and roof slope?
In practice, they are often used interchangeably. Technically, pitch is the ratio of rise to span (total width), while slope is rise over run. But in the roofing industry, pitch is almost always expressed as rise over run (e.g., 6/12).
Can I use this calculator for a shed or deck?
Yes, the same formula applies to any sloped surface, including sheds, decks, ramps, or even stair stringers. Just measure the vertical rise and horizontal run, and you’ll get the angle.
What is a low-slope roof?
A low-slope roof is generally one with a pitch of 3:12 (about 14°) or less. These roofs require special waterproofing, often using built-up roofing, modified bitumen, or single-ply membranes, because standard shingles won’t shed water effectively.
How do I measure the rise and run on an existing roof?
For the run, measure 12 inches horizontally from the edge of the roof. For the rise, measure vertically from that point up to the roof surface. You can use a level and a tape measure. Alternatively, use a digital angle finder directly on the roof surface.
Related
Formula used
in rise | Rise (vertical) | in | 6 | 0 in run | Run (horizontal) | in | 12 | 0 out angle | Roof Angle | degrees | atan(rise / run) * (180 / pi) | 2 out slope_pct | Slope Percentage | % | (rise / run) * 100 | 1 out ratio | Pitch Ratio | - | rise / run | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.