Learn

What Is a Centroid?

A centroid is the geometric centre of a geometry under a defined coordinate model; it is useful as a derived representative point but may fall outside concave or multipart polygons.

Geobble
introductoryexplainerGeometry & Data Models

Explain what centroids represent, how they behave for different geometries, and why they should not be assumed to be an interior or population-representative point.

What Is a Centroid?

A centroid is a geometry's geometric centre under the mathematical model used to calculate it. For a polygon, this can be understood as the balance point the shape would have if it possessed uniform density; for a line, it is derived from the line's geometry rather than from any population, traffic or semantic importance attached to it.

Because a centroid reduces a geometry to one representative point, it can be extremely useful. That point is purely geometric, however, so it is neither guaranteed to fall inside a polygon nor automatically the best location for labels, routing or human activity.

A centroid is derived from the geometry

The centroid depends on the coordinates and dimensions of the input geometry. It therefore lies at the familiar centre of a simple rectangle, is weighted by area for an irregular polygon, and reflects the contribution of every part in a multipart geometry.

Although this dependence makes the centroid reproducible and mathematically well defined, it also means that its location follows shape rather than domain meaning. A long, narrow extension may pull the point away from where most people would visually expect the centre to be, while a large uninhabited area can dominate the centroid of an administrative unit even when almost the entire population lives elsewhere.

A polygon centroid can lie outside the polygon

A polygon centroid can fall outside the feature, a result that surprises many GIS users. A strongly concave polygon may wrap around empty space and place its geometric balance point there, as crescent-shaped polygons classically do. Similarly, a multipart feature can have a centroid between its disconnected parts—perhaps in water or even another jurisdiction.

Although such a centroid remains mathematically valid, it may still be the wrong result when the requirement is to “give me a point inside this feature”. That requirement asks a different question, for which Centroid vs Point on Surface explains the safer distinction.

Centroid does not mean average coordinate

For a polygon, averaging the x and y values of all vertices does not generally produce the true centroid. Because vertices are not distributed uniformly around the area—and complex edges often contain many more of them than straight edges—a simple coordinate average depends partly on digitising density rather than solely on the geometry's area.

GIS libraries avoid that problem by using geometry-specific centroid algorithms that account for the feature's dimensional structure.

CRS can affect the result

Centroid calculations are usually performed in the coordinate space supplied to the algorithm, which means that the CRS can affect the result. A planar centroid is often straightforward for a small local feature in an appropriate projected CRS. With a large geographic polygon stored in longitude and latitude, however, applying planar geometry directly to angular coordinates may produce a point that does not correspond to the centre implied by an earth-surface model.

How much that difference matters depends on the feature's extent and the point's intended use. A label point for a small district may tolerate a discrepancy that would be significant for a very large or polar region. As with distance and area, the coordinate model should therefore fit the geographic scale of the calculation.

Centroids are useful for summarisation

Centroids are commonly used to:

  • create representative points from polygons;

  • attach labels to simple shapes;

  • generate origin points for exploratory analysis;

  • visualise aggregated units as points;

  • compare spatial distributions through derived centres.

These uses work best when the geometry itself remains available and the centroid is clearly treated as a derived convenience. If the point silently replaces the source polygon, later users may instead assume that it represents a real observed location.

A centroid is not a population centre

Because administrative polygons often contain uneven populations, the geometric centroid of a region may lie far from where most residents live. A population-weighted centre answers that problem by weighting locations according to population rather than polygon area, while a service-accessibility study may instead need an administrative capital, settlement centroid or network-connected entrance.

Each of these points can be reasonable for a particular purpose, but they represent different concepts; calling all of them a “centroid” hides that distinction.

Centroids can change when geometry changes

If a boundary is updated, simplified, clipped or repaired, its centroid can move even though the real-world entity is conceptually unchanged. Centroid-derived coordinates are therefore sensitive to geometry version, and a dataset that uses them as stable identifiers or long-term observation locations may create false change whenever the underlying boundary representation changes.

Where stable feature identity matters, an explicit identifier is safer than relying on centroid coordinates.

When an interior point is more appropriate

If the requirement is simply to “place a label somewhere inside the polygon”, a point-on-surface or equivalent interior-point function is often a better tool. Its result may not look as geometrically central, but it provides the property the workflow actually needs: according to the implementation's guarantee, the point lies on or inside the feature. For map labels, that assurance can be more useful than geometric balance.

Name the derived point by what it is

A centroid is a mathematical summary of geometry, and it becomes misleading only when a workflow gives it a meaning it does not possess. If a dataset derives centroids, preserve the original geometry where possible, record the method, and distinguish those geometric centres from entrances, capitals, weighted centres and manually selected representative points. Doing so makes later distance, labelling and accessibility analyses much easier to interpret.

Related content