The octet rule is used when drawing Lewis dot structures and diagramming electron configurations. Although the octet rule does not work for all elements, it does work well for such elements as carbon, bromine, chlorine, iodine, and oxygen.