Workspace

Distance, Midpoint & Slope

Between two points: distance, midpoint, slope and line equation. Results update as you type.

Enter dimensions

Results

Enter your dimensions above and the results appear here.

About the Distance, Midpoint & Slope

The distance, midpoint & slope is a free online tool: between two points: distance, midpoint, slope and line equation. Enter x₁, y₁, x₂ and y₂ and the results update instantly, alongside a labelled diagram so you always know which measurement goes where.

It runs entirely in your browser, so nothing you type is uploaded or stored. Use the share button to copy a link that restores your exact inputs.

Distance, Midpoint & Slope example

Input
x₁ = 1 cm
y₁ = 2 cm
x₂ = 7 cm
y₂ = 10 cm
Output
Distance = 10 cm
Midpoint = (4, 6)
Slope = 1.3333333
Line equation = y = 1.3333333x + 0.66666667
Direction angle = 53.1301 °
Δx (run) = 6 cm

How to use the Distance, Midpoint & Slope

  1. Pick the unit your measurements use. All dimensions must share the same unit.
  2. Enter x₁, y₁, x₂ and y₂. Focus a field to highlight the matching label on the diagram.
  3. Read the results as you type. The largest card is the main answer; the others are the related measurements.
  4. Copy a single value, copy everything, or share a link that keeps your inputs.

Distance, Midpoint & Slope FAQ

What formulas does the distance, midpoint & slope use?

d = √((x₂−x₁)² + (y₂−y₁)²); M = ((x₁+x₂)/2, (y₁+y₂)/2); m = (y₂−y₁) / (x₂−x₁).

Can I use different units?

Yes. Pick the input unit and, if you like, a different output unit. Area results are shown in squared units and volumes in cubed units.

Is this distance, midpoint & slope free and private?

Yes. It is free with no sign-up, and calculations happen on your device, so your numbers are never sent to a server.

More advanced tools

Polygon Area (Coordinates)Circle from 3 PointsAngle Converter & TrigTriangle SolverPythagorean Theorem Solver

See all geometry calculators →