Circumcenter Calculator
Calculate the circumcenter and circumradius of a triangle from vertex coordinates. Visualize the circumscribed circle with an interactive diagram.
About
The circumcenter of a triangle is the unique point equidistant from all three vertices. It lies at the intersection of the three perpendicular bisectors. For acute triangles the circumcenter falls inside the triangle. For right triangles it sits on the hypotenuse midpoint. For obtuse triangles it lies outside. Miscalculating this point leads to incorrect circumscribed circle fits, which propagates errors in computational geometry pipelines such as Delaunay triangulation, mesh generation, and navigation coordinate systems. This tool computes the exact circumcenter coordinates (Ox, Oy) and the circumradius R using the perpendicular bisector intersection method, and validates against degenerate (collinear) inputs where no circumcircle exists.
The computation assumes a standard Euclidean plane with Cartesian coordinates. Numerical precision is limited to IEEE 754 double-precision floating point. For nearly-collinear triangles (area approaching 0), results may exhibit significant rounding artifacts. The tool does not handle spherical or hyperbolic geometry.
Formulas
The circumcenter O is found by solving the intersection of two perpendicular bisectors. Given vertices A(x1, y1), B(x2, y2), C(x3, y3), the circumcenter coordinates are computed via:
where D is the determinant:
When D = 0, the points are collinear and no circumcircle exists. The circumradius is computed as:
where a, b, c are the side lengths and S is the triangle area computed by the shoelace formula: S = |D|2.
Reference Data
| Triangle Type | Circumcenter Location | Angle Condition | Example Vertices | Circumcenter | Circumradius |
|---|---|---|---|---|---|
| Equilateral | Centroid (inside) | All angles = 60° | (0,0), (4,0), (2,3.464) | (2, 1.155) | 2.309 |
| Right (at C) | Hypotenuse midpoint | One angle = 90° | (0,0), (4,0), (0,3) | (2, 1.5) | 2.5 |
| Acute Isosceles | Inside, on axis of symmetry | All angles < 90° | (0,0), (6,0), (3,5) | (3, 1.7) | 3.481 |
| Obtuse Scalene | Outside (opposite obtuse vertex) | One angle > 90° | (0,0), (5,0), (1,1) | (2.5, −3.5) | 4.301 |
| Acute Scalene | Inside | All angles < 90° | (1,1), (5,2), (3,6) | (3.35, 3.15) | 2.693 |
| Degenerate (collinear) | Undefined | Area = 0 | (0,0), (1,1), (2,2) | N/A | ∞ |
| Very Thin Obtuse | Far outside | Largest angle → 180° | (0,0), (10,0), (5,0.1) | (5, 124.975) | 124.98 |
| Right Isosceles | Hypotenuse midpoint | One angle = 90°, two = 45° | (0,0), (4,0), (0,4) | (2, 2) | 2.828 |
| 30-60-90 Triangle | Inside, closer to hypotenuse | 30°, 60°, 90° | (0,0), (4,0), (0,2.309) | (2, 1.155) | 2.309 |
| Large Coordinates | Inside | Arbitrary acute | (100,200), (400,150), (250,500) | (261.07, 272.02) | 174.56 |
| Negative Coordinates | Inside | Arbitrary acute | (−3,−2), (4,−1), (1,5) | (1.045, 0.955) | 4.261 |