Molecules
How atoms join together
Only the noble gases exist as isolated atoms. Other elements join through chemical bonds to form molecules or crystals. These bonds are guided by valence electrons: atoms generally try to surround themselves with eight outer electrons, like the noble gases (the octet rule; two for hydrogen).
In a covalent bond, two atoms share a pair of electrons. This is the case in the water molecule, H₂O, where oxygen shares one electron with each of the two hydrogens. A bond can be double (O=O in oxygen gas, O=C=O in carbon dioxide) or triple (N≡N in nitrogen gas, hence its great stability).
In an ionic bond, one atom gives an electron outright to another: sodium becomes Na⁺, chlorine Cl⁻, and these oppositely charged ions attract each other to form a crystal, table salt. Finally, in metals the outer electrons move freely between the atoms: this is the metallic bond, which explains why metals conduct electricity.
A formula gives the number of atoms of each element: C₂H₆O (ethanol) contains 2 carbons, 6 hydrogens and 1 oxygen. From it we work out the molar mass by adding up the atomic weights: for water, 2 × 1.008 + 15.999 ≈ 18.02 g/mol.
Molecules also have a shape, which follows from the repulsion between electron pairs: carbon dioxide is straight, water is bent (an angle of about 104.5°), methane is shaped like a tetrahedron. Shape matters enormously: it is because water is bent and polar that it dissolves salt and that ice floats.