Centroid Calculator

Centroid Calculator

Find the centroid of a triangle, polygon, or point cloud.

Last updated: June 2026 | By Patchworkr Team

Centroid
(2, 2)
Triangle centroid is the average of the three vertices.

What is a Centroid?

The centroid is the average position of a shape or set of points.

Triangle: average of the three vertices
Polygon: shoelace centroid formula
Point cloud: average of all coordinates

For polygons, the points must be ordered around the boundary and the area must be non-zero.

How to Use

1. Choose triangle, polygon, or point cloud.

2. Enter the coordinates in the requested format.

3. Read the live centroid result and any area note.

Worked Example

For the triangle (0,0), (6,0), (0,6):

centroid = ((0 + 6 + 0) / 3, (0 + 0 + 6) / 3) = (2, 2)

The calculator should show (2, 2).

FAQ

Does a polygon need ordered points?

Yes. The shoelace formula assumes the boundary points are ordered around the shape.

What if the polygon area is zero?

Then the centroid is undefined for this tool.

Can I use a point cloud instead?

Yes. The tool averages all points in the list.

Can coordinates be decimal values?

Yes, as long as they are finite real numbers.

Related Tools