The electrons around the nucleus of an atom are arranged in shells.
* Note: At GCSE level the situation is sometimes over-simplified and you are told the third shell can only hold up to 8 electrons. This is incorrect.
In summary, the capacities of the first four main shells are
2, 8, 18 and 32 respectively.
Where these numbers come from is described in more detail below.