Slope Calculator
Find the slope between two points instantly.
How to use
- 1 Enter the x and y coordinates of your first point.
- 2 Enter the x and y coordinates of your second point.
- 3 Read the slope, angle and y-intercept as you type.
- 4 Copy the line equation or the full results.
About Slope Calculator
The Slope Calculator finds how steep a line is from any two points you give it.
Enter the coordinates of point one (x₁, y₁) and point two (x₂, y₂) and the tool computes the slope using the classic rise-over-run formula, m = (y₂ − y₁) / (x₂ − x₁).
Alongside the slope it shows three things that are easy to forget to work out by hand: the angle of inclination in degrees, the y-intercept b, and the full equation of the line written as y = mx + b.
When the run is zero the line is vertical and the slope is genuinely undefined, so the tool reports that honestly and gives you the x = c form instead of a misleading number.
Horizontal lines, negative slopes and fractional results are all handled cleanly.
This is handy for algebra homework, checking graph readings, surveying gradients, or any time you need the steepness and direction of a straight line.
Calculations happen entirely in your browser, so nothing you type is uploaded or stored, and the tool keeps working offline once the page has loaded.
FAQ
What happens with a vertical line?
When both points share the same x value the run is zero, so the slope is undefined. The tool reports an undefined slope and gives the line in the form x = c instead.
How is the angle calculated?
The angle of inclination is arctan(slope), converted to degrees. A horizontal line is 0°, a 45° rise is slope 1, and a vertical line is 90°.