Shapes & spaces

Convex hull calculator from unordered points

Find the outer convex boundary of an unordered point cloud, its area and perimeter, with duplicate and collinear cases handled.

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

A convex hull is the smallest convex set containing every supplied point. Imagine pulling a tight elastic band around the outside of a collection of pins: interior pins do not change the outline. Unlike a polygon-area calculation, the input does not need to arrive in boundary order. The calculator removes duplicate locations, builds the extreme boundary counterclockwise and measures that boundary. Intermediate points on a straight hull edge do not become separate extreme vertices.

THE FORMULAKeep left turns in sorted lower and upper chains; area = ½|Σ(xᵢyᵢ₊₁ − yᵢxᵢ₊₁)|.

A worked example

For (0,0), (2,0), (2,2), (0,2) and (1,1), the first four locations form a square hull. Its area is 4 square coordinate units and its perimeter is 8 coordinate units. The center point is contained but contributes no boundary edge. Shuffling all five input rows leaves those measurements unchanged.

Good to know

Supports one through 1,000 planar coordinate rows on the stated six-decimal grid, with each coordinate within ±1,000,000. Coordinates must share a linear Cartesian unit; latitude and longitude are not projected automatically. A single distinct location gives a point hull. A collinear cloud gives a line segment with zero area; its endpoint span is reported rather than a doubled polygon perimeter.

Boundary order is calculated rather than assumed

Connecting unordered input rows directly can create a crossing path and an unrelated area. The hull algorithm instead sorts distinct locations by x and then y. It walks one lower chain and one upper chain, removing any middle point that would turn inward or continue a straight edge. Joining the chains produces the boundary of the convex enclosure, regardless of the input row order.

The result table lists only extreme vertices. A point halfway along the bottom side of the default square is on the hull boundary but is not an extreme vertex, so it is omitted from that list. This omission does not lose any area or perimeter. The plot still includes every input observation, making interior points and repeated locations understandable in context.

Four extreme points enclose a square while the center point stays insideFive input pointsFour hull verticesArea = 4Perimeter = 8
The unordered square corners have hull area 4 and perimeter 8. The point (1,1) is an interior observation and is not a hull vertex.

The Smallest enclosing circle calculator for points provides a circular envelope of the same point cloud instead of its polygonal convex envelope.

A hull fills concavities and does not recover a survey boundary

Suppose a set of boundary observations follows a U-shaped parcel. Its convex hull stretches across the opening of the U and includes land outside the parcel. The convex area is therefore an enclosure, not a reconstruction of the original concave outline. Use the polygon coordinate calculator when the true boundary vertices and their order are known. Convex hulls are useful for envelopes and extent comparisons, not for inferring missing boundary topology.

Degenerate inputs deserve explicit answers. With points (0,0), (1,1) and (2,2), the hull is the segment from (0,0) to (2,2), its area is zero, and its endpoint span is √8. The calculator labels this as a line segment. It does not silently draw a thin polygon or report twice the span as an ordinary perimeter. Turn signs use high-precision decimal arithmetic on the supported grid, reducing cancellation when coordinates have a large common offset.

A few questions, answered

Do repeated coordinate rows increase the hull area?

No. The hull depends on distinct locations. Repeating a point changes neither the extreme boundary nor its measurements.

Can a convex hull represent a hole?

No. A convex enclosure has no holes or inward dents. A polygon-with-holes model is required when those features belong to the actual boundary.

Find your calculator

Start typing to explore the library.