if an atom has an equal number of protons and electrons, its net charge is 0. If it gains an extra electron, it becomes negatively charged and is known as an anion. If it loses an electron, it becomes positively charged and is known as a cation.
hope this helps