Mechanics
Centre of mass as a mass-weighted average
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.
Last updated
The Formula
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.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| m_i | Mass of the i-th particle | kg | Only positive masses are considered here; 2 and 3 kilograms in the worked case. |
| r_i | Position vector of the i-th particle | m | Measured from one common origin; positions 1 and 7 on the line in the worked case. |
| M | Total mass, the sum of all particle masses | kg | Equal to 5 kilograms in the worked example. |
What Each Symbol Means
m_ikg
Mass of the i-th particle
Only positive masses are considered here; 2 and 3 kilograms in the worked case.
r_im
Position vector of the i-th particle
Measured from one common origin; positions 1 and 7 on the line in the worked case.
Mkg
Total mass, the sum of all particle masses
Equal to 5 kilograms in the worked example.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate the center of mass page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate The Center Of Mass, filed under Science. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Centre of mass as a mass-weighted average?
The formula for Centre of mass as a mass-weighted average is 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 does each symbol in Centre of mass as a mass-weighted average stand for?
m_i is mass of the i-th particle; r_i is position vector of the i-th particle; M is total mass, the sum of all particle masses.
What units should I use with Centre of mass as a mass-weighted average?
Substitute m_i in kilograms, r_i in metres, M in kilograms. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Centre of mass as a mass-weighted average?
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.