# How do I calculate slope/gradient?

*"Rise over run" in the geosciences*

Many of us know that the slope of a line is calculated by "rise over run". However, the application of slope calculation can seem a little more complicated. In the geosciences, you may be asked to calculate the slope of a hill or to determine rate by calculating the slope of a line on a graph. This page is designed to help you learn these skills so that you can use them in your geoscience courses.

## Why should I calculate slope or gradient?

In the geosciences slope can play an important role in a number of problems. The slope of a hill can help to determine the amount of erosion likely during a rainstorm. The gradient of the water table can help us to understand whether (and how much) contamination might affect a local well or water source.

## How do I calculate slope (or gradient) in the geosciences?

Gradient in the case of hillslope and water table is just like calculating the slope of a line on a graph - "rise" over "run". But how do you do that using a contour (or topographic) map?

- First get comfortable with the features of the topographic map of interest. Make sure you know a few things:
- What is the contour interval (sometimes abbreviated CI)?
- What is the scale of the map?
- What is the feature for which you want to know the slope?

Below there is a topographic map of Math State Park. You are interested in building a path from the top of the hill on this map to the creek (Equation Creek) and want to know the slope of the hill.**You should probably print out the map (with the steps for calculating slope) (Acrobat (PDF) 93kB Oct15 08).**.**What is the contour interval of this map?**

*The contour interval tells you "rise", specifically the change in elevation between each of the "brown lines" (contours). In this case, the contour interval is in the key in the lower right and is abbreviated CI. The contour interval is 20 ft.***What is the scale of the map?**

*The scale tells you the "run", or the distance on the ground. On this map, it is also shown in the lower right and is shown only graphically. If you print out the map (with the steps for calculating slope) (Acrobat (PDF) 93kB Oct15 08), you will find that 1 inch = 1 mile.***What is the feature for which you want to know the slope?**

*In this case, you want to know the slope of the hillside to the WNW from the top (at 869 ft) to the creek.*

- First, you need to know "rise" for the feature. "Rise" is the difference in elevation from the top to bottom (see the image above). So determine the elevation of the top of the hill (or slope, or water table).
The top of the hill of interest is 859 ft. The contour line at the creek where your path will end is one below 700 ft. That makes it 680 ft (because the contour interval is 20 ft). The difference in elevation is the top minus the bottom (859 ft - 680 ft) so
**"rise" = 179 ft** - Next you need to know "run" for the feature. "Run" is the horizontal distance from the highest elevation to the lowest. So, get out your ruler and measure that distance. If you know the scale, you can calculate the distance. Most of the time distance on maps is given in km or mi.
The red line represents the distance along the hillslope where you want to build your path. The red line is twice as long as the scale for one mile (on the printed map, it is about 2 inches). Thus, the distance from the top to bottom of the hill or
**"run" = 2 mi** - Now comes the rise over run part. There are two ways that you may be asked to make calculations relating to slope. Make sure you know what the question is asking you and follow the steps associated with the appropriate process:
- If you are asked to
**calculate slope**(as in a line or a hillside), a simple division is all that is needed. Just make sure that you keep track of units! - As we've seen throughout this page, slope is "rise over run". The phrase "rise over run" implies that you will need to divide. The equation for slope looks like this:
- Take the difference in elevation and divide it by the horizontal difference (always making sure you keep track of units).
- Finish the calculation using your calculator (or doing the calculations by hand).
- You may also be asked to
**calculate percent (or %) slope**. This calculation takes a couple of steps. And it mostly has to do with paying attention to units. The units on both rise and run have to be the same. - To calculate
, both rise and run must be*percent slope***in the same units**(for example, feet or meters). If your horizontal distance is in miles, you need to convert to feet; if the horizontal distance is in kilometers, you'll have to convert to meters. (To convert from miles to feet, multiply by 5280 ft/mi; km to m, multiply by 1000m/km. If you need more help with this or need to convert other units, please see the unit conversions module). - Once you have converted so that both elevation and distance have the same units, we can write an equation for slope: rise over run (implying rise divided by run).
- To get to % we need to multiply the calculated slope (which is unitless because the units cancel on the top and bottom) by 100 so that our equation looks like this:
- Now plug in your numbers and calculate % slope!

- If you are asked to