Gradient Calculator


The gradient of a straight line can be found using the gradient calculator.

A line is said to have a positive gradient if the slope goes up from the left hand side to the right hand side.

A line is said to have a negative gradient if it inclines downwards from the left hand side to the right hand side.

A vertical line is said to have the gradient which is undefined.

A line that is said to be horizontal has a gradient of 0.

The notation that is used for gradients is m.

Gradient Calculator

Detail Dimensions Notes
x1 First horizontal coordinate
y1 First vertical coordinate
x2 Second horizontal coordinate
y2 Second vertical coordinate
rise Vertical height
run Horizontal height
Gradient (m) Gradient size

You may set the number of decimal places in the online calculator. By default there are only two decimal places.


In algebra, a gradient of a line or a function can be found, using differentiation.

The Slope Calculator is another our program that may be interesting to you.

Basic information about the Gradient Calculator

The following mathematical algorithms can be used by the calculator to solve various problems:

  • rise = y2 - y1
  • run = x2 - x1
  • Gradient(m) = rise / run

Rating: 4.0/5 (13 votes)