Back to Centroid Calculator

Theoretical Background: Centroid Calculator

Open the app

Centroid of an area

The centroid is the geometric centre of an area – the point where a thin uniform plate of that shape balances:

$$ \bar x = \frac{\int x\,dA}{\int dA}, \qquad \bar y = \frac{\int y\,dA}{\int dA} $$

\(Q_y = \int x\,dA\) and \(Q_x = \int y\,dA\) are the first moments of area.

Composite areas

For a shape made of parts with known areas \(A_i\) and centroids \((\bar x_i, \bar y_i)\):

$$ \bar X = \frac{\sum \bar x_i A_i}{\sum A_i}, \qquad \bar Y = \frac{\sum \bar y_i A_i}{\sum A_i} $$

Holes are included with a negative area.

Centroids of the basic shapes

ShapeAreaCentroid
Rectangle a × b, corner \((x_1,y_1)\)\(ab\)\((x_1 + a/2,\ y_1 + b/2)\)
Triangle\(\tfrac12|\dots|\)average of the three corners
Polygon (corners in order)\(\tfrac12\sum(x_iy_{i+1} - x_{i+1}y_i)\)\(\frac{1}{6A}\sum(x_i + x_{i+1})(x_iy_{i+1} - x_{i+1}y_i)\), same for y
Circle, radius r\(\pi r^2\)its centre
Semicircle\(\pi r^2/2\)\(4r/3\pi\) from the diameter
Sector of half-angle φ\(\varphi r^2\)\(\dfrac{2r\sin\varphi}{3\varphi}\) from the centre on the bisector

Worked example

Example

A 120 × 80 plate (corner at the origin) has a hole of radius 20 centred at (40, 40).

PartAx̄ȳx̄AȳA
Rectangle96006040576 000384 000
Hole−1256.644040−50 265.5−50 265.5
Σ8343.36525 734.5333 734.5

\(\bar X = 525\,734.5 / 8343.36 = 63.01\), \(\bar Y = 333\,734.5 / 8343.36 = 40.00\). The hole shifts G to the right, away from it; the shape is symmetric about y = 40, so \(\bar Y = 40\).

Symmetry

If an area has an axis of symmetry, the centroid lies on it. With two axes of symmetry the centroid is at their intersection – use this to check results.

FAQ

Is the centroid the same as the center of gravity?

For a plate of uniform thickness and material in a uniform gravity field, yes. For non-uniform bodies the center of gravity weights each part by its weight.

Does the order of the polygon corners matter?

No – the app uses the size of the area for either order. The corners must, however, go around the outline without the edges crossing each other.

Can the centroid lie outside the shape?

Yes – for example for an L-shape, a ring or a C-channel.

Can parts overlap?

Overlapping solid parts are counted twice. Split the shape so that parts touch but do not overlap, or enter the overlap as a gap.