Skip to content

Geometry · free · no sign-up

Coordinate Geometry Calculator

Enter two points to find the distance between them, their midpoint and the slope of the line through them.

How it works Report a problem

Coordinate Geometry

Interactive cartesian analysis

About the Coordinate Geometry Calculator

Enter two points to find the distance between them, their midpoint and the slope of the line through them.

How to use the Coordinate Geometry Calculator

  1. Enter X1, Y1, X2 and Y2.
  2. Press Plot Points.

Formula and method

Distance: √((x₂ − x₁)² + (y₂ − y₁)²). Midpoint: ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Slope: (y₂ − y₁) ÷ (x₂ − x₁).

Worked example

For (1, 2) and (4, 6): distance = 5, midpoint = (2.5, 4) and slope = 1.33.

Tips

  • A vertical line has an undefined slope.

Frequently asked questions

What is the distance formula based on?
The Pythagorean theorem applied to the horizontal and vertical differences.