The basic building blocks of both DNA and RNA are nucleotides. Each nucleotide is a small molecule made of three parts: a sugar, a phosphate group, and a nitrogen-containing base. Millions of these nucleotides link together in long chains to form the strands of DNA and RNA that carry and transmit genetic information in every living cell.
The Three Parts of a Nucleotide
Every nucleotide has the same general architecture. A five-carbon sugar sits at the center. Attached to one side of that sugar is a phosphate group (a phosphorus atom surrounded by oxygen atoms). Attached to the other side is a nitrogen-containing base, which is the part that actually encodes genetic information. Think of the sugar as the hub connecting the structural piece (phosphate) to the informational piece (the base).
A useful distinction: a base attached to a sugar alone, without the phosphate, is called a nucleoside. Add the phosphate and it becomes a nucleotide. ATP, the energy molecule your cells burn constantly, is actually a nucleotide with three phosphate groups attached.
How DNA and RNA Sugars Differ
The sugar in DNA is deoxyribose. The sugar in RNA is ribose. The only difference between them is a single oxygen atom. Ribose has a small chemical group (called a hydroxyl group) on its second carbon, while deoxyribose is missing that group. The “deoxy” in deoxyribose literally means “lacking oxygen.”
That one missing oxygen atom has major consequences. The extra hydroxyl group on ribose makes RNA more chemically reactive and less stable over time. DNA, without it, is sturdier and better suited for long-term storage of genetic information. This is one reason DNA serves as the permanent genetic archive in your cells while RNA handles shorter-term tasks.
The Five Bases
DNA and RNA share three of their bases but differ in one. DNA uses adenine (A), guanine (G), cytosine (C), and thymine (T). RNA swaps out thymine for uracil (U). So the full set across both molecules is five bases: A, G, C, T, and U.
These bases fall into two size categories. Adenine and guanine are purines, built from a double ring of atoms (a six-membered ring fused to a five-membered ring). Cytosine, thymine, and uracil are pyrimidines, which have only a single six-membered ring. Purines are physically larger than pyrimidines, and this size difference turns out to be critical for how the two strands of DNA fit together.
Thymine and uracil are nearly identical molecules. Thymine is simply uracil with an extra small chemical group (a methyl group) attached. This addition doesn’t change how the base pairs with adenine, but it does make thymine more chemically stable, which is another reason DNA uses thymine for permanent genetic storage while RNA gets by with uracil for its shorter-lived roles.
How Nucleotides Link Into Strands
Individual nucleotides connect into long chains through bonds between the sugar of one nucleotide and the phosphate of the next. Specifically, the phosphate group on one nucleotide attaches to the sugar of the neighboring nucleotide, creating a repeating sugar-phosphate-sugar-phosphate pattern. This alternating chain is called the sugar-phosphate backbone, and it forms the structural spine of every DNA and RNA molecule.
Because each bond connects the phosphate on one end of a sugar to the opposite end of the next sugar, the chain has a built-in direction. Biologists label the two ends 5′ (five-prime) and 3′ (three-prime). New nucleotides are always added at the 3′ end, so the strand grows in one direction. This directionality matters for how cells read and copy genetic information.
The phosphate groups along the backbone carry negative electrical charges, which is why DNA and RNA are acidic molecules. It’s also why DNA dissolves easily in water and why laboratory techniques can use electric fields to pull DNA fragments through a gel and sort them by size.
Base Pairing Holds DNA Together
DNA’s famous double helix exists because the bases on one strand pair specifically with bases on the opposite strand. Adenine always pairs with thymine, and guanine always pairs with cytosine. A purine always faces a pyrimidine, keeping the width of the helix consistent along its entire length.
These pairs are held together by hydrogen bonds, which are relatively weak individually but powerful in the aggregate across millions of base pairs. The guanine-cytosine pair is held by three hydrogen bonds, while the adenine-thymine pair has only two. This means DNA regions rich in G-C pairs are more stable and harder to pull apart than regions heavy in A-T pairs.
This pairing pattern was predicted before the double helix was even discovered. In the late 1940s, biochemist Erwin Chargaff analyzed DNA from many different organisms and found a consistent rule: the amount of adenine always equaled the amount of thymine, and the amount of guanine always equaled the amount of cytosine. The total purines always equaled the total pyrimidines. These ratios held across every species he tested, even though the overall base composition varied widely between organisms. This regularity, now called Chargaff’s rules, became one of the key clues that led to the discovery of the double helix structure.
Why RNA Folds Differently
While DNA exists as a two-stranded helix, RNA is single-stranded. Without a full complementary partner strand, RNA chains fold back on themselves, forming short sections of internal base pairing wherever complementary sequences happen to line up on the same molecule. The result is that RNA can take on complex three-dimensional shapes, somewhat like how a protein folds into a specific structure.
This folding ability is part of what makes RNA so versatile. Messenger RNA carries the genetic instructions from DNA to the cell’s protein-building machinery. Transfer RNA folds into a precise shape that lets it carry amino acids and match them to the correct genetic code. Ribosomal RNA forms the structural and functional core of the ribosome itself, the molecular machine that assembles proteins. Some RNA molecules even act as enzymes, catalyzing chemical reactions. All of this functional diversity comes from the same four nucleotide building blocks: A, G, C, and U, linked by the same sugar-phosphate backbone.
DNA vs. RNA Building Blocks at a Glance
- Sugar: DNA uses deoxyribose (missing one oxygen atom); RNA uses ribose
- Bases: DNA uses A, G, C, and T; RNA uses A, G, C, and U
- Backbone: Both use phosphate groups linking sugars together
- Structure: DNA forms a stable double-stranded helix; RNA is single-stranded and folds into varied shapes
- Primary role: DNA stores genetic information long-term; RNA reads, carries, and helps execute those instructions
Despite their differences, DNA and RNA are built from remarkably similar raw materials. The same basic three-part nucleotide design, with small chemical tweaks to the sugar and one swapped base, produces two molecules with dramatically different structures and biological jobs.

