An atom or group of atoms that have a positive or negative electric charge due to a gain (negative charge) or loss (positive charge) of one or more electrons. Atoms with a positive charge are known as cations; those with a negative charge are anions.