Distância 2 pontos 2D
- Created by
- Renato Passos, Eng. de Software
- Reviewed by
- Renato Passos, Eng. de Software
Last updated: Apr 18, 2026
About this calculator
The 2D distance calculator uses the mathematical formula √[(x₂−x₁)² + (y₂−y₁)²], derived from the Pythagorean theorem. It measures the Euclidean distance between two points (x₁,y₁) and (x₂,y₂) in the Cartesian plane. To use, input the coordinates of both points and click calculate. The result will be displayed in units matching the provided coordinates.
This tool is helpful in geometry, physics, engineering, and programming where 2D point distances are required. It works with positive, negative, and zero coordinates. Ensure all values are in the same measurement unit for accurate results.
Cautions: Do not confuse 2D distance with 3D or geographic distance formulas. The 2D formula only applies to planar coordinates. Very large values may cause overflow in some software, but the online calculator handles this automatically. Avoid typos in coordinates, as random changes invalidate the calculation.
Frequently asked questions
What happens if I swap the point coordinates?
The point order doesn't affect the result, since the formula calculates absolute distance.
Can I use different units for x and y coordinates?
No. All values must be in the same measurement unit for accurate calculation.
How does the calculator handle negative numbers?
The formula uses squared values and square roots, which cancel out negative signs during calculation.
Is there a limit for input number size?
The calculator accepts very large values, but scientific notation is recommended for better result readability.
Why did I get 0 as the result?
This means the two input points are identical (x₁=x₂ and y₁=y₂).