Center of a Circle Calculator
Calculate the center and radius of a circle from 3 points, general equation, or diameter endpoints. Visual graph, step-by-step solution.
x² + y² + Dx + Ey + F = 0
About
Determining the center of a circle is a foundational problem in coordinate geometry with direct applications in surveying, CNC machining, computer vision, and structural engineering. Given three non-collinear points, the circumcenter (h, k) is the unique point equidistant from all three. The calculation requires solving a 2Ă2 linear system derived from perpendicular bisectors. An error in sign or arithmetic propagates into every downstream measurement. This tool solves three common formulations: three arbitrary points, the general second-degree equation x2 + y2 + Dx + Ey + F = 0, and two diametrically opposite endpoints.
The tool validates inputs before solving. For the three-point method, it checks for collinearity via the cross-product test. For the general equation, it verifies that the discriminant D2 + E2 â 4F is strictly positive. Results are approximate to 6 decimal places; rounding artifacts may appear for irrational coordinates. All solutions include a scaled interactive graph for visual verification.
Formulas
The primary method solves for the circumcenter of three points. Given points P1(x1, y1), P2(x2, y2), P3(x3, y3), each point satisfies the standard circle equation:
Expanding and subtracting pairs eliminates the squared terms, yielding two linear equations. The determinant-based solution is:
where A = x1(y2 â y3) + x2(y3 â y1) + x3(y1 â y2). If A = 0, the three points are collinear and no circle exists. The radius is then computed as:
For the general equation method, given x2 + y2 + Dx + Ey + F = 0, complete the square to obtain center (âD2, âE2) and r = âD24 + E24 â F. The discriminant D2 + E2 â 4F must be > 0 for a real circle. For diameter endpoints P1(x1, y1) and P2(x2, y2): center = (x1 + x22, y1 + y22), and r = 12â(x2 â x1)2 + (y2 â y1)2.
Variable legend: h, k = center coordinates. r = radius. A = twice the signed area of the triangle formed by the three input points. D, E, F = coefficients of the general circle equation.
Reference Data
| Circle Form | Equation | Center | Radius | Use Case |
|---|---|---|---|---|
| Standard Form | (x â h)2 + (y â k)2 = r2 | (h, k) | r | Direct read-off of center & radius |
| General Form | x2 + y2 + Dx + Ey + F = 0 | (âD2, âE2) | âh2 + k2 â F | Algebraic manipulation, curve fitting |
| Parametric Form | x = h + rcos(t), y = k + rsin(t) | (h, k) | r | Animation paths, CNC tool paths |
| Polar Form (origin-centered) | r = a | (0, 0) | a | Radar plots, physics |
| Polar Form (general) | r2 â 2rr0cos(Ξ â Ï) = a2 â r02 | (r0, Ï) | a | Orbital mechanics |
| 3-Point (Circumscribed) | Perpendicular bisector intersection | Circumcenter | Circumradius | Triangle circumscription, surveying |
| Diameter Endpoints | Midpoint formula | Midpoint of endpoints | Half distance | Quick field measurement |
| Unit Circle | x2 + y2 = 1 | (0, 0) | 1 | Trigonometry reference |
| Incircle | Angle bisector intersection | Incenter | Inradius | Maximum inscribed circle |
| Excircle | External bisector intersection | Excenter | Exradius | Triangle geometry proofs |
| Osculating Circle | Curvature-based at point on curve | Center of curvature | 1Îș | Road design, optics |
| Nine-Point Circle | Midpoints, feet of altitudes, midpoints of vertices to orthocenter | Nine-point center | R2 | Advanced triangle geometry |
| Apollonius Circle | Locus of constant distance ratio to two points | On line through foci | Depends on ratio | Antenna placement, optics |
| Great Circle (Sphere) | Plane through sphere center | Sphere center | Sphere radius | Navigation, geodesy |
| Small Circle (Sphere) | Plane not through center | Projected center | Rsin(Ξ) | Latitude lines, cone sections |