Civil Engineering (University) is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Centroid and centre of gravity

Centroid and centre of gravity: definitions, assumptions, formulas for lines/areas/volumes, standard centroids, composite bodies with holes, distributed loads’ line of action, Pappus theorems, and exam-style worked examples.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Engineers need the centroid or centre of gravity to place supports, design connections, locate resultant loads, and predict tipping or stability. In beams, trusses, machine parts, and structures, the resultant of a distributed load (or self-weight of a homogeneous body) acts through the relevant centroid; wrong location leads to unexpected moments and failure.

Key ideas

  • For a volume V, x̄ = (1/V) ∫ x dV, ȳ = (1/V) ∫ y dV, z̄ = (1/V) ∫ z dV.
  • Centre of gravity (c.g.): The unique point where the resultant of the gravitational forces on all particles of a body acts. Exact statement: For a body of particles with weights Wᵢ located at coordinates (xᵢ, yᵢ, zᵢ), the centre of gravity satisfies x̄ = (Σ Wᵢ xᵢ) / (Σ Wᵢ), ȳ = (Σ Wᵢ yᵢ) / (Σ Wᵢ), z̄ = (Σ Wᵢ zᵢ) / (Σ Wᵢ).
  • When centroid = centre of gravity: If (i) material is homogeneous (constant density), (ii) cross-section or lamina thickness is uniform as applicable, and (iii) gravitational field is uniform over the body’s extent, then the centroid of geometry coincides with the centre of gravity.
  • Assumptions commonly made: Small body size compared to Earth (uniform g), uniform density unless stated, planar lamina has negligible thickness, axes and references clearly defined.
  • Composite bodies principle: For a body made of simple parts i with areas Aᵢ (or lengths Lᵢ, volumes Vᵢ) and known centroids at (xᵢ, yᵢ), the centroid is given by x̄ = (Σ sᵢ Aᵢ xᵢ)/(Σ sᵢ Aᵢ), ȳ = (Σ sᵢ Aᵢ yᵢ)/(Σ sᵢ Aᵢ) where sᵢ = +1 for added material and sᵢ = −1 for holes/cutouts. Same pattern for lengths or volumes.
  • Symmetry: If the shape is symmetric about a line/plane, the centroid lies on that line/plane. If symmetric about two perpendicular axes, centroid is at their intersection.
  • Distributed loads and centroid: For a load intensity w(x) along a beam, the resultant force equals the area under the load diagram, and its line of action passes through the centroid of that area (i.e., of the w–x diagram). This ties Centroid to Support reactions of beams without re-teaching that topic.
  • Pappus–Guldinus theorems (useful connection):
    • Theorem I (surface area): The surface area generated by revolving a plane curve about an external axis in its plane that does not intersect the curve equals the product of the curve length and the distance traveled by its centroid.
    • Theorem II (volume): The volume generated by revolving a plane area about an external axis in its plane that does not intersect the area equals the product of the area and the distance traveled by its centroid.

Derivations universities commonly ask

  1. Derivation of centroid of an area (first principles)
  • Consider a lamina of area A with differential area element dA at position (x, y). Replace each dA by an equal parallel "force" of magnitude proportional to dA located at (x, y). The resultant of these parallel contributions acts at a point (x̄, ȳ) where the first moments about the axes vanish.
  • By definition of first moment of area about the y-axis: A x̄ = ∫ x dA. Similarly about x-axis: A ȳ = ∫ y dA.
  • Therefore x̄ = (1/A) ∫ x dA, ȳ = (1/A) ∫ y dA.
  • Diagram to draw: A generic plane lamina with coordinate axes x and y, show a small element dA at (x, y), arrows indicating parallel contributions, and the resultant at (x̄, ȳ). Label A, dA, x, y, x̄, ȳ.
  1. Centroid of a triangle (via geometry/integration)
  • For a triangle with base b on the x-axis and height h, by symmetry of linear variation of width with y, using strips parallel to the base: ȳ = (1/A) ∫ y·(width at y) dy from y = 0 to y = h. Width at y is b(1 − y/h). Integrate to get ȳ = h/3 from the base. Similarly, using strips parallel to height, x̄ = b/3 from the side. Alternatively: intersection point of medians; along each median the centroid is at 2/3 of its length from the vertex.
  • Diagram to draw: Right triangle on axes with base on x, height on y; show a strip at distance y of thickness dy, label width b(1 − y/h), mark centroid at (b/3, h/3).
  1. Centroid of a semicircle (outline by integration)
  • For area of radius R with diameter on the x-axis (flat side), centroid lies on the axis of symmetry at distance ȳ = 4R/(3π) from the diameter into the semicircle. This follows by integrating area of horizontal strips dA = 2√(R² − y²) dy and using ȳ = (1/A) ∫ y dA, with A = (1/2)πR².
  • Diagram to draw: Semicircle of radius R above x-axis; mark R, the centroid on the vertical symmetry axis at distance 4R/(3π) above the diameter.

Formulas

x̄ = (Σ mᵢ xᵢ)/(Σ mᵢ), ȳ = (Σ mᵢ yᵢ)/(Σ mᵢ), z̄ = (Σ mᵢ zᵢ)/(Σ mᵢ) Symbols: mᵢ mass (kg), xᵢ, yᵢ, zᵢ coordinates (m). Applies to finite point masses.

  • General centroid of a line x̄ = (1/L) ∫ x dl, ȳ = (1/L) ∫ y dl, z̄ = (1/L) ∫ z dl Symbols: L total length (m), dl differential length element (m). Applies to slender uniform wires/curves.

  • General centroid of an area (lamina) x̄ = (1/A) ∫ x dA, ȳ = (1/A) ∫ y dA Symbols: A area (m²). Applies to plane lamina of uniform thickness/density.

  • General centroid of a volume x̄ = (1/V) ∫ x dV, ȳ = (1/V) ∫ y dV, z̄ = (1/V) ∫ z dV Symbols: V volume (m³). Applies to 3D bodies of uniform density.

  • Composite areas/volumes (including holes) x̄ = (Σ sᵢ Aᵢ xᵢ)/(Σ sᵢ Aᵢ), ȳ = (Σ sᵢ Aᵢ yᵢ)/(Σ sᵢ Aᵢ) with sᵢ ∈ {+1, −1} Symbols: Aᵢ area of part i (m²), (xᵢ, yᵢ) centroid of part i (m, m). Use sᵢ = −1 for removed areas.

  • Standard centroids (areas) Rectangle b × h: x̄ = b/2, ȳ = h/2. Units m. Right triangle with legs b, h at right angle: x̄ = b/3, ȳ = h/3 from the right-angle corner. m. Any triangle (base b, height h): centroid lies at the intersection of its medians; measured along the median from the base, ȳ = h/3 from the base. Coordinates along the base depend on vertex locations (not always x̄ = b/3 unless right-angled with axes aligned). Semicircle radius R: ȳ = 4R/(3π) from the diameter toward the arc; x̄ on symmetry axis. m. Quarter circle radius R (in first quadrant): x̄ = 4R/(3π), ȳ = 4R/(3π) from the corner along axes. m. Circular sector of radius R and angle θ (radians): distance of centroid from center r̄ = (4R sin(θ/2))/(3θ). m. Direction along sector bisector.

  • Standard centroids (lines) Circular arc radius R, angle θ (radians): distance of centroid from center r̄ = (2R sin(θ/2))/θ. m, along arc bisector.

  • Standard centroids (volumes) Solid cone height h (measured base to tip): along axis at h/4 from the base toward the tip. m. Solid hemisphere radius R: along symmetry axis at 3R/8 from the flat face toward the dome. m. Solid cylinder height h: along axis at h/2 from either base. m.

  • Resultant of a distributed load w(x) on a beam span [0, L] W = ∫₀ᴸ w(x) dx, x̄ = (1/W) ∫₀ᴸ x w(x) dx Symbols: w(x) load intensity (N/m), W resultant load (N), x̄ line of action position from origin (m). Applies to statically replacing w(x) by a single resultant force.

  • Pappus–Guldinus (revolve about external axis) Surface of revolution: Area = (curve length) × (2πR_c) where R_c is distance from axis to curve centroid. SI: m². Volume of revolution: Volume = (area) × (2πR_c). SI: m³.

Worked examples

Example 1: Centroid of a composite lamina (rectangle with a semicircular cutout) Given: A rectangle 0.6 m wide (x-direction) and 0.4 m high (y-direction), lower-left corner at origin. A semicircular hole of radius R = 0.1 m is cut into the top edge, with its diameter centered at x = 0.3 m along the top edge y = 0.4 m. Find the centroid (x̄, ȳ).

  1. Areas and centroids of parts
  • Rectangle (Part 1): A₁ = 0.6 × 0.4 = 0.24 m², centroid (x₁, y₁) = (0.3 m, 0.2 m).
  • Semicircle hole (Part 2, negative): A₂ = (1/2) π R² = 0.5 × π × 0.1² = 0.015707963 m². Its centroid lies on its symmetry axis at a distance 4R/(3π) from the diameter toward the arc. Here the arc is inside the rectangle (downward from the top edge), so y₂ = 0.4 − 4R/(3π) and x₂ = 0.3. Compute 4R/(3π) = 4 × 0.1 / (3π) ≈ 0.042441 m → y₂ ≈ 0.357559 m.
  1. Resultant area
  • A = A₁ − A₂ = 0.24 − 0.015707963 = 0.224292037 m².
  1. Centroid coordinates
  • x̄ = (A₁ x₁ − A₂ x₂)/A = (0.24 × 0.3 − 0.015707963 × 0.3)/0.224292037 = 0.3 m (by symmetry).
  • ȳ = (A₁ y₁ − A₂ y₂)/A = (0.24 × 0.2 − 0.015707963 × 0.357559)/0.224292037 m. Numerically, ȳ ≈ 0.189 m.

Answer: Centroid at (x̄, ȳ) ≈ (0.300 m, 0.189 m). Final: x̄ = 0.300 m, ȳ = 0.189 m (both to 3 s.f.).

Diagram to draw: Rectangle with origin at lower-left. Mark width 0.6 m, height 0.4 m. Show semicircular cut into top edge centered at x = 0.3 m, radius 0.1 m. Mark centroid with coordinates from origin.

Example 2: Resultant of a triangular distributed load and its line of action Given: A simply supported beam segment of length L = 6 m carries a triangular distributed load increasing linearly from zero at the left end (x = 0) to w₀ = 12 kN/m at the right end (x = L). Find the single resultant W and the distance x̄ of its line of action from the left end.

  1. Resultant magnitude (area under load diagram)
  • W = (1/2) × base × height = 0.5 × L × w₀ = 0.5 × 6 × 12 kN = 36 kN.
  1. Location (centroid of triangle)
  • For a right triangle with zero at x = 0 and maximum at x = L, the centroid is at x̄ = 2L/3 from the zero-load end.
  • Hence x̄ = 2 × 6 / 3 = 4 m from the left end.
  1. Check by integration (optional)
  • Let w(x) = (w₀/L) x. Then W = ∫₀ᴸ (w₀/L) x dx = (w₀/L) × (L²/2) = w₀L/2.
  • First moment: ∫₀ᴸ x w(x) dx = ∫₀ᴸ x (w₀/L) x dx = (w₀/L) × (L³/3) = w₀L²/3.
  • x̄ = (1/W) × (w₀L²/3) = (1/(w₀L/2)) × (w₀L²/3) = 2L/3 = 4 m.

Answer: Resultant W = 36 kN acting at x̄ = 4.00 m from the left end.

Diagram to draw: Beam line from x = 0 to 6 m. Above it, a triangular load diagram rising from 0 to 12 kN/m. Mark resultant arrow downward at x = 4 m with magnitude 36 kN.

Example 3: Centre of gravity of a composite solid (cylinder topped by a cone) Given: A solid right circular cylinder of radius r = 0.05 m and height h₁ = 0.10 m stands on its base (z = 0 plane). A solid right circular cone of the same radius r and height h₂ = 0.06 m is fixed on top, sharing the same axis (cone base at z = 0.10 m, tip upward). Material is homogeneous. Find the c.g. location z̄ from the bottom base plane.

  1. Volumes and centroid positions
  • Cylinder: V₁ = π r² h₁ = π × 0.05² × 0.10 = 0.000785398 m³. Its centroid z₁ = h₁/2 = 0.05 m.
  • Cone: V₂ = (1/3) π r² h₂ = (1/3) × π × 0.05² × 0.06 = 0.000157080 m³. For a solid cone, centroid lies at h₂/4 from its base along the axis, hence z₂ = 0.10 + h₂/4 = 0.10 + 0.015 = 0.115 m.
  1. Total volume
  • V = V₁ + V₂ = 0.000785398 + 0.000157080 = 0.000942478 m³.
  1. z-coordinate of c.g.
  • z̄ = (V₁ z₁ + V₂ z₂) / V.
  • Numerator: V₁ z₁ = 0.000785398 × 0.05 = 0.0000392699; V₂ z₂ = 0.000157080 × 0.115 = 0.0000180642; Sum = 0.0000573341 m⁴ (dimensions confirm m³×m).
  • z̄ = 0.0000573341 / 0.000942478 ≈ 0.0608 m.

Answer: z̄ ≈ 0.0608 m above the bottom base plane. Final: z̄ = 0.0608 m.

Diagram to draw: Vertical axis z; cylinder of height 0.10 m with top at z = 0.10 m; cone on top of height 0.06 m. Mark z₁ at 0.05 m in cylinder, z₂ at 0.115 m in cone, and resultant z̄ at about 0.0608 m.

Common mistakes

  • Assuming centroid moves only slightly after a large cutout; always recalculate using areas and first moments.
  • In distributed loads, placing the resultant at midspan for triangular or trapezoidal loads; use centroid of the load diagram, not midspan, unless the diagram is symmetric.
  • Unit inconsistency: mixing N and kN or m and mm in the same calculation without conversion.
  • Not stating axes or reference point in answers; centroids are coordinates, so a reference is required.

For your exam

  • Derivations: general centroid of an area; centroid of a triangle; centroid of a semicircle (outline acceptable if lengthy integration is not required).
  • Numericals: composite areas with holes; centroid of built-up sections; line of action of distributed loads; centre of gravity of composite 3D bodies.
  • Diagrams: neat shape, axes, dimensions, centroid marked, distances labeled.
  • For full marks:
    • State assumptions (uniform density, uniform g, reference axes).
    • Write the correct formula first, then substitute numbers with units.
    • Show sign convention; show negative areas for holes.
    • Carry units through; round neatly and state final answer clearly with units.
    • If symmetry applies, say so and use it to simplify.

Quick check

  1. Where is the centroid of a right triangle relative to the right-angle corner with legs b and h?
  2. A semicircular area of radius R lies above the x-axis with its diameter on the x-axis. How far is its centroid from the x-axis?
  3. A beam carries w(x) = w₀(1 − x/L) from x = 0 to L. What is the location of the resultant from the left end?

Answers: (1) At (b/3, h/3). (2) 4R/(3π) above the x-axis. (3) x̄ = L/3 from the left end (since it is a triangle with maximum at x = 0).

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?