Understanding slope results
Keep the coordinate order consistent
Subtract the coordinates in the same order for both numerator and denominator. Swapping both point orders leaves the slope unchanged; swapping only one changes its sign. A horizontal line has zero slope because its rise is zero.
Vertical lines and identical points
A vertical line has zero run, so its slope is undefined rather than infinitely large as an ordinary number. Two identical points do not determine one line. This tool uses planar coordinates, not an elevation model or a roofing-pitch conversion.
Example: positive, zero and undefined slope
| Two points | Calculation | Slope |
|---|---|---|
| (1, 2) and (4, 8) | (8 − 2) ÷ (4 − 1) | 2 |
| (1, 5) and (4, 5) | 0 ÷ 3 | 0: horizontal |
| (3, 2) and (3, 8) | 6 ÷ 0 | Undefined: vertical |
Related calculations
- Distance CalculatorMeasure straight-line distance between two plane coordinates.
- Right Triangle CalculatorFind a hypotenuse and acute angles from two legs.
- Ratio CalculatorSimplify a ratio or find a missing proportional value.