when an atom gains or loses an electron, it becomes an ion. Ions formed by the loss of an electron have a positive charge, and those formed by gaining an electron have a negative charge. Positive ions are called cations, and negative ions are called anions.