Circle Equation Calculator

About this calculator

Find a circle’s center, radius and equation. Enter the coefficients, a center and radius, or the endpoints of a diameter.

Calculator inputs

Example: A = 1, D = -4, E = 6, F = -12.

Calculate the example or enter your source.

Controls are loading. JavaScript is required for calculation; manual equations and examples below remain readable.

Exact circle equation source

Ax2 + Ay2 + Dx + Ey + F = 0. Use the same nonzero A for both squared terms. Enter 0 for missing terms.

Accepted syntax and exact limits

Use signed decimals, a/b, or whole a/b. A mixed sign applies to the entire value, including -0 1/2. An improper mixed part carries: 1 3/2 becomes 2 1/2. Unicode minus is accepted. No expressions, exponents, variables, pi, units or denominator signs.

Fraction components allow twelve digits each. Decimals allow twelve integer and twelve fractional digits. Every exact absolute input is strictly below 1e12. Leading zeros count toward those limits. Source tokens allow 64 raw characters including outer ASCII whitespace; canonical accepted sources allow at most 39. Empty is not zero. Precision is bounded at 500 digits for every exact operation.

Graphs use equal-axis local offsets around the exact center, with explicit labels. A decorative point marker is not a positive radius. Projection failure leaves exact forms and classification useful.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

One common squared-term coefficient

The general input is A x^2 + A y^2 + D x + E y + F = 0, with nonzero A. The same A multiplies both squared terms, and there is no xy term. Negative A is valid: divide every term by it before completing squares. This tool does not parse arbitrary equations or classify general conics.

After dividing, let d = D/A, e = E/A and f = F/A. The center is h = -d/2, k = -e/2, and the squared radius is h^2 + k^2 - f. Standard form is (x - h)^2 + (y - k)^2 = R^2. A negative center coordinate changes the sign inside its parentheses.

Worked example with actual completing squares

For x^2 + y^2 - 4x + 6y - 12 = 0, move the constant to obtain x^2 - 4x + y^2 + 6y = 12. Add 4 and 9 to both sides. The result is (x - 2)^2 + (y + 3)^2 = 25, a real circle centered at (2, -3) with radius 5. Multiplying every original coefficient by -2 gives the same geometry after dividing through.

Point and empty equations are useful results

The exact sign of R^2 decides the real locus. Positive gives a real circle, zero gives one point at the center, and negative gives no real points because a sum of two squares cannot be negative. For x^2 + y^2 + 1 = 0, R^2 = -1; there is no real radius and no real circle to draw. A tiny positive exact value stays a circle even if an ordinary decimal display would look like zero.

Center and diameter source forms

Center mode uses the actual supplied nonnegative radius, squares it exactly and expands the standard form. A negative radius is rejected rather than squared into acceptance. Diameter mode uses the midpoint of the supplied endpoints and one quarter of their squared distance. Two arbitrary circumference points are not necessarily diameter endpoints. Coincident endpoints give one point.

For diameter endpoints (-1, 2) and (5, -2), the midpoint is (2, 0), the squared radius is 13, and the standard form is (x - 2)^2 + y^2 = 13. The exact radius is sqrt(13), without claiming complete radical simplification.

Exact source and honest diagrams

Accepted decimals, fractions and mixed numbers retain a canonical spelling from their source family, separate from the reduced rational calculation. This lets a valid long decimal reopen without being changed into a fraction outside the input grammar. A mixed minus applies to the whole value: -0 1/2 is -1/2, and 1 3/2 carries to 2 1/2.

The diagram uses a square window and equal units on both axes. It explicitly shows local offsets X = x - h and Y = y - k around the exact center. Dashed guides cross at the local center; they are not automatically the true x/y axes. True axes are solid when they cross the window, and an off-screen true origin is disclosed. Point markers are decorative and do not imply positive mathematical radius. If projection fails, exact equations and classification remain current and useful.

Limits, privacy and sources

This is fixed coordinate algebra, not fitting, surveying, intersections or image processing. Sources allow signed decimals, fractions or mixed numbers under the nearby twelve-digit-component, 64-character-envelope and strict absolute-value-below-1e12 limits. A 500-digit exact-operation guard stops unsupported precision without guessing a classification. No input is uploaded, automatically saved or automatically written into the URL. Public links require explicit consent and disclose the active numeric source.

OpenStax Intermediate Algebra 2e: distance, midpoint and circles supports the standard-form and completing-square methods. Wolfram MathWorld: Circle supplies center-radius and diameter identities. These sources support the mathematics, not software precision policies or graph certification. Method reviewed November 8, 2026.

For radius, diameter, circumference and area measurements, use the separate Circle area and circumference calculator.

Frequently asked questions

Why can the result be a point?
When exact radius squared is zero, the sum of two squared coordinate differences is zero only at the center.
Why does the graph use local offsets?
A huge absolute center and tiny radius can collapse into identical rounded absolute coordinates. Exact center-relative differences retain the geometry; the caption states the actual center and the local coordinate convention.
Can I enter two arbitrary points on a circle?
This two-point mode requires the ends of a diameter. Arbitrary circumference points do not determine a unique circle without more information.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.