ForHosting KIT · Math

Circumcenter calculator

Find the point equally far from three vertices and the circle through them: for (0, 0), (4, 0) and (0, 3) the circumcenter is (2, 1.5) and the radius 2.5. Diameter, area and side lengths come with it. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
X-coordinate of vertex A
0
Y-coordinate of vertex A
0
X-coordinate of vertex B
4
Y-coordinate of vertex B
0
X-coordinate of vertex C
0
Y-coordinate of vertex C
3
You get
Circumradius
2.5
Diameter
5
Area
6

The circumcenter calculator finds the unique point equidistant from three planar triangle vertices and the radius of the circle that passes through all three. You supply the coordinates of vertices A, B, and C; the engine intersects the perpendicular bisectors of the sides with a closed-form determinant formula, then reports the circumcenter coordinates, the circumradius, the diameter, the triangle area, and the three side lengths.

What the circumcenter is and what you get

The circumcenter of a triangle is the center of the unique circle that passes through all three vertices. Geometrically it is the intersection of the perpendicular bisectors of any two sides; algebraically it is the unique point O such that the Euclidean distances OA, OB, and OC are equal. That common distance is the circumradius R, and twice R is the diameter of the circumcircle.

This calculator exists to turn raw vertex coordinates into that center and radius without requiring you to set up bisector equations by hand. The formula field records the determinant identity used so documentation and teaching demos can cite the same closed form. If you need the incenter (angle bisectors), the orthocenter (altitudes), or the centroid (medians), use tools dedicated to those centers; the search intent here is the circumcircle from three points and a clear answer of O, R, or an honest error.

Where circumcenter solving fits in study, design, and code

Students meet the circumcenter when a textbook asks for the circle through three given points or for the point equidistant from three cities on a map sketch. Teachers can pre-generate answer keys that list O and R for integer-coordinate triangles and refuse collinear inputs instead of printing Infinity. Surveying and CAD workflows often need a circle constrained to three non-collinear control points before offsetting arcs or checking clearances; knowing that a third stake is collinear with the first two is as valuable as the circle itself.

Game and simulation teams use the circumcircle as a cheap bounding circle for a triangle mesh face, for hit-test regions, or for placing a light at the center of a triangular room footprint. Developers call the same contract from scripts to seed deterministic test vectors for geometry libraries, to illustrate perpendicular bisectors in teaching tools, or to satisfy programming-challenge statements that demand the circumcenter of a coordinate triangle.

Homework and exam preparation

Compute the circumcenter and circumradius from textbook vertex coordinates, and verify collinear triples are rejected instead of producing Infinity.

CAD, surveying, and game bounds

Fit a circle through three control points for layout checks, clearances, or triangle bounding circles in tools and simulations.

What does the circumcenter calculator cost?

It is free in your browser on this page.

How do I pass the vertices?

You can also pass a, b, c as [x, y] or {x, y}, or a points array of three pairs.

Is this the same as the incenter or centroid?

No. The circumcenter is equidistant from the vertices (perpendicular bisectors). The incenter is equidistant from the sides; the centroid averages the vertices.

What happens if the three points are on a straight line?

No circle can pass through three points on one line, so the calculator refuses them with a clear message instead of showing an infinite radius. Two vertices at the same spot are refused too.

How do I find the radius of the circle through three points?

Enter the three points and read the circumradius, the distance from the circumcenter to any vertex. For (0, 0), (4, 0) and (0, 3) the center is (2, 1.5) and the radius 2.5, so the diameter is 5.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/geom/triangle-circumcenter

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/geom/triangle-circumcenter \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ax":0,"ay":0,"bx":4,"by":0,"cx":0,"cy":3}'
{
  "ax": 0,
  "ay": 0,
  "bx": 4,
  "by": 0,
  "cx": 0,
  "cy": 3
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "geom.triangle_circumcenter",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

When the three points lie on a straight line there is no finite circumcircle, so the tool returns invalid_input instead of Infinity or a silent NaN. Through the API a successful request costs $0.002; validation failures are not charged.

What the circumcenter is and what the response contains

The preferred inputs are the six scalars ax, ay, bx, by, cx, and cy as JSON numbers; decimal strings are accepted for form and spreadsheet callers, and nested points a, b, c as [x, y] or {x, y} are also read. The response echoes the three vertices, returns circumcenter as an {x, y} object, circumradius and diameter as numbers, the triangle area K, and the side lengths ab, bc, and ca. A collinear boolean is always false on success because collinear input is rejected before a circle is formed. Missing coordinates, non-finite values, coincident vertices, and collinear triples all raise invalid_input with a message that names the failing condition. That discipline keeps automated tests stable, makes caching safe, and prevents a student or a script from treating a degenerate triple as a circle of infinite radius.

How coordinates are read and how the closed form is evaluated

You may also pass points or vertices as an array of three [x, y] pairs. After parsing, pairwise distances are checked so that coincident vertices fail fast with a message naming the pair. Otherwise the circumcenter coordinates follow the standard expansion: Ox equals the weighted sum of squared norms times the opposite y-differences divided by D, and Oy equals the analogous sum with x-differences. Circumradius is the distance from O to A; an independent check R equals abc over four K uses the product of side lengths and the triangle area K equals absolute D over four, and the two estimates are averaged for a stable reported radius under floating-point noise. The engine resolves vertex A from ax and ay (aliases x1, a_x, y1, a_y) or from nested field a; likewise B from bx and by and C from cx and cy. Pair the free browser run on this page with the priced API when you need the identical mathematical result inside an automated pipeline without re-implementing the bisector algebra yourself. Near-degenerate triangles with very small area can amplify floating-point error; if consistency between vertex distances fails, the engine surfaces invalid_input rather than a silently inconsistent circle.

Where circumcenter solving fits in study, design, and code

On this page the work runs entirely in your browser; through the API each successful lookup costs $0.002, failed validation is not charged, and nothing is stored after the response returns. That split—free interactive exploration and a priced, identical API—matches the rest of the KIT tier-A catalog and lets you move from a classroom demo to an automated pipeline without changing the mathematical result. Pair it with unit converters when coordinates arrive in mixed units, with other free geometry endpoints when you need SSA or side-angle companions for a lab of deterministic tools, and with documentation that shows both the bisectors and the finished circle so the numbers and the picture stay aligned for learners and reviewers.

Deterministic geometry fixtures

Generate reproducible O and R values for unit tests, contest validators, and CI assertions without hand-rolled perpendicular-bisector algebra.

What if the three points are collinear?

The handler returns invalid_input with a message that the points are collinear and no finite circumcenter or circumradius exists.

Can I control rounding?

Yes. Set precision (aliases decimals, dp) to an integer from 0 to 15; the default is 10 decimal places on all numeric fields.

Read the full KIT documentation →