How many valence electrons are in an atom of magnesium?
Magnesium has atomic number 12. Its electronic configuration is 2,8,2. Thus, it has 2 valence electrons. It loses its two electrons to get a stable or octet configuration. The number of valence electrons in an element can be identified by referring to the group it belongs to.