Equation of a circle
Every point on a circle is the same distance from its centre. Writing that sentence with the distance formula gives the equation of a circle, (x − h)² + (y − k)² = r², where (h, k) is the centre and r is the radius.
The standard form
A point (x, y) is on the circle when its distance from the centre (h, k) is r. The distance formula says that distance is √((x − h)² + (y − k)²). Setting it equal to r and squaring both sides gives the equation above. The circle centred at the origin is the special case x² + y² = r².
As with vertex form, the signs inside the brackets are flipped: (x + 2)² + (y − 3)² = 16 has centre (−2, 3) and radius 4, the square root of 16, not 16.
From the general form
Expanded, a circle’s equation looks like x² + y² + Dx + Ey + F = 0. To find the centre and radius, complete the square in x and in y. Take x² + y² − 6x + 4y − 12 = 0:
- Group the x terms and the y terms: (x² − 6x) + (y² + 4y) = 12.
- Complete each square by adding (half the coefficient)² to both sides: (x² − 6x + 9) + (y² + 4y + 4) = 12 + 9 + 4.
- Factor: (x − 3)² + (y + 2)² = 25.
The centre is (3, −2) and the radius is 5. In general the centre is (−D/2, −E/2) and r² = D²/4 + E²/4 − F. If that last number is zero the “circle” is a single point, and if it is negative there are no points at all.
Graphing a circle by hand
- Plot the centre (h, k).
- From the centre, count r units right, left, up and down and mark those four points.
- Join them with a round curve, or use a compass set to radius r.
Why a circle is not a function
Solving x² + y² = 9 for y gives y = ±√(9 − x²): two values for most x, the top and bottom semicircles. A function can only have one y for each x, so a whole circle fails the vertical line test. Many calculators make you type the two halves separately. Here you can type the equation exactly as it is, x^2 + y^2 = 9, and it is drawn as an implicit curve.
Related equations
- Parametric form: (h + r cos t, k + r sin t) for 0 ≤ t ≤ 2π traces the circle once.
- Polar form: r = 2a cos θ is a circle of radius a through the origin, centred at (a, 0).
- Inequalities: (x − h)² + (y − k)² < r² is the disc inside the circle.
- Ellipses: dividing by different amounts, x²/a² + y²/b² = 1, stretches the circle into an ellipse.
Practice
A new problem every time. Answer in any form you like: fractions, decimals, √ and π all work, and equivalent equations count as right.
Write the equation of the circle with centre (4, −3) and radius 5.
Show the answer
Answer: (x − 4)² + (y + 3)² = 25
- A circle with centre (h, k) and radius r is (x − h)² + (y − k)² = r².
- Here h = 4, k = −3 and r² = 5² = 25.
- Subtracting a negative number gives a plus sign: x − (−2) = x + 2.
- So (x − 4)² + (y + 3)² = 25.
Frequently asked questions
What is the equation of a circle?
How do I find the centre and radius from the equation?
What is the equation of a circle centred at the origin?
Is a circle a function?
How do I graph a circle in the calculator?
Keep going
Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.