Children over the age of 2 can be given cough medicine to treat a cough. Babies and toddlers under the age of 2 should take cough medicine. Children’s cough medicines can contain different medications, such as dextromethorphan, guaifenesin, and phenylephrine, that help to calm a cough and ease congestion.  If you have any questions, check with your child's pediatrician.