Slope Calculator
Calculate the slope of a line passing through two points. Enter the coordinates below to get started!
Enter Coordinates
Provide the x and y coordinates for two points, P1 and P2.
Result:
Slope (m) = Undefined
The slope m = / is undefined for vertical lines.
Line Visualization
Understanding Slope
In mathematics, the slope or gradient of a line is a number that describes both the direction and the steepness of the line. Slope is often denoted by the letter 'm'.
Formula
The slope (m) of a line passing through two points (x1, y1) and (x2, y2) is given by the formula:
m = (y2 - y1)
(x2 - x1)
(x2 - x1)
This formula represents the "rise over run," where 'rise' is the vertical change (y2 - y1) and 'run' is the horizontal change (x2 - x1).
Types of Slopes
- Positive Slope: Line goes upwards from left to right.
- Negative Slope: Line goes downwards from left to right.
- Zero Slope: Horizontal line.
- Undefined Slope: Vertical line (division by zero).