Distance & Midpoint Calculator

Calculate distance and midpoint between two points in 2D or 3D space with coordinate plotting

Point 1

Point 2

Risultati

Inserisci i valori e clicca Calcola per vedere il risultato.

Theory & Formula

Distance Formula

The distance between two points is calculated using the Pythagorean theorem.

2D:

\(d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\)

3D:

\(d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}\)

Midpoint Formula

The midpoint is the point exactly halfway between two points.

2D:

\(M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)\)

3D:

\(M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}, \frac{z_1 + z_2}{2}\right)\)

Example

Find distance and midpoint for P₁(1, 2) and P₂(4, 6):

\(d = \sqrt{(4-1)^2 + (6-2)^2} = \sqrt{9 + 16} = \sqrt{25} = 5\)\(M = \left(\frac{1+4}{2}, \frac{2+6}{2}\right) = (2.5, 4)\)
Distance & Midpoint Calculator | 2D & 3D Coordinates | MathCalcLab | MathCalcLab