A magnesium atom is smaller than sodium and calcium atom according to the periodic table trend that tells that elements from left to right and up to down increases in atomic radius. This points out to the valence shell electrons which is related to the atomic radius.