Centroid and moment of inertia calculator for composite sections
Build the section from rectangles, circles, right triangles, semicircles and quarter circles (any of them can be a hole) and get the area, the centroid, the centroidal moments of inertia Ix̄ and Iȳ, the product of inertia, the principal axes and moments, the radii of gyration and the section moduli. The calculation table is the one you write in class, with the parallel-axis theorem (Steiner) applied part by part.
Theory and worked examples: Centroid and moment of inertia of sections.
What you can do
- Area and centroid (x̄, ȳ) measured from the origin you choose.
- Moments of inertia Ix̄ and Iȳ and product of inertia Ix̄ȳ by the parallel-axis theorem.
- Principal axes, their angle θp and the principal moments I₁ and I₂.
- Radii of gyration, section moduli at the top and bottom and on the left and right, and polar moment J = Ix̄ + Iȳ.
- Holes that are subtracted, parts you can drag on the figure and a warning when two solid parts overlap.
- Calculation table and step-by-step solution.
Frequently asked questions
How is the centroid of a composite section found?
Split it into simple parts and average their centroids weighted by area: x̄ = ΣAᵢxᵢ/ΣAᵢ and ȳ = ΣAᵢyᵢ/ΣAᵢ. Holes enter with negative area.
What is the parallel-axis theorem?
It moves a part's inertia from its own centroidal axis to a parallel axis a distance d away: I = Ī + A·d². That is how the parts are added about the centroid of the whole section.
When are the principal axes needed?
When the section has no axis of symmetry, such as an L angle: the product of inertia is not zero and the axes of maximum and minimum inertia are rotated by θp, with tan 2θp = −2Ix̄ȳ/(Ix̄ − Iȳ).
Guide: centroid and moment of inertia of composite sections
How well a beam resists bending depends not only on the area of its cross section but on how that area is spread around the neutral axis. The centroid tells where that axis passes, and the moment of inertia (second moment of area) measures how much area lies far from it. This guide explains how both are found for a section made of simple parts, what the product of inertia and the principal axes are, and works a T-section and an L angle with the same numbers the tool gives.
Centroid of a composite section
Choose an origin O and split the section into parts whose centroid is known (rectangles, circles, triangles…). The centroid of the section is the average of the parts' centroids, weighted by their area:
x̄ = ΣAixi / ΣAi ȳ = ΣAiyi / ΣAi
A hole or a notch is a part with negative area: it is subtracted in both the numerator and the denominator. If the section has an axis of symmetry, the centroid lies on it and only the other coordinate needs computing.
Moments of inertia and the parallel-axis theorem
Each part has a known inertia about its own centroidal axes: a b × h rectangle, bh³/12 about the horizontal axis and hb³/12 about the vertical one; a circle of diameter d, πd⁴/64; a right triangle with legs b and h, bh³/36, with its centroid one third of each leg from the right angle. A semicircle of radius r has its centroid 4r/(3π) from the diameter, and a quarter circle, 4r/(3π) from each straight edge. To add the parts, all of them must refer to the centroid C of the section, with the parallel-axis theorem (Steiner's theorem):
Ix̄ = Σ(Īx,i + Aidy,i²) Iȳ = Σ(Īy,i + Aidx,i²) Ix̄ȳ = Σ(Īxy,i + Aidx,idy,i)
where dx,i = xi − x̄ and dy,i = yi − ȳ are the distances from each part's centroid to the section's. The A·d² term always adds; in the product of inertia, however, the sign of dx·dy matters. For a hole, the whole term is subtracted.
Principal axes and other properties
If Ix̄ȳ = 0 (it is enough for x̄ or ȳ to be an axis of symmetry), x̄ and ȳ are already the axes of maximum and minimum inertia. If not, in sections such as an L angle or a Z-section, those axes, the principal axes, are rotated by an angle θp:
tan 2θp = −2Ix̄ȳ / (Ix̄ − Iȳ) I1,2 = (Ix̄ + Iȳ)/2 ± √[((Ix̄ − Iȳ)/2)² + Ix̄ȳ²]
These are the same transformation equations as for plane stress, so they can also be drawn as a Mohr's circle.
- Radius of gyration: r = √(I/A), the distance at which the whole area would have to be concentrated to give the same inertia. It is the one in the slenderness ratio of a column.
- Section modulus: S = I/c, with c the distance from the centroidal axis to the farthest fiber on each side. The maximum bending stress in a beam is σ = M/S; if the section is not symmetric, there is one S for the top and another for the bottom (and one on each side for bending about ȳ).
- Polar moment: J = Ix̄ + Iȳ, about an axis normal to the section through C.
Example 1: T-section
A 200 × 20 mm flange on a 20 × 180 mm web, with the origin at the middle of the base (the tool's "T-section" example).
- Area: A = 200·20 + 20·180 = 4000 + 3600 = 7600 mm².
- Centroid: by symmetry, x̄ = 0. The web's centroid is 90 mm above the base and the flange's 190 mm: ȳ = (3600·90 + 4000·190)/7600 = 142.63 mm. It lies close to the flange, where most of the area is.
- Inertia about x̄: each rectangle contributes bh³/12 plus A·d², with d the vertical distance from its centroid to ȳ: Ix̄ = 28.80 × 10⁶ mm⁴. The tool's calculation table shows every term.
- Inertia about ȳ: both centroids lie on the ȳ axis, so there is no transfer term: Iȳ = 20·200³/12 + 180·20³/12 = 13.45 × 10⁶ mm⁴.
- Section moduli: the top fiber is c = 200 − ȳ from the axis and the bottom fiber c = ȳ, so Sx = 502.0 × 10³ mm³ at the top and 201.9 × 10³ mm³ at the bottom. Under a bending moment, the maximum stress appears at the bottom fiber, the one farthest from the neutral axis.
- Radius of gyration and polar moment: rx = √(Ix̄/A) = 61.56 mm and J = Ix̄ + Iȳ = 42.25 × 10⁶ mm⁴.
Example 2: L 100 × 100 × 10 angle
With the corner of the angle at O, split it into two rectangles that do not overlap (for example, 100 × 10 at the bottom and 10 × 90 above it). A = 1900 mm² and, by symmetry about the diagonal, x̄ = ȳ = 28.68 mm.
- Moments of inertia: Ix̄ = Iȳ = 1.800 × 10⁶ mm⁴.
- Product of inertia: the horizontal rectangle's centroid lies to the right of and below C, and the vertical one's to the left and above, so dx·dy is negative for both: Ix̄ȳ = −1.066 × 10⁶ mm⁴.
- Principal axes: since Ix̄ = Iȳ, the denominator of tan 2θp is zero: 2θp = 90° and the principal axes are at 45°, one along the diagonal of symmetry and the other normal to it.
- Principal moments: I1 = Ix̄ + |Ix̄ȳ| = 2.866 × 10⁶ mm⁴, about the diagonal of symmetry, and I2 = Ix̄ − |Ix̄ȳ| = 0.7343 × 10⁶ mm⁴. That is why a beam made of this angle under a vertical load does not bend only in the vertical plane: the bending splits between these two axes.
How to use the tool
- Choose the length unit and an origin O, for instance the lower-left corner or the middle of the base, or load one of the examples.
- Add each part (rectangle, circle, right triangle, semicircle or quarter circle), type its size and the x, y position of the point named in the text under the part; for triangles, semicircles and quarter circles also choose which way they face.
- Mark holes and empty parts as Hole. You can also drag the parts on the figure.
- Read the area, the centroid, the inertias, the principal axes (drawn on the section), the radii of gyration, the section moduli and J, and check the calculation table and the step by step.
Common mistakes
- Adding the bh³/12 terms without A·d². The parts' inertias only add directly when they refer to the same axis, the one through the centroid of the whole section.
- Counting an area twice. If two solid parts overlap, their common area adds twice; the tool warns you. Split the section without overlaps or subtract the common area as a hole.
- Using the wrong section modulus. In a section that is not symmetric about x̄, the maximum bending stress comes from the smaller S, the one of the farthest fiber.
- Ignoring the product of inertia in angles and Z-sections: with Ix̄ȳ ≠ 0, x̄ and ȳ are not the axes about which the beam bends independently.
- Taking J as the torsion constant. J = Ix̄ + Iȳ is the polar moment of area; only for circular sections, solid or hollow, does it equal the torsional stiffness. For thin-walled open sections the torsion constant is much smaller.
Further reading
The chapters on centroids and area moments of inertia of any statics textbook, and the bending chapters of a mechanics of materials textbook, where the section modulus and the principal axes are put to use.
More tools
Versión en español
About Simuveliq · How we verify the calculations · Terms of use · Privacy policy · Contact