Center of Mass Calculator

Calculate center of mass using x_cm = Σmᵢxᵢ / Σmᵢ for point mass systems.

⚖️ Mechanics📐 x_cm = Σmᵢxᵢ/Σmᵢ🎯 Center of Mass

Enter mass and position for up to 5 point masses. Leave unused rows blank. For 1D: fill x only.

Mass (kg)xy (optional)z (optional)
⚠️ Enter at least 2 masses with x positions.

What Is Center of Mass?

The center of mass (CM) is the point at which the total mass of a system can be considered to be concentrated for the purpose of analyzing translational motion. For n point masses: r_cm = Σmᵢrᵢ / Σmᵢ, where each rᵢ is the position vector of mass mᵢ. In component form: x_cm = Σmᵢxᵢ/M, y_cm = Σmᵢyᵢ/M, z_cm = Σmᵢzᵢ/M, where M = Σmᵢ is total mass.

Newton's laws apply to the CM motion: the CM of a system of particles moves as if all the mass were concentrated at the CM and all external forces were applied there. An internal explosion may scatter fragments, but the CM continues on the same trajectory (if no external forces act). This principle underlies projectile trajectory analysis for exploding projectiles.

For continuous bodies, the CM is found by integration: r_cm = (1/M)∫r·dm. For symmetric homogeneous bodies, the CM lies at the geometric center: uniform rod (midpoint), sphere (center), cylinder (axis at midheight). Asymmetric bodies have CMs offset toward the heavier side — a wrench has CM closer to the head.

The CM is not always inside the object — a ring or horseshoe-shaped object has CM in the empty central region. A boomerang's CM traces a straight line while the boomerang itself rotates. Athletes exploit CM manipulation: a high jumper can clear the bar while keeping their CM below it (Fosbury flop technique).

Formula Reference Table

Solve ForFormulaNotes
Center of massx_cm = Σmᵢxᵢ / ΣmᵢAny consistent unit
3D extensionr_cm = (Σmᵢrᵢ) / ΣmᵢVector form
Two massesx_cm = (m₁x₁ + m₂x₂)/(m₁+m₂)Weighted average position
Uniform rodx_cm = L/2At midpoint
Uniform diskr_cm = 0At geometric center
After collisionCM maintains velocityNo external forces → CM constant

3 Worked Examples

Example 1
Two Unequal Masses

m₁=3 kg at x₁=0; m₂=7 kg at x₂=10 m.

  • x_cm = (3×0 + 7×10)/(3+7) = 70/10 = 7.0 m
  • CM is 7 m from m₁ — closer to the heavier mass
  • Lighter mass × distance = heavier mass × distance: 3×7 = 21 ≠ 7×3 = 21 ✓ (torque balance)
✓ x_cm = 7.0 m (weighted toward heavier mass)
Example 2
System of Three Masses

m₁=2 kg at (1,2); m₂=3 kg at (4,0); m₃=5 kg at (0,6).

  • M = 10 kg
  • x_cm = (2×1+3×4+5×0)/10 = (2+12+0)/10 = 14/10 = 1.4
  • y_cm = (2×2+3×0+5×6)/10 = (4+0+30)/10 = 3.4
✓ CM at (1.4, 3.4)
Example 3
Dumbbell — CM on Axis

5 kg mass at x=0; 5 kg mass at x=1.2 m.

  • x_cm = (5×0+5×1.2)/10 = 6/10 = 0.6 m
  • CM at midpoint (equal masses) — coincides with geometric center
  • If handle has mass 0.5 kg at x=0.6: x_cm = (5×0+0.5×0.6+5×1.2)/10.5 = 6.3/10.5 = 0.6 m
✓ CM at midpoint for equal masses

Real-World Applications

✈️
Aircraft Balance
Aircraft CM (center of gravity) must stay within acceptable CG range for stability. Fuel burn, passenger loading, and cargo distribution all shift the CG. Pilots and loadmasters calculate CG before every flight.
🚀
Rocket Stability
Rocket's CM must be ahead of the center of pressure (aerodynamic force point) for stable flight. As fuel burns, CM moves toward the nose — designed to maintain stability margin throughout burn.
Sports Biomechanics
Athletes manipulate CM: Fosbury flop high jumpers bend backward so their CM passes under the bar while their body goes over. Gymnasts tuck to reduce I and increase spin (CM remains on same trajectory).
🏗️
Structural Stability
Structures are stable if CM is above the base of support. Leaning Tower of Pisa: CM has shifted outside the foundation footprint — stabilization cables and counterweighting restored CM over the base.
🌍
Gravitational Systems
Binary stars orbit their common CM (barycenter). Earth-Moon system: CM is inside Earth but offset from center by ≈4,700 km. Both Earth and Moon technically orbit this barycenter.

Common Mistakes to Avoid

⚠️
Using positions relative to wrong origin

The CM calculation works with any origin, but be consistent. If m₁ is at x=0, that's your origin. The CM position is relative to the same origin.

⚠️
Not weighting by mass

x_cm = Σmᵢxᵢ/Σmᵢ — it's a weighted average by mass. Simply averaging positions (Σxᵢ/n) gives the geometric center, not the mass center.

⚠️
2D/3D: calculate each component separately

x_cm, y_cm, z_cm are calculated independently using the same formula. They're not combined until the final position vector.

⚠️
CM can be outside the object

For ring, hollow sphere, L-shaped or U-shaped objects, the CM may be in empty space. This is mathematically valid — external forces still act as if applied at that point.

⚠️
For continuous objects, integration is needed

The formula Σmᵢrᵢ/Σmᵢ is for discrete point masses. Continuous objects need ∫r·dm / M (often simplified by symmetry).

Frequently Asked Questions

What is the center of mass?
The CM is the mass-weighted average position of all particles in a system. For translation, the system's total external force produces the CM acceleration: F_net = Ma_cm. The CM moves as if it were a single particle with mass M = total mass. Internal forces cancel and don't affect CM motion.
Why does the CM of an isolated system move at constant velocity?
Newton's 2nd law for a system: F_external = M·a_cm. If F_external = 0 (isolated system): a_cm = 0 → v_cm = constant. Momentum conservation: P_total = M·v_cm = constant. An explosion or internal rearrangement cannot change CM velocity.
What is the center of gravity vs. center of mass?
Center of gravity (CG) is where gravity effectively acts — weighted average of gravitational force, not mass. In uniform gravity: CG = CM. In non-uniform gravity (very large objects near astronomical bodies), they differ slightly. For everyday engineering, CG = CM.
How do rockets navigate using CM?
Rocket thrust (from nozzle) creates a torque about the CM if not aligned with the CM. Gimbal nozzle angles steer by creating controlled torques. Reaction control thrusters (RCS) at off-center positions create torques to rotate the spacecraft without moving the CM.
What is the reduced mass?
For a two-body problem (both bodies moving): replace both masses with reduced mass μ = m₁m₂/(m₁+m₂). The problem becomes equivalent to one body of mass μ at the distance between the two bodies. Used in orbital mechanics, atomic physics (electron-nucleus reduced mass), and molecular spectroscopy.
Why do divers tuck for faster spins?
Conservation of angular momentum: L = Iω = constant. Tucking brings limbs closer to the axis, reducing I. Since L is constant, ω increases proportionally. A diver can change spin rate by a factor of 3–4 between tucked (I small) and layout (I large) positions.
What is the parallel axis theorem in terms of CM?
I_axis = I_cm + M·d², where d is the distance from the CM to the new rotation axis. Any moment of inertia can be found from I_cm (minimal I) plus Md². For a rod: I_cm = mL²/12 (center axis); I_end = mL²/12 + m(L/2)² = mL²/3.
How is CM used in collision analysis?
In the CM reference frame, total momentum = 0. Elastic collisions in the CM frame: particles reverse momentum directions with same speeds. Transforming back to lab frame gives collision outcomes. Particle physics experiments use CM energy = √s as the measure of collision energy, regardless of lab frame.

Related Physics Calculators

Formula Explorer connections

Interpretation: This relationship connects motion, force, momentum, work or energy in a mechanical system. Assumption: Choose a consistent reference direction and unit system. The model may assume constant acceleration, rigid bodies, negligible losses or an isolated system.

Centripetal Acceleration Calculator →Centripetal Force Calculator →Collision Momentum Calculator →Physics Formula Explorer →