User Rating 0.0
Total Usage 0 times
Presets:
# Mass X Y Action
No point masses added yet. Use the form above or click on the canvas to add points.
Click canvas to add a point • Drag points to move • Scroll to zoom
Is this tool helpful?

Your feedback helps us improve.

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.

center of mass centroid calculator physics calculator point masses center of gravity weighted average mechanics

Formulas

The center of mass for a system of n discrete point masses in two dimensions is computed as:

xcm = ni=1 mi xini=1 mi
ycm = ni=1 mi yini=1 mi

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 = ni=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 / ConfigurationCoM Location (xcm, ycm)Notes
Uniform Rod (length L)L2 from one endAlong the axis of the rod
Uniform Rectangle (a × b)(a2, b2)Geometric center
Uniform Triangle (vertices known)x1 + x2 + x33, y1 + y2 + y33Centroid at medians intersection
Uniform Circular Disk (radius R)Center of the circleBy 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 face3D result, along symmetry axis
Uniform Solid Cone (height h)h4 from baseAlong central axis
Hollow Hemisphere Shell (radius R)R2 from flat faceThin shell assumption
Two Equal MassesMidpoint between themIndependent of mass magnitude
Two Unequal Masses (m1, m2)Closer to heavier massDivides distance in ratio m2:m1
L-shaped Composite (equal arms)Inside the L bend regionDecompose into two rectangles
T-shaped CompositeAlong axis of symmetryDecompose into flange + web
Ring / AnnulusGeometric centerBy rotational symmetry
Uniform ParallelogramDiagonal intersectionSame as rectangle method
Earth-Moon System4670 km from Earth centerInside Earth (radius 6371 km)
Uniform Trapezoid (a, b, h)h(2b + a)3(a + b) from base aAlong height axis
Uniform Sector (angle θ, radius R)2R sin(θ/2)3(θ/2) from centerθ in radians
Two-body (general)m1r1 + m2r2m1 + m2Fundamental two-body formula

Frequently Asked Questions

The center of mass shifts strongly toward the dominant mass. In the limiting case where one mass m1 → ∞ relative to all others, the CoM converges to (x1, y1). This is why the Earth-Moon system's CoM lies inside Earth despite the Moon's large distance.
Yes. For concave or hollow objects (a ring, an L-shaped bracket, a boomerang), the center of mass often lies in empty space where no material exists. This is physically valid - the CoM is a mathematical point, not necessarily a material point.
In a uniform gravitational field (constant g), center of mass and center of gravity are identical. They diverge only in non-uniform fields, such as very tall structures in planetary-scale gravity gradients. For objects smaller than approximately 100 km on Earth, the difference is negligible.
Decompose the body into simpler sub-shapes (rectangles, triangles, circles). Compute each sub-shape's centroid and area (or volume times density for mass). Then enter each sub-shape as a point mass at its centroid location in this calculator. The composite CoM formula is mathematically identical to the discrete point-mass formula.
The CoM coordinates depend on your chosen origin and axis directions, but the physical location of the CoM point is invariant. Shifting the origin by (Δx, Δy) shifts the computed CoM by the same offset. Rotating axes transforms coordinates accordingly. The relative position of the CoM within the mass distribution remains constant.
Yes, this is a standard engineering technique. To compute the CoM of a plate with a circular hole, enter the full plate as a positive mass at its centroid, and the hole as a negative mass at the hole's centroid. The formula handles negative masses algebraically. Ensure the total mass M remains positive to avoid a division-by-zero or sign inversion.