Geometry

Equation of a Circle: Formula, Examples and Steps

The equation of a circle with center (h,k)(h,k) and radius rr is (x−h)2+(y−k)2=r2(x-h)^2+(y-k)^2=r^2. Read the center from the numbers inside the brackets (with the signs flipped) and the radius from the square root of the right side.

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

Try it with your numbers

Show every step

The formula is short, but most lost points come from three small things: the sign flip, forgetting to square the radius, and equations that arrive expanded. Each one has a clean fix, and all three are covered below.

Where the equation of a circle comes from

A circle is every point at one fixed distance rr from a center. The distance from a point (x,y)(x,y) to the center (h,k)(h,k) is (x−h)2+(y−k)2\sqrt{(x-h)^2+(y-k)^2}, so the whole definition is

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

Square both sides to remove the root and the standard form appears. Underneath, this is just the Pythagorean theorem: draw a right triangle from the center to (x,y)(x,y) with horizontal leg x−hx-h, vertical leg y−ky-k, and hypotenuse rr.

Squaring does two useful jobs. It removes the root, and it makes the signs irrelevant, so a point to the left of the center (where x−hx-h is negative) works exactly like a point to the right. The right side is r2r^2, not rr, and that single detail is behind a large share of wrong answers.

The other clean idea is shifting. The circle x2+y2=r2x^2+y^2=r^2 sits at the origin. Replacing xx with x−hx-h slides it hh units right, and replacing yy with y−ky-k slides it kk units up. That is a translation of the whole graph, and the radius never changes.

Quick check

A circle has center (3,0)(3,0) and passes through (7,3)(7,3). What is r2r^2?

How to write the equation of a circle from a center and radius

You need exactly two facts: the center and the radius. Put hh and kk into the brackets, square the radius on the right, and stop. Do not expand unless the problem asks for general form.

With negative coordinates, flip the sign of the center and write it as a subtraction first, then simplify. The table shows the pattern, including a fractional center.

Center (h,k)(h,k) Equation (left side)
(3,5)(3,5) (x−3)2+(y−5)2(x-3)^2+(y-5)^2
(−3,5)(-3,5) (x+3)2+(y−5)2(x+3)^2+(y-5)^2
(0,−2)(0,-2) x2+(y+2)2x^2+(y+2)^2
(12,−14)\left(\tfrac12,-\tfrac14\right) (x−12)2+(y+14)2\left(x-\tfrac12\right)^2+\left(y+\tfrac14\right)^2
The zero test for signs

A bracket must equal zero at the center's coordinate. (x+4)(x+4) is zero when x=−4x=-4, so it belongs to a circle whose center has h=−4h=-4.

Problems often hide the radius. If you are given a diameter, halve it first (the parts of a circle are easy to mix up under pressure). If the radius is 7\sqrt{7}, then r2=7r^2=7, not 4949.

Example. Write the equation of the circle with center (−4,7)(-4,7) and diameter 1010.

The radius is 10÷2=510\div 2=5, so r2=25r^2=25. The center gives x−(−4)=x+4x-(-4)=x+4 and y−7y-7. Therefore

(x+4)2+(y−7)2=25.(x+4)^2+(y-7)^2=25.

A circle centered at the origin drops both subtractions and becomes x2+y2=r2x^2+y^2=r^2.

How do you find the center and radius from the equation?

Reverse the process. Whatever is subtracted inside each bracket is the center coordinate, and the square root of the right side is the radius. If a bracket looks like (x+3)(x+3), rewrite it as (x−(−3))(x-(-3)) and the center coordinate is −3-3.

Example. Find the center and radius of (x+3)2+(y−12)2=94(x+3)^2+\left(y-\tfrac12\right)^2=\tfrac94.

Here h=−3h=-3 and k=12k=\tfrac12. The right side is r2=94r^2=\tfrac94, so r=94=32r=\sqrt{\tfrac94}=\tfrac32. The center is (−3,12)\left(-3,\tfrac12\right) and the radius is 32\tfrac32.

A missing term means a zero coordinate. In x2+(y−3)2=7x^2+(y-3)^2=7 there is no xx bracket, so h=0h=0, the center is (0,3)(0,3), and r=7≈2.65r=\sqrt7\approx 2.65. The trap is reading the right side as the radius: in (x−1)2+(y−2)2=16(x-1)^2+(y-2)^2=16 the radius is 44, not 1616.

Once you have rr, everything else about the circle follows: the circumference is 2πr2\pi r and the area is πr2\pi r^2. Notice that area uses r2r^2, which is already sitting on the right side of the equation, so an equation ending in =25=25 has area 25π25\pi with no square root needed.

Try this: Without a calculator, sketch (x+2)2+(y−1)2=9(x+2)^2+(y-1)^2=9. Plot the center, mark the points 33 units left, right, up and down, then connect them with a smooth curve.

Equation of a circle in general form and completing the square

Expand (x−h)2+(y−k)2=r2(x-h)^2+(y-k)^2=r^2 and collect terms, and you get the general form

x2+y2+Dx+Ey+F=0,x^2+y^2+Dx+Ey+F=0,

where D=−2hD=-2h, E=−2kE=-2k and F=h2+k2−r2F=h^2+k^2-r^2. Expanding hides the center and radius, so exams love handing you this version.

To recover them, complete the square separately for xx and for yy:

  1. Move the constant to the right and group the terms: (x2+Dx)+(y2+Ey)=−F(x^2+Dx)+(y^2+Ey)=-F.
  2. Take half of each linear coefficient and square it.
  3. Add both squares to both sides of the equation.
  4. Factor each group into a perfect square and read off the center and radius.

Example. Find the center and radius of x2+y2−6x+10y+18=0x^2+y^2-6x+10y+18=0.

Group: (x2−6x)+(y2+10y)=−18(x^2-6x)+(y^2+10y)=-18. Half of −6-6 is −3-3, and its square is 99. Half of 1010 is 55, and its square is 2525. Add both to each side:

(x2−6x+9)+(y2+10y+25)=−18+9+25.(x^2-6x+9)+(y^2+10y+25)=-18+9+25.

That factors to (x−3)2+(y+5)2=16(x-3)^2+(y+5)^2=16, so the center is (3,−5)(3,-5) and r=4r=4.

There is a faster mental check. The center is (−D2,−E2)\left(-\tfrac D2,-\tfrac E2\right), which here is (3,−5)\left(3,-5\right), and r2=D24+E24−F=9+25−18=16r^2=\tfrac{D^2}{4}+\tfrac{E^2}{4}-F=9+25-18=16. The shortcut only works when the x2x^2 and y2y^2 coefficients are both 11, and the most common slip is forgetting to subtract FF with its sign.

Quick check

Use the shortcut (−D2,−E2)\left(-\frac{D}{2},-\frac{E}{2}\right) to find the center of x2+y2−10x+4y+4=0x^2+y^2-10x+4y+4=0.

When an equation is not a circle after all

Three panels show one circle equation becoming a circle, a single point, then no graph as the constant grows
With the center fixed at (2, −3), the right side r² = 13 − F decides whether you get a circle, a point or nothing.

Not every equation that resembles a circle draws one. Before completing the square, check three things:

  • The x2x^2 and y2y^2 terms have the same coefficient and the same sign.
  • There is no xyxy term.
  • After completing the square, the right side r2r^2 is positive.

If the coefficients differ, as in 4x2+y2=164x^2+y^2=16, the graph is an ellipse. If they match but are not 11, divide the whole equation by that number first.

Divide before you complete

Completing the square needs a leading coefficient of 11. For 2x2+2y2−8x+12y−8=02x^2+2y^2-8x+12y-8=0, divide every term by 22 first, then proceed.

Example. Find the center and radius of 2x2+2y2−8x+12y−8=02x^2+2y^2-8x+12y-8=0.

Divide by 22: x2+y2−4x+6y−4=0x^2+y^2-4x+6y-4=0. Group and complete: (x2−4x+4)+(y2+6y+9)=4+4+9=17(x^2-4x+4)+(y^2+6y+9)=4+4+9=17. So (x−2)2+(y+3)2=17(x-2)^2+(y+3)^2=17, with center (2,−3)(2,-3) and radius 17≈4.12\sqrt{17}\approx 4.12. The shortcut agrees: r2=4+9−(−4)=17r^2=4+9-(-4)=17.

Now change only the constant. With x2+y2−4x+6y+13=0x^2+y^2-4x+6y+13=0, the right side becomes r2=4+9−13=0r^2=4+9-13=0, and the “circle” is the single point (2,−3)(2,-3). With x2+y2−4x+6y+20=0x^2+y^2-4x+6y+20=0, the right side is 4+9−20=−74+9-20=-7, and no real point satisfies it, because a sum of squares cannot be negative.

Equation of a circle from a diameter or three points

Circle drawn on a grid with diameter endpoints (−2,3) and (6,9) and the endpoint product formula
Plugging the endpoints (−2, 3) and (6, 9) into the product form gives a circle with center (2, 6) and r² = 25.

When a problem gives a diameter, the center is the midpoint of the endpoints, and the radius is the distance from that midpoint to either endpoint.

Example. Find the circle with diameter endpoints (−2,3)(-2,3) and (6,9)(6,9).

The midpoint is (−2+62,3+92)=(2,6)\left(\tfrac{-2+6}{2},\tfrac{3+9}{2}\right)=(2,6). The distance from (2,6)(2,6) to (6,9)(6,9) is 42+32=5\sqrt{4^2+3^2}=5, so r2=25r^2=25 and

(x−2)2+(y−6)2=25.(x-2)^2+(y-6)^2=25.

Check with the other endpoint: (−2−2)2+(3−6)2=16+9=25(-2-2)^2+(3-6)^2=16+9=25.

A faster method skips the midpoint entirely. For endpoints (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2), the circle is (x−x1)(x−x2)+(y−y1)(y−y2)=0(x-x_1)(x-x_2)+(y-y_1)(y-y_2)=0. Here that gives (x+2)(x−6)+(y−3)(y−9)=0(x+2)(x-6)+(y-3)(y-9)=0, which expands to x2+y2−4x−12y+15=0x^2+y^2-4x-12y+15=0. The center is (2,6)(2,6) and r2=4+36−15=25r^2=4+36-15=25, so it matches.

For three points, use the general form, because each point gives one linear equation in DD, EE and FF. Take (0,0)(0,0), (4,0)(4,0) and (0,2)(0,2). The origin gives F=0F=0. Then (4,0)(4,0) gives 16+4D=016+4D=0, so D=−4D=-4, and (0,2)(0,2) gives 4+2E=04+2E=0, so E=−2E=-2. The center is (2,1)(2,1) and r2=4+1−0=5r^2=4+1-0=5, so (x−2)2+(y−1)2=5(x-2)^2+(y-1)^2=5.

One more shortcut: a circle tangent to the x-axis has r=∣k∣r=|k|, and one tangent to the y-axis has r=∣h∣r=|h|. A circle centered at (4,−3)(4,-3) that touches the x-axis has r=3r=3, so (x−4)2+(y+3)2=9(x-4)^2+(y+3)^2=9.

Is a point on, inside, or outside the circle?

The equation doubles as a test. Substitute the point’s coordinates into the left side and compare the result with r2r^2. Equal means on the circle, smaller means inside, and larger means outside.

Example. For the circle (x−1)2+(y+2)2=25(x-1)^2+(y+2)^2=25, classify (4,2)(4,2), (0,0)(0,0) and (5,−6)(5,-6).

  • (4,2)(4,2): 32+42=253^2+4^2=25, so it is on the circle.
  • (0,0)(0,0): (−1)2+22=5(-1)^2+2^2=5, and 5<255<25, so it is inside.
  • (5,−6)(5,-6): 42+(−4)2=324^2+(-4)^2=32, and 32>2532>25, so it is outside.

The comparison never needs a square root, which is why the equation keeps r2r^2 instead of rr. The filled disk is the inequality (x−h)2+(y−k)2≤r2(x-h)^2+(y-k)^2\le r^2.

Points with whole-number coordinates are easy to find when the radius comes from a Pythagorean triple. The circle x2+y2=25x^2+y^2=25 contains (±3,±4)(\pm3,\pm4), (±4,±3)(\pm4,\pm3), (±5,0)(\pm5,0) and (0,±5)(0,\pm5), twelve lattice points in all.

Quick check

Is (2,1)(2,1) inside, on, or outside the circle (x−5)2+(y+3)2=16(x-5)^2+(y+3)^2=16?

Tangent lines and where a line meets a circle

A tangent line touches the circle at one point and is perpendicular to the radius drawn to that point. So the tangent’s slope is the negative reciprocal of the radius slope.

Example. Find the tangent to x2+y2=25x^2+y^2=25 at (3,4)(3,4).

The radius from (0,0)(0,0) to (3,4)(3,4) has slope 43\tfrac43, so the tangent has slope −34-\tfrac34. In point-slope form, y−4=−34(x−3)y-4=-\tfrac34(x-3), which simplifies to 3x+4y=253x+4y=25.

For a circle centered at the origin there is a shortcut worth remembering: the tangent at (x0,y0)(x_0,y_0) is x0x+y0y=r2x_0x+y_0y=r^2. At (3,4)(3,4) that is 3x+4y=253x+4y=25, the same line, and substituting (3,4)(3,4) gives 9+16=259+16=25.

To find where any line crosses a circle, substitute the line into the circle. For y=x+1y=x+1 and x2+y2=25x^2+y^2=25:

x2+(x+1)2=25 ⇒ 2x2+2x−24=0 ⇒ x2+x−12=0.x^2+(x+1)^2=25\ \Rightarrow\ 2x^2+2x-24=0\ \Rightarrow\ x^2+x-12=0.

Factoring gives (x+4)(x−3)=0(x+4)(x-3)=0, so x=−4x=-4 or x=3x=3, and the points are (−4,−3)(-4,-3) and (3,4)(3,4). The result is a quadratic, so two solutions mean a secant, one repeated solution means a tangent, and none means the line misses. If the quadratic does not factor, the quadratic formula finishes the job.

Unit circle, spheres and real uses of the circle equation

The unit circle is x2+y2=1x^2+y^2=1, and every point on it is (cos⁡θ,sin⁡θ)(\cos\theta,\sin\theta). The coordinates of the 45∘45^\circ point, (22,22)\left(\tfrac{\sqrt2}{2},\tfrac{\sqrt2}{2}\right), come straight from a 45-45-90 triangle, and they pass the test: 12+12=1\tfrac12+\tfrac12=1.

Add a third variable and the same idea describes a sphere: (x−a)2+(y−b)2+(z−c)2=r2(x-a)^2+(y-b)^2+(z-c)^2=r^2. That radius is the one inside the volume of a sphere formula. A dilation by a factor kk about the center multiplies rr by kk, so a circle of radius 22 dilated by 33 has r=6r=6 and r2=36r^2=36.

In practice, the equation answers “how far” questions. A cell tower at (2,−1)(2,-1) with an 88-mile range covers every point satisfying (x−2)2+(y+1)2≤64(x-2)^2+(y+1)^2\le 64. GPS and earthquake location work by intersecting several such circles, one per tower or sensor, until only one point satisfies them all.

Practice problems

0 of 5 solved

  1. Write the equation of the circle with center (3,−2)(3,-2) and radius 44.

  2. Find the center and radius of (x+1)2+(y−6)2=20(x+1)^2+(y-6)^2=20.

  3. A circle has a diameter with endpoints (−4,1)(-4,1) and (2,−5)(2,-5). Write its equation.

  4. Find the center and radius of x2+y2+8x−2y−8=0x^2+y^2+8x-2y-8=0.

  5. Find the center and radius of 3x2+3y2−6x+12y−24=03x^2+3y^2-6x+12y-24=0.

Common questions

What is the equation of a circle?

In standard form it is (x−h)2+(y−k)2=r2(x-h)^2+(y-k)^2=r^2, where (h,k)(h,k) is the center and rr is the radius. If the center is the origin, it simplifies to x2+y2=r2x^2+y^2=r^2.

How do you find the equation of a circle from the center and a point on it?

Use the distance between the center and the point to get r2r^2, then substitute the center and r2r^2 into the standard form. You never need the radius itself, only its square.

How do you find the center and radius when the equation is not in standard form?

Complete the square on the x-terms and on the y-terms. For x2+y2+Dx+Ey+F=0x^2+y^2+Dx+Ey+F=0, the center is (−D2,−E2)\left(-\frac{D}{2},-\frac{E}{2}\right) and r2=D24+E24−Fr^2=\frac{D^2}{4}+\frac{E^2}{4}-F.

Why is the sign flipped for the center in the equation of a circle?

Each bracket measures the distance from a coordinate to the center, so it is x−hx-h, not x+hx+h. A bracket like (x+4)(x+4) is really (x−(−4))(x-(-4)), which puts the center at x=−4x=-4.

Can an equation look like a circle but not be one?

Yes. After completing the square, if the right side is zero the graph is a single point, and if it is negative there is no graph at all. If the x2x^2 and y2y^2 coefficients differ, the graph is an ellipse or another conic instead.

What is the equation of a circle in general form?

It is x2+y2+Dx+Ey+F=0x^2+y^2+Dx+Ey+F=0, the expanded version of the standard form. It hides the center and radius, so you complete the square to recover them.

Up next