Coordinate Geometry Calculator

Find distance, midpoint and line details for two points, with their computed graph.

On-device No sign-up Free to use

Calculate point geometry controls

Showing an example. Edit to see your own.

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

Result

Showing an example.

Connect points in a 3–4–5 triangle.

Distance 5, midpoint (1.5, 2), slope 4/3.

https://usefreetools.net/coordinate-geometry-calculator · 20 November 2026

Was this helpful?

How to use Coordinate Geometry Calculator

  1. Enter x and y for points A and B in a flat Cartesian coordinate system. Use the same distance unit and scale on both axes.
  2. Calculate to see distance, midpoint, slope and the line equation. A vertical line is written as x = a constant; identical points do not select a unique line.
  3. Inspect the numerical results and optional coordinate-geometry.svg download. The graph may stretch the axes independently, so use the calculated distance rather than its apparent length.

Example: Coordinate Geometry Calculator

Connect points in a 3–4–5 triangle.

You add
Point A - x: 0 Point A - y: 0 Point B - x: 3 Point B - y: 4
You get
Distance 5, midpoint (1.5, 2), slope 4/3.

Supported inputs and limits

  • Each coordinate has magnitude at most 10¹⁵, with up to 200 digits and exponents bounded by ±1,000.
  • Results use 40-digit decimal working precision and display up to 12 decimal places, with scientific notation for tiny nonzero values.
  • This is a two-point calculation on flat Cartesian axes, without geographic distance or map projection.
  • It does not convert units.
  • Equal points give distance zero but no unique line; a vertical line has no finite slope.
More details

The graph uses rounded coordinates and independent axis scales, so read the numerical results for measurement.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved 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.

Page updated · Project managed by Tony Hines · Report a problem with Coordinate Geometry Calculator