Slope Calculator
Calculate the slope of a line from two points. See the slope, equation of the line, angle, graph, and step-by-step solution instantly.
Two points
m = (y₂ - y₁) / (x₂ - x₁)
Try an example
x [-10, 10]
Graph settings
Display and accessibility
Grid settings
Polar draws radial rings and 30° spokes. Type r = 4*sin(3*theta) to plot a polar curve.
X-axis settings
Y-axis settings
More options
Equal scaling keeps circles round. Independent scaling stretches each axis to fill the view.
Angle mode
Degrees: sin(90) = 1. Applies to graphs, roots, and intersections.
Drag to pan · scroll or pinch to zoom · keyboard: arrows pan, + / - zoom, 0 reset
Calculation steps
Equation of the line
Additional properties
What does this slope mean?
What is slope?
Slope measures how steep a line is: how much y changes for each unit of x. If you have two points and need the steepness, the equation, or the angle between them, enter the coordinates and read every value with its working shown.
How to calculate slope
m = rise / run = (y₂ - y₁) / (x₂ - x₁)
- Subtract the first y-coordinate from the second to find the rise.
- Subtract the first x-coordinate from the second to find the run.
- Divide the rise by the run, provided the run is not zero.
Slope FAQ
What is the slope of a line?
The slope measures how steep a line is and how much y changes for each unit change in x.
How do you calculate slope from two points?
Subtract the y-coordinates to find the rise, subtract the x-coordinates to find the run, and divide the rise by the run when it is nonzero.
Can a slope be negative?
Yes. A negative slope means the line falls from left to right.
What is the slope of a vertical line?
It is undefined because the x-coordinate does not change and the run is zero.
What is the slope of a horizontal line?
It is zero because the y-coordinate remains constant.