In chemistry, the octet rule explains how atoms of different elements combine to form molecules. In a chemical formula, the octet rule strongly governs the number of atoms for each element in a molecule; for example, calcium fluoride is CaF2 because two fluorine atoms and one calcium satisfy the rule. Hope this helps