Slope Calculator

0 && $rise >= 0) {
$slopeRatio = $rise / $run;
$angleRadians = atan($slopeRatio);
$angleDegrees = rad2deg($angleRadians);

$result = ‘

‘ . number_format($angleDegrees, 2) . ‘°
Slope ‘ . $rise . ‘:’ . $run . ‘ = ‘ . number_format($angleDegrees, 2) . ‘ degrees

‘;
} else {
$result = ‘

Please enter valid numbers (horizontal/run must be greater than 0)

‘;
}
}
?>





Roof Slope Calculator


Roof Slope Calculator

Convert slope ratio to degrees

Vertical
:
Horizontal




Scroll to Top