In short

A circle is the set of all points at a fixed distance r (the radius) from a fixed point (h, k) (the centre). In coordinates, this becomes (x - h)^2 + (y - k)^2 = r^2 — the standard form. Expanding it gives the general form x^2 + y^2 + 2gx + 2fy + c = 0, where the centre is (-g, -f) and the radius is \sqrt{g^2 + f^2 - c}. Converting between the two forms is completing the square — the same trick that cracks quadratic equations.

Stand at the centre of a cricket pitch. Tie one end of a rope to the stumps, hold the other end, and walk until the rope is taut. Now walk in any direction you like — north, southeast, west-southwest — keeping the rope taut the whole time. The path your feet trace is a circle.

That is the geometric definition, and it is as old as civilisation. Indian mathematicians knew it well: Aryabhata, writing in the 5th century, computed \pi to four decimal places by studying exactly this shape. The Sulba Sutras, centuries earlier, gave constructions for circles inscribed in squares and squares inscribed in circles.

But the geometric definition — "all points equidistant from a centre" — doesn't, by itself, let you compute anything. You can draw a circle with a compass, but you can't easily answer questions like: Does the point (5, 1) lie inside, on, or outside this circle? Where does a given line cut through it? For that, you need an equation.

The equation of a circle is one of the cleanest objects in coordinate geometry. It comes directly from the definition, using nothing more than the distance formula, and it takes two forms — one built for understanding, one that falls out of exam problems. This article derives both from scratch and shows you how to move between them. By the end, you will be able to look at any circle equation — however messy it appears — and immediately read off the centre, the radius, and everything you need for the problems that come next.

From definition to equation

A circle has a centre C = (h, k) and a radius r > 0. A point P = (x, y) lies on the circle if and only if the distance from P to C equals r.

By the distance formula:

\sqrt{(x - h)^2 + (y - k)^2} = r

Square both sides to remove the square root:

(x - h)^2 + (y - k)^2 = r^2

Why: squaring is safe here because both sides are non-negative. No information is lost.

That is the entire derivation. The equation says exactly what the definition says: the squared distance from (x, y) to (h, k) equals r^2. Every point satisfying this equation is on the circle; every point that doesn't, isn't.

Standard form of a circle

The equation of a circle with centre (h, k) and radius r is

(x - h)^2 + (y - k)^2 = r^2

This is called the standard form (or centre-radius form). The centre and radius are visible by inspection: h and k are the numbers being subtracted from x and y, and r is the positive square root of the number on the right.

Special case: centre at the origin

When the centre is the origin (0, 0), the equation simplifies to

x^2 + y^2 = r^2

This is the simplest circle equation. A circle of radius 5 centred at the origin is x^2 + y^2 = 25. You can verify: the point (3, 4) lies on it because 9 + 16 = 25, and so does (0, 5) because 0 + 25 = 25, and so does (-5, 0) because 25 + 0 = 25.

The circle $x^2 + y^2 = 25$: centre at the origin, radius 5. Every marked point satisfies the equation — each is exactly 5 units from the origin.

A circle with centre away from the origin

Take a circle with centre (2, 3) and radius 4. Its equation is

(x - 2)^2 + (y - 3)^2 = 16

The point (6, 3) lies on it: (6 - 2)^2 + (3 - 3)^2 = 16 + 0 = 16. So does (2, 7): (2 - 2)^2 + (7 - 3)^2 = 0 + 16 = 16. These are the points directly to the right of and directly above the centre, each at distance 4.

The circle $(x - 2)^2 + (y - 3)^2 = 16$: centre at $(2, 3)$, radius $4$. The four marked points on the circle are the endpoints of the horizontal and vertical diameters.

Reading the equation

The standard form is designed so that you can read the centre and radius at a glance:

A common slip: the equation (x + 1)^2 + (y - 5)^2 = 9. The centre is (-1, 5), not (1, 5). The sign flips because x + 1 = x - (-1).

The circle $(x + 1)^2 + (y - 5)^2 = 9$: centre at $(-1, 5)$, radius $3$. The "$+1$" inside the bracket means $x - (-1)$, so the $x$-coordinate of the centre is $-1$, not $+1$. The sign in the bracket is always opposite to the coordinate.

The general form

The standard form is clean, but it is not what you usually encounter in problems. Expand (x - 2)^2 + (y - 3)^2 = 16:

x^2 - 4x + 4 + y^2 - 6y + 9 = 16

Collect everything on the left:

x^2 + y^2 - 4x - 6y - 3 = 0

This is the general form — it looks like a generic second-degree equation with no xy term and equal coefficients on x^2 and y^2 (both are 1).

The general pattern, for any circle, is:

General form of a circle

Any circle can be written as

x^2 + y^2 + 2gx + 2fy + c = 0

where the centre is (-g, -f) and the radius is \sqrt{g^2 + f^2 - c}, provided g^2 + f^2 - c > 0.

The letters g, f, c are traditional — they come from the general second-degree equation ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0, which in the circle case has a = b = 1 and h = 0.

Why the centre is (-g, -f)

Start from the general form and complete the square to recover the standard form. This derivation is the key conversion tool.

Take x^2 + y^2 + 2gx + 2fy + c = 0.

Completing the square in x:

x^2 + 2gx = (x + g)^2 - g^2

Why: to complete the square for x^2 + 2gx, take half the coefficient of x — that's g — and add and subtract g^2. This is the same geometric trick from the quadratic-formula derivation: the missing corner of the square is (g)^2.

Completing the square in y:

y^2 + 2fy = (y + f)^2 - f^2

Substituting back:

(x + g)^2 - g^2 + (y + f)^2 - f^2 + c = 0
(x + g)^2 + (y + f)^2 = g^2 + f^2 - c

This is now in standard form (x - h)^2 + (y - k)^2 = r^2, with:

The signs flip because (x + g) = (x - (-g)). And the expression g^2 + f^2 - c must be positive for the equation to represent a real circle with a positive radius. If g^2 + f^2 - c = 0, the "circle" degenerates to a single point (the centre). If g^2 + f^2 - c < 0, no real points satisfy the equation at all — it is an imaginary circle.

Matching the coefficients

When a problem gives you x^2 + y^2 - 4x - 6y - 3 = 0, compare with x^2 + y^2 + 2gx + 2fy + c = 0:

Centre = (-g, -f) = (2, 3) and r = \sqrt{g^2 + f^2 - c} = \sqrt{4 + 9 + 3} = \sqrt{16} = 4.

That recovers exactly the circle you started with: centre (2, 3), radius 4. The two forms describe the same circle, just wearing different clothes.

Worked examples

Example 1: From general form to centre and radius

Find the centre and radius of the circle x^2 + y^2 + 6x - 8y + 9 = 0.

Step 1. Group the x-terms and y-terms, and move the constant to the right side.

(x^2 + 6x) + (y^2 - 8y) = -9

Why: completing the square works on x-terms and y-terms separately. Isolating them makes the next step cleaner.

Step 2. Complete the square in x. Half of 6 is 3; add 3^2 = 9 to both sides.

(x^2 + 6x + 9) + (y^2 - 8y) = -9 + 9
(x + 3)^2 + (y^2 - 8y) = 0

Why: x^2 + 6x + 9 = (x + 3)^2. The right side absorbed the same +9 to keep the equation balanced.

Step 3. Complete the square in y. Half of -8 is -4; add (-4)^2 = 16 to both sides.

(x + 3)^2 + (y^2 - 8y + 16) = 0 + 16
(x + 3)^2 + (y - 4)^2 = 16

Why: y^2 - 8y + 16 = (y - 4)^2. Again, the right side absorbs the same +16.

Step 4. Read off the centre and radius.

Centre = (-3, 4), radius = \sqrt{16} = 4.

Why: comparing (x + 3)^2 + (y - 4)^2 = 16 with (x - h)^2 + (y - k)^2 = r^2 gives h = -3, k = 4, r = 4.

Result: Centre (-3, 4), radius 4.

The circle $x^2 + y^2 + 6x - 8y + 9 = 0$, rewritten as $(x + 3)^2 + (y - 4)^2 = 16$. Centre at $(-3, 4)$, radius $4$. The four cardinal points of the circle — each exactly 4 units from the centre along the axes — all satisfy the original equation.

Verify: plug (1, 4) into the original equation. 1 + 16 + 6 - 32 + 9 = 0. It checks out. The general form and the standard form both accept the same set of points.

Example 2: Writing the equation from geometric data

A circle has a diameter with endpoints A = (1, 2) and B = (5, 6). Find its equation.

Step 1. Find the centre. The centre of a circle is the midpoint of any diameter.

h = \frac{1 + 5}{2} = 3, \quad k = \frac{2 + 6}{2} = 4

Centre = (3, 4).

Why: the midpoint formula gives the point exactly halfway between the two endpoints. The centre of a circle is always the midpoint of a diameter.

Step 2. Find the radius. The radius is half the length of the diameter, or equivalently, the distance from the centre to either endpoint.

r = \sqrt{(3 - 1)^2 + (4 - 2)^2} = \sqrt{4 + 4} = \sqrt{8} = 2\sqrt{2}

Why: using the distance formula from the centre (3, 4) to the endpoint A(1, 2).

Step 3. Write the standard form.

(x - 3)^2 + (y - 4)^2 = 8

Why: r^2 = (2\sqrt{2})^2 = 8. The standard form just slots in the centre and r^2.

Step 4. Expand to general form (if required).

x^2 - 6x + 9 + y^2 - 8y + 16 = 8
x^2 + y^2 - 6x - 8y + 17 = 0

Why: expanding the squares and collecting everything on the left gives the general form. Many textbook answers and exam marking schemes expect this form.

Result: (x - 3)^2 + (y - 4)^2 = 8, or equivalently x^2 + y^2 - 6x - 8y + 17 = 0.

The circle with diameter $AB$. The centre $C(3, 4)$ is the midpoint of $AB$, and the radius $2\sqrt{2} \approx 2.83$ is the distance from $C$ to either endpoint. The diameter segment passes through the centre — which is the defining property of a diameter.

The picture confirms the algebra: the circle passes through both A and B, the diameter cuts straight through the centre, and the radius is visibly shorter than the diameter by a factor of 2.

Common confusions

A few traps that catch students reliably.

Going deeper

If you came here to learn how to write circle equations and convert between the two forms, you have it — you can stop here. The rest is for readers who want the degenerate cases, the condition for a general second-degree equation to represent a circle, and the connection to the geometric idea of a locus.

When is a second-degree equation a circle?

The most general second-degree equation in x and y is

ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0

This equation represents a circle when three conditions are met:

  1. a = b — the coefficients of x^2 and y^2 are equal.
  2. h = 0 — there is no xy term.
  3. g^2 + f^2 - ac > 0 — the radius is real and positive (after dividing by a to make the leading coefficient 1).

Conditions 1 and 2 together guarantee that the equation treats x and y symmetrically — which is exactly what a circle does (it looks the same in every direction from its centre). If a \neq b, the shape is stretched more in one direction than the other, giving an ellipse. If h \neq 0, the shape is rotated, which a circle (being perfectly symmetric) would never need.

The circle as a locus

In the language of locus, a circle is the locus of a point that moves so that its distance from a fixed point remains constant. The "fixed point" is the centre; the "constant" is the radius.

This phrasing is not just an alternative way of saying the same thing — it is a method. Many exam problems say "Find the locus of a point P such that..." and the answer turns out to be a circle. The way you solve such problems is:

  1. Let P = (x, y).
  2. Translate the geometric condition into an equation involving x and y.
  3. Simplify. If the equation takes the form (x - h)^2 + (y - k)^2 = r^2, or equivalently x^2 + y^2 + 2gx + 2fy + c = 0 with g^2 + f^2 - c > 0, the locus is a circle.

For instance: find the locus of a point P such that PA^2 + PB^2 = k, where A = (1, 0) and B = (-1, 0) and k is a positive constant.

Let P = (x, y). Then:

PA^2 = (x - 1)^2 + y^2, \quad PB^2 = (x + 1)^2 + y^2
PA^2 + PB^2 = (x^2 - 2x + 1 + y^2) + (x^2 + 2x + 1 + y^2) = 2x^2 + 2y^2 + 2

Setting this equal to k:

2x^2 + 2y^2 + 2 = k
x^2 + y^2 = \frac{k - 2}{2}

This is a circle centred at the origin with radius \sqrt{(k - 2)/2}, provided k > 2. If k = 2, the locus is just the origin. If k < 2, no such point exists.

Concentric circles

Two circles are concentric if they share the same centre but have different radii. Their equations are (x - h)^2 + (y - k)^2 = r_1^2 and (x - h)^2 + (y - k)^2 = r_2^2. In general form, they differ only in the constant term c — the g and f are the same (since the centre is the same).

Three concentric circles with centre $(1, 1)$ and radii $2$, $3$, and $4$. They share the same centre but expand outward — like ripples from a stone dropped in a pond.

The equation of any circle concentric with x^2 + y^2 + 2gx + 2fy + c = 0 can be written as x^2 + y^2 + 2gx + 2fy + c' = 0 for some different constant c'. This is useful when a problem says "find the circle concentric with a given circle that passes through a given point" — you keep g and f, solve for c' using the point.

Historical note

The circle has been studied longer than almost any other curve. The ratio of a circle's circumference to its diameter — the number \pi — has fascinated mathematicians across every civilisation. Aryabhata (499 CE) gave \pi \approx 3.1416 and stated that it was "approximate" (asanna), recognising implicitly that \pi is irrational. Madhava of Sangamagrama (14th century) computed \pi to 11 decimal places using infinite series — work that predated similar European results by two centuries. Bhaskara II, in the 12th century, used properties of circles extensively in the Lilavati, including methods for computing chord lengths and arc lengths that anticipated coordinate-geometric ideas.

The equation of a circle in coordinate form, though, is a product of the coordinate-geometry revolution. Once Descartes and others established that curves could be described by equations, the circle — the simplest closed curve — was naturally the first to be written down. Its equation is the foundation on which all of conic-section geometry rests.

Where this leads next

You now know how to write the equation of a circle and convert between its two forms. The next articles build on this in several directions.