∑Math calculator

Slope and Distance Calculator

Distance, slope, midpoint, and line equation from two points.

Enter point 1, x, point 1, y and point 2, x and get distance between points and slope instantly.

InPoint 1, xInPoint 1, yInPoint 2, xInPoint 2, yOutDistance between pointsOutSlopeOutMidpoint
4 inputs5 resultsFree no signupPrivate in your browser

Slope and Distance Calculator

Fill in the values and the answer updates as you type.

Live
1 Your numbers
2 Your result

How the Slope and Distance Calculator works

Distance = √((x₂ − x₁)² + (y₂ − y₁)²). Slope = (y₂ − y₁) ÷ (x₂ − x₁); a vertical line has no defined slope. The midpoint averages the x and y values. Example: (1, 2) to (7, 10) has distance 10 and slope 1.3333.

Inputs and results

The Slope and Distance Calculator takes 4 inputs and gives 5 results.

What you enter

  • Point 1, x — starts at 1.
  • Point 1, y — starts at 2.
  • Point 2, x — starts at 7.
  • Point 2, y — starts at 10.

What you get

  • Distance between points
  • Slope
  • Midpoint
  • Line equation
  • Angle of the line (degrees)

Slope and Distance Calculator FAQ

How do I use the Slope and Distance Calculator?

Enter point 1, x, point 1, y, point 2, x and point 2, y in the fields, then read distance between points, slope, midpoint and line equation in the result panel. The answer updates as you type, and you can press Calculate or Enter to refresh it. Use “Copy link” to share your exact numbers with someone else.

What does the Slope and Distance Calculator calculate?

Distance, slope, midpoint, and line equation from two points. It returns distance between points, slope, midpoint and line equation from the 4 values you provide.

What values does the Slope and Distance Calculator start with?

It opens with point 1, x 1, point 1, y 2, point 2, x 7 and point 2, y 10 so you can see a working result straight away. Replace them with your own numbers, or press Reset to return to these starting values.

Is the Slope and Distance Calculator free and private?

Yes. It is free, needs no account, and runs in your browser, so nothing you type is sent to or stored on our servers. See the Privacy Policy for details.

Can I rely on the Slope and Distance Calculator for important decisions?

Treat the result as a well-rounded estimate. Real situations often have details a general calculator cannot know, so confirm important decisions with a qualified professional. See the Disclaimer for more.