The big idea: To find the straight-line distance between two points, draw an invisible right triangle and use Pythagoras.
The formula wraps this up in one step.
Here (x₁, y₁) and (x₂, y₂) are the two points.
The order does not matter because the differences are squared, so they are always positive.
Worked example — distance in 2D
Find the distance between A(1, 2) and B(5, 5).
Step by step
- Identify the coordinates.
- Substitute into the formula.
- Simplify.
Final answer
The distance AB = 5 units.
[Diagram: math-distance-2d] - Available in full study mode
The midpoint: The midpoint of a line segment is exactly halfway between the two endpoints.
You simply average the x-coordinates and average the y-coordinates.
Worked example — midpoint
Find the midpoint of P(2, 8) and Q(6, 2).
Step by step
- Average the x-coordinates.
- Average the y-coordinates.
Final answer
Midpoint M = (4, 5).
IB exam tip: Midpoint questions often appear in Voronoi and perpendicular bisector context.
Always label your midpoint clearly in your working.