An atom or a group of atoms that has acquired a net electric charge by gaining or losing one or more electrons.