How to find the distance and midpoint between two points

The distance between two points is found using the Pythagorean theorem applied to their coordinates, while the midpoint is the average of their respective xx- and yy-coordinates. This method applies whenever points are defined in a standard 2D Cartesian coordinate system.

The setup

Define the two given points as P1=(x1,y1)P_1 = (x_1, y_1) and P2=(x2,y2)P_2 = (x_2, y_2). The distance dd between them is calculated using the formula d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}. The midpoint MM of the segment connecting them is calculated using the formula M=(x1+x22,y1+y22)M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right).

The steps

  1. Identify and label the coordinates of P1P_1 and P2P_2. 2. Substitute the xx- and yy-values into the distance formula, square the differences, sum them, and take the square root. 3. Substitute the values into the midpoint formula, add the respective coordinates, and divide by 2.

Checking the result

Verify that the calculated distance is strictly non-negative. To check the midpoint, confirm it lies exactly on the line segment by checking if the distance from P1P_1 to MM equals the distance from MM to P2P_2, and that their sum equals the total distance dd.

Common errors

A frequent error is subtracting coordinates in the midpoint formula instead of adding them, confusing it with the slope or distance formula. Another error is adding coordinates in the distance formula before squaring, rather than subtracting.

Worked example

Find the distance and midpoint between A=(3,4)A = (-3, 4) and B=(5,2)B = (5, -2).

Let (x1,y1)=(3,4)(x_1, y_1) = (-3, 4) and (x2,y2)=(5,2)(x_2, y_2) = (5, -2). Calculate distance: d=(5(3))2+(24)2d = \sqrt{(5 - (-3))^2 + (-2 - 4)^2} d=(8)2+(6)2d = \sqrt{(8)^2 + (-6)^2} d=64+36d = \sqrt{64 + 36} d=100d = \sqrt{100} d=10d = 10 Calculate midpoint: M=(3+52,4+(2)2)M = \left( \frac{-3 + 5}{2}, \frac{4 + (-2)}{2} \right) M=(22,22)M = \left( \frac{2}{2}, \frac{2}{2} \right) M=(1,1)M = (1, 1). The distance is 1010 and the midpoint is (1,1)(1, 1).

FAQ

Run your own problem

References: OpenStax College Algebra, Chapter 2: Equations and Inequalities · Stewart Calculus, Appendix B: Coordinate Geometry

See also