Nucleic acids DNA and RNA are long polymers made up of nucleotides containing a nitrogen base, pentose sugar, and phosphate. DNA exists as a double helix with base pairing between strands. RNA can form complex secondary structures and is involved in protein synthesis.