Thus for example, Zn is [Ar]4s23d10 but Zn+2 is NOT [Ar]4s23d8, it is [Ar]3d10 because 4s is higher energy than 3d.--------------------The way we designate electronic configurations for cations and anions is essentially similar to that for neutral atoms in their ground state. That is, we follow the three important rules: Aufbau's Principle, Pauli-exclusion principle, and Hund's Rule. The electronic configuration of cations is assigned by removing electrons first in the outermost p orbital, followed by the s orbital and finally the d orbitals (if any more electrons need to be removed). For instance, the ground state electronic configuration of calcium (Z=20) is 1s22s22p63s23p64s2. The calcium ion (Ca2+), however, has two electrons less. Hence, the electron configuration for Ca2+ is 1s22s22p63s23p6. Since we need to take away two electrons, we first remove electrons from the outermost shell (n=4). In this case, all the 4p subshells are empty; hence, we start by removing from the s orbital, which is the 4s orbital. The electron configuration for Ca2+ is the same as that for Argon, which has 18 electrons. Hence, we can say that both are isoelectronic, having the same of number of neutrons. The electronic configuration of anions is assigned by adding electrons according to Aufbau's building up principle. We add electrons to fill the outermost orbital that is occupied, and then add more electrons to the next higher orbital. The neutral atom chlorine (Z=17), for instance has 17 electrons. Therefore, its ground state electronic configuration can be written as 1s22s22p63s23p5. The chloride ion (Cl-), on the other hand, has an additional electron for a total of 18 electrons. Following Aufbau's principle, the electron occupies the partially filled 3p subshell first, making the 3p orbital completely filled. The electronic configuration for Cl- can, therefore, be designated as 1s22s22p63s23p6. Again, the electron configuration for the chloride ion is the same as that for Ca2+ and Argon. Hence, they are all isoelectronic to each other.The same rule will apply to transition metals when forming ions. You should note that the ns electrons are always lost before the (n-1)d when forming cations for transition metals. For example,the electron configuration for Zn: [Ar]4s23d10 the electron configuration for Zn+2: [Ar]3d10https://chem.libretexts.org/Courses/University_of_Arkansas_Little_Rock/Chem_1402:_General_Chemistry_1_(Kattoum)/Text/7:_The_Structure_of_Atoms_and_Periodic_Trends/7.4:_Electron_Configurations_of_Ions"