Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Center of Mass Calculator

Mass 1: enter 0 or more. Prefilled example: 2.

Mass 1: x: enter a number. Prefilled example: 0.

Mass 1: y: enter a number. Prefilled example: 0.

Mass 2: enter 0 or more. Prefilled example: 3.

Mass 2: x: enter a number. Prefilled example: 4.

Mass 2: y: enter a number. Prefilled example: 0.

Mass 3 (0 to leave out): enter 0 or more. Prefilled example: 5.

Mass 3: x: enter a number. Prefilled example: 2.

Mass 3: y: enter a number. Prefilled example: 3.

Mass 4

Mass 4 (0 to leave out): enter 0 or more. Prefilled example: 0.

Mass 4: x: enter a number. Prefilled example: 0.

Mass 4: y: enter a number. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Mass 1: enter 0 or more.
  2. Mass 1: x: enter a number.
  3. Mass 1: y: enter a number.
  4. Mass 2: enter 0 or more.
  5. Mass 2: x: enter a number.
  6. Mass 2: y: enter a number.
  7. Mass 3 (0 to leave out): enter 0 or more.
  8. Mass 3: x: enter a number.
  9. Mass 3: y: enter a number.
  10. Mass 4 (0 to leave out): enter 0 or more. Optional, under “Mass 4”.
  11. Mass 4: x: enter a number. Optional, under “Mass 4”.
  12. Mass 4: y: enter a number. Optional, under “Mass 4”.
  13. 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

  1. M=m1+m2+m3+m4
  2. X=m1×x1+m2×x2+m3×x3+m4×x4M
Symbols used in the formula
SymbolMeaning
m1Mass 1
x1Mass 1: x
m2Mass 2
x2Mass 2: x
m3Mass 3 (0 to leave out)
x3Mass 3: x
m4Mass 4 (0 to leave out)
x4Mass 4: x
MTotal mass
XCenter of mass x

Worked example

Mass 12
Mass 1: x0
Mass 1: y0
Mass 23
Mass 2: x4
Mass 2: y0
Mass 3 (0 to leave out)5
Mass 3: x2
Mass 3: y3
Mass 4 (0 to leave out)0
Mass 4: x0
Mass 4: y0
Total mass10
Center of mass y1.5
  1. M=2+3+5+0=10
  2. X=2×0+3×4+5×2+0×010=2.2

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.

Questions answered

Related calculators