Center of Mass Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter each mass and its x and y position (any consistent units); set a mass to 0 to leave it out. For a line, leave all y at 0.
Result
Center of mass x
Total mass
- Center of mass y
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Mass 1: enter 0 or more.
- Mass 1: x: enter a number.
- Mass 1: y: enter a number.
- Mass 2: enter 0 or more.
- Mass 2: x: enter a number.
- Mass 2: y: enter a number.
- Mass 3 (0 to leave out): enter 0 or more.
- Mass 3: x: enter a number.
- Mass 3: y: enter a number.
- Mass 4 (0 to leave out): enter 0 or more. Optional, under “Mass 4”.
- Mass 4: x: enter a number. Optional, under “Mass 4”.
- Mass 4: y: enter a number. Optional, under “Mass 4”.
- Read the result: Center of mass x; the panel also shows Total mass and Center of mass y.
How this calculator works
The center of mass of point masses is the mass-weighted average of their positions: x̄ = Σ mᵢxᵢ ÷ Σ mᵢ and ȳ = Σ mᵢyᵢ ÷ Σ mᵢ.
In a uniform gravity field it is also the center of gravity, the balance point. With equal masses it reduces to the plain average of the points (the centroid).
The formula
| Symbol | Meaning |
|---|---|
| Mass 1 | |
| Mass 1: x | |
| Mass 2 | |
| Mass 2: x | |
| Mass 3 (0 to leave out) | |
| Mass 3: x | |
| Mass 4 (0 to leave out) | |
| Mass 4: x | |
| Total mass | |
| Center of mass x |
Worked example
| Mass 1 | 2 |
|---|---|
| Mass 1: x | 0 |
| Mass 1: y | 0 |
| Mass 2 | 3 |
| Mass 2: x | 4 |
| Mass 2: y | 0 |
| Mass 3 (0 to leave out) | 5 |
| Mass 3: x | 2 |
| Mass 3: y | 3 |
| Mass 4 (0 to leave out) | 0 |
| Mass 4: x | 0 |
| Mass 4: y | 0 |
| Total mass | 10 |
|---|---|
| Center of mass y | 1.5 |
Center of mass x 2.2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Where is the center of mass of 2 kg at (0, 0), 3 kg at (4, 0) and 5 kg at (2, 3)?
At (2.2, 1.5): x̄ = (0 + 12 + 10) ÷ 10 and ȳ = 15 ÷ 10.
Does the unit of mass matter?
No, as long as all masses use the same unit; only their ratios count.