This site is a work in progress. New lessons are added regularly. Contact us

The Equation of a Circle

Learning goals

  • Measure distance with d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
  • Define a circle as points a fixed distance from a center
  • Write standard form (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2
  • Read the center and radius carefully, minding the signs
  • Complete the square on each variable to leave general form
  • Recognize a point or no graph from the right side

Measuring distance in the plane

On a number line the distance between two numbers is the size of their difference: the points 22 and 99 are 92=7|9 - 2| = 7 apart. In the plane a point needs two coordinates, so the two points no longer sit on one straight track, and a plain subtraction cannot reach across the gap. What saves you is that any two points are joined by a right triangle hiding in the grid.

Take (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2). Travel from the first to the second in two steps that meet at a right angle: slide straight across to the corner (x2,y1)(x_2, y_1), then straight up to (x2,y2)(x_2, y_2). The across step spans the gap between the xx-coordinates, and the up step spans the gap between the yy-coordinates. Those two steps are the legs of a right triangle, and the direct path you actually want, the straight distance, is its hypotenuse. That is exactly the setup the Pythagorean theorem was built for.

Distance between two points as a hypotenuseA right triangle on the coordinate plane with horizontal leg 4, vertical leg 3, and hypotenuse d equals 5 joining the points A and B.xyA(-2, -1)B(2, 2)43d = 5
The straight-line distance between two points is the hypotenuse of a right triangle. Going from A at negative 2, negative 1 across to a corner and then up to B at 2, 2 gives a horizontal leg of length 4 and a vertical leg of length 3, so the distance is the square root of 4 squared plus 3 squared, which equals 5.

Why the distance is (x2x1)2+(y2y1)2\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}#

Place the two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) on the grid, and drop to the corner (x2,y1)(x_2, y_1). That corner shares its height with the first point and its side-to-side position with the second. The horizontal leg runs from (x1,y1)(x_1, y_1) to that corner, so its length is the gap between the xx-coordinates, x2x1|x_2 - x_1|. The vertical leg runs from the corner up to (x2,y2)(x_2, y_2), so its length is the gap between the yy-coordinates, y2y1|y_2 - y_1|. These legs meet at a right angle, and the distance dd you want is the hypotenuse.

The Pythagorean theorem says the square of the hypotenuse equals the sum of the squares of the two legs:

d2=x2x12+y2y12.d^2 = |x_2 - x_1|^2 + |y_2 - y_1|^2.

Squaring a number throws away its sign, so x2x12|x_2 - x_1|^2 is simply (x2x1)2(x_2 - x_1)^2, and the same holds for the vertical leg. The absolute-value bars are no longer doing anything:

d2=(x2x1)2+(y2y1)2.d^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2.

A distance is never negative, so take the positive square root of both sides:

d=(x2x1)2+(y2y1)2.d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}.

Because each difference is squared, it makes no difference which point you list first. Swapping them flips the sign inside each set of parentheses, and squaring erases that flip, so the distance comes out the same either way.

This result is the distance formula, and it is nothing more than the Pythagorean theorem applied to the legs you can read off the coordinates.

Worked example 1 Find the distance between (1,2)(-1, 2) and (3,5)(3, 5)

Label the points (x1,y1)=(1,2)(x_1, y_1) = (-1, 2) and (x2,y2)=(3,5)(x_2, y_2) = (3, 5), and substitute into the distance formula. The horizontal gap is 3(1)=43 - (-1) = 4 and the vertical gap is 52=35 - 2 = 3:

d=(3(1))2+(52)2=42+32.d = \sqrt{(3 - (-1))^2 + (5 - 2)^2} = \sqrt{4^2 + 3^2}.

Now square and add before taking the root, since 42+32=16+9=254^2 + 3^2 = 16 + 9 = 25:

d=25=5.d = \sqrt{25} = 5.

The two points are 55 units apart. It is the same 33-44-55 right triangle you would get by counting 44 across and 33 up between them.

Check your understanding

How far apart are the points (0,0)(0, 0) and (6,8)(6, 8)?

Answer choices

What a circle is

Now that distance is under control, define the shape precisely. A circle is the set of all points in the plane that lie a fixed distance rr from a fixed point. The fixed point is the center, usually written (h,k)(h, k), and the fixed distance rr (a positive number) is the radius. Every point on the circle is exactly rr from the center, and every point that is exactly rr from the center is on the circle. Nothing else qualifies.

That definition is stated entirely in terms of distance, which is why the distance formula is the key that unlocks the equation. The equation of a circle is just the sentence “this point is rr away from the center” written in algebra.

The standard equation of a circle

Let (x,y)(x, y) be a point anywhere on a circle with center (h,k)(h, k) and radius rr. Saying (x,y)(x, y) is on the circle means its distance from the center equals rr. Feed the center and the point into the distance formula and set the result equal to rr, then clear the square root by squaring both sides.

Deriving the standard equation of a circleA circle with center h, k and a point x, y on it. A right triangle has horizontal leg x minus h, vertical leg y minus k, and hypotenuse r, the radius.(h, k)(x, y)x - hy - kr
A point x, y on a circle of center h, k and radius r sits at the end of a right triangle. The horizontal leg is x minus h, the vertical leg is y minus k, and the radius r is the hypotenuse, so the Pythagorean theorem gives x minus h squared plus y minus k squared equals r squared.

Why a circle's equation is (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2#

A point (x,y)(x, y) lies on the circle exactly when its distance from the center (h,k)(h, k) equals the radius rr. Measure that distance with the formula just derived, treating (h,k)(h, k) as one point and (x,y)(x, y) as the other:

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

This already describes the circle, but the square root is clumsy to work with. Remove it by squaring both sides. The left side is a distance and the right side is a positive radius, so both sides are nonnegative. Since both are nonnegative, squaring keeps the equation equivalent, neither creating nor destroying any solutions:

(xh)2+(yk)2=r2.(x - h)^2 + (y - k)^2 = r^2.

Every step above reverses, so the statement runs in both directions. A point (x,y)(x, y) satisfies this equation if and only if it sits exactly rr from (h,k)(h, k), which is precisely what it means to be on the circle. That is why this one equation captures the entire curve and no other points.

This is the standard form, also called the center-radius form, of a circle:

(xh)2+(yk)2=r2.(x - h)^2 + (y - k)^2 = r^2.

Its power is that the center and radius sit right on the surface. The numbers subtracted from xx and yy are the center coordinates, and the number on the right is the radius squared.

Circles centered at the origin

The simplest circles are centered at the origin, where h=0h = 0 and k=0k = 0. Substituting those into the standard form makes the subtractions vanish:

(x0)2+(y0)2=r2x2+y2=r2.(x - 0)^2 + (y - 0)^2 = r^2 \quad\Longrightarrow\quad x^2 + y^2 = r^2.

So a circle centered at the origin with radius rr has the tidy equation x2+y2=r2x^2 + y^2 = r^2. Here the right side is r2r^2, so the radius is the square root of it: x2+y2=9x^2 + y^2 = 9 has radius 9=3\sqrt{9} = 3, not 99. This circle meets each axis exactly rr from the origin, at (r,0)(r, 0), (r,0)(-r, 0), (0,r)(0, r), and (0,r)(0, -r).

Circle centered at the origin, x squared plus y squared equals 9A circle of radius 3 centered at the origin, with its four axis crossings marked and a radius labeled r equals 3.xy(0, 0)(3, 0)(-3, 0)(0, 3)(0, -3)r = 3
A circle centered at the origin with radius 3 has equation x squared plus y squared equals 9. It crosses the axes exactly r units from the center, at the four points 3 and 0, negative 3 and 0, 0 and 3, and 0 and negative 3.

Reading the center and radius

The standard form works in both directions. Going forward, you build the equation from a center and a radius; going backward, you read a center and a radius out of a finished equation. Two small traps trip people up in the backward direction, and both come from taking the form literally.

The sign trap comes from the subtraction built into xhx - h and yky - k. A circle written with (x+3)(x + 3) does not have center coordinate 33. Rewrite x+3x + 3 as x(3)x - (-3) to see that h=3h = -3. The form always subtracts the center coordinate, so a plus sign inside the parentheses means that coordinate is negative.

The radius trap comes from the right side being r2r^2, not rr. To get the radius you must take the square root of the number on the right. In (x1)2+(y2)2=16(x - 1)^2 + (y - 2)^2 = 16 the radius is 16=4\sqrt{16} = 4, and when the right side is not a perfect square, such as 2020, the radius stays as a simplified root like 20=25\sqrt{20} = 2\sqrt{5}.

Worked example 2 Write the equation of the circle with center (3,4)(-3, 4) and radius 66

Here h=3h = -3, k=4k = 4, and r=6r = 6. Substitute into (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2, watching the signs. Subtracting the negative hh turns into adding:

(x(3))2+(y4)2=62.(x - (-3))^2 + (y - 4)^2 = 6^2.

Simplify x(3)x - (-3) to x+3x + 3, and 626^2 to 3636:

(x+3)2+(y4)2=36.(x + 3)^2 + (y - 4)^2 = 36.

The +3+3 inside the first set of parentheses is the fingerprint of a center whose xx-coordinate is 3-3. The form subtracts the center coordinate, so a plus sign inside always signals a negative coordinate.

Worked example 3 Find the center and radius of (x5)2+(y+2)2=20(x - 5)^2 + (y + 2)^2 = 20

Match the equation against the standard form (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2 one piece at a time. The first parenthesis is x5x - 5, so h=5h = 5. The second is y+2y + 2, which is y(2)y - (-2), so k=2k = -2. The center is therefore (5,2)(5, -2).

The right side is r2=20r^2 = 20, so the radius is its square root, not 2020 itself:

r=20=45=25.r = \sqrt{20} = \sqrt{4 \cdot 5} = 2\sqrt{5}.

The center is (5,2)(5, -2) and the radius is 252\sqrt{5}. Both traps appear in this one problem: the +2+2 makes kk negative, and the radius is 20\sqrt{20}, not the 2020 printed on the right.

Check your understanding

What are the center and radius of the circle (x+4)2+(y3)2=25(x + 4)^2 + (y - 3)^2 = 25?

Answer choices

The radius is just the distance from the center to any point on the circle. So the distance formula lets you build a circle’s equation even when you are handed a point on the circle instead of the radius.

Worked example 4 Write the equation of the circle centered at (2,1)(2, 1) that passes through (5,5)(5, 5)

The radius is the distance from the center to any point on the circle, so it is the distance from (2,1)(2, 1) to (5,5)(5, 5). In fact you can skip the square root entirely, because the equation only ever needs r2r^2, and the distance formula gives r2r^2 before you take any root:

r2=(52)2+(51)2=32+42=9+16=25.r^2 = (5 - 2)^2 + (5 - 1)^2 = 3^2 + 4^2 = 9 + 16 = 25.

Now place the center (2,1)(2, 1) and this r2=25r^2 = 25 straight into the standard form:

(x2)2+(y1)2=25.(x - 2)^2 + (y - 1)^2 = 25.

The circle has radius 25=5\sqrt{25} = 5, but you never had to compute that root. Reading r2r^2 directly off the distance calculation is quicker and avoids a needless square-root-then-square round trip.

The general form

Multiply out a circle’s standard form and it stops looking like a circle. Expanding (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2 gives x22hx+h2+y22ky+k2=r2x^2 - 2hx + h^2 + y^2 - 2ky + k^2 = r^2, and moving everything to one side collects into

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

where D=2hD = -2h, E=2kE = -2k, and F=h2+k2r2F = h^2 + k^2 - r^2. This is the general form. It is a genuine circle in disguise, but the center and radius are buried, and you cannot read them off directly.

To dig them back out, reverse the expansion by completing the square on the xx-terms and on the yy-terms separately. That is the same move you learned in the completing-the-square lesson. Group the xx-terms, group the yy-terms, and turn each group into a perfect square. Once the equation is back in standard form, the center and radius reappear.

Worked example 5 Convert x2+y26x+8y11=0x^2 + y^2 - 6x + 8y - 11 = 0 to standard form

Group the xx-terms and the yy-terms, and move the lone constant to the right side:

(x26x)+(y2+8y)=11.(x^2 - 6x) + (y^2 + 8y) = 11.

Complete the square on each group separately. For x26xx^2 - 6x, half of 6-6 is 3-3 and (3)2=9(-3)^2 = 9. For y2+8yy^2 + 8y, half of 88 is 44 and 42=164^2 = 16. Add each of those constants to both sides so the equation stays balanced:

(x26x+9)+(y2+8y+16)=11+9+16.(x^2 - 6x + 9) + (y^2 + 8y + 16) = 11 + 9 + 16.

Each group is now a perfect square, and the right side totals 3636:

(x3)2+(y+4)2=36.(x - 3)^2 + (y + 4)^2 = 36.

Read it off: the center is (3,4)(3, -4), from x3x - 3 and y+4y + 4, and the radius is 36=6\sqrt{36} = 6. What looked like a scrambled general form was a clean circle all along.

Check your understanding

Convert x2+y2+10x4y+20=0x^2 + y^2 + 10x - 4y + 20 = 0 to standard form. What are its center and radius?

Answer choices

When the circle collapses

Completing the square on a general form always lands you at (xh)2+(yk)2=R(x - h)^2 + (y - k)^2 = R for some number RR on the right. Usually RR is positive and you have an honest circle of radius R\sqrt{R}. But the right side is not guaranteed to be positive, and two special cases are worth recognizing.

If R=0R = 0, the equation reads (xh)2+(yk)2=0(x - h)^2 + (y - k)^2 = 0. A sum of two squares can be zero only when each square is zero, which forces x=hx = h and y=ky = k. The “circle” has shrunk to the single point (h,k)(h, k). For instance x2+y22x+4y+5=0x^2 + y^2 - 2x + 4y + 5 = 0 becomes (x1)2+(y+2)2=0(x - 1)^2 + (y + 2)^2 = 0, satisfied only by the point (1,2)(1, -2).

If R<0R < 0, the equation asks for a sum of two squares to be negative. Squares are never negative, so no real point (x,y)(x, y) can satisfy it, and the graph is empty: there is no curve at all. For instance x2+y22x+4y+8=0x^2 + y^2 - 2x + 4y + 8 = 0 becomes (x1)2+(y+2)2=3(x - 1)^2 + (y + 2)^2 = -3, which no real point solves.

A true circle needs R>0R > 0. Always check the sign of the right side after completing the square before you announce a radius.

Graphing a circle

Once you know the center and radius, a circle is quick to draw by hand. Plot the center, then step out the radius rr in each of the four cardinal directions. That marks four points: right to (h+r,k)(h + r, k), left to (hr,k)(h - r, k), up to (h,k+r)(h, k + r), and down to (h,kr)(h, k - r). Those four anchors pin the circle in place, and a smooth round curve through them completes it.

Worked example 6 Graph (x1)2+(y+1)2=9(x - 1)^2 + (y + 1)^2 = 9

First read the center and radius. The parentheses are x1x - 1 and y+1=y(1)y + 1 = y - (-1), so the center is (1,1)(1, -1). The right side is 9=r29 = r^2, so the radius is 9=3\sqrt{9} = 3.

Plot the center at (1,1)(1, -1), then step out 33 units in each direction to reach four points of the circle:

(1+3,1)=(4,1),(13,1)=(2,1),(1,1+3)=(1,2),(1,13)=(1,4).\begin{aligned} (1 + 3,\, -1) &= (4, -1), &\qquad (1 - 3,\, -1) &= (-2, -1), \\ (1,\, -1 + 3) &= (1, 2), &\qquad (1,\, -1 - 3) &= (1, -4). \end{aligned}

Sketch a round curve through those four anchor points, and the circle is done.

Graphing the circle x minus 1 squared plus y plus 1 squared equals 9A circle centered at 1, negative 1 with radius 3, with the four cardinal points marked and a radius labeled r equals 3.xy(1, -1)(4, -1)(-2, -1)(1, 2)(1, -4)r = 3
To graph x minus 1 squared plus y plus 1 squared equals 9, plot the center at 1, negative 1 and step out the radius 3 in four directions to reach 4, negative 1 and negative 2, negative 1 and 1, 2 and 1, negative 4. A round curve through those four points is the circle.

Sometimes you are handed the two endpoints of a diameter instead of the center. The center is the midpoint of that diameter, exactly halfway between the endpoints, so average their xx-coordinates and average their yy-coordinates to locate it. The radius is then the distance from the center to either endpoint.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

On a spring morning in 1889, a delicate instrument in Germany traced a slow wobble onto its paper. Nothing had happened in the room. Nothing had happened in the town. About an hour earlier, the ground had shaken hard in Japan, half a world away.

That was the first time anyone matched a wobble on a machine to an earthquake so far off. The instrument had been built for another job, measuring the faint tilts of the ground beneath it. It could report that something enormous had happened somewhere, and not one thing more.

Direction is the hard part. Shaking spreads outward in two kinds of wave, one quicker than the other, and the gap between their arrivals widens with distance. So a single station can work out how far away the earthquake was, but never which way. Every point at that distance remains a candidate, and those points form a circle around the station.

One circle is not an answer. Two circles cross at a pair of points, and a third station decides which of the pair is the real one.

That is this lesson doing a day’s work. Each station contributes one equation, (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2. Its own position on the map is the center (h,k)(h, k), and the distance it measured is the radius rr. The place the ground broke is the one point that satisfies all three equations at once.