Science · 81 calculators
Center Of Mass Calculator
The centre of mass of a system answers a narrow but useful question: where, on average, does its mass sit? For two point masses on a line the answer is a weighted average of their positions, with the masses acting as the weights. This page derives that result, explains why a uniform gravitational field produces no net torque there, and works through the numbers with a calculator built on the same formula.
Last updated
Centre of mass
4.6
- Total mass
- 5
- First moment sum
- 23
- If the second mass doubles
- 5.5
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
x_cm = (m1 x1 + m2 x2) / (m1 + m2)
- x_cm
- Position of the centre of mass, measured from the same origin as x1 and x2
- m1
- Mass of the first particle
- m2
- Mass of the second particle
- x1
- Position of the first particle on the chosen line
- x2
- Position of the second particle on the chosen line
How to check the result by hand
- 1
Set one axis and a common origin
Place both particles on a single line and choose a zero point, then record each position as a signed coordinate measured from it. A mass three units to the left of the origin has position minus three, not three. Both positions must use the same origin and the same length unit, because the answer is a location on that line rather than a free-floating distance.
- 2
Add the masses to find the total mass
Work out m1 + m2, which becomes the denominator of the calculation. With a 2 kilogram mass and a 3 kilogram mass the total is 5 kilograms. Keeping this number separate makes the later division much easier to check, and it is also the quantity that would appear in the total weight of the system.
- 3
Multiply each mass by its position
Form the two first moments and add them: m1 x1 + m2 x2. In the worked case the contributions are 2 times 1, which is 2, and 3 times 7, which is 21, giving a moment sum of 23 kilogram metres. Note that a negative position contributes a negative moment, which is how masses on opposite sides of the origin partly cancel.
- 4
Divide the moment sum by the total mass
Take the ratio of the first moment to the total mass: 23 divided by 5 gives 4.6 in the worked case. This step converts a moment into a position, so the answer carries the length unit of the original coordinates. Write the unit beside the result, and state the origin it is measured from, so that nobody mistakes it for a distance travelled.
- 5
Check the location, direction and sensitivity
For positive masses the result must lie between the two positions and nearer to the larger mass. Here 4.6 lies between 1 and 7 and is closer to 7, which is a useful sanity check in itself. Doubling the second mass should move it to 5.5, equal masses at 2 and 8 should give the midpoint 5, and multiplying both masses by the same factor should leave the answer unchanged.
Common Questions
How does the Center Of Mass Calculator work?
Add the two masses to get the total mass, multiply each mass by its position to get its first moment, then divide the moment sum by the total mass. With a 2 kilogram mass at position 1 and a 3 kilogram mass at position 7, the moment sum is 23 and the total mass is 5, so the centre of mass is at 4.6 — nearer to the heavier mass. Doubling the second mass moves the answer to 5.5.
What do I need to enter in the Center Of Mass Calculator?
It takes 4 inputs: First mass (kg), First position (m), Second mass (kg), Second position (m). Fields that expect a unit say so next to the label.
Where does Centre of mass come from?
It comes from r_cm = SUM(m_i r_i) / SUM(m_i) — the general definition, valid in any number of dimensions and for any number of particles. Each position vector is multiplied by its mass, the products are added, and the total is divided by the sum of the masses. Restricting it to two particles on one line gives the formula used by the calculator.
What is the most common mistake with the Center Of Mass Calculator?
Averaging the positions without weighting by mass. Taking (1 + 7)/2 gives 4 rather than 4.6, because it pretends both masses are equal. The weights must be the masses themselves: use (m1 x1 + m2 x2)/(m1 + m2) every time, and only simplify to the midpoint when the masses genuinely match.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate The Center Of Mass page.
