Edexcel A-level Mathematics · P · Pure mathematics
P3 Coordinate geometry
Find the equation of a line, use the distance and midpoint formulae, and write and read the equation of a circle.
1/5A line is fixed by its gradient and a point
Part 1 of 5: A line is fixed by its gradient and a point
A road that rises 1 metre for every 4 metres along has a steady slope. The gradient of a line measures this slope. For points and , it is .
A line can be written as . Here is the y-intercept, where the line crosses the y-axis. If you know one point and the gradient, use .
Horizontal lines have gradient 0 and the equation . Vertical lines have no defined gradient and the equation . Given two points, always find the gradient first.
Worked example
Line through two points
- Gradient: .
- Use with the point : .
- Expand: .
Answer: .
Key terms · tap one for its definition
gradient
The gradient of a line is the change in divided by the change in between any two points on it.
y-intercept
The y-intercept of a graph is the -coordinate of the point where it crosses the y-axis.
Part 2 of 5: Gradients show when lines are parallel or perpendicular
Two lines with the same gradient keep the same distance apart and never meet. They are parallel. Lines that cross at a right angle are perpendicular, and their gradients multiply to give -1.
So if one line has gradient , a perpendicular line has gradient . This is the negative reciprocal of . For , the perpendicular gradient is .
Worked example
Perpendicular line through a point
- The given gradient is 2, so the perpendicular gradient is .
- Use .
- Multiply by 2: .
- Rearrange so that one side is zero: .
Answer: .
Key terms · tap one for its definition
parallel
Parallel lines are lines in the same plane that have equal gradients and never meet.
perpendicular
Perpendicular lines are lines that meet at a right angle, so their gradients multiply to -1.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 3 of 5: The distance formula comes from Pythagoras’ theorem
Now consider the length between two points, which is needed in many geometry problems. Join them with a line segment, then draw a right-angled triangle with sides along the axes. The horizontal side has length and the vertical side has length .
Pythagoras’ theorem then gives the distance: . Squaring removes any negative sign, so it does not matter which point you name first.
Worked example
Length of a segment
- Horizontal change: . Vertical change: .
- .
- .
Answer: units.
Key term
line segment
A line segment is the part of a straight line that lies between two endpoints.
Part 4 of 5: The midpoint averages the coordinates of two points
Halfway between two points, each coordinate is the average of the endpoints’ coordinates. This point is the midpoint of the segment. For endpoints and , it is .
A line through the midpoint at right angles to the segment is its perpendicular bisector. It combines the midpoint with a perpendicular gradient.
The midpoint formula also finds a missing endpoint. If you know the midpoint and one endpoint, double each coordinate of the midpoint. Then subtract the matching coordinate of the endpoint.
Worked example
A perpendicular bisector
- Midpoint: .
- Gradient of : , so the perpendicular gradient is .
- Use , so .
- Rearrange: .
Answer: .
Key terms · tap one for its definition
midpoint
The midpoint of a line segment is the point exactly halfway between its two endpoints.
perpendicular bisector
A perpendicular bisector of a line segment is the line that passes through its midpoint at right angles.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 5 of 5: A circle is every point a fixed distance from its centre
Apply the distance formula with a fixed distance, and a circle appears. A circle is the set of points at a fixed distance, the radius, from its centre.
Let the centre be and the radius be . Every point on the circle satisfies . The signs inside the brackets are opposite to the centre’s coordinates. A circle centred at the origin has the simpler equation .
Expanded forms such as hide the centre. Completing the square in and in brings it into view.
Worked example
Centre and radius from an expanded equation
- Group the terms: .
- Complete the square in each variable: .
- Rearrange: .
Answer: The centre is and the radius is 3.
Key terms · tap one for its definition
circle
A circle is the set of all points in a plane at a fixed distance from a fixed centre.
radius
The radius of a circle is the fixed distance from its centre to any point on it.
Check your recall[14 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Determine[3 marks]
Determine, in the form , the equation of the line through and .
Show mark schemeHide mark scheme
Model answer
The gradient is . Then , so .
- 1 mark for finding the gradient 3
- 1 mark for using with one of the points
- 1 mark for giving
- 2.State[1 mark]
State the gradient of a line perpendicular to .
Show mark schemeHide mark scheme
Model answer
The gradient is .
- 1 mark for stating
- 3.Calculate[3 marks]
Calculate the distance between the points and .
Show mark schemeHide mark scheme
Model answer
The differences are 5 and 12. So units.
- 1 mark for finding the differences 5 and 12
- 1 mark for using or
- 1 mark for giving 13 units
- 4.Calculate[2 marks]
Calculate the coordinates of the midpoint of and .
Show mark schemeHide mark scheme
Model answer
.
- 1 mark for averaging the -coordinates and the -coordinates
- 1 mark for giving
- 5.Determine[3 marks]
Determine the centre and radius of the circle .
Show mark schemeHide mark scheme
Model answer
The centre is because the signs inside the brackets are reversed. The radius is .
- 1 mark for giving the -coordinate -1
- 1 mark for giving the -coordinate 3
- 1 mark for giving the radius 4
- 6.Show[2 marks]
Show that the point lies on the circle .
Show mark schemeHide mark scheme
Model answer
Substitute and : . This equals the right-hand side, so the point lies on the circle.
- 1 mark for substituting and to get
- 1 mark for showing that this equals 9 and concluding

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: C · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation