Centroids and Second Moments
Centroids and second moments connect geometry to mechanics. The centroid locates the balance point of an area, line, volume, or mass distribution. The second moment of area describes how area is spread relative to an axis, which later controls bending stress and beam deflection. The mass moment of inertia describes how mass is spread relative to an axis, which later controls rotational dynamics.
The computations look similar, but the physical meanings differ. A centroid is a first moment divided by a total measure. A second moment is an integral of squared distance. Both reward careful coordinate choice, symmetry recognition, and composite-body bookkeeping.
Definitions
For an area in the plane, the centroid is
For a composite area made from simple pieces,
Voids or holes are included as negative areas. The same idea works for mass centers:
The first moment of area about the axis is
The first moment about the axis is
The second moment of area about the and axes is
The polar second moment of area about point is
when and are perpendicular axes through .
The product of inertia is
It is zero if either the or axis is an axis of symmetry for the area.
The mass moment of inertia about an axis is
Its units are mass times length squared, such as kg m. Do not confuse this with second moment of area, whose units are length to the fourth power.
Key results
Symmetry is the first result to use. If an area has a line of symmetry, its centroid lies on that line. If it has two perpendicular symmetry axes, their intersection is the centroid. If an area is symmetric about the axis, then for centroidal axes aligned with that symmetry.
For composite centroid calculations, use signed pieces:
when a hole of area is removed. The centroid of a removed region still has coordinates; the negative sign belongs to the area, not to the coordinate unless the coordinate itself is negative.
The parallel-axis theorem for second moments of area states
where is about a centroidal axis parallel to , and is the perpendicular distance between the axes. This theorem moves from a centroidal axis to a parallel noncentroidal axis. It does not move between rotated axes.
For mass moments,
where is the center of mass and is the perpendicular distance between parallel axes.
Common centroidal second moments of area are:
These formulas should be paired with a sketch of the axis. The same rectangle has different and when , because the squared distance is measured perpendicular to the chosen axis.
For distributed loads and hydrostatic pressure, the resultant location is also a centroid idea. The equivalent force of a uniform distributed load acts at the centroid of the loaded length. A linearly varying triangular load acts one third of the base length from the larger-intensity end, or two thirds from the zero-intensity end.
Visual
Composite area bookkeeping
y
^
|
| +-----------+
| | |
| | hole | hole is entered as negative area
| | o |
| | |
| +-----------+
|
+--------------------> x
Centroid formula: sum(signed area * centroid coordinate) / sum(signed area)
| Quantity | Integral | Units | Main use |
|---|---|---|---|
| Area centroid | length | Resultant location, geometry balance | |
| First moment | length | Shear stress, centroid calculations | |
| Second moment | length | Bending stiffness and stress | |
| Polar second moment | length | Torsion for circular shafts | |
| Mass moment | mass length | Rotational dynamics |
Worked example 1: Centroid of an L-shaped plate
Problem. An L-shaped plate is made from a mm by mm rectangle with a mm by mm rectangular cutout removed from the upper right corner. The origin is at the lower-left corner of the original rectangle. The remaining shape consists of the full rectangle minus the cutout occupying mm and mm. Find the centroid.
Method. Treat the plate as a positive large rectangle plus a negative cutout.
- Large rectangle:
Its centroid is
- Cutout:
Its centroid is halfway through the removed region:
Use as negative in the composite formula.
- Remaining area:
- Compute :
- Compute :
The checked answer is
The centroid moves down and left from the center of the original rectangle because material was removed from the upper-right corner.
Worked example 2: Second moment of a composite rectangular section
Problem. A T-section consists of a flange mm wide by mm thick on top of a web mm wide by mm tall. The web is centered under the flange. Find the centroidal about the horizontal centroidal axis. Measure upward from the bottom of the web.
Method. Find the composite centroid, then use the parallel-axis theorem for each rectangle.
- Web area and centroid:
- Flange area and centroid:
The flange spans mm, so
- Total area:
- Centroid:
- Web centroidal second moment about its own horizontal centroidal axis:
Distance to composite centroid:
Parallel-axis contribution:
- Flange centroidal second moment:
Distance:
- Total:
The checked answer is
The flange has a small local , but its distance from the centroid makes a large parallel-axis contribution.
Code
parts = [
# name, area, xbar, ybar
("large rectangle", 120.0 * 80.0, 60.0, 40.0),
("cutout", -70.0 * 40.0, 85.0, 60.0),
]
A = sum(area for name, area, x, y in parts)
xbar = sum(area * x for name, area, x, y in parts) / A
ybar = sum(area * y for name, area, x, y in parts) / A
print(f"area = {A:.1f} mm^2")
print(f"xbar = {xbar:.2f} mm")
print(f"ybar = {ybar:.2f} mm")
# Parallel-axis computation for the T-section.
rectangles = [
("web", 20.0, 120.0, 60.0),
("flange", 100.0, 20.0, 130.0),
]
area_total = sum(b * h for name, b, h, yc in rectangles)
y_centroid = sum(b * h * yc for name, b, h, yc in rectangles) / area_total
Ix = 0.0
for name, b, h, yc in rectangles:
area = b * h
Ix_local = b * h**3 / 12.0
Ix += Ix_local + area * (yc - y_centroid) ** 2
print(f"T-section ybar = {y_centroid:.2f} mm, Ix = {Ix:.0f} mm^4")
Common pitfalls
- Treating a hole as a positive area in the composite centroid formula.
- Using a second moment formula about the wrong axis or wrong centroidal orientation.
- Applying the parallel-axis theorem with distance measured along the axis instead of perpendicular to it.
- Confusing mass moment of inertia with second moment of area.
- Dropping units: for an area is length, not length.
- Ignoring symmetry that could simplify a centroid or product-of-inertia calculation.
- Rounding the centroid too early before using it in a parallel-axis term.