What Is Nucleic Acid Made Of: Bases, Sugar & Phosphate

Nucleic acids are made of small repeating units called nucleotides, and each nucleotide has three parts: a sugar, a phosphate group, and a nitrogen-containing base. These nucleotides link together into long chains that form DNA and RNA, the two types of nucleic acid in your cells. At the elemental level, nucleic acids are built from just six elements: carbon, hydrogen, nitrogen, oxygen, phosphorus, and sulfur.

The Three Parts of a Nucleotide

Every nucleotide, the basic building block of nucleic acid, contains the same three components snapped together in a specific arrangement. A five-carbon sugar sits at the center. A phosphate group attaches to one side of that sugar. A nitrogen-containing base attaches to the other side. That’s the entire unit, repeated millions or billions of times in a single molecule of DNA.

The sugar and phosphate portions form the structural backbone of the molecule. They alternate in a repeating sugar-phosphate-sugar-phosphate chain, creating a long, stable spine. The bases stick out from this backbone like teeth on a zipper, and they’re the part that actually carries genetic information. Each base represents a “letter” in the genetic code.

The Sugar: Ribose vs. Deoxyribose

The type of sugar in the nucleotide is what distinguishes DNA from RNA. DNA uses deoxyribose (chemical formula C₅H₁₀O₄), while RNA uses ribose (C₅H₁₀O₅). The difference between them is a single oxygen atom. Ribose has a hydroxyl group (an oxygen and hydrogen pair) attached to its second carbon atom, while deoxyribose has just a hydrogen atom in that same spot. The “deoxy” in deoxyribose literally means “missing an oxygen.”

This small chemical difference has real consequences. The extra oxygen in ribose makes RNA more chemically reactive and less stable over time, which is one reason your cells use DNA for long-term information storage and RNA for shorter-lived tasks like carrying messages and building proteins.

The Five Nitrogenous Bases

There are five bases found across the two types of nucleic acid. DNA uses four: adenine, guanine, cytosine, and thymine. RNA swaps out thymine for a slightly different base called uracil, keeping the other three the same.

These five bases fall into two categories based on their shape. Adenine and guanine are purines, which have a double-ring structure. Cytosine, thymine, and uracil are pyrimidines, built around a single ring. The size difference matters because in DNA’s double helix, a large purine always pairs with a smaller pyrimidine, keeping the width of the molecule consistent throughout.

The chemical difference between thymine and uracil is minor. Thymine has a small cluster of atoms called a methyl group at one position on its ring that uracil lacks. Despite this tiny distinction, your cells reliably use thymine in DNA and uracil in RNA.

How Bases Pair in DNA

In double-stranded DNA, the bases on one strand form weak bonds (called hydrogen bonds) with bases on the opposite strand. The pairing is specific: adenine always pairs with thymine, and guanine always pairs with cytosine. This isn’t random. The shapes and chemical properties of these bases only allow those particular combinations to fit together and form stable bonds.

The two pairings differ in strength. An adenine-thymine pair is held together by two hydrogen bonds, while a guanine-cytosine pair is held together by three. This means stretches of DNA with more G-C pairs are slightly harder to pull apart, which is why DNA with a high percentage of G-C content requires more heat to separate in laboratory settings.

The Phosphate Backbone

Nucleic acids are, at their core, long chains of phosphate-linked sugars. Each phosphate group connects the third carbon of one sugar to the fifth carbon of the next sugar, forming what chemists call a phosphodiester bond. This linkage is remarkably stable, which is essential for a molecule whose job is to store information reliably across billions of cell divisions.

Phosphorus plays an irreplaceable role here. While arsenic sits just below phosphorus on the periodic table and shares some chemical similarities, arsenic-based linkages are orders of magnitude less stable than phosphorus-based ones. Life depends on phosphorus precisely because its bonds hold up over time.

The Elements Behind It All

Zoom out from the molecular structure and nucleic acids are composed almost entirely of six elements: carbon, hydrogen, nitrogen, oxygen, phosphorus, and a trace of sulfur. Carbon provides the structural skeleton of the sugars and bases. Nitrogen is what makes the bases “nitrogenous,” contributing to the ring structures that encode genetic information. Phosphorus is unique to the backbone, linking nucleotides into a continuous chain. Oxygen and hydrogen round out the sugars, phosphate groups, and the hydrogen bonds between base pairs.

Of these, phosphorus is the most distinctive. It’s the element that separates nucleic acids from most other biological molecules. When Friedrich Miescher first isolated DNA from white blood cells in 1869, it was the unusually high phosphorus content of the substance that told him he’d found something new. He called it “nuclein,” a name that eventually evolved into “nucleic acid.”

DNA vs. RNA at a Glance

  • Sugar: DNA contains deoxyribose (one fewer oxygen atom); RNA contains ribose.
  • Bases: DNA uses adenine, guanine, cytosine, and thymine. RNA uses uracil instead of thymine.
  • Structure: DNA is typically double-stranded, forming the familiar double helix. RNA is usually single-stranded.
  • Stability: DNA is more chemically stable, suited for long-term storage. RNA is more reactive and shorter-lived.

Despite these differences, both DNA and RNA are built from the same fundamental plan: nucleotides chained together through phosphodiester bonds, with a sugar-phosphate backbone and information-carrying bases. Whether the molecule is a tiny piece of messenger RNA or one of your chromosomes containing hundreds of millions of base pairs, the chemistry underneath is the same.