How to find the centroid of a plane shape
Split a complex shape into simple parts whose centroids are known, then use the composite-body formulas. For each part take its area Aᵢ and centroid coordinates xᵢ, yᵢ in a common coordinate system:
xC = ΣAᵢ·xᵢ / ΣAᵢ = Sy / A, yC = ΣAᵢ·yᵢ / ΣAᵢ = Sx / A.
Here Sx = ΣAᵢyᵢ and Sy = ΣAᵢxᵢ are the first moments of area about the x and y axes.
Negative area method
A hole or cut-out is treated as a part with negative area: its Aᵢ enters the sums with a minus sign, and its centroid is the centroid of the removed shape. This is why a plate with a round hole has a centroid shifted away from the hole.
Centroids of simple shapes
- Rectangle — at the intersection of the diagonals, A = b·h.
- Triangle — at the intersection of the medians, one third of the height from the base; the coordinates are the mean of the vertices.
- Circle — at the centre, A = πr².
- Semicircle — on the axis of symmetry at 4r/(3π) ≈ 0.424r from the diameter, A = πr²/2.
- Quarter circle — at 4r/(3π) from both straight edges, A = πr²/4.
- Polygon — by the shoelace formulas: A = ½Σ(xₖyₖ₊₁ − xₖ₊₁yₖ), xC = Σ(xₖ + xₖ₊₁)(xₖyₖ₊₁ − xₖ₊₁yₖ)/(6A), and likewise yC.
Moments of inertia and the parallel-axis theorem
Moments of inertia of the parts about their own centroidal axes are known: rectangle Ix = bh³/12, circle Ix = πr⁴/4, semicircle about an axis parallel to the diameter (π/8 − 8/(9π))r⁴ ≈ 0.1098r⁴, right triangle bh³/36. For a composite shape they are transferred to the centroidal axes of the whole shape: Ix = Σ±(Ix,i + Aᵢbᵢ²), Iy = Σ±(Iy,i + Aᵢaᵢ²), Ixy = Σ±(Ixy,i + Aᵢaᵢbᵢ), where aᵢ = xᵢ − xC, bᵢ = yᵢ − yC; cut-outs take the minus sign. Principal moments: I₁,₂ = (Ix + Iy)/2 ± √(((Ix − Iy)/2)² + Ixy²). These are exactly the section properties needed in strength of materials for bending.
Example
T-section: flange 12×4 and web 4×16 (cm), axes along the bottom edge and the left edge of the flange. Press “Example” — the calculator shows the table of areas, the centroid (xC = 6, yC ≈ 12.29 cm), the moments of inertia and the drawing. Sanity check: for a symmetric shape the centroid lies on the axis of symmetry and Ixy = 0.