If we want to find the distance between two points on a number
line we use the distance formula:

Example
Point A is on the coordinate 4 and point B is on the coordinate
-1.

If we want to find the distance between two points in a
coordinate plane we use a different formula that is based on the
Pythagorean Theorem were (x1,y1) and
(x2,y2) are the coordinates and d marks the
distance:

The point that is exactly in the middle between two points is
called the midpoint and is found by using one of the two following
equations.
Method 1: For a number line with the coordinates a and b as
endpoints:

Method 2: If we are working in a coordinate plane where the
endpoints has the coordinates (x1,y1) and
(x2,y2) then the midpoint coordinates is
found by using the following formula:

Video lesson: Find the midpoint of the line
segment.