Coordinate geometry: formulas
Try questions on this topic ▶Distance between two points
d = √((x2 − x1)2 + (y2 − y1)2)
- (x1, y1), (x2, y2)
- the two points
- d
- distance between them · units
When a question asks for the distance or length between two points, or gives it and asks for a coordinate.
Midpoint of a line segment
M = ((x1 + x2)/2, (y1 + y2)/2)
- (x1, y1), (x2, y2)
- the end points
- M
- the midpoint
When a question asks for the midpoint (or centre of a circle from a diameter), or gives it and asks for an end point.
Gradient of a line through two points
m = (y2 − y1) ÷ (x2 − x1)
Also: A vertical line (x1 = x2) has an undefined gradient · A horizontal line has gradient 0
- m
- gradient (slope)
- (x1, y1), (x2, y2)
- two points on the line
When a question asks for the gradient of the line through two points, or gives the gradient and asks for a coordinate.
Equation of a straight line
y = mx + c
Also: y − y1 = m(x − x1) · For ax + by + k = 0: gradient = −a/b, y-intercept = −k/b
- m
- gradient
- c
- y-intercept (where the line cuts the y-axis)
- (x1, y1)
- a point on the line
When a question asks for the equation, gradient or intercept of a line, or whether a point lies on it.
Parallel and perpendicular lines
Parallel lines: m1 = m2
Also: Perpendicular lines: m1 × m2 = −1
- m1, m2
- gradients of the two lines
When a question says two lines are parallel or perpendicular.
Point where two lines meet
Solve the two line equations simultaneously; the solution (x, y) is the point of intersection
- (x, y)
- the point of intersection
When two lines meet (intersect) and you need the meeting point.
Equation of a circle
(x − a)2 + (y − b)2 = r2
Also: x2 + y2 + 2gx + 2fy + c = 0 has centre (−g, −f) and radius √(g2 + f2 − c)
- (a, b)
- centre
- r
- radius
When a question gives the equation of a circle, or its centre and radius.