Nucleic acids are complex molecules made up of chains of nucleotides. A nucleotide consists of the following sub-units: a phosphate group, nitrogen base and a simple sugar. the elements that make up these components include carbon, hydrogen, oxygen, phosphorous, and nitrogen.