Compute the centroid (center of mass) for a system of point masses in 2D. Essential for statics, physics, and engineering.
Centroid formula: For masses mᵢ at (xᵢ, yᵢ):
X_cg = (Σ mᵢ·xᵢ) / (Σ mᵢ) Y_cg = (Σ mᵢ·yᵢ) / (Σ mᵢ)
The center of gravity (or centroid) of a system is the average position of its mass. In a uniform gravitational field, it's the point where the entire weight can be considered to act. This calculator handles discrete point masses, but the concept extends to continuous objects.
Mathematical Definition (discrete masses):
X̄ = (∑ mᵢ xᵢ) / (∑ mᵢ) , Ȳ = (∑ mᵢ yᵢ) / (∑ mᵢ)
For continuous objects, integrals replace the sums: x̄ = (1/M) ∫ x dm , ȳ = (1/M) ∫ y dm.
Balance point: If you support the object at the centroid, it will balance perfectly (in uniform gravity).
Additivity: For composite objects, the overall centroid is the mass-weighted average of individual centroids.
Symmetry: If a system has an axis of symmetry, the centroid lies on that axis.
Plumb-line method (suspension): Suspend the object from two different points; the intersection of vertical lines (using a plumb bob) gives the centroid.
Balance method: Support the object on a knife-edge or pivot; adjust until it balances. The centroid lies directly above the support.
Stability condition: An object is stable if its centroid lies above its base of support. The lower the centroid and the wider the base, the more stable the object.
Examples: Racing cars have very low CG to avoid tipping; the leaning tower of Pisa stays upright because its CG is still above its foundation.
| Shape | Location |
|---|---|
| Rectangle (width w, height h) | (w/2, h/2) |
| Triangle (vertices at (0,0), (b,0), (0,h)) | (b/3, h/3) from right-angle corner |
| Circle (center at (xc,yc)) | (xc, yc) |
| Semicircular arc (radius R) | (0, 2R/π) from center of full circle |
| Uniform rod (length L) | midpoint (L/2) |
| Rectangular plate | intersection of diagonals |
For irregular shapes, you can approximate by breaking them into small elements (like this calculator does with point masses).