This online calculator will compute and plot the distance and midpoint for two points in two dimensions. The calculator will generate a stepbystep explanation on how to obtain the results.

To find distance between points $A(x_A, y_A)$ and $B(x_B, y_B)$, we use formula:
$$ {\color{blue}{ d(A,B) = \sqrt{(x_B  x_A)^2 + (y_By_A)^2} }} $$Example:
Find distance between points $A(3, 4)$ and $B(1, 3)$
Solution:
In this example we have: $x_A = 3,~~ y_A = 4,~~ x_B = 1,~~ y_B = 3$. So we have:
$$ \begin{aligned} d(A,B) & = \sqrt{(x_B  x_A)^2 + (y_By_A)^2} \\ d(A,B) & = \sqrt{(1  3)^2 + (3  (4) )^2} \\ d(A,B) & = \sqrt{(4)^2 + (3 + 4 )^2} \\ d(A,B) & = \sqrt{16 + 49} \\ d(A,B) & = \sqrt{65} \\ d(A,B) & \approx 8.062 \end{aligned} $$Note: use this calculator to find distance and draw graph.
The formula for finding the midpoint $M$ of a segment, with endpoints $A(x_A, y_A)$ and $B(x_B, y_B)$, is:
$$ {\color{blue}{ M~\left(\frac{x_A + x_B}{2}, \frac{y_A + y_B}{2}\right) }} $$Example:
Find midpoint of a segment with endpoints $A(3, 4)$ and $B(1, 3)$.
Solution:
As in previous example we have: $x_A = 3,~~ y_A = 4,~~ x_B = 1,~~ y_B = 3$~. So we have:
$$ \begin{aligned} M~\left(\frac{x_A + x_B}{2}, \frac{y_A + y_B}{2}\right) \\ M~\left(\frac{1 + 3}{2}, \frac{3  4}{2}\right) \\ M~\left(\frac{2}{2}, \frac{1}{2}\right) \\ M~\left(1, \frac{1}{2}\right) \end{aligned} $$Please tell me how can I make this better.
34 895 431 solved problems