Calculate the center of mass for point masses on a straight line using \(x_{\mathrm{cm}}=\frac{\sum m_i x_i}{\sum m_i}\). Add or remove masses, compute the center of mass, or solve a missing mass or position from a target center of mass.
Center of Mass for a System of Collinear Points
Physics Classical Mechanics • Physics of Rigid Bodies
Frequently Asked Questions
How do you calculate the center of mass for collinear point masses?
Use x_cm = sum(m_i x_i) / sum(m_i). Multiply each mass by its position, add those products, then divide by the total mass.
Can positions be negative?
Yes. Positions are measured relative to a chosen origin, so points to the left of the origin can have negative coordinates.
Why is the center of mass closer to heavier objects?
Each position is weighted by its mass. A heavier mass contributes more to sum(m_i x_i), pulling x_cm closer to its location.
Can the center of mass lie where there is no particle?
Yes. The center of mass is a balance point for the system, not necessarily the location of one of the masses.
Can the center of mass be outside the points?
For positive masses on a line, the center of mass lies between the minimum and maximum positions. With only positive masses, it cannot lie outside that interval.
How do I solve for a missing mass?
Use m_x = (S - x_cm M) / (x_cm - x_x), where S and M are the known weighted sum and known mass total.
How do I solve for a missing position?
Use x_x = [x_cm(M + m_x) - S] / m_x, where m_x is the known mass of the unknown-position point.
Do the mass units matter?
All masses must use the same unit. The mass unit cancels in the center-of-mass ratio, but it matters for the total mass display.
What does total moment mean in this calculator?
The total moment is sum(m_i x_i). It is the numerator of the center-of-mass formula.
What is the sample result for 2 kg at 0 m, 3 kg at 4 m, and 5 kg at 10 m?
The center of mass is x_cm = [(2)(0) + (3)(4) + (5)(10)] / (2 + 3 + 5) = 62 / 10 = 6.2 m.