the octet rule is a very general rule that allows us to predict how atoms will form chemical bonds to make molecules it's used extensively in drawing lewis structures when elements have eight electrons in their outer shell they have an octet the octet rules based on observations of how atoms behave in the real world it's a general rule and there are numerous exceptions but it works very well for some of the most common elements that we deal with in science so how does the octet rule work let's look at hydrogen and chlorine and see how they bond to form hcl hydrochloric acid since both are nonmetals they share electrons and form a covalent bond chlorine has 7 valence electrons in its highest energy level sometimes called the outer shell to obtain an octet it needs an additional electron hydrogen has one valence electron hydrogen is an important exception to the octet rule hydrogen only needs two valence electrons to have a full outer shell instead of an octet think of it as a duet a covalent bond is formed when the hydrogen comes together with the chlorine and forms a chemical bond by sharing valence electrons the hydrogen which only had one by sharing now has two and you remember that hydrogen only needs two to fill its highest energy level the chlorine had seven but by sharing with the hydrogen it now has eight that's a full outer shell for chlorine and it's called an octet but what if we had two hydrogen atoms bonding for hydrogen which only needs two valence electrons to have a full outer shell the hydrogen would join with another hydrogen to form a chemical bond and now both hydrogens would have two valence electrons in their highest energy level if we had two chlorine atoms coming together they have seven in their outer shell right now but they come together and they form a chemical bond there they now both have eight in their outer shell and octet by sharing valence electrons back to our hcl molecule hydrogen and chlorine normally exist as h2 and cl2 in the real world so this is a bit of an oversimplification but it's how we think about the bond between the h and the cl forming to make hcl to recap the octet rule works well for many of the molecules we use in science especially biology but be careful hydrogen only needs two to have a full outer shell for ionic compounds it's a little bit different here we have a sodium and a chlorine atom the sodium is a metal and the chlorine is a non-metal that means it's going to be an ionic compound ionic compounds don't share valence electrons they transfer them so in this case the sodium is going to lose its valence electron to the chlorine the chlorine had seven now it has eight in octet now when we look at the sodium it doesn't have anything in that outer shell in fact that outer shell goes away and underneath it are eight valence electrons in that new outer shell so it has an octet the sodium it lost an electron it lost a negative charge it's going to be positive the chlorine gained an electron and electrons are negative therefore the chlorine is going to have a negative charge and because of that these two atoms are going to be attracted to each other and that is how the chemical bond forms in an ionic compound often we'll put brackets around the chlorine and a negative sign and then a positive sign on the sodium to show that they're attracted and they form this ionic bond a word of caution nacl is considered a formula unit of a larger crystalline structure it doesn't really exist by itself but the idea of the octet rule still holds in this lattice structure when we draw lewis structures to describe the arrangement of atoms and molecules the octet rule is a very useful guide but just remember it's only a guide there are many exceptions like hydrogen and it doesn't always work for all elements an octet isn't the only reason atoms bond electrostatic attraction between atoms is important to consider as well as the energy changes involved when the bonds form but the octet rule is a useful guide in predicting how atoms bond and it mostly matches how the main group elements form chemical bonds in the real world finally atoms form bonds to minimize energy and become more stable that's a core idea that helps explain why the octet rule works for so many elements this is dr b and thanks for watching you