Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
Given any two points on a coordinate plane, the slope tells you how steep the line between them is, and how to describe that line with a full equation.
This calculator finds the slope, the straight-line distance between the points, the midpoint, and the full line equation (y = mx + b) all at once.
How it works
Enter the coordinates of two points, (x₁, y₁) and (x₂, y₂). The calculator finds the slope as the change in y divided by the change in x, then uses that to build the full line equation.
- Enter x₁.
- Enter y₁.
- Enter x₂.
- Enter y₂.
- Click Calculate to see your results.
Examples
Finding the slope between two points
The points (1, 2) and (4, 8) give a slope of 2, meaning y increases by 2 for every 1 unit increase in x.
Who should use it
- Algebra and geometry homework involving coordinate points.
- Finding the equation of a line through two known points.
Industry applications
- Mathematics education
- Engineering, surveying, and computer graphics
Advantages
- Calculates slope, distance, midpoint, and the full line equation in one step.
- Correctly handles the undefined-slope (vertical line) case.
Common mistakes to avoid
- Swapping the order of subtraction between the two points inconsistently (mixing up which point is "1" and which is "2" between the numerator and denominator).
- Forgetting that a slope of zero (horizontal line) is different from an undefined slope (vertical line) — they are opposite cases.
Best practices
- Keep point 1 and point 2 consistent throughout the calculation — always subtract in the same order for both x and y.
Tips
- The sign of the slope alone tells you the line's direction: positive slopes rise left to right, negative slopes fall left to right, and zero means perfectly flat.