To work out the shape of a molecule, identify how many lone and bonding pairs of electrons it has. This dictates its shape. For example, the oxygen atom in a water molecule has two lone pairs and two bonding pairs. This gives it a v-shaped structure.