Circle Equation Calculator
- The standard form (x - h)^2 + (y - k)^2 = r^2 names the center and radius directly; expanding it gives the general form used by conic-section algebra.
- Expanding (x - 3)^2 + (y - -2)^2 = 5^2 collects an x term of -2h = -6 and a y term of -2k = 4.
- The constant gathers the rest: h^2 + k^2 - r^2 = 9 + 4 - 25 = -12.
- So the general form is x² + y² - 6x + 4y - 12 = 0 — the same circle, written for algebra rather than for reading.
- To go back, complete the square on x and y separately; the constants that appear rebuild h, k and r.
A circle equation calculator converts a circle between its two common equation forms. The standard form is (x - h)^2 + (y - k)^2 = r^2, where (h, k) is the center and r is the radius. The general form is x^2 + y^2 + Dx + Ey + F = 0, with D = -2h, E = -2k and F = h^2 + k^2 - r^2. Enter a center and radius, or the coefficients of a general equation, and the calculator returns the matching form along with the center and radius. For example, a circle with center (3, -2) and radius 5 expands to x^2 + y^2 - 6x + 4y - 12 = 0.
The method behind the calculator is the accepted standard for this kind of calculation because it relies on completing the square, the standard algebraic procedure for rewriting a general second-degree equation in standard form. Going back from general form, completing the square recovers h = -D/2, k = -E/2 and r = sqrt(h^2 + k^2 - F). The result also shows whether a real circle exists: if h^2 + k^2 - F is zero the circle shrinks to a point, and if it is negative, no real circle exists. This page shows the formula, step-by-step workings, worked examples and sources so you can check every result yourself.
Worked examples
Primary result: x² + y² - 6x + 4y - 12 = 0
Primary result: x² + y² - 6x + 4y - 12 = 0 — Expanding the standard form gives x² + y² - 6x + 4y - 12 = 0. (Center and radius → general form · 3 · -2 · 5 · -6 · 4 · -12)
| General-form equation | x² + y² - 6x + 4y - 12 = 0 |
| D coefficient | -6 |
| E coefficient | 4 |
| F constant | -12 |
Primary result: x² + y² + 2x - 8y + 8 = 0
Primary result: x² + y² + 2x - 8y + 8 = 0 — A center left of the axis flips the x term positive. (Center and radius → general form · -1 · 4 · 3 · 2 · -8 · 8)
| General-form equation | x² + y² + 2x - 8y + 8 = 0 |
| D coefficient | 2 |
| E coefficient | -8 |
| F constant | 8 |
Primary result: Center (3, -2), radius 5
Primary result: Center (3, -2), radius 5 — Completing the square on D, E and F returns center (3, -2), radius 5. (General form → center and radius · 3 · -2 · 5 · -6 · 4 · -12)
| Center and radius | Center (3, -2), radius 5 |
| Center, x (h) | 3 |
| Center, y (k) | -2 |
| Radius | 5 |
The two forms of a circle's equation
A circle's equation can be written in two ways, and a good circle equation calculator lets you move between them without losing track of what each one tells you. The first is standard form: (x - h)^2 + (y - k)^2 = r^2, where (h, k) is the center and r is the radius. This version is built for reading. The numbers sit in plain view, so you can pick out the center and the radius almost at a glance — just remember that the signs flip, since the form subtracts h and k.
The second is general form: x^2 + y^2 + Dx + Ey + F = 0. Here the center and radius are hidden inside the coefficients, which is why this form is better suited to algebra than to inspection. The link between the two is exact: D = -2h, E = -2k, and F = h^2 + k^2 - r^2. That means every standard-form equation can be expanded into general form, and every general-form equation that describes a real circle can be converted back.
A worked check makes the relationship concrete. Take a circle with center (3, -2) and radius 5. Expanding it produces x^2 + y^2 - 6x + 4y - 12 = 0. Notice how the coefficients carry the center: D = -6 corresponds to h = 3, and E = 4 corresponds to k = -2. The constant, -12, comes from h^2 + k^2 - r^2, which is 9 + 4 - 25.
Going the other direction takes a little more work, but the steps are fixed. Completing the square recovers h = -D/2, k = -E/2, and r = sqrt(h^2 + k^2 - F). The first two are simple divisions; the third is where the arithmetic decides what kind of object you actually have. If h^2 + k^2 - F is zero, the circle shrinks to a single point. If it is negative, no real circle exists at all — the equation looks like a circle but describes nothing you can draw on the plane.
Both forms describe the same object; they simply emphasize different information. Standard form is the one to use when you want to plot, compare sizes, or state a center and radius. General form is the one that shows up when equations are multiplied out, added together, or handed to you as a problem to solve. Knowing how the coefficients map onto the center and radius is what lets you trust either version.
Expanding standard form into general form
Expanding standard form into general form is a matter of multiplying out the squared binomials and collecting like terms. Start with the standard form (x - h)^2 + (y - k)^2 = r^2, where (h, k) is the center and r the radius. Expanding gives x^2 - 2hx + h^2 + y^2 - 2ky + k^2 = r^2. Move r^2 to the left side and group the terms: the x^2 and y^2 terms stand alone, the x terms collect into -2hx, the y terms into -2ky, and the constants into h^2 + k^2 - r^2. The result is the general form x^2 + y^2 + Dx + Ey + F = 0, with D = -2h, E = -2k and F = h^2 + k^2 - r^2. That is the whole conversion: the coefficients D and E are just twice the center coordinates with the sign flipped, and F folds the center and radius together into one number.
A worked check makes the pattern concrete. Take a circle with center (3, -2) and radius 5. Here h = 3, k = -2 and r = 5. Applying the formulas gives D = -2(3) = -6, E = -2(-2) = 4, and F = 3^2 + (-2)^2 - 5^2 = 9 + 4 - 25 = -12. So the circle expands to x^2 + y^2 - 6x + 4y - 12 = 0. You can verify this by expanding directly: (x - 3)^2 becomes x^2 - 6x + 9, and (y + 2)^2 becomes y^2 + 4y + 4. Adding those and setting the total equal to 25 gives x^2 + y^2 - 6x + 4y + 13 = 25, and subtracting 25 from both sides produces the same equation, x^2 + y^2 - 6x + 4y - 12 = 0.
The reverse direction is why the general form matters. Given x^2 + y^2 + Dx + Ey + F = 0, completing the square recovers h = -D/2, k = -E/2 and r = sqrt(h^2 + k^2 - F). In the worked example, h = -(-6)/2 = 3 and k = -4/2 = -2, matching the original center, while r = sqrt(9 + 4 - (-12)) = sqrt(25) = 5, matching the original radius. A circle equation calculator performs this expansion and reversal for you, so you can move between the two forms without redoing the algebra by hand each time.
The value under the square root, h^2 + k^2 - F, also tells you what kind of figure you have. If h^2 + k^2 - F is zero, the radius is zero and the circle shrinks to a single point at (h, k). If it is negative, no real circle exists, because no real number squares to a negative value. Checking that quantity before you plot or solve is a quick way to catch an equation that looks like a circle but is not one.
- D = -2h, E = -2k and F = h^2 + k^2 - r^2
- Center (3, -2), radius 5: x^2 + y^2 - 6x + 4y - 12 = 0
- Reverse: h = -D/2, k = -E/2, r = sqrt(h^2 + k^2 - F)
Completing the square to go back
Going the other direction — from a general-form equation back to a center and a radius — is the job most people reach for a circle equation calculator to do. The general form is x^2 + y^2 + Dx + Ey + F = 0, and the standard form it needs to become is (x - h)^2 + (y - k)^2 = r^2, where (h, k) is the center and r the radius. The bridge between them is completing the square, applied once to the x terms and once to the y terms.
Start by grouping the x terms together and the y terms together, with the constant F moved to the other side. Then complete the square in each group: take half of the x coefficient, square it, and add it to both sides; do the same with half of the y coefficient. Each group now collapses into a perfect square, and the right-hand side holds the leftover number. Reading the finished equation against standard form gives h = -D/2, k = -E/2 and r = sqrt(h^2 + k^2 - F). The coefficients D and E are simply -2h and -2k, so the center can also be read straight off the original coefficients, and F = h^2 + k^2 - r^2 ties the constant to the radius.
A worked check makes the round trip concrete. A circle with center (3, -2) and radius 5 expands to x^2 + y^2 - 6x + 4y - 12 = 0. Running the recovery on that equation: h = -(-6)/2 = 3, k = -4/2 = -2, and r = sqrt(3^2 + (-2)^2 - (-12)) = sqrt(9 + 4 + 12) = sqrt(25) = 5. The center and radius come back exactly as they went in.
The expression under the square root, h^2 + k^2 - F, decides what kind of figure you actually have. When it is positive, you get an ordinary circle and its square root is the radius. When it is zero, the radius is zero and the circle shrinks to a single point at (h, k) — a degenerate case that is technically a solution but has no visible curve. When it is negative, no real circle exists, because no real number squares to a negative value; the equation describes nothing you can draw on the plane. Checking that quantity first tells you whether a center-and-radius answer is even meaningful before you write one down.
Common mistakes
Most errors on a circle equation calculator come from the signs, not the arithmetic. The standard form is (x - h)^2 + (y - k)^2 = r^2, where (h, k) is the center and r the radius. Because the form subtracts h and k, the signs of the center flip when you read them off the equation. A circle centered at (3, -2) appears as (x - 3)^2 + (y + 2)^2 = r^2, so the -3 in the first parenthesis means h = 3, and the +2 in the second means k = -2. Writing the center as (-3, 2) is the single most common mistake, and it happens because the minus sign built into the formula is easy to overlook.
The second trap is the constant term F in the general form x^2 + y^2 + Dx + Ey + F = 0. Here D = -2h, E = -2k and F = h^2 + k^2 - r^2. Notice that F is not simply the square of the radius; it includes -r^2 along with the center's squared coordinates. People often plug in r^2 directly and drop the h^2 + k^2 part, or keep the r^2 positive when it should be subtracted. A quick check keeps you honest: center (3, -2) and radius 5 expand to x^2 + y^2 - 6x + 4y - 12 = 0. Test it by hand — h^2 + k^2 - r^2 is 9 + 4 - 25, which equals -12, exactly the F in that equation.
The third mistake shows up when converting back from general form. Completing the square recovers h = -D/2, k = -E/2 and r = sqrt(h^2 + k^2 - F). Since D and E already carry negative signs from the expansion, the coefficients must be halved and then negated. With D = -6, h = -(-6)/2 = 3, not -3; with E = 4, k = -4/2 = -2. Halving D and E while keeping their original signs produces a center that is mirrored across both axes, and every later step inherits the error. If you use a circle equation calculator, enter D and E exactly as they appear and let the tool apply the signs, then verify the center against the expansion you started with.
Finally, watch the value under the square root when solving for r. The expression h^2 + k^2 - F decides whether a real circle exists at all. If h^2 + k^2 - F is zero, the circle shrinks to a single point. If it is negative, no real circle exists, and reporting a radius from a negative number is a sign that something earlier went wrong. Checking this quantity first catches sign errors before they spread.
- Center signs: standard form subtracts h and k, so (x - 3)^2 means h = 3 and (y + 2)^2 means k = -2.
- Constant term: F = h^2 + k^2 - r^2, so it includes -r^2 and is not just the squared radius.
- Back-conversion: h = -D/2 and k = -E/2 — halve D and E, then flip their signs.
- Existence check: if h^2 + k^2 - F is zero the circle is a point; if negative, no real circle exists.
FAQs
What is the standard form of a circle?
The standard form of a circle's equation is (x - h)^2 + (y - k)^2 = r^2. In this form, (h, k) is the center of the circle and r is the radius. Because the equation directly shows the center and radius, it is usually the easiest form to read and graph.
How do I find the center from the general form?
In the general form, find the center by halving D and E and flipping their signs. The center is (-D/2, -E/2). So if you know the coefficients on x and y, you can recover the center with two quick divisions and a sign change, without completing the square by hand.
How do I find the radius from the general form?
Once you have the center, the radius is r = sqrt(h^2 + k^2 - F), using the recovered center (h, k). If the value under the root is not positive, there is no real circle. A zero value gives a single point, and a negative value gives no real graph at all.
Why is the center (3, -2) written as (x - 3) and (y + 2)?
The standard form subtracts the coordinates, so the x part is (x - 3) for a center x of 3. A center y of -2 appears as (y - (-2)), which simplifies to (y + 2). The sign inside each parenthesis is always the opposite of the center coordinate.
What does F represent in the general form?
In the general form, F = h^2 + k^2 - r^2. It is the constant left after expansion. F grows as the circle moves away from the origin and shrinks as the radius grows. That is why F alone does not tell you the radius; you also need the center coordinates.
Can the general form have coefficients on x^2 and y^2?
Yes, the general form can have coefficients on x^2 and y^2, but they must be equal. Divide through by that coefficient first to reach the unit form this calculator uses, where both squared terms have a coefficient of 1. Unequal coefficients describe a different curve, not a circle.