Maths dictionary

Coordinate geometry: lines, distances and circles

By Viktor Lassen5 min readUpdated 3 September 2026

Coordinate geometry is about describing figures like lines and circles with equations and coordinates. Here is the line through a point with a given gradient, the distance and midpoint between two points, parallel and perpendicular lines, and the equation of a circle.

Coordinate geometry is really about how we can describe geometric figures in a coordinate system. So: how do we describe things like circles and lines with equations and coordinates? Things get a lot easier once we have a precise description of their properties, and that's exactly what an equation gives us. If we can describe a circle with an equation, we know exactly how big it is, where it sits and what its radius is. All the information we need about a figure, we can put into an equation for that figure.

A lot of what you learn in coordinate geometry is just a collection of useful formulas. Here we'll also look at where most of the formulas come from, because they're a lot easier to trust once you've seen that.

The equation of a line through a point

We're used to describing a straight line with the equation of a linear function, y=mx+cy = mx + c. Now we're going to learn another way to describe a line. There are actually several, but what they all have in common is that they describe a line. They just do it using different information. That's why we have more than one: so we can describe the line whichever information we happen to have.

The first one comes from the gradient formula and looks like this:

y=y0+m(xโˆ’x0)y = y_0 + m(x - x_0)

Here the line is described with the help of two points. One point has the coordinates (x0,y0)(x_0, y_0). That's a point we actually have. It could be (4,6)(4, 6), say. The other point, (x,y)(x, y), is not a point we have. We call it a running point. That just means it could be any point at all on the line, we just don't get told which one.

So to describe a line with this equation, we need the gradient mm and one point on the line. Let's take an example. If we have a line with gradient 44 and the point (2,3)(2, 3), we can set up the equation:

y=3+4ร—(xโˆ’2)y = 3 + 4 \times (x - 2)

We can actually simplify a bit by multiplying into the bracket:

y=3+4xโˆ’8y = 3 + 4x - 8

And simplify a bit more by adding the numbers together:

y=4xโˆ’5y = 4x - 5

So we actually end up with a linear function, just as we're used to.

The line with gradient 4 through the point (2, 3). The point (x, y) is a running point: any point on the line

In my Danish notes the gradient is called aa. In the UK we call it mm. It's the same number.

Why does the equation look like that?

Let's look at where it comes from. We start with the gradient formula that we know from straight lines:

m=yโˆ’y0xโˆ’x0m = \frac{y - y_0}{x - x_0}

If we multiply the denominator across, so we multiply (xโˆ’x0)(x - x_0) over to the other side of the equals sign, we get

mร—(xโˆ’x0)=yโˆ’y0m \times (x - x_0) = y - y_0

Remember that it's the whole denominator we multiply across, which is why the brackets appear. Now we add y0y_0 over to the other side:

y0+mร—(xโˆ’x0)=yy_0 + m \times (x - x_0) = y

As you can see, it's actually just a rewrite of the gradient formula. There's only one small difference. The gradient formula has two points in it, but here (x,y)(x, y) isn't a point we actually have. It's the running point, which means it can be any point that lies on the line.

Distance and midpoint between two points

When we have two points in a coordinate system, we can find the distance between them. We write the distance between AA and BB with two vertical bars, โˆฃABโˆฃ|AB|, meaning the length of the line segment from AA to BB:

โˆฃABโˆฃ=(x2โˆ’x1)2+(y2โˆ’y1)2|AB| = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

You might already see that this looks a lot like Pythagoras' theorem, and that's because it comes straight from it. We can also find the point exactly halfway between AA and BB, the midpoint, by taking a kind of average of the two x-coordinates and of the two y-coordinates:

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

Both formulas, with worked examples and the Pythagoras picture behind the distance formula, are in the guide midpoint and distance between two points.

Parallel and perpendicular lines

The gradient mm tells us how much we go up the y-axis when we go 11 along the x-axis. So two lines that go in the same direction must have the same gradient. Those are parallel lines. Lines that cross at a right angle are called perpendicular lines (the books use the smart word orthogonal, which just means right-angled), and for those there's a rule: the product of their gradients is โˆ’1-1,

m1ร—m2=โˆ’1m_1 \times m_2 = -1

The guide parallel and perpendicular lines shows how to use both.

The equation of a circle

A circle can also be described with an equation. When we draw a circle in a coordinate system, there are three important things: the centre of the circle, the radius, and a point on the circle itself. With the centre at (a,b)(a, b) and radius rr, the equation is

(xโˆ’a)2+(yโˆ’b)2=r2(x - a)^2 + (y - b)^2 = r^2

Again (x,y)(x, y) is a running point, any point on the circle. What the equation really says is that every point on the circle is the same distance rr from the centre. At GCSE the centre sits at the origin, and then the equation is simply x2+y2=r2x^2 + y^2 = r^2. The guide the equation of a circle goes through where it comes from and how to read the centre and radius off an equation.

Common misunderstandings

  • "The (x,y)(x, y) in the equation is one particular point." No. (x,y)(x, y) is the running point: any point on the line or circle. The point we actually know is the one with the little zeros, (x0,y0)(x_0, y_0), or the centre (a,b)(a, b) for a circle.
  • "A line's equation always has to start with y=y =." Not necessarily. y=y0+m(xโˆ’x0)y = y_0 + m(x - x_0) describes the line using a point and a gradient, and you only get to y=4xโˆ’5y = 4x - 5 after simplifying. Several forms, one line.
  • "These formulas are just things to memorise." They come from things you already know. The line equation is the gradient formula rewritten, and both the distance formula and the circle equation are Pythagoras' theorem in a coordinate system.

Guides on this topic

Frequently asked questions

Read next

Want to get good at maths?

Mathara explains every topic step by step with videos, exercises and personal feedback.

๐Ÿ‘‰ Get started for free