The charge of an ion is a measure of the number of electrons that an atom has gained or lost in order to achieve a full outer shell. If an atom loses electrons, it becomes positively charged (cation), and if it gains electrons, it becomes negatively charged (anion).