The atoms in a molecule are joined by covalent bonds . The atoms always join in fixed ratios and molecules have a specific formula, eg H 2O or N 2. There are molecules of compounds (eg CH 4) and molecules of elements (eg O 2).