To find an atom's electron configuration you must use the diagonal rule.

Atoms have different general electron configurations based on their placement in the periodic table.

                    1 1 1 1 1 1 1 1 1
  1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
 +-+                               +-+
1| |                               | |
 +-+-+                   +-+-+-+-+-+-+
2| | |                   | | | | | | |
 +-+-+                   +-+-+-+-+-+-+
3| | |                   | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
4| | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
5| | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
6| | @ | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
7| | @ | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       1 1 1 1 1
     1 2 3 4 5 6 7 8 9 0 1 2 3 4
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  @:| | | | | | | | | | | | | | |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  @:| | | | | | | | | | | | | | |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+

n will refer to the period of the element.

The following list will be ordered by group. It refers to the last sublevel that electrons enter:

  1. ns1
  2. ns2
  3. n-1d1
  4. n-1d2
  5. n-1d3
  6. n-1d4
  7. n-1d5
  8. n-1d6
  9. n-1d7
  10. n-1d8
  11. n-1d9
  12. n-1d10
  13. np1
  14. np2
  15. np3
  16. np4
  17. np5
  18. np6

The next list is for the Lanthanide and Actinide series:

  1. n-2f1
  2. n-2f2
  3. n-2f3
  4. n-2f4
  5. n-2f5
  6. n-2f6
  7. n-2f7
  8. n-2f8
  9. n-2f9
  10. n-2f10
  11. n-2f11
  12. n-2f12
  13. n-2f13
  14. n-2f14

The outer electron configuration is the s'es and p's of the highest principal quantum number. What the **** does that mean? Well, it means the s'es and p's of the highest number in front of the s and p.

Thus, the electron configuration for Mg is 1s2 2s2 2p6 3s2. The outer electron configuration is therefore 3s2.

For sulfur, S, atomic number 32, the electron configuration is 1s2 2s2 2p6 3s2 3p4. The outer electron configuration is 3s2 3p4.

Exception: elements in groups 6 and 11 rearrange themselves to become more chemically stable because of the octet rule.

When creating chemical bonds, electrons can move around, and electron configurations can change.