Geometry & Shapes
Compute Slope from Two Points and Check Its Sign
Compute rise over run from two points, keep subtraction order consistent, and distinguish zero slope, undefined slope and a missing line direction.
Compute both coordinate changes
For points A = (−2,5) and B = (4,2), the horizontal change is 4 − (−2) = 6 and the vertical change is 2 − 5 = −3. Slope is the vertical change divided by the horizontal change, so m = −3/6 = −1/2. The negative sign describes a line that falls as x increases. It does not mean that the segment has negative length. Enter these four coordinates in the linked calculator to check the ratio.
Preserve the same subtraction order
Using A minus B instead also works: (5 − 2)/(−2 − 4) = 3/(−6) = −1/2. The mistake is reversing only the numerator or only the denominator, which produces the opposite sign. Writing the formula m = (y2 − y1)/(x2 − x1) before replacing the symbols gives each coordinate an explicit role. On a graph, count the signed rise and run from one endpoint to the other rather than mixing directions between the two counts.
Separate a horizontal line from a vertical line
Points (1,7) and (6,7) have zero rise and a run of 5, so their slope is zero. Points (3,1) and (3,9) have a run of zero; division by zero is undefined, and the line is vertical. If both points are (3,1), they specify only one location and cannot determine a unique line. These cases are different even though a zero appears in each calculation. Do not replace an undefined slope with zero to make the arithmetic finish.
Interpret the ratio before converting it
A slope of −1/2 means a fall of one vertical unit for every two horizontal units. When both axes use the same physical unit, its magnitude corresponds to a 50% grade. Its inclination is obtained with an inverse tangent and an explicitly chosen angular unit; 50% is not 50°. If the axes carry different quantities, such as distance and time, include the resulting ratio units and interpret the slope as a rate rather than a geometric angle. A table should therefore label a slope result with its vertical unit per horizontal unit whenever those axes measure different quantities.
Keep coordinate pairs and units together
An ordered pair is written (x,y), with the horizontal coordinate first. Label the points before substituting numbers, and use the same point order in every difference. Negative coordinates are positions relative to the chosen origin; they do not make a geometric length negative. If coordinates represent measured lengths, put both axes in the same length unit before using the ordinary distance formula. A graph whose horizontal axis is time and vertical axis is temperature can have a meaningful rate of change, but the square root of their squared differences is not an ordinary physical distance.
Check the answer against the original points
Plotting a small sketch helps distinguish a plausible calculation from an input-order mistake. A segment’s midpoint must lie between its endpoints, and its distance must be at least the absolute horizontal change and at least the absolute vertical change. Reversing the endpoints leaves distance and midpoint unchanged. It also leaves a defined slope unchanged because both differences reverse sign. Keep exact fractions or square roots until the requested final rounding step; rounding each coordinate before subtracting can noticeably change a short segment between nearby points.
Use a plane-coordinate tool for plane-coordinate data
The linked calculator accepts two numeric coordinate pairs. It does not read coordinates from a photograph, identify a street route, or transform latitude and longitude into a local map projection. Record how the coordinates were obtained, the axis scale and the requested output before entering them. For a drawing measured in centimetres, the resulting distance is in centimetres; for a unitless exercise, report coordinate units. The input fields contain numbers only, so retain the unit labels in your working rather than appending them to a numeric field.
Calculator for the supported step
Enter x1, y1, x2 and y2 in the Slope Calculator. Use the signed coordinates; do not enter a distance or an angle in their place.