Nucleotides consist of three parts: a sugar, which has five carbon atoms, so is a pentose sugar; a phosphate group, which is the acidic, negatively-charged part of nucleic acids; and a base that contains nitrogen and has either one or two rings of atoms in its structure.