Every circle in the coordinate plane is described by one short equation, but textbooks write it in two ways and give you very different starting information. This circle equation calculator accepts whatever you have — the center and radius, the center and one point on the circle, the two endpoints of a diameter, three points the circle passes through, or a general form — and returns both forms of the equation together with the center, radius, diameter, circumference and area.
Results are kept exact whenever the inputs are whole numbers or simple decimals: the center may be a fraction such as and the radius is simplified to a surd such as instead of 2.828427. The steps show the algebra — the perpendicular bisectors for three points, completing the square for the general form — so you can follow or copy the method.
To work with a circle's measurements only (radius, diameter, circumference, area), the circle calculator is quicker; for the distance and midpoint used in the diameter method, see the distance between two points calculator and the midpoint calculator.
How to use this calculator
- Choose what you know: center and radius, center and a point, endpoints of a diameter, three points, or the coefficients D, E and F.
- Type the coordinates or coefficients. Negative numbers and decimals are accepted.
- Read the standard form at the top, then the general form, the center and the radius (exact and decimal).
- Use the diameter, circumference and area if you need the size of the circle.
- Open the steps to see how the center and were obtained.
The formula
A circle is the set of points at distance from its center . By the distance formula this gives the standard form
Expanding the squares gives the general form with , and . Going back, completing the square gives
which is a real circle only when .
- Center and a point : .
- Diameter from to : the center is the midpoint and .
- Three points: the center is equidistant from all three, so it lies on the perpendicular bisectors of two chords. Subtracting the circle equations of the points pairwise gives the linear system (and the same with the third point), solved here exactly.
Worked example
Three points. Through , and the perpendicular bisectors are and , so the center is and :
- Standard form: (x − 2)² + (y − 2)² = 8
- General form: x² + y² − 4x − 4y = 0
- Radius 2√2 ≈ 2.8284, circumference ≈ 17.7715, area ≈ 25.1327.
Center and radius. Center and radius 5 give (x − 2)² + (y + 3)² = 25, or x² + y² − 4x + 6y − 12 = 0.
General form. completes to (x + 3)² + (y − 4)² = 16: center and radius 4.
Diameter. From to : the midpoint is the center and the radius is half of , i.e. √13, so the circle is (x − 2)² + (y − 4)² = 13.
Circle equations: which form to use
The standard form is the one to read: the center and radius are visible at a glance, and it is what most exercises mean by "find the equation of a circle". The general form is what you get after expanding, and it is the natural shape when a circle comes out of an algebra problem or a system of equations. Both describe the same set of points, and this calculator always gives both. Watch the signs: in the center coordinate appears with the opposite sign, so means .
Circle equation from three points
Any three points that are not on one line lie on exactly one circle — the circumcircle of the triangle they form. Its center is where the perpendicular bisectors of the sides meet, which the calculator finds by solving two linear equations exactly. If the three points are collinear, the bisectors are parallel and no circle exists; the calculator says so instead of returning a huge radius. For right triangles there is a shortcut: the hypotenuse is a diameter, as the example above shows with and .
Frequently asked questions
How do I find the equation of a circle?
Find the center (h, k) and the radius r, then write (x − h)² + (y − k)² = r². With center (2, −3) and radius 5 that is (x − 2)² + (y + 3)² = 25.
How do I get the center and radius from x² + y² + Dx + Ey + F = 0?
Complete the square: the center is (−D/2, −E/2) and r² = D²/4 + E²/4 − F. For x² + y² + 6x − 8y + 9 = 0: center (−3, 4) and r² = 9 + 16 − 9 = 16, so r = 4.
What if D²/4 + E²/4 − F is zero or negative?
If it is zero, the equation describes a single point (a degenerate circle of radius 0). If it is negative, no real point satisfies the equation, so it does not represent a circle at all.
Why is the radius shown as 2√2 instead of a decimal?
Because r² = 8 is not a perfect square: √8 simplifies to 2√2, the exact value. The decimal 2.828427 is shown on the next line for measuring or plotting.
Can the equation of a circle have an xy term?
No. A circle always has equal coefficients for x² and y² and no xy term. An equation such as x² + 2y² = 4 is an ellipse, and one with an xy term is a rotated conic.
Sources
- OpenStax, Intermediate Algebra 2e — §11.1 Distance and Midpoint Formulas; Circles
- Weisstein, Circle — Wolfram MathWorld
- Weisstein, Circumcircle — Wolfram MathWorld
Last updated: