Nucleic acids are a type of macromolecule. They are polymers made up of a string of nucleotide monomers. Nucleic acids are unique among biological molecules in that they can encode and transmit biological information. Hereditary information is encoded in the sequence of nucleotides in the nucleic acids.
DNA and RNA are nucleic acids (polymers of nucleotides). Two polymers with complementary nucleotide sequences can pair with each other. This pairing endows nucleic acids with the ability to store, transmit, and retrieve genetic information.
Two strands of DNA pair by hydrogen bonding. A component of one nucleotide, called a base, forms a hydrogen bond with a complementary base on the opposite strand. The base cytosine (C) pairs with guanine (G), and adenine (A) pairs with thymine (T).
The monomer of the nucleic acid—the nucleotide—is composed of three parts. The central component is a pentose sugar.
A nitrogen-containing base is covalently linked to the 1′ carbon on the sugar. This base can either be a purine with two fused rings (as in adenine and guanine) or a pyrimidine with a single ring (as in cytosine and thymine). In RNA, the thymine base is replaced by uracil.
A phosphate group is covalently attached to the 5′ carbon of the sugar molecule. The phosphate group, the base, and the sugar make up a complete nucleotide. Note that the orientation of the sugar provides DNA with a 5′ to 3′ directionality.
Base pairing only occurs between a pyrimidine and a purine. More specifically, a guanine only pairs with a cytosine (forming three hydrogen bonds, indicated by the green circle), and an adenine only pairs with a thymine (forming two hydrogen bonds, indicated by the red circle).
The nucleic acids, DNA and RNA, consist of chains of nucleotides in a precise sequence. The nucleotide sequence provides a code that stores genetic information and that the cell can copy and pass on to the next generation of cells. The ability to copy nucleic acid sequences depends on the base-pairing rules that allow one strand of nucleotides to pair with a complementary strand. In one base pair, the bases guanine and cytosine bind to each other with three hydrogen bonds. In the other base pair, the bases thymine and adenine bind via two hydrogen bonds.