Shapes & spaces

Smallest enclosing circle calculator for points

Find the minimum-radius circle containing a planar point set and check every point’s distance to the computed center.

Your numbers

One x,y pair per line. Use a decimal point, at most six decimal places, and no thousands separators. Coordinates must be within ±1,000,000.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The smallest enclosing circle contains every input location while minimizing its radius. Its center is free to move: it is not generally the arithmetic mean of the observations. One point, a diameter pair or three boundary points can determine the optimum. This page searches all pair and noncollinear-triple supports within a bounded input size, checks which candidates enclose the entire point set and retains the smallest admissible circle.

THE FORMULAMinimize r subject to |Pᵢ − C| ≤ r; an optimum has a support of at most three input points.

A worked example

For points (0,0), (4,0) and (2,3), the minimum circle is their circumcircle because the triangle is acute. Its center is (2,5/6) and its radius is 13/6, approximately 2.166667. Each vertex is the same distance from that center. Using the midpoint (2,0) with radius 2 would miss the top point.

Good to know

Supports one through 40 planar rows within the coordinate range and decimal grid shown above. Centers and radii are numerical approximations. A small final roundoff adjustment ensures enclosure. The page does not solve a largest empty circle, a fixed-center coverage problem, a circle-fitting regression or the three-dimensional minimum enclosing sphere.

Supporting points determine the circle

In the default acute triangle all three points support the minimum circle. Moving one of those points can change the center or radius. An additional point strictly inside the circle does not change the optimum, because the existing supports already require that radius. The support count in the result tells you which kind of determining configuration was selected, and the plot marks those points.

An obtuse triangle behaves differently. For points (−2,0), (2,0) and (0,1), the extreme horizontal points define a diameter of length four. Their midpoint is the center and the radius is two. The third point is already inside, so forcing the circle through all three would produce a larger, unnecessary circle. This is why a circumcircle routine alone cannot solve every minimum-enclosure problem.

An acute triangle is enclosed by its three-support circumcircleR = 13/6C = (2,5/6)Three supports
For points (0,0), (4,0) and (2,3), the circle has center (2,5/6) and radius 13/6. All three distances to the center equal that radius.

The Convex hull calculator from unordered points identifies extreme points without restricting the boundary to a circle.

Read enclosure margins as numerical checks

The table calculates the distance from each entered point to the reported center and subtracts it from the radius. A positive margin means an interior point; zero identifies a point on the boundary within arithmetic precision. The search permits only tiny roundoff in containment tests and then expands the returned radius to the largest computed point distance if necessary. These decimal results should not be interpreted as a certified exact-arithmetic construction.

A single distinct location gives radius zero and that location as the center. Collinear points require only the two most distant endpoints, so no three-point circumcircle needs to exist. Repeated rows do not change the geometric enclosure. For comparisons with a point cloud’s polygonal extent, the convex hull calculator answers a different enclosure question: its boundary is made of straight segments rather than one circle. No geographic distance model or map projection is assumed here.

A few questions, answered

Is the center the average of the points?

Usually not. An average minimizes a squared-distance objective, whereas this center minimizes the largest distance to any point.

Does adding an interior point change the circle?

No. If a point is already contained, it adds no tighter constraint and the existing minimum circle remains feasible and optimal.

Find your calculator

Start typing to explore the library.