An ion is an atom or molecule that has gained or lost one or more electrons, giving it a net positive or negative electrical charge. The magnitude and polarity of this charge depends on the relative numbers of protons and electrons present in the ion.