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=(x2−x1)2+(y2−y1)2
Define a circle as points a fixed distance from a center
Write standard form (x−h)2+(y−k)2=r2
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 2 and
9 are ∣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) and (x2,y2). Travel from the first to the second in two steps that meet at a
right angle: slide straight across to the corner (x2,y1), then straight up to (x2,y2). The
across step spans the gap between the x-coordinates, and the up step spans the gap between the
y-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.
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.
Place the two points (x1,y1) and (x2,y2) on the grid, and drop to the corner (x2,y1).
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) to that corner, so its length is the gap between the
x-coordinates, ∣x2−x1∣. The vertical leg runs from the corner up to (x2,y2), so its length
is the gap between the y-coordinates, ∣y2−y1∣. These legs meet at a right angle, and the
distance d 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=∣x2−x1∣2+∣y2−y1∣2.
Squaring a number throws away its sign, so ∣x2−x1∣2 is simply (x2−x1)2, and the same holds
for the vertical leg. The absolute-value bars are no longer doing anything:
d2=(x2−x1)2+(y2−y1)2.
A distance is never negative, so take the positive square root of both sides:
d=(x2−x1)2+(y2−y1)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 1Find the distance between (−1,2) and (3,5)
Label the points (x1,y1)=(−1,2) and (x2,y2)=(3,5), and substitute into the distance
formula. The horizontal gap is 3−(−1)=4 and the vertical gap is 5−2=3:
d=(3−(−1))2+(5−2)2=42+32.
Now square and add before taking the root, since 42+32=16+9=25:
d=25=5.
The two points are 5 units apart. It is the same 3-4-5 right triangle you would get by counting
4 across and 3 up between them.
Check your understanding
How far apart are the points (0,0) and (6,8)?
Use the distance formula with the horizontal gap 6−0=6 and the vertical gap 8−0=8.
d=62+82=36+64=100=10
The formula adds the squares36 and 64, not the raw coordinates (which would give 14). The last step takes the square root, so the answer is 10, not 100 (that is d2).
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 r from a fixed point. The fixed point is the center, usually
written (h,k), and the fixed distance r (a positive number) is the radius. Every point on the
circle is exactly r from the center, and every point that is exactly r 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 r away from
the center” written in algebra.
The standard equation of a circle
Let (x,y) be a point anywhere on a circle with center (h,k) and radius r. Saying (x,y) is on
the circle means its distance from the center equals r. Feed the center and the point into the distance
formula and set the result equal to r, then clear the square root by squaring both sides.
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.
A point (x,y) lies on the circle exactly when its distance from the center (h,k) equals the radius
r. Measure that distance with the formula just derived, treating (h,k) as one point and (x,y) as
the other:
(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:
(x−h)2+(y−k)2=r2.
Every step above reverses, so the statement runs in both directions. A point (x,y) satisfies this
equation if and only if it sits exactly r from (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:
(x−h)2+(y−k)2=r2.
Its power is that the center and radius sit right on the surface. The numbers subtracted from x and y
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=0 and k=0. Substituting those into the
standard form makes the subtractions vanish:
(x−0)2+(y−0)2=r2⟹x2+y2=r2.
So a circle centered at the origin with radius r has the tidy equation x2+y2=r2. Here the right
side is r2, so the radius is the square root of it: x2+y2=9 has radius 9=3, not 9.
This circle meets each axis exactly r from the origin, at (r,0), (−r,0), (0,r), and (0,−r).
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 x−h and y−k. A circle written with
(x+3) does not have center coordinate 3. Rewrite x+3 as x−(−3) to see that h=−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 r2, not r. To get the radius you must take the
square root of the number on the right. In (x−1)2+(y−2)2=16 the radius is 16=4, and
when the right side is not a perfect square, such as 20, the radius stays as a simplified root like
20=25.
Worked example 2Write the equation of the circle with center (−3,4) and radius 6
Here h=−3, k=4, and r=6. Substitute into (x−h)2+(y−k)2=r2, watching the signs.
Subtracting the negative h turns into adding:
(x−(−3))2+(y−4)2=62.
Simplify x−(−3) to x+3, and 62 to 36:
(x+3)2+(y−4)2=36.
The +3 inside the first set of parentheses is the fingerprint of a center whose x-coordinate is −3.
The form subtracts the center coordinate, so a plus sign inside always signals a negative coordinate.
Worked example 3Find the center and radius of (x−5)2+(y+2)2=20
Match the equation against the standard form (x−h)2+(y−k)2=r2 one piece at a time. The first
parenthesis is x−5, so h=5. The second is y+2, which is y−(−2), so k=−2. The center is
therefore (5,−2).
The right side is r2=20, so the radius is its square root, not 20 itself:
r=20=4⋅5=25.
The center is (5,−2) and the radius is 25. Both traps appear in this one problem: the +2
makes k negative, and the radius is 20, not the 20 printed on the right.
Check your understanding
What are the center and radius of the circle (x+4)2+(y−3)2=25?
Read each piece against (x−h)2+(y−k)2=r2. The parenthesis x+4 is x−(−4), so h=−4; the parenthesis y−3 gives k=3. The radius is the square root of the right side.
r=25=5
So the center is (−4,3) and the radius is 5. The +4 flips the sign to −4 (not +4), and the radius is 25=5 (not the 25 on the right).
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 4Write the equation of the circle centered at (2,1) that passes through (5,5)
The radius is the distance from the center to any point on the circle, so it is the distance from
(2,1) to (5,5). In fact you can skip the square root entirely, because the equation only ever needs
r2, and the distance formula gives r2 before you take any root:
r2=(5−2)2+(5−1)2=32+42=9+16=25.
Now place the center (2,1) and this r2=25 straight into the standard form:
(x−2)2+(y−1)2=25.
The circle has radius 25=5, but you never had to compute that root. Reading r2 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
(x−h)2+(y−k)2=r2 gives x2−2hx+h2+y2−2ky+k2=r2, and moving everything to one
side collects into
x2+y2+Dx+Ey+F=0,
where D=−2h, E=−2k, and F=h2+k2−r2. 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 x-terms and on the
y-terms separately. That is the same move you learned in the completing-the-square lesson. Group the
x-terms, group the y-terms, and turn each group into a perfect square. Once the equation is back in
standard form, the center and radius reappear.
Worked example 5Convert x2+y2−6x+8y−11=0 to standard form
Group the x-terms and the y-terms, and move the lone constant to the right side:
(x2−6x)+(y2+8y)=11.
Complete the square on each group separately. For x2−6x, half of −6 is −3 and (−3)2=9. For
y2+8y, half of 8 is 4 and 42=16. Add each of those constants to both sides so the
equation stays balanced:
(x2−6x+9)+(y2+8y+16)=11+9+16.
Each group is now a perfect square, and the right side totals 36:
(x−3)2+(y+4)2=36.
Read it off: the center is (3,−4), from x−3 and y+4, and the radius is 36=6. What
looked like a scrambled general form was a clean circle all along.
Check your understanding
Convert x2+y2+10x−4y+20=0 to standard form. What are its center and radius?
Group and move the constant across: (x2+10x)+(y2−4y)=−20. Half of 10 is 5 (square 25), and half of −4 is −2 (square 4); add both to each side.
(x+5)2+(y−2)2=−20+25+4=9
The center is (−5,2) and the radius is 9=3. The +5 inside the parentheses makes the x-coordinate −5. You must add the completing constants to the right before taking the root, so the radius is 3, not 9 or 29.
When the circle collapses
Completing the square on a general form always lands you at (x−h)2+(y−k)2=R for some number
R on the right. Usually R is positive and you have an honest circle of radius R. But the
right side is not guaranteed to be positive, and two special cases are worth recognizing.
If R=0, the equation reads (x−h)2+(y−k)2=0. A sum of two squares can be zero only when each
square is zero, which forces x=h and y=k. The “circle” has shrunk to the single point(h,k). For instance x2+y2−2x+4y+5=0 becomes (x−1)2+(y+2)2=0, satisfied only
by the point (1,−2).
If R<0, the equation asks for a sum of two squares to be negative. Squares are never negative, so no
real point (x,y) can satisfy it, and the graph is empty: there is no curve at all. For instance
x2+y2−2x+4y+8=0 becomes (x−1)2+(y+2)2=−3, which no real point solves.
A true circle needs R>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 r in each of the four cardinal directions. That marks four points: right to (h+r,k), left
to (h−r,k), up to (h,k+r), and down to (h,k−r). Those four anchors pin the circle in place,
and a smooth round curve through them completes it.
Worked example 6Graph (x−1)2+(y+1)2=9
First read the center and radius. The parentheses are x−1 and y+1=y−(−1), so the center is
(1,−1). The right side is 9=r2, so the radius is 9=3.
Plot the center at (1,−1), then step out 3 units in each direction to reach four points of the
circle:
Sketch a round curve through those four anchor points, and the circle is done.
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 x-coordinates
and average their y-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.
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.
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,
(x−h)2+(y−k)2=r2. Its own position on the map is the center (h,k), and the distance it
measured is the radius r. The place the ground broke is the one point that satisfies all three
equations at once.