For discrete point masses, the center of mass is the weighted average of their positions:

For a continuous volume with density , the center of mass is at defined as the triple integral:

where

  • is a point inside the volume
  • is the volumetric mass density of the mass at
  • is the total mass of the volume ().

For a continuous area in 2D, we can define the center of mass analogously with a double integral: