Distance and midpoint formulas explained

Two locations can be represented as ordered pairs on a Cartesian plane. The distance formula calculates the straight-line separation between those points, while the midpoint formula identifies the point exactly halfway along the line segment joining them. Both are essential tools in coordinate geometry, graph analysis, navigation and problem-solving.

These calculations also appear in practical situations such as mapping a route across Melbourne, estimating travel between suburbs of Sydney or finding the centre of a rectangular playing field. CurryPlum’s step-by-step lessons, calculators and homework assistance can help students check each stage while learning how these mathematical tools work.

What distance measures between two points

Every ordered pair contains an (x)-coordinate and a (y)-coordinate. For two points, (A(x_1,y_1)) and (B(x_2,y_2)), the distance between them is found by combining their horizontal and vertical changes. The result is the length of the shortest straight segment connecting the points.

The formula is:

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

It comes from the Pythagorean theorem because the horizontal and vertical changes form the two shorter sides of a right-angled triangle. The square root returns the length rather than the squared length.

For example, the distance between ((2,3)) and ((8,11)) is:

[ d=\sqrt{(8-2)^2+(11-3)^2} =\sqrt{36+64} =10 ]

If each unit represents 250 metres, the straight-line distance is 2.5 kilometres.

Distance in everyday Australian settings

A straight-line distance is not always the same as the distance someone travels. A journey from a Sydney home to work may cross roads, railways or waterways, so its route can be much longer than the direct measurement. Commuters often check an Opal journey plan or another transport planner to compare travel times and the number of stops.

Coordinates are useful for describing locations around cities such as Melbourne and Brisbane. For instance, a map can use an east–west (x)-coordinate and a north–south (y)-coordinate to identify a station, park or market. If one location has a negative coordinate, it lies to the left or below the chosen origin.

Australian road rules set speed limits in kilometres per hour, including under the Road Rules 2014 in New South Wales, so metric units are a natural choice when reporting distance. Local markets follow the same convention. At Adelaide Central Market, for example, produce may be priced per kilogram, while supermarkets such as Woolworths and Coles commonly sell fruit and vegetables by weight.

Finding the midpoint of a segment

The midpoint is the point that divides a line segment into two equal parts. It lies directly between the endpoints and is equally distant from both of them. The horizontal and vertical positions are found separately by averaging the corresponding coordinates.

For endpoints (A(x_1,y_1)) and (B(x_2,y_2)), the midpoint is:

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

Using ((2,3)) and ((8,11)), the horizontal coordinate is ((2+8)/2=5), and the vertical coordinate is ((3+11)/2=7). Therefore, the midpoint is ((5,7)).

This process has a geometric basis: the diagonals of a rectangle bisect one another. The same averaging rule therefore locates the centre of a rectangular field, the intersection of two symmetrical paths or the middle point of a mapped journey.

Worked coordinate examples

Suppose a simplified local map assigns Northbridge the grid coordinates ((3,7)) and Fremantle the coordinates ((11,2)). The horizontal change is 8 units and the vertical change is 5 units, giving:

[ d=\sqrt{8^2+5^2}=\sqrt{89}\approx9.43 ]

If one grid unit represents 500 metres, the direct separation is approximately 4.72 kilometres. This is a geometric estimate, not the length of the road journey.

The midpoint of the same segment is:

[ M=\left(\frac{3+11}{2},\frac{7+2}{2}\right)=(7,4.5) ]

A useful check is to calculate the distance from either endpoint to the midpoint. Each should equal half the original distance, approximately 4.72 units.

For a general calculation, the squared distance can be written as ((x_2-x_1)^2+(y_2-y_1)^2). If you need to expand a squared difference, the FOIL method guide shows how to multiply the two binomials before combining terms.

Errors that change the answer

A frequent mistake is to subtract the ordered pairs as though they were single numbers. The (x)-coordinates and (y)-coordinates must be handled separately, then the two squared changes added together. Another error is to stop at the squared distance and forget the square root.

Signs do not need special treatment after subtraction because the changes are squared. However, the order of subtraction can make intermediate work clearer. Always record the unit of measurement and avoid rounding until the final answer.

The midpoint must lie directly on the segment. It is not necessarily the halfway point along a curved road, ferry route or walking path. CurryPlum’s calculators and step-by-step homework support can verify the arithmetic, but a plotted sketch can also reveal whether the result lies in a sensible position.

A practical formula checklist

The essential relationships can be summarised as follows:

A reliable checking routine keeps each stage visible:

The next concrete task is to draw a coordinate grid, place two points at different locations, and calculate both their distance and midpoint.