Using the Distance Calculator
Use coordinates expressed in the same linear unit and reference system. The calculation squares the horizontal and vertical differences, adds them and takes the square root, so point order does not affect distance.
Worked example
Use the example inputs below to reproduce this result. These are the form's starting values, not recommended targets. Changing your inputs updates your result above; this worked example stays fixed for comparison. Results are rounded for display.
Example inputs
- First x
- 0
- First y
- 0
- Second x
- 3
- Second y
- 4
Example result
- Distance
- 5
- Slope
- 1.3333333
Method and assumptions
Distance = √(Δx² + Δy²); slope = Δy / Δx.
Label both points before entering them
Coordinate calculations depend on the pairing and order of x and y values. Write each point as an ordered pair and use the same coordinate system for both. A result derived from coordinate differences assumes those coordinates represent compatible units. Screen pixels, map coordinates and physical distances need the appropriate interpretation outside the arithmetic.
Common question
Can I use this for a three-dimensional point?
This version accepts x and y coordinates only. A three-dimensional distance would also include the squared difference in z before taking the square root.
Guide updated .