Skip to content
ihateDesmos

Equation of a circle

6 min read · Updated 20 October 2026

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

(x−h)2+(y−k)2=r2

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.

−8−6−4−2246−4−2240
Open in calculator
The circle
(x+2)2+(y−3)2=16
with centre (−2, 3) and radius 4, and
x2+y2=9
, radius 3 about the origin.

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:

  1. Group the x terms and the y terms: (x² − 6x) + (y² + 4y) = 12.
  2. Complete each square by adding (half the coefficient)² to both sides: (x² − 6x + 9) + (y² + 4y + 4) = 12 + 9 + 4.
  3. 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

  1. Plot the centre (h, k).
  2. From the centre, count r units right, left, up and down and mark those four points.
  3. 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.

Problem 1

Write the equation of the circle with centre (4, −3) and radius 5.

Show the answer

Answer: (x − 4)² + (y + 3)² = 25

  1. A circle with centre (h, k) and radius r is (x − h)² + (y − k)² = r².
  2. Here h = 4, k = −3 and r² = 5² = 25.
  3. Subtracting a negative number gives a plus sign: x − (−2) = x + 2.
  4. So (x − 4)² + (y + 3)² = 25.
Open in the calculator

Frequently asked questions

What is the equation of a circle?
(x − h)² + (y − k)² = r², where (h, k) is the centre and r is the radius.
How do I find the centre and radius from the equation?
If it is in standard form, read them off, remembering the sign flip: (x + 2)² means h = −2. If it is expanded, complete the square in x and in y first.
What is the equation of a circle centred at the origin?
x² + y² = r².
Is a circle a function?
No. Most vertical lines cross a circle twice, so it fails the vertical line test. Each half, y = k ± √(r² − (x − h)²), is a function.
How do I graph a circle in the calculator?
Type the equation exactly as written, for example (x - 3)^2 + (y + 2)^2 = 25. There is no need to solve for y.

Keep going

Try it in the calculator

Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.

Open the calculator