Coordinate Geometry Calculator

Calculate distance, midpoint, slope and a line equation from two points, including vertical and coincident cases.

Inputs stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Calculate point geometry controls

Showing an example. Edit to see your own.

Processed in your browser. Your inputs stay on this device.

How to use Coordinate Geometry Calculator

  1. Enter the x and y coordinates of both points.
  2. Calculate the geometry.
  3. Review distance, midpoint and the slope or special line case.

Example: Coordinate Geometry Calculator

Connect points in a 3–4–5 triangle.

You add
First point: 0,0. Second point: 3,4.
You get
Distance is 5. The midpoint is 1.5,2 and the slope is 4/3, with its decimal representation.

Supported inputs and limits

Two points in a flat Cartesian coordinate system with bounded numeric inputs. It does not calculate geographic distances or project map coordinates. Equal points do not determine a unique line; vertical lines have no finite slope.

Where your input is processed

This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Cartesian distance assumes the axes share a scale

The straight-line formula combines horizontal and vertical differences. Mixing metres on one axis with kilometres on the other changes the meaning, even if the arithmetic can still be performed.

Questions about Coordinate Geometry Calculator

Why is the slope undefined for a vertical line?

The change in x is zero, so the usual slope formula would divide by zero. The line can still be written as x equals the shared coordinate.

Do these coordinates need a unit?

Use the same unit and scale for both axes when interpreting the distance. The tool does not convert units.

Do identical points define a line?

No. They define a zero distance and a midpoint, but infinitely many lines pass through that one point.

Project manager: Tony Hines · Content updated 2 October 2026 · Report a problem