# The distance and midpoint formulas

The distance formula is used to find the distance between two points in the coordinate plane. We'll explain this using an example below

We want to calculate the distance between the two points (-2, 1) and (4, 3). We could see the line drawn between these two points is the hypotenuse of a right triangle. The legs of this triangle would be parallel to the axes which mean that we can measure the length of the legs easily.

We'll get the length of the distance d by using the Pythagorean Theorem

This method can be used to determine the distance between any two points in a coordinate plane and is summarized in the distance formula

The point that is at the same distance from two points A
(x_{1}, y_{1}) and B (x_{2}, y_{2})
on a line is called the midpoint. You calculate the midpoint using
the midpoint formula

We can use the example above to illustrate this

**Video lesson:** Calculate the distance between
the two points

**Rational expressions, Simplify rational expression**