Completing the Square to Find a Circle's Center and Radius

Rewrite x² + y² + Dx + Ey + F = 0 in center-radius form by completing the square twice. Worked examples, including when it isn't a real circle.

General Form vs. Standard Form of a Circle

The most common mistake when handling a circle equation is treating the general form as if it already reveals the center and radius. The general form, x² + y² + Dx + Ey + F = 0, hides those values. The standard form, (x − h)² + (y − k)² = r², shows them directly: the center is (h, k) and the radius is r. The method that bridges these two forms is completing the square, and it is the only reliable way to extract the geometric data from the algebraic mess.

A circle in standard form is a statement about distance: every point (x, y) on the circle is exactly r units from the center (h, k). The general form, by contrast, is a sum of squared terms and linear terms. Without rewriting it, you cannot read off the center or the radius. OpenStax Precalculus 2e, Chapter 10, Section 10.1, makes this clear: the condition D² + E² − 4F > 0 must hold for the general form to represent a real circle. If that condition fails, you get a point or no graph at all.

Completing the Square for Circles: Step by Step

To find the center and radius from a circle's general equation, complete the square for the x-terms and the y-terms separately. Group the x² and Dx terms together, and the y² and Ey terms together, then apply the same perfect-square trick to each group. The goal is to rewrite x² + Dx into (x − h)² minus a constant, and do the same for y.

The half-the-coefficient rule applies here exactly as it does for quadratics. For the x-terms, take half of D, square it, and add and subtract that square inside the x-group. For a circle, you are working with an equation, so you can add the same number to both sides of the equals sign. This avoids the trickier expression-rewriting that confuses students when a ≠ 1. The most common error is forgetting that the sign flips: the center is (−D/2, −E/2), not (D/2, E/2). Test this with a simple circle centered at the origin, and you will see why.

Worked Example 1: Even Coefficients

Convert x² + y² − 6x + 4y − 12 = 0 to standard form. Group: (x² − 6x) + (y² + 4y) = 12. For x, half of −6 is −3, square is 9. Add 9 to both sides. For y, half of 4 is 2, square is 4. Add 4 to both sides. The left side becomes (x² − 6x + 9) + (y² + 4y + 4) = 12 + 9 + 4. Factor each trinomial: (x − 3)² + (y + 2)² = 25. The center is (3, −2) and the radius is 5.

Worked Example 2: Odd Coefficients

Convert x² + y² + 5x − 8y − 20 = 0. Group: (x² + 5x) + (y² − 8y) = 20. For x, half of 5 is 5/2, square is 25/4. Add 25/4 to both sides. For y, half of −8 is −4, square is 16. Add 16 to both sides. Left side: (x² + 5x + 25/4) + (y² − 8y + 16) = 20 + 25/4 + 16. Factor: (x + 5/2)² + (y − 4)² = 25/4. The center is (−5/2, 4) and the radius is 5/2. The odd b produced fractions, but no extra step was needed.

General Form to Standard Form Circle: When a ≠ 1

Some circle equations have a coefficient other than 1 on x² and y², such as 2x² + 2y² + 8x − 12y − 18 = 0. The requirement for a circle is that the coefficients of x² and y² are equal, but they do not have to be 1. When they are not 1, you must divide every term by that common coefficient before completing the square. Dividing by 2 gives x² + y² + 4x − 6y − 9 = 0. Then proceed as usual: group, complete the square, factor. The center and radius come from the rewritten standard form.

Failing to divide first is the second most common failure mode in this subject. Students try to complete the square with a 2 still attached, and the arithmetic collapses because the perfect-square pattern only works cleanly with a leading coefficient of 1. After dividing, the rest of the method is identical. The method of completing the square is resilient, but it requires that one initial housekeeping step when a ≠ 1.

Degenerate Cases: r² = 0 or r² < 0

Not every general form equation produces a real circle. After completing the square, you get a constant on the right side that represents r². If that constant is zero, the equation describes a single point: the center, with radius zero. If the constant is negative, no real points satisfy the equation, and the graph is empty. OpenStax Precalculus 2e states the condition for a real circle as D² + E² − 4F > 0. This is the discriminant of the circle equation, and it must be positive for a real, non-degenerate circle.

Example: x² + y² + 2x − 4y + 10 = 0. Complete the square and you get (x + 1)² + (y − 2)² = −5. Since r² is negative, this is not a circle. The equation still represents a valid algebraic object, but it has no graph in the real plane. Students who skip the sign check often waste time trying to take a square root of a negative number. Check the constant before you write the radius.

Beyond Circles: Ellipses and Other Conics

The technique of completing the square does not stop at circles. It extends to ellipses, hyperbolas, and parabolas in conic sections. For an ellipse, complete the square twice, once for x and once for y, but you must also account for different coefficients on the squared terms. The difference: for a circle, the coefficients of x² and y² are equal after dividing. For an ellipse, they are different but both positive. The same grouping and factoring steps apply, but the final form is (x − h)²/a² + (y − k)²/b² = 1 instead of a single squared radius.

This is where completing the square step by step becomes a tool rather than a circle-specific trick. The core process, halve, square, add, subtract, factor, is identical across all conic sections. The only changes are the final form and the interpretation of the constants. Mastering it for circles is the entry point to handling all other conics. The honest caveat: completing the square for a circle is the easiest version of this method. Ellipses and hyperbolas require more arithmetic steps and a careful eye on the denominators, but the bookkeeping is the same.

Common Questions

What if the general form has an xy term?

An xy term means the conic is rotated and is not a simple circle, ellipse, or hyperbola aligned with the axes. The general form x² + y² + Dx + Ey + F = 0 specifically excludes the xy term. If you see one, the method of completing the square alone cannot handle it. That is a rotated conic and requires a rotation of axes.

How do I know if I completed the square correctly?

Expand your final standard form back into general form. If the coefficients match the original equation, the algebra is correct. This check is quick and catches sign errors. Do it every time until you are confident with the half-the-coefficient rule.

Can I find the center without completing the square?

Yes, for a circle, the center is (−D/2, −E/2) directly from the general form. But you still need the complete square to find the radius, because r² = (D² + E² − 4F)/4. The radius formula comes from completing the square, so you are using the method whether you show the steps or not.

What does it mean when D² + E² − 4F = 0?

It means the general form simplifies to a single point: the center. The radius is zero. This is a degenerate circle. The equation still describes a valid set of points, but there is no circle to draw. The same completing the square procedure will produce a constant of zero on the right side.