CalculatorPro Tools

How to Use the Slope Calculator

Enter any two points on a line and get the slope, the equation, the angle of inclination, both intercepts, the perpendicular slope and the midpoint in a single result.

Step-by-Step Instructions

  1. 1 Enter the x and y coordinates of your first point.
  2. 2 Enter the x and y coordinates of your second point. The order does not matter, since swapping the points gives the same slope.
  3. 3 Read the slope first, then the equation of the line and the angle of inclination.
  4. 4 Use the intercept tiles to find where the line crosses each axis, and the perpendicular tile for the normal to the line.
  5. 5 Use the How this is worked out panel to copy the rise over run calculation into your own working.

Understanding the Inputs

x1 and y1

The coordinates of the first point. Both values must be expressed in the same unit as the corresponding values of the second point.

How to find it: Two points read from a graph, a set of measurements, a map grid, or fitted data. Order between the two points does not affect any output.

Why it matters: Slope is rise over run, and both are differences. Using consistent units is what makes the ratio meaningful, and mixing them produces a number with no physical interpretation.

x2 and y2

The coordinates of the second point. If both points share the same x value the line is vertical and has no slope.

How to find it: Any second point lying on the same line. The further apart the points are, the more reliable the resulting slope as an estimate of the underlying trend.

Why it matters: The difference between the points is the entire calculation. Widely spaced points reduce the effect of measurement noise, which is why fitting a line uses the full spread of data rather than two adjacent points.

Tips & Best Practices

  • ✓ Keep both axes in the same unit so the slope means something physical.
  • ✓ Convert percentage grades to decimals by dividing by 100.
  • ✓ Swap the points if it makes the subtractions easier to follow.
  • ✓ Check perpendicular lines by confirming the two slopes multiply to minus 1.

Try the Slope Calculator

by CalculatorPro Tools · Updated