Calculadora de Distância
- Created by
- Renato Passos, Eng. de Software
- Reviewed by
- Renato Passos, Eng. de Software
Last updated: Apr 18, 2026
Formula
d = √((x₂−x₁)² + (y₂−y₁)²)
About this calculator
The Distance Calculator calculates the Euclidean distance between two points on the Cartesian plane. This distance represents the length of the straight line segment connecting the two points, a fundamental measure in analytic geometry. The calculation is based on the Pythagorean theorem, where the distance is the square root of the sum of the squares of the differences in x and y coordinates.
To use the calculator, enter the coordinates (x₁, y₁) of the first point and (x₂, y₂) of the second point in the provided fields. The system applies the formula d = √((x₂−x₁)² + (y₂−y₁)²) and displays the result. This tool is useful for students, teachers, and professionals who need to quickly determine the distance between two locations on a map or in graphs.
Use cases include calculating the distance between two cities on a Cartesian plane, determining the length of a segment in geometry problems, or checking distances in engineering and design projects. It is important to remember that the formula assumes a Euclidean space, i.e., a flat surface, and does not consider curvatures or obstacles.
Cautions: ensure that the coordinates are in the same reference system and that the values are entered correctly. The calculator provides the straight-line distance, not considering routes or paths. For distances on curved surfaces, such as the Earth, use specific formulas, like the Haversine formula.
Frequently asked questions
How does the calculator determine the distance between two points?
It uses the Euclidean distance formula: square root of (x₂−x₁)² + (y₂−y₁)², derived from the Pythagorean theorem.
Can I use this calculator for real distances on the globe?
No, it is only suitable for flat surfaces. For distances on Earth, use a geographic distance calculator based on the Haversine formula.
What happens if I enter negative coordinates?
The calculator works normally with negative coordinates, as the formula squares the differences, eliminating signs.
Does the calculator consider the unit of measurement?
No, it returns a numeric value without a unit. You should interpret the result in the same unit as the coordinates entered.
Can I calculate the distance between more than two points?
No, this tool calculates only the distance between a pair of points. For multiple points, calculate pair by pair.