Slope Between Two Points Calculator
Calculate the slope of a line segment using two Cartesian points (rise over run).
Mathematical tool for educational use.
Examples
- (1,2) to (4,6) ⇒ 4/3
- (0,0) to (5,5) ⇒ 1
- (2,5) to (-1,2) ⇒ 1
- (−3.5, 1.25) to (4.75, 9.8) ⇒ 1.125
FAQ
What if x₂ equals x₁?
The slope is undefined because division by zero occurs.
Are negative slopes allowed?
Yes, negative results indicate a downward slope.
Do inputs need to be integers?
No, decimals are accepted.
Is this for 2D only?
Yes, it handles two-dimensional coordinates.
What does a slope of zero mean?
A zero slope represents a perfectly horizontal line.
How do I convert slope to a percentage grade?
Multiply the slope by 100 to express rise over run as a percent grade, common in road design and accessibility studies.
Can I calculate distance between the points too?
This calculator focuses on slope. Use our distance-between-two-points tool to find the segment length.
Additional Information
- Slope describes how steep a line is between two points.
- A positive slope rises from left to right; a negative slope falls.
- Results are unitless and depend on consistent coordinate units.
- Slope equals the tangent of the line's inclination angle—use arctangent to convert slope to degrees.