An ion is an atom formed an atom gains or looses electrons to attain a stable configuration. An ion can either be positively charged (cation) or negatively charged (anion). Atomic number is the number of protons in the nucleus of an atom. Therefore, an ion with six protons has an atomic number of 6.