For discrete point masses, the center of mass is the weighted average of their positions:
For a continuous volume
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