In order to attain octet configuration, the atoms share, lose or gain electrons, then its atomic mass
Does not change
The atomic mass does not change with chemical change. The loss or gain of electrons does not change the atomic mass because the mass of electrons is much lighter than nucleons. The mass of electrons are not considered for atomic mass.