Last verified · v1.0
Calculator · physics
Center Of Mass Calculator
Compute the center of mass for 2 to 5 point masses using x_cm = sum(m_i * x_i) / sum(m_i). Enter masses and positions for instant results.
Inputs
Center of Mass Position
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
Understanding the Center of Mass Formula
The center of mass represents the unique point in a system of particles where the entire mass of the system can be treated as concentrated for analyzing translational motion. First formalized through Newtonian mechanics, this concept underpins physics, aerospace engineering, structural analysis, biomechanics, and orbital mechanics. For a discrete system of n point masses arranged along a one-dimensional axis, the center of mass is computed using a mass-weighted average of positions.
The Core Formula
The center of mass position along the x-axis is defined by:
xcm = ∑(mi × xi) / ∑mi
The summation runs from i = 1 to n, covering all particles in the system. This expression computes the ratio of the total first moment of mass—the sum of each mass multiplied by its position—to the total mass of the system. The result is the single coordinate that defines the system's balance point, as established in classical mechanics and documented by HyperPhysics at Georgia State University.
Variable Definitions
- n (Number of Particles): The total count of discrete point masses in the system. This calculator supports between 2 and 5 particles.
- mi (Mass of Particle i): The mass of the i-th particle, expressed in kilograms (kg). All mass values must be strictly positive.
- xi (Position of Particle i): The location of the i-th particle along the x-axis, in meters (m). Positions may be positive, negative, or zero relative to the chosen coordinate origin.
- xcm (Center of Mass): The computed balance point of the system along the x-axis, returned in meters (m).
Derivation and Physical Meaning
The center of mass formula follows directly from the concept of the first moment of mass. Consider a massless lever: each particle exerts a rotational moment proportional to both its mass and its distance from the pivot. The center of mass is the pivot position at which all moments cancel, producing equilibrium. Setting the net moment to zero gives ∑mi(xi − xcm) = 0, which rearranges directly to the formula above. For continuous objects, the discrete sum extends to an integral over the mass distribution, as detailed by Paul's Online Math Notes (Calculus II — Center of Mass). For aeronautical applications, NASA's Glenn Research Center provides essential guidance on locating the center of gravity—equivalent to center of mass in uniform gravitational fields—for aircraft stability analysis.
Worked Example: Two Particles
Consider a 3 kg mass at x = 2 m and a 7 kg mass at x = 10 m. Applying the formula:
xcm = (3 × 2 + 7 × 10) / (3 + 7) = (6 + 70) / 10 = 7.6 m
The center of mass lies at 7.6 m—noticeably closer to the heavier 7 kg particle at 10 m, confirming that greater mass pulls the balance point toward its location.
Worked Example: Three Particles
Consider three masses: 2 kg at x = 0 m, 5 kg at x = 4 m, and 3 kg at x = 9 m.
xcm = (2 × 0 + 5 × 4 + 3 × 9) / (2 + 5 + 3) = (0 + 20 + 27) / 10 = 4.7 m
Although the particles span from 0 m to 9 m (a geometric midpoint of 4.5 m), the combined mass of the central and outer particles pulls the center of mass to 4.7 m.
Real-World Applications
- Aerospace Engineering: Aircraft and spacecraft designers must locate the center of mass precisely to maintain stable flight and correct attitude control. Exceeding the allowable center-of-gravity envelope by even a few centimeters can render a vehicle uncontrollable.
- Structural Engineering: Engineers calculate the centroid of composite cross-sections—beams, columns, and trusses—to determine neutral axes, bending stress distributions, and safe load limits.
- Biomechanics: Sports scientists and physical therapists locate the human body's center of mass, which sits approximately 55 to 57 percent of standing height in adults, to analyze gait, balance, and injury risk.
- Robotics: Robot designers position actuators and counterweights by computing the system center of mass to prevent tipping during movement.
- Astronomy: The Earth-Moon barycenter—the center of mass of the two-body system—lies approximately 4,671 km from Earth's center, inside Earth but offset from its core, governing the orbital paths of both bodies.
Reference