Center of Mass Calculator
Calculate the center of mass (centroid) for a system of point masses in 2D. Add masses, visualize positions, and compute the exact CoM coordinates.
| # | Mass | X | Y | Action |
|---|
About
Miscalculating the center of mass of a system leads to structural imbalance, failed load distribution, and incorrect torque analysis. This tool computes the exact center of mass coordinates (xcm, ycm) for a discrete system of up to 50 point masses in two dimensions using the standard weighted-average formulation from classical mechanics. All mass values must be strictly positive. The calculation assumes point masses in a uniform gravitational field, meaning center of mass and center of gravity coincide. It does not account for continuous mass distributions or relativistic effects.
Accurate center of mass determination is critical in aerospace engineering (satellite attitude control), robotics (stability analysis), civil engineering (load path verification), and game physics (rigid body simulation). The tool provides an interactive canvas where you can place, drag, and edit masses visually. Pro tip: for composite bodies, decompose into sub-shapes, compute each centroid separately, then use this calculator with the sub-shape masses and centroid positions as inputs.
Formulas
The center of mass for a system of n discrete point masses in two dimensions is computed as:
Where mi is the mass of the i-th particle, xi and yi are its Cartesian coordinates, and n is the total number of point masses. The denominator M = n∑i=1 mi represents the total mass of the system. Each coordinate of the center of mass is the mass-weighted average of the corresponding coordinates of all particles. The result is a single point (xcm, ycm) that behaves as if the entire system mass M were concentrated there when analyzing translational motion.
Reference Data
| Shape / Configuration | CoM Location (xcm, ycm) | Notes |
|---|---|---|
| Uniform Rod (length L) | L2 from one end | Along the axis of the rod |
| Uniform Rectangle (a × b) | (a2, b2) | Geometric center |
| Uniform Triangle (vertices known) | x1 + x2 + x33, y1 + y2 + y33 | Centroid at medians intersection |
| Uniform Circular Disk (radius R) | Center of the circle | By symmetry |
| Uniform Semicircle (radius R) | (0, 4R3π) | ≈ 0.4244R from diameter |
| Uniform Quarter Circle (radius R) | (4R3π, 4R3π) | Both axes identical by symmetry |
| Uniform Solid Hemisphere (radius R) | 3R8 from flat face | 3D result, along symmetry axis |
| Uniform Solid Cone (height h) | h4 from base | Along central axis |
| Hollow Hemisphere Shell (radius R) | R2 from flat face | Thin shell assumption |
| Two Equal Masses | Midpoint between them | Independent of mass magnitude |
| Two Unequal Masses (m1, m2) | Closer to heavier mass | Divides distance in ratio m2:m1 |
| L-shaped Composite (equal arms) | Inside the L bend region | Decompose into two rectangles |
| T-shaped Composite | Along axis of symmetry | Decompose into flange + web |
| Ring / Annulus | Geometric center | By rotational symmetry |
| Uniform Parallelogram | Diagonal intersection | Same as rectangle method |
| Earth-Moon System | ≈ 4670 km from Earth center | Inside Earth (radius 6371 km) |
| Uniform Trapezoid (a, b, h) | h(2b + a)3(a + b) from base a | Along height axis |
| Uniform Sector (angle θ, radius R) | 2R sin(θ/2)3(θ/2) from center | θ in radians |
| Two-body (general) | m1r1 + m2r2m1 + m2 | Fundamental two-body formula |