How Many Electrons are in Magnesium?

Obtained from sea water, magnesium is number 12 on the atomic chart. The number of electrons are also the same, 12. It was discovered in 1808 by Sir Humphrey Davy.