OhMyCalc

Distance Between Two Points Calculator

Calculate the distance and midpoint between two points in 2D or 3D space. Enter coordinates for instant results.

How to Use the Distance Between Two Points Calculator

  1. Enter the required dimensions (length, width, radius, height, etc.).
  2. The area, volume, or other geometric value is computed instantly.
  3. Review the result along with the formula used.
  4. Adjust dimensions to compare different scenarios.

Casos de Uso

Fórmula

2D: d = √((x₂−x₁)² + (y₂−y₁)²). 3D: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²). Midpoint: M = ((x₁+x₂)/2, (y₁+y₂)/2).

Perguntas Frequentes

How do you calculate the distance between two points?
In 2D, use d = √((x₂−x₁)² + (y₂−y₁)²). In 3D, add (z₂−z₁)² under the square root.
What is the midpoint formula?
The midpoint M = ((x₁+x₂)/2, (y₁+y₂)/2) in 2D, with (z₁+z₂)/2 added for 3D.
Can I use negative coordinates?
Yes. The formula works with any real-number coordinates, positive or negative.
What is this formula based on?
The distance formula is derived from the Pythagorean theorem applied to the coordinate differences.