Skip to content

Circle Equation Calculator

Equation of a circle from its center and radius, a diameter, three points or x² + y² + Dx + Ey + F = 0.

Your details

Results update as you type

Standard form (x − h)² + (y − k)² = r²

(x − 2)² + (y − 2)² = 8

General form
x² + y² − 4x − 4y = 0
Center (h, k)
(2, 2)
Radius (exact)
2√2
Radius
2.828427
Diameter
5.656854
Circumference 2πr
17.771532
Area πr²
25.132741

Step-by-step solution
  1. Perpendicular bisectors: 2(x₂ − x₁)h + 2(y₂ − y₁)k = x₂² + y₂² − x₁² − y₁²; 2(x₃ − x₁)h + 2(y₃ − y₁)k = x₃² + y₃² − x₁² − y₁²
  2. Solve the system → center: (2, 2)
  3. Radius squared: r² = (x₁ − h)² + (y₁ − k)² = 8
  4. Standard form: (x − 2)² + (y − 2)² = 8
  5. Expand → general form: x² + y² − 4x − 4y = 0
  6. Circumference: 2πr = 4√2π ≈ 17.7715317526
  7. Area: πr² = 8π ≈ 25.1327412287

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 x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0 — 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 (72,−1)\left(\frac{7}{2}, -1\right) and the radius is simplified to a surd such as 222\sqrt{2} 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

  1. Choose what you know: center and radius, center and a point, endpoints of a diameter, three points, or the coefficients D, E and F.
  2. Type the coordinates or coefficients. Negative numbers and decimals are accepted.
  3. Read the standard form (x−h)2+(y−k)2=r2(x - h)^2 + (y - k)^2 = r^2 at the top, then the general form, the center and the radius (exact and decimal).
  4. Use the diameter, circumference and area if you need the size of the circle.
  5. Open the steps to see how the center and r2r^2 were obtained.

The formula

A circle is the set of points at distance rr from its center (h,k)(h, k). By the distance formula this gives the standard form

(x−h)2+(y−k)2=r2(x - h)^2 + (y - k)^2 = r^2

Expanding the squares gives the general form x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0 with D=−2hD = -2h, E=−2kE = -2k and F=h2+k2−r2F = h^2 + k^2 - r^2. Going back, completing the square gives

h=−D2,k=−E2,r2=D24+E24−F,h = -\frac{D}{2}, \qquad k = -\frac{E}{2}, \qquad r^2 = \frac{D^2}{4} + \frac{E^2}{4} - F,

which is a real circle only when r2>0r^2 > 0.

  • Center and a point (x1,y1)(x_1, y_1): r2=(x1−h)2+(y1−k)2r^2 = (x_1 - h)^2 + (y_1 - k)^2.
  • Diameter from (x1,y1)(x_1, y_1) to (x2,y2)(x_2, y_2): the center is the midpoint and r2=(x2−x1)2+(y2−y1)24r^2 = \frac{(x_2 - x_1)^2 + (y_2 - y_1)^2}{4}.
  • 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 2(x2−x1)h+2(y2−y1)k=x22+y22−x12−y122(x_2 - x_1)h + 2(y_2 - y_1)k = x_2^2 + y_2^2 - x_1^2 - y_1^2 (and the same with the third point), solved here exactly.

Worked example

Three points. Through (0,0)(0, 0), (4,0)(4, 0) and (0,4)(0, 4) the perpendicular bisectors are x=2x = 2 and y=2y = 2, so the center is (2,2)(2, 2) and r2=22+22=8r^2 = 2^2 + 2^2 = 8:

  • 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 (2,−3)(2, -3) and radius 5 give (x − 2)² + (y + 3)² = 25, or x² + y² − 4x + 6y − 12 = 0.

General form. x2+y2+6x−8y+9=0x^2 + y^2 + 6x - 8y + 9 = 0 completes to (x + 3)² + (y − 4)² = 16: center (−3,4)(-3, 4) and radius 4.

Diameter. From (−1,2)(-1, 2) to (5,6)(5, 6): the midpoint (2,4)(2, 4) is the center and the radius is half of 36+16\sqrt{36 + 16}, 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 (x−h)2(x - h)^2 the center coordinate appears with the opposite sign, so (x+3)2(x + 3)^2 means h=−3h = -3.

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 (4,0)(4, 0) and (0,4)(0, 4).

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

Last updated:

More Math calculators

People also use