The innermost shell is filled first. This shell can contain a maximum of two electrons. The second shell can hold a maximum of eight electrons. When this is filled, electrons go into the third shell, which also holds a maximum of eight electrons. Then the fourth shell begins to fill.