Centroids and Centers of Gravity

Learning Objectives

  • Compute centroids from component first moments.
  • Treat holes and cutouts as negative areas.
  • Apply polygon centroid equations to editable vertices.
  • Distinguish geometric centroid from density-weighted center of gravity.
  • Determine centroids of straight and curved line elements.

Centroid

The centroid is the geometric point at which the first moments of an area, line, or volume can be represented as concentrated.

Composite-Area Centroid

Centroid coordinates obtained from signed component areas and their centroid locations.

xˉ=AixiAiyˉ=AiyiAi\bar{x}=\frac{\sum A_ix_i}{\sum A_i} \qquad \bar{y}=\frac{\sum A_iy_i}{\sum A_i}

Variables

SymbolDescriptionUnit
AiA_iSigned area of component i; negative for a holemm²
xix_iComponent-centroid x-coordinatemm
yiy_iComponent-centroid y-coordinatemm
xˉ\bar{x}Composite centroid x-coordinatemm
yˉ\bar{y}Composite centroid y-coordinatemm

Invalid Signed Area

If the signed areas sum to zero, the composite-area centroid formula is undefined. This is an invalid area model rather than a centroid at infinity.

Worked Example Summary

For two rectangles with A1=6000 mm2A_1=6000\ \text{mm}^2 at y1=150 mmy_1=150\ \text{mm} and A2=4000 mm2A_2=4000\ \text{mm}^2 at y2=50 mmy_2=50\ \text{mm}, the centroid is yˉ=(6000150+400050)/(10000)=110 mm\bar{y}=(6000\cdot150+4000\cdot50)/(10000)=110\ \text{mm}.

Simulation 1 Instructions

Resize the flange and web of the composite section and inspect the component table for AiA_i, xix_i, yiy_i, AixiA_ix_i, and AiyiA_iy_i.

Advanced engineering statics simulation

Centroids and Centers of Gravity Suite

Validated signed area, density weighting, polygon geometry, and length-weighted wire centroids.

Combine a flange and web without overlap and inspect their first-moment contributions.

Primary width
160 mm
mm
60300

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Web height
120 mm
mm
40260

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Flange thickness
40 mm
mm
10100

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

valid geometry
Signed area
8800.00
mm²
x centroid
80.000 mm
y centroid
118.182 mm
Componentmeasurexiyimeasure·ximeasure·yi
Flange6400.0080.00140.00512000.00896000.00
Web2400.0080.0060.00192000.00144000.00
xˉ=miximi,yˉ=miyimi\bar{x}=\frac{\sum m_i x_i}{\sum m_i},\qquad \bar{y}=\frac{\sum m_i y_i}{\sum m_i}

For uniform areas use mᵢ=Aᵢ; use negative area for a fully contained hole, density-weighted area for nonuniform materials, and length for wires.

Concept question: Predict the x-coordinate of the centroid.

Model scope and verification

Scope: Educational rigid-body statics model using the selected geometry, stated idealizations, and displayed SI units.

Acceptance check: Check the governing equilibrium, compatibility, geometry, or limiting-condition statement before accepting the numerical result.

Simulation 1 Concept Question

Which component moves the centroid more: a large area close to the origin or a smaller area far from it?

Simulation 2 Instructions

Move and resize the circular cutout. Confirm that its negative area shifts the centroid away from the opening.

Advanced engineering statics simulation

Centroids and Centers of Gravity Suite

Validated signed area, density weighting, polygon geometry, and length-weighted wire centroids.

Treat a fully contained opening as negative area; invalid openings are rejected instead of silently subtracting a full circle.

Primary width
160 mm
mm
60300

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Primary height
120 mm
mm
40260

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Opening diameter
40 mm
mm
10180

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Opening offset from plate center
25 mm
mm
-140140

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

valid geometry
Signed area
17943.36
mm²
x centroid
78.249 mm
y centroid
60.000 mm
Componentmeasurexiyimeasure·ximeasure·yi
Plate19200.0080.0060.001536000.001152000.00
Circular opening-1256.64105.0060.00-131946.89-75398.22
xˉ=miximi,yˉ=miyimi\bar{x}=\frac{\sum m_i x_i}{\sum m_i},\qquad \bar{y}=\frac{\sum m_i y_i}{\sum m_i}

For uniform areas use mᵢ=Aᵢ; use negative area for a fully contained hole, density-weighted area for nonuniform materials, and length for wires.

Concept question: Predict the x-coordinate of the centroid after the opening is moved.

Model scope and verification

Scope: Educational rigid-body statics model using the selected geometry, stated idealizations, and displayed SI units.

Acceptance check: Check the governing equilibrium, compatibility, geometry, or limiting-condition statement before accepting the numerical result.

Simulation 2 Concept Question

Why must both the area and its first-moment contribution be negative for a hole?

Polygon Centroid by the Shoelace Method

Centroid of a non-self-intersecting polygon with ordered vertices.

A=12i(xiyi+1xi+1yi)A=\frac{1}{2}\sum_i(x_iy_{i+1}-x_{i+1}y_i)xˉ=16Ai(xi+xi+1)(xiyi+1xi+1yi)\bar{x}=\frac{1}{6A}\sum_i(x_i+x_{i+1})(x_iy_{i+1}-x_{i+1}y_i)yˉ=16Ai(yi+yi+1)(xiyi+1xi+1yi)\bar{y}=\frac{1}{6A}\sum_i(y_i+y_{i+1})(x_iy_{i+1}-x_{i+1}y_i)

Variables

SymbolDescriptionUnit
AASigned polygon areamm²
xi,yix_i,y_iOrdered polygon-vertex coordinatesmm

Simulation 3 Instructions

Edit the polygon dimensions and vertex offset. Degenerate geometry is reported as invalid instead of producing a misleading centroid.

Advanced engineering statics simulation

Centroids and Centers of Gravity Suite

Validated signed area, density weighting, polygon geometry, and length-weighted wire centroids.

Move the two upper vertices through dimensional controls and apply the shoelace centroid equations.

Primary width
160 mm
mm
60300

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Primary height
120 mm
mm
40260

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Upper-left vertex x
40 mm
mm
0180

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Upper-right inset
25 mm
mm
0180

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

valid geometry
Signed area
16650.00
mm²
x centroid
81.396 mm
y centroid
59.760 mm
xˉ=miximi,yˉ=miyimi\bar{x}=\frac{\sum m_i x_i}{\sum m_i},\qquad \bar{y}=\frac{\sum m_i y_i}{\sum m_i}

For uniform areas use mᵢ=Aᵢ; use negative area for a fully contained hole, density-weighted area for nonuniform materials, and length for wires.

Concept question: Predict the x-coordinate of the centroid.

Model scope and verification

Scope: Educational rigid-body statics model using the selected geometry, stated idealizations, and displayed SI units.

Acceptance check: Check the governing equilibrium, compatibility, geometry, or limiting-condition statement before accepting the numerical result.

Simulation 3 Concept Question

Why does reversing the vertex order change the signed area but not the physical centroid?

Density-Weighted Center of Gravity

Center of gravity for components of different uniform densities.

xˉG=ρiAixiρiAiyˉG=ρiAiyiρiAi\bar{x}_G=\frac{\sum \rho_iA_ix_i}{\sum \rho_iA_i} \qquad \bar{y}_G=\frac{\sum \rho_iA_iy_i}{\sum \rho_iA_i}

Variables

SymbolDescriptionUnit
ρi\rho_iMaterial density or relative weight densitykg/m³ or ratio

Simulation 4 Instructions

Keep the geometry symmetric while changing the density ratio. Observe the center of gravity move even though the geometric centroid does not.

Advanced engineering statics simulation

Centroids and Centers of Gravity Suite

Validated signed area, density weighting, polygon geometry, and length-weighted wire centroids.

Use equal geometric halves with different densities to distinguish centroid from center of gravity.

Primary width
160 mm
mm
60300

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Primary height
120 mm
mm
40260

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Right-to-left density ratio
2.4
0.28.0

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

valid geometry
ρ2.4ρ
Density-weighted area
32640.00
relative mass measure
x centroid
96.471 mm
y centroid
60.000 mm
Componentmeasurexiyimeasure·ximeasure·yi
Material A9600.0040.0060.00384000.00576000.00
Material B23040.00120.0060.002764800.001382400.00
xˉ=miximi,yˉ=miyimi\bar{x}=\frac{\sum m_i x_i}{\sum m_i},\qquad \bar{y}=\frac{\sum m_i y_i}{\sum m_i}

For uniform areas use mᵢ=Aᵢ; use negative area for a fully contained hole, density-weighted area for nonuniform materials, and length for wires.

Concept question: Predict the center-of-gravity x-coordinate after changing the density ratio.

Model scope and verification

Scope: Educational rigid-body statics model using the selected geometry, stated idealizations, and displayed SI units.

Acceptance check: Check the governing equilibrium, compatibility, geometry, or limiting-condition statement before accepting the numerical result.

Simulation 4 Concept Question

Can the center of gravity lie outside the denser component? Explain using weighted first moments.

Simulation 5 Instructions

Combine straight line segments and a semicircular wire. The table uses segment length in place of area.

Advanced engineering statics simulation

Centroids and Centers of Gravity Suite

Validated signed area, density weighting, polygon geometry, and length-weighted wire centroids.

Use length-weighted centroids for vertical, horizontal, and semicircular wire elements.

Horizontal segment length
160 mm
mm
60300

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Vertical segment length
120 mm
mm
40260

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

Semicircular arc diameter
40 mm
mm
10180

Drag for exploration or enter an exact value. Press Enter to apply and Escape to restore.

valid geometry
Total length
342.83
mm
x centroid
66.660 mm
y centroid
23.335 mm
Componentmeasurexiyimeasure·ximeasure·yi
Vertical segment120.000.0060.000.007200.00
Horizontal segment160.0080.000.0012800.000.00
Upper semicircular arc62.83160.0012.7310053.10800.00
xˉ=miximi,yˉ=miyimi\bar{x}=\frac{\sum m_i x_i}{\sum m_i},\qquad \bar{y}=\frac{\sum m_i y_i}{\sum m_i}

For uniform areas use mᵢ=Aᵢ; use negative area for a fully contained hole, density-weighted area for nonuniform materials, and length for wires.

Concept question: Predict the x-coordinate of the centroid.

Model scope and verification

Scope: Educational rigid-body statics model using the selected geometry, stated idealizations, and displayed SI units.

Acceptance check: Check the governing equilibrium, compatibility, geometry, or limiting-condition statement before accepting the numerical result.

Simulation 5 Concept Question

Why is a curved-wire centroid weighted by arc length rather than enclosed area?

Composite Centroid Procedure

  1. Select an origin and consistent axes.
  2. Divide the geometry into standard components.
  3. Assign positive measures to material and negative measures to holes.
  4. List each component measure and centroid coordinates.
  5. Sum first moments and divide by the signed total measure.
  6. Check that the result is physically plausible and that the signed total is nonzero.
Key Takeaways
  • Composite centroids are obtained from first moments.
  • Holes must subtract both area and first moments.
  • Polygon vertex ordering controls signed area but not the physical centroid.
  • Center of gravity requires density or weight weighting when materials differ.
  • Line and curved-wire centroids use length rather than area.