Math

Instant, private, and free

Slope Calculator.

Calculate slope from two Cartesian points.

On-device calculationNo signup
01

Set your values

Results update as you type.

Result: slope: 2.00000000 · type: finite

Result

slope: 2.00000000 · type: finite

Use Cases

Find the slope of a line for math homework

Quickly check your work when finding the slope between two points in algebra or geometry assignments.

Example: Given points (2, 3) and (5, 11), the slope is (11-3)/(5-2) = 8/3.

Determine the steepness of a ramp or roof

Use the coordinates of two points on a surface to calculate its slope, which helps in construction or design planning.

Example: For a ramp from (0,0) to (4,2), the slope is 0.5.

Frequently Asked Questions

How do I calculate the slope using this calculator?
Enter the x and y coordinates of the first point (x₁, y₁) and the second point (x₂, y₂). The calculator will compute the slope as (y₂ - y₁) / (x₂ - x₁).
What if the x-coordinates are the same?
If x₁ equals x₂, the line is vertical, and the slope is undefined. The calculator will indicate this, as division by zero is not possible.
Can I use negative coordinates?
Yes, you can enter negative values for any of the coordinates. The calculator handles them correctly, following the standard slope formula.

Tips & Common Mistakes

Tips

  • Double-check that you've entered the coordinates in the correct order: x₁, y₁ for the first point and x₂, y₂ for the second.
  • Remember that the slope is the change in y divided by the change in x, so keep the order consistent.
  • If your slope is a fraction, you can simplify it for a cleaner result, but the calculator gives the exact value.
  • Use the slope to write the equation of the line in point-slope form: y - y₁ = m(x - x₁).

Common Mistakes to Avoid

  • Swapping the x and y coordinates when entering points, which leads to an incorrect slope.
  • Forgetting that the slope is (y₂ - y₁) / (x₂ - x₁), not (x₂ - x₁) / (y₂ - y₁).
  • Not recognizing that a vertical line has an undefined slope, not zero.

Last updated: August 13, 2026