Assuming that the earth is the center of all coordinates. The center of mass of the earth will be located at the coordinate 
To calculate the center of mass of the Earth-moon we require to proceed to the calculations given by,

Where
= Mass of earth
= Distance to center of mass for earth
= mass of moon
= Distance from moon to earth (to center of mass)
Replacing the values we have



We extrapolate this procedure to the sun, but now including the three bodies, in this way



So we have the two center of mass:
<em>System Earth-Moon equal to
km</em>
<em>System Earth-Moon-Sun equal to
km</em>