Search for a tool
Slope Calculator

Tool/Calculator to find a slope value (of a road, a roof, a construction, a frame, etc.) from its height or width or length or distance etc.

Results

Slope Calculator -

Tag(s) : Geometry

Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Feedback and suggestions are welcome so that dCode offers the best 'Slope Calculator' tool for free! Thank you!

# Slope Calculator

## Slope Calculator

Please fill at least 2 items from this diagram
NB: Use the same unit (m, cm, etc.) for all distances (the result will be in this same unit)

### What is a slope?

The slope is a term which has several definitions, a priori it is the inclination, generally measured in percentage (a slope of 30%). By extension, some call slope the angle $a$ (a slope of 15 degrees).

The percentage value is the elevation for a horizontal distance $h$ of 100 units.

### How to calculate a slope (in percentage)?

The slope $p_\%$ (in % percent) is calculated by the ratio of the height $h$ by the width $w$ (multiplied by 100 to get a percentage): $$p_\% = 100 \times \frac{h}{w}$$

Example: Calculate the slope for a vertical distance of 10m and a horizontal distance of 50m: $p = 10/50 = 0.2$ or $20%$

### How to calculate a slope (in degrees)?

The slope $p°$ (in ° degrees) is calculated by trigonometric functions: $$p° = \arctan \left( \frac{h}{w} \right) \times \frac{180}{\pi}$$

Example: Calculate the slope for a vertical distance of 10m and a horizontal distance of 50m: $p° = \arctan(10/50) \approx 0.19 \text{ rad} \approx 11.3°$ (multiply radians by $180/\pi$ to get a value in degrees)

## Source code

dCode retains ownership of the "Slope Calculator" source code. Except explicit open source licence (indicated Creative Commons / free), the "Slope Calculator" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or the "Slope Calculator" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Slope Calculator" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

## Cite dCode

The copy-paste of the page "Slope Calculator" or any of its results, is allowed as long as you cite dCode!
Cite as source (bibliography):
Slope Calculator on dCode.fr [online website], retrieved on 2023-02-08, https://www.dcode.fr/slope-calculator

## Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!