O-Level Guide

O-Level Coordinate Geometry: The Complete Guide (Distance, Midpoint, Gradient)

Master the 4 pillars of O-Level Coordinate Geometry: Distance, Midpoint, Gradient, and Line Equations. Includes formulas, examples, and common mistakes.

5 February 2026 10 min read
O-Level Coordinate Geometry: The Complete Guide (Distance, Midpoint, Gradient)

Mastering O-Level Coordinate Geometry

Coordinate Geometry is one of the most important topics in O-Level Math (and A-Math). It connects algebra with geometry, allowing us to solve geometric problems using equations. In this guide, we’ll break down the four essential pillars: Distance, Midpoint, Gradient, and Equations of Lines.

1. The Distance Formula

How far apart are two points on a graph? If the line is horizontal or vertical, it’s easy—just count the units. But what if the line is diagonal?

The Distance Formula is derived directly from Pythagoras’ Theorem (a2+b2=c2a^2 + b^2 = c^2).

Given two points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2), the distance dd is:

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

Think of (x2x1)(x_2 - x_1) as the horizontal distance (run) and (y2y1)(y_2 - y_1) as the vertical distance (rise).

💡 Pro Tip: Order Doesn't Matter

Because you’re squaring the differences, it doesn’t matter if you do (x2x1)(x_2 - x_1) or (x1x2)(x_1 - x_2). The result is always positive!

Visualizing Distance as Hypotenuse

You can see the distance between two points as the hypotenuse of a right-angled triangle.

Example: Calculating Distance

Problem:

Find the distance between the points A(2,1)A(-2, 1) and B(4,9)B(4, 9).

Step 1: Identify coordinates

x1=2,y1=1x_1 = -2, y_1 = 1

x2=4,y2=9x_2 = 4, y_2 = 9

Step 2: Find the horizontal and vertical differences

Δx=4(2)=6\Delta x = 4 - (-2) = 6

Δy=91=8\Delta y = 9 - 1 = 8

Step 3: Apply formula

d=62+82d = \sqrt{6^2 + 8^2}

d=36+64d = \sqrt{36 + 64}

d=100=10 unitsd = \sqrt{100} = 10 \text{ units}


2. The Midpoint Formula

The midpoint is the exact center of a line segment connecting two points. It is simply the average of the coordinates.

Given A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2), the midpoint MM is:

M=(x1+x22,y1+y22)M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right)

⚠️ Common Mistake

Don’t subtract the coordinates! For distance you subtract, but for midpoint you add and divide by 2 (averaging).


3. The Gradient (Slope)

The gradient mm measures how steep a line is.

  • Positive gradient (m>0m > 0): Line goes up from left to right.
  • Negative gradient (m<0m < 0): Line goes down from left to right.
  • Zero gradient (m=0m = 0): Horizontal line.
  • Undefined gradient: Vertical line.

Formula: m=riserun=y2y1x2x1m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}

Example: Finding Gradient

Problem:

Find the gradient of the line passing through P(1,2)P(1, 2) and Q(5,10)Q(5, 10).

m=10251=84=2m = \frac{10 - 2}{5 - 1} = \frac{8}{4} = 2

The gradient is 2, meaning for every 1 unit you move right, you move 2 units up.

Parallel Lines

Parallel lines never meet and always have the same steepness. Rule: If Line 1 is parallel to Line 2, then m1=m2m_1 = m_2.

Perpendicular Lines

Perpendicular lines intersect at a 9090^\circ angle. Rule: The product of their gradients is 1-1. m1×m2=1m_1 \times m_2 = -1

💡 The Negative Reciprocal

To find a perpendicular gradient, flip the fraction and swap the sign.

  • If m=23m = \frac{2}{3}, then m=32m_{\perp} = -\frac{3}{2}.
  • If m=4m = 4, then m=14m_{\perp} = -\frac{1}{4}.

4. The Equation of a Line

There are two main ways to write the equation of a straight line in O-Level Math.

A. Slope-Intercept Form

y=mx+cy = mx + c

  • mm = gradient
  • cc = y-intercept (where the line cuts the y-axis)

This is often faster when you know one point (x1,y1)(x_1, y_1) and the gradient mm. yy1=m(xx1)y - y_1 = m(x - x_1)

Example: Finding the Equation

Problem:

Find the equation of the line passing through (3,4)(3, 4) with a gradient of 2-2.

Method: Using Point-Gradient Form

y4=2(x3)y - 4 = -2(x - 3)

y4=2x+6y - 4 = -2x + 6

y=2x+10y = -2x + 10


Summary of Formulas

ConceptFormula
Distanced=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
MidpointM=(x1+x22,y1+y22)M = (\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2})
Gradientm=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}
Parallelm1=m2m_1 = m_2
Perpendicularm1×m2=1m_1 \times m_2 = -1
Line Eqnyy1=m(xx1)y - y_1 = m(x - x_1)

Master Geometry with AI

Practice thousands of coordinate geometry questions, from basic points to complex area problems, with instant step-by-step help.

Start Practicing Now →

Topics covered:

coordinate geometry o-level math distance formula midpoint formula gradient formula equation of line negative reciprocal perpendicular lines parallel lines

Want personalized AI tutoring?

Get step-by-step help with practice problems and instant feedback.

Sign up for free