How to Read the Codon Table and Translate a DNA Sequence
Use the standard codon table with step-by-step examples: pick the right strand, find the reading frame and translate into amino acids.
Key takeaways
- The codon table is read with messenger RNA codons written 5′ to 3′.
- The mRNA matches the DNA coding strand with U in place of T, and is the reverse complement of the template strand.
- AUG is the usual start codon and sets the reading frame, while UAA, UAG and UGA are stops.
- A double-stranded DNA sequence has six possible reading frames, so finding the right one is part of the job.
To translate a DNA sequence, write the matching messenger RNA, find the start codon, split the sequence into groups of three, and look up each group in the codon table until you reach a stop. A codon is a group of three bases that specifies one amino acid or signals the end of a protein.
The one thing that trips up most people is strand direction. Get that right first, and the rest is careful bookkeeping.
The standard genetic code
Each row group is the first base of the codon, each column is the second base, and the entries list the third base. Amino acids are shown by three-letter codes.
| First base | Second U | Second C | Second A | Second G |
|---|---|---|---|---|
| U | UUU, UUC Phe; UUA, UUG Leu | UCU, UCC, UCA, UCG Ser | UAU, UAC Tyr; UAA, UAG Stop | UGU, UGC Cys; UGA Stop; UGG Trp |
| C | CUU, CUC, CUA, CUG Leu | CCU, CCC, CCA, CCG Pro | CAU, CAC His; CAA, CAG Gln | CGU, CGC, CGA, CGG Arg |
| A | AUU, AUC, AUA Ile; AUG Met | ACU, ACC, ACA, ACG Thr | AAU, AAC Asn; AAA, AAG Lys | AGU, AGC Ser; AGA, AGG Arg |
| G | GUU, GUC, GUA, GUG Val | GCU, GCC, GCA, GCG Ala | GAU, GAC Asp; GAA, GAG Glu | GGU, GGC, GGA, GGG Gly |
To look up GCA: go to row G, then column C, and find GCA in the list. It is alanine.
One-letter codes
Long protein sequences are written with one letter per amino acid.
| Amino acid | Letter | Amino acid | Letter |
|---|---|---|---|
| Alanine | A | Leucine | L |
| Arginine | R | Lysine | K |
| Asparagine | N | Methionine | M |
| Aspartate | D | Phenylalanine | F |
| Cysteine | C | Proline | P |
| Glutamine | Q | Serine | S |
| Glutamate | E | Threonine | T |
| Glycine | G | Tryptophan | W |
| Histidine | H | Tyrosine | Y |
| Isoleucine | I | Valine | V |
The side chains behind these letters are described in amino acids.
The method
Work through the same five steps every time, in the same order, even when the answer looks obvious. First, find out which strand you have been handed and label its 5′ and 3′ ends on paper. A sequence given without labels is conventionally written 5′ to 3′, and a gene sequence in a database is usually shown as the coding strand.
Second, write the mRNA. Third, locate the start codon, or use the frame you have been told to use. Fourth, mark off groups of three with a pencil line or a space. Fifth, look up each group and stop at the first stop codon that falls in your frame. A stop sequence that straddles two of your groups does not count.
Example 1: from the coding strand
You are given this coding strand:
5′ - GCATGAAAGGCTTCTGGTAAGC - 3′ Replace T with U to get the mRNA:
5′ - GCAUGAAAGGCUUCUGGUAAGC - 3′ The first AUG begins at the third base. Group from there:
GC | AUG AAA GGC UUC UGG UAA | GC
Met Lys Gly Phe Trp Stop The protein is Met-Lys-Gly-Phe-Trp, or MKGFW. The two bases before the start and the two after the stop are not translated. The stop codon adds no amino acid.
Notice one detail in that sequence. The letters UGA appear near the beginning, formed from the last two letters of AUG and the A that follows. They do not stop translation, because the ribosome never reads them as a group: it is already locked into the frame set by AUG.
You can check your answer with arithmetic. The coding region, from the A of the start codon through the last base of the stop codon, has 18 bases. Since 18 / 3 = 6 codons and one of them is the stop, the protein must have 5 amino acids. If your base count in a coding region is not divisible by 3, something has gone wrong.
Example 2: from the template strand
Now you are told that this is the template strand:
template 5′ - TTACGAAAACAT - 3′ The mRNA is complementary and runs the opposite way. Pair each base, using A→U, T→A, G→C and C→G, then write the result from its own 5′ end.
template 5′ - T T A C G A A A A C A T - 3′
paired RNA 3′ - A A U G C U U U U G U A - 5′
mRNA reversed 5′ - A U G U U U U C G U A A - 3′
codons AUG UUU UCG UAA
protein Met Phe Ser Stop The protein is MFS. If you had paired the bases but forgotten to reverse, you would have read AAU GCU UUU GUA and gotten a completely wrong answer. The strand relationships are explained in transcription.
Reading frames
Without a known start, a sequence can be grouped three ways. Take this short mRNA:
AUGGCAUGAUCU
frame 1: AUG GCA UGA UCU Met Ala Stop (Ser follows the stop)
frame 2: A | UGG CAU GAU Trp His Asp
frame 3: AU | GGC AUG AUC Gly Met Ile Double-stranded DNA adds three more frames on the other strand, for six in total.
An open reading frame is a stretch that begins with a start codon and continues without a stop. In random sequence, 3 of 64 codons are stops, so one appears about every 21 codons on average if bases are equally frequent. A frame that runs for hundreds of codons without a stop is therefore a strong hint of a real coding region.
When you search a long sequence, translate all frames and compare. Usually one frame contains a long open stretch beginning with ATG while the others are interrupted by frequent stops. Length is only a clue. Very short genes exist and are easy to miss, and long open frames can arise by chance in sequences rich in G and C, because the three stop codons are rich in A and T.
Evidence from outside the sequence helps. A predicted protein that resembles a known one in other species, or an RNA that is actually detected from that region, makes a prediction far more believable.
How mutations show up
Return to Example 1 and change one thing at a time.
| Change in mRNA | Result | Type |
|---|---|---|
| GGC → GGU | Still glycine | Silent (synonymous) |
| AAA → GAA | Lysine becomes glutamate | Missense |
| UGG → UGA | Tryptophan becomes stop | Nonsense |
| Delete one A from AAA | AUG AAG GCU UCU GGU AAG C | Frameshift |
In the frameshift case, the protein begins Met-Lys-Ala-Ser-Gly-Lys, and the original stop is no longer read in frame. More on the first three is in silent, missense and nonsense mutations.
Cautions with real genes
Introns. In eukaryotes, you cannot simply translate genomic DNA. Introns must be removed first. Use the mature mRNA or the annotated coding sequence.
The first AUG is not guaranteed. Eukaryotic ribosomes often start at the first AUG in a good context, but not always. Bacteria choose starts using a nearby ribosome-binding sequence and sometimes begin at GUG or UUG, which then specify methionine at that first position.
Variant codes. The standard table is nearly universal, but there are exceptions. In vertebrate mitochondria, UGA encodes tryptophan, AUA encodes methionine, and AGA and AGG act as stops. Some microbes reassign other codons.
Special recoding. Certain UGA codons specify selenocysteine when the message carries the required signal.
Finished proteins differ. The starting methionine and other segments may be cut away, and chemical groups added.
Common mistakes
- Leaving T in the message. The table uses U. A stray T usually means a skipped step.
- Reading the template strand directly. It must be complemented and reversed.
- Starting at the first base by habit. Unless the sequence is already a trimmed coding region, find the start codon first.
- Treating stop as an amino acid. It ends the chain and adds nothing.
- Overlapping codons. In the usual reading of a gene, each base belongs to one codon only.
- Mixing up Asp and Asn, or Glu and Gln. The pairs have similar names but different codons, charges and one-letter codes.
Practice problem
Translate this coding strand: 5′-ATGCCAGAGTGTTGA-3′.
mRNA AUG CCA GAG UGU UGA
protein Met Pro Glu Cys Stop → MPEC Now try the other direction. How many different mRNA sequences, ignoring the stop, could encode MPEC? Methionine has 1 codon, proline 4, glutamate 2 and cysteine 2, so 1 × 4 × 2 × 2 = 16.
Common questions
What if my sequence contains letters other than A, C, G, T or U?
Sequence files use extra symbols for uncertainty. N means any base, R means A or G, and Y means C or T. A codon containing one can still be translated if every possibility gives the same amino acid, as with GGN for glycine. Otherwise, mark that position as unknown and check the original data.
Why can you not work out the exact DNA from a protein?
Most amino acids have more than one codon. The reason is explored in the redundancy of the code.
Do software tools do this for me?
Yes, many free sequence tools translate all six frames. Knowing the hand method lets you spot a wrong strand, a wrong code table or a sequencing error that creates a false stop.
Is there a shortcut for memorizing the table?
Learn the patterns rather than all 64 entries. A middle U gives water-avoiding amino acids. Many boxes of four codons that share the first two bases encode a single amino acid. The three stops all begin with U.