An atom or group of atoms having either a positive or negative charge from having lost or gained one or more electrons.