This distance calculator finds the straight line length between two points with distance = √((x2-x1)² + (y2-y1)²). Defaults from (0,0) to (3,4) return 5, the classic 3-4-5 triangle hypotenuse.
Geometry students and map sketchers use it when grid coordinates matter more than road paths. To turn a length into average speed, continue with the speed calculator.
How the formula works
The horizontal gap and vertical gap form the legs of a right triangle. The distance is the hypotenuse from the Pythagorean theorem.
Worked example
x1 = 0, y1 = 0, x2 = 3, y2 = 4. Distance = √(3² + 4²) = √(9 + 16) = √25 = 5.
| Input | Value |
|---|---|
| Point 1 | (0, 0) |
| Point 2 | (3, 4) |
| Distance | 5 |
How to use the fields
- x1 and y1 are the first point.
- x2 and y2 are the second point.
When straight line is enough
Classroom geometry, game maps, and simple CAD sketches often need Euclidean distance. Driving directions need road networks instead. Pick the model that matches the question.
Common mistakes
- Subtracting coordinates in the wrong order and expecting a signed length (distance is non-negative)
- Mixing axis units
- Using this result as hiking trail length on steep terrain
- Forgetting that map projections can distort real world miles
Classroom checklist
- Plot or list both points clearly.
- Compute Δx and Δy.
- Square, add, and take the square root.
- State the unit beside the number.
From distance to motion
If a particle moves from one point to another in a known time, average speed is distance divided by time. Keep the distance unit and time unit paired correctly when you switch tools.
Another coordinate check
Try (1,1) to (4,5). Δx = 3, Δy = 4, distance = 5 again. Many textbook problems reuse 3-4-5 shapes with shifted points. Recognizing the pattern speeds homework without skipping the formula steps.
If Δx = 0, the distance equals the absolute vertical gap. If Δy = 0, the distance equals the absolute horizontal gap. The full formula still works and keeps one method for every case.
Maps versus plane geometry
City blocks are not straight line distances unless you can cut diagonally through open space. Hiking trails add elevation and curves. Use this calculator when the model is a flat plane with Cartesian axes. Use route tools when roads or trails constrain the path.
GPS latitude and longitude distance on Earth needs spherical formulas. Do not paste raw lat/long degrees into this planar tool and expect true surface miles.
Scaling drawings
Architect sketches and game maps often use grid units. Compute distance in grid units first, then multiply by the scale factor to get real meters or feet. Keep the scale written next to the answer so teammates do not treat grid units as meters by mistake.
When a drawing is resized on screen, confirm the scale is still valid before you trust a previously computed length.
Linking to speed problems
If a drone flies from (0,0) to (3,4) in 0.1 time units, average speed is 5 ÷ 0.1 = 50 in those units. Compute distance here, then divide by time on the speed calculator. Same numbers as the defaults on both tools make a clean two step classroom demo.
Vector view for advanced classes
The same formula is the magnitude of the displacement vector between the points. Direction is a separate question answered with angles or atan2 style reasoning. This page returns magnitude only. If a worksheet asks for displacement vector components, report Δx and Δy first, then the distance as the magnitude check.
Negative coordinates are normal. Squaring removes sign from each component before you add and take the square root.
Classroom error patterns
Students sometimes add Δx and Δy instead of using squares and a square root. Others forget to take the square root and stop at 25 for the default problem. Saying the distance aloud as a length, not an area style square, helps catch that stop early error.
Another slip is swapping points and expecting a negative distance. Distance is non-negative. Components can be negative; the magnitude is not.
Scale factor reminder
After you compute a grid distance of 5, multiply by the map scale if one grid unit is not one real meter. Write the scale beside the final real world length so nobody treats 5 as meters by accident.
Limitations
Only two dimensions are supported. Spherical Earth distance, elevation, and path constraints are out of scope for this page.