About the Slope Calculator
FreeToolr's Slope Calculator finds the slope between two points on a coordinate plane. Enter x1, y1, x2, and y2, then see the slope, y-intercept, angle, and distance between the points. The results update instantly as you type, so you do not need a calculate button. Students can check algebra homework, teachers can prepare examples, and anyone working with coordinates can inspect a line's rate of change. The calculator uses the standard rise-over-run method taught in algebra. It also identifies vertical lines, which have no defined slope because their horizontal change is zero. The tool runs in your browser, and nothing is uploaded. You can copy the result or share a link that reopens with your numbers.
How to use it
- 1Enter the x-coordinate for the first point in x1.
- 2Enter the y-coordinate for the first point in y1.
- 3Enter the x-coordinate for the second point in x2.
- 4Enter the y-coordinate for the second point in y2.
- 5Read the slope, y-intercept, angle, and distance as the results update.
Worked example
For P1 = (2, 3) and P2 = (6, 11), m = (11 - 3) / (6 - 2) = 8 / 4 = 2. The y-intercept is b = 3 - (2 x 2) = -1. The angle is about 63.435 degrees, and the distance is sqrt((6 - 2)^2 + (11 - 3)^2) = sqrt(80), or about 8.944 units.
The formula
Slope m = (y2 - y1) / (x2 - x1)The line is y = m x + b, with b = y1 - m x1A vertical line has no defined slopeSource: OpenStax, Understand Slope of a LineOpenStax, Graphing Functions. Last checked 1 November 2026.
What it is good for
- Shows four useful results from two coordinate points.
- Updates instantly without a calculate button.
- Lets you copy results or share your entered numbers.
- A vertical line has no defined slope because x2 - x1 equals zero.
- The tool calculates coordinate geometry, not local rules for ramps, roads, roofs, or drainage.
Questions people ask
What is the formula for slope?
The formula is m = (y2 - y1) / (x2 - x1). It divides the change in y by the change in x, also called rise over run.
How do I use this slope calculator?
Enter x1, y1, x2, and y2 for two points. The results update as you type, with no calculate button required.
What does a positive or negative slope mean?
A positive slope means the line rises from left to right. A negative slope means it falls from left to right.
What is the slope of a horizontal line?
A horizontal line has a slope of 0. Both points have the same y-value, so the change in y is zero.
What is the slope of a vertical line?
A vertical line has no defined slope. Its x-values are equal, making the denominator x2 - x1 equal to zero.
Does the order of the points affect the slope?
No, if you reverse both points, both changes change sign. The final slope stays the same.
What is the difference between slope and distance?
Slope measures vertical change for each unit of horizontal change. Distance measures the straight-line length between the two points.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.