SolveCalculator All solvers

Algebra

Slope calculator

Type the coordinates of two points. You get the slope, the equation of the line through them, how far apart they are, and the point halfway between.

Your answer and the full working will appear here.

The idea

Slope measures steepness: how far a line goes up for every step it goes across. Teachers often call it "rise over run". A slope of 2 climbs two units for each unit to the right. A negative slope goes downhill, a slope of 0 is flat, and a vertical line has no slope at all because you cannot divide by a run of zero.

Once you know the slope m, you can find where the line crosses the y-axis, b, by putting one of your points into y = mx + b. The same two points also give the distance between them (Pythagoras in disguise) and the midpoint (the average of the coordinates).

Formula box

  • Slope: m = (y₂ - y₁) ÷ (x₂ - x₁)
  • Intercept: b = y₁ - m x₁
  • Distance: d = √((x₂ - x₁)² + (y₂ - y₁)²)
  • Midpoint: ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)

Worked problem

Points: (1, 2) and (4, 8).

Rise = 8 - 2 = 6, run = 4 - 1 = 3, so m = 6 ÷ 3 = 2. Then b = 2 - 2(1) = 0, giving y = 2x. The distance is √(3² + 6²) = √45 ≈ 6.708, and the midpoint is (2.5, 5).

Questions

Does it matter which point I call point 1?

No. Swapping them flips the sign of both the rise and the run, so the slope stays the same.

What does a slope of -2/3 mean?

The line falls 2 units for every 3 units it moves to the right.

How do parallel and perpendicular lines relate?

Parallel lines have equal slopes. Perpendicular lines have slopes that multiply to -1, like 2 and -1/2.

Related solvers