The guide
Three points that do not share a line leave room for exactly one circle
Give a compass three points off a line and only one circle will touch all of them. Its centre is where the perpendicular bisectors meet, and the algebra can say so without rounding.
- (2, 3/2) centre of the circle through (0,0), (4,0) and (0,3)
- 25/2 radius squared for the points (2,3), (5,7) and (-1,4)
- 106.2602 degrees of central angle over the chord from (0,0) to (4,0)
- R = abc/4K side lengths and area give the radius directly
- d = 0 the determinant that says three points are on one line
Read the full guide Fold the guide
Press two pins into a board and ask for a circle through both. You will have a hard time choosing, because there are endless circles, big and small, leaning left or right. Add a third pin and the choice disappears. If the pins are not in a row, one circle passes through all three and no other does. That claim is old and it is easy to trust. It is just as easy to get wrong in a calculation, and the mistakes follow a pattern. This essay walks through why the circle is unique, where its centre sits, what the radius formula says, and what goes wrong when the three points lie on one line.
Why the circle is forced
Start with two points, A and B. Every point on the perpendicular bisector of the segment AB is the same distance from A as from B. That is the defining property of the bisector. A circle through A and B must have its centre somewhere on that line, because the centre is equidistant from every point on the circle.
Now add C. The centre must also lie on the perpendicular bisector of BC. Two different lines in a plane cross at most once, so the centre has nowhere else to be. Once the centre is fixed, the radius is just the distance to any one of the points. Nothing is left to choose.
The line of reasoning has a gap, and it is the interesting part. The two bisectors cross only if they are not parallel. They are parallel exactly when AB and BC point the same way, which means A, B and C sit on one straight line. In that case no centre exists, and so no circle does either.
The same argument is how the circle through the corners of a triangle gets its name. A triangle has three corners and, unless it is flat, three non-collinear points. Its circumscribed circle, also called the circumcircle, passes through all of them, and its centre is the circumcentre.
Where the centre lands
The circumcentre does not always sit inside the triangle. For an acute triangle, where every angle is below a right angle, it does lie inside. For an obtuse triangle it falls outside, on the far side of the longest edge. For a right triangle it lands exactly on the middle of the hypotenuse.
That last case is the oldest of the three. The theorem credited to Thales says that a point on a circle sees a diameter at a right angle. Run it backwards and a right triangle always has its hypotenuse as a diameter, so the centre is the midpoint of that side. Euclid proved the theorem itself in the third book of the Elements.
Try it with the points (0,0), (4,0) and (0,3). The hypotenuse runs from (4,0) to (0,3), its midpoint is (2, 3/2), and the squared distance from there to any of the three points is 25/4. The radius is 5/2. In general form the circle is x^2 + y^2 - 4x - 3y = 0, and each of the three points satisfies it when you substitute.
A common slip is to answer with the centroid, the mean of the three points. For the same triangle the mean is (4/3, 1), which is 5/3 from the origin and about 2.85 from the point (4,0). Those distances are different, so the centroid cannot be the centre of a circle through all three. The two points coincide only for an equilateral triangle.
Doing it with numbers
Algebra turns the bisector argument into a formula. Write d = 2 (Ax (By - Cy) + Bx (Cy - Ay) + Cx (Ay - By)). The centre has coordinates that are each a sum of three terms divided by d, where the terms involve the squared distance of each point from the origin. Standard references print both sums in full.
Take A = (2,3), B = (5,7) and C = (-1,4). Here d = 30 and the centre works out to (3/2, 13/2). The squared radius is (2 - 3/2)^2 + (3 - 13/2)^2, which is 1/4 + 49/4 = 25/2. The radius is therefore the square root of 25/2, written 5 sqrt(2) / 2, which is 3.5355339 to seven places.
The same data check the radius in a second way. The side lengths are 5, the square root of 45 and the square root of 10, and the triangle has area 15/2. Multiply the three sides and divide by four times the area, and you get 75 sqrt(2) / 30, again 5 sqrt(2) / 2. The formula R = abc/4K is the circumradius written in terms of side lengths a, b, c and area K.
Why does it hold? The law of sines says each side divided by the sine of the opposite angle equals twice the radius. Combine that with the area written as half of two sides times the sine of the angle between them, and the sines cancel. The area itself can come from Heron’s formula when only side lengths are known, or from the shoelace determinant when coordinates are.
A fraction stays a fraction in this arithmetic. Tools that convert 1/3 to 0.333 early carry a tiny error through every later step. The error shows up when you substitute the three points back and the two sides of the equation differ in the ninth digit. Holding each coordinate as an integer ratio avoids that, and a modern browser offers integers of any length for it.
When the points are on a line
Put the determinant d to work as a test. The bracket inside it is twice the signed area of the triangle ABC, so d is zero exactly when the triangle is flat. The points (0,0), (1,1) and (2,2) give d = 2 (0 + 2 - 2), which is 0. The rule d = 0 therefore says in one line what the geometry says in a picture.
A careless implementation divides by d anyway. In floating point that can return an enormous radius that looks like an answer, because rounding makes d tiny instead of zero. With exact fractions the division is not possible and the program has to stop and say that no circle exists. That is the honest result, and it is the behaviour you want.
There is a way to see why nothing is lost. A line behaves like the limit of circles whose radius grows without end. Slide the third point toward a line through the first two and the circle swells, its centre running off to infinity. At the moment the points become collinear the circle has become the line, and a line has no centre and no finite radius.
Arcs, chords and a fourth point
Once the circle exists, other questions follow. The chord between two of the points is a straight segment, and the central angle over it is found from the radius and the chord. On a unit circle the chord of angle theta is 2 sin(theta/2), so on radius R the angle is 2 asin(chord / 2R).
For the chord from (0,0) to (4,0) in the right-triangle circle, the chord is 4 and the radius 5/2. The central angle is 2 asin(0.8), which is 106.2602 degrees. The arc length is the radius times that angle in radians, about 4.6365. The arc on the other side of the chord is the rest of the circle.
Each pair of points cuts the circle into two arcs, and which one you want depends on the third point. Take the arc that does not pass through it. The three such arcs, one for each pair, add up to a full turn of 360 degrees, which makes a handy check.
A fourth point P can be sorted by comparing two numbers. Square its distance from the centre and compare with the squared radius. Below means inside, equal means on the circle, above means outside. The difference is called the power of the point. Squared values avoid roots, so with exact fractions the verdict is never a matter of rounding. For the right-triangle circle the point (2,4) is 5/2 above the centre, and its squared distance is 25/4. That matches the squared radius exactly, so it lies on the circle. Nudge it to (2,5) and the squared distance becomes 49/4, so it is outside. Nothing in the test depends on drawing the picture.
What this method cannot do
All of this assumes exactly three points that you trust. Real measurements are noisy, and a circle through three of them can differ greatly from the circle that best fits a hundred. Fitting many points is a least-squares problem and a different job. Neither does this calculation reach into three dimensions, where three points still fix a circle but its plane has to be found first.
It also says nothing about tangent lines, and it does not make a nearly collinear triple friendly. When the points almost line up, the radius is huge and the centre sits far away. The numbers are exact, but a drawing of the result will need a very wide view to show the circle at all. What the method gives, within those limits, is a result you can check by substitution. Put each point into the equation and the left side equals the right side exactly. If a chat answer ever gives a decimal that fails that test, the fault lies with the answer and not with the geometry.
Sources
Every source consulted for this guide. Links checked November 10, 2026.
- Circumcircle Wikipedia (CC BY-SA)
- Circle Wikipedia (CC BY-SA)
- Collinearity Wikipedia (CC BY-SA)
- Bisection Wikipedia (CC BY-SA)
- Thales's theorem Wikipedia (CC BY-SA)
- Law of sines Wikipedia (CC BY-SA)
- Heron's formula Wikipedia (CC BY-SA)
- Shoelace formula Wikipedia (CC BY-SA)
- Chord (geometry) Wikipedia (CC BY-SA)
- Circular arc Wikipedia (CC BY-SA)
- Power of a point Wikipedia (CC BY-SA)
- BigInt - JavaScript MDN Web Docs (CC BY-SA)
- Web Workers API MDN Web Docs (CC BY-SA)