The genetic code is the set of rules by which the sequence of bases in a messenger RNA is read, three bases at a time, into the sequence of amino acids in a protein. Each group of three bases is a codon. There are 64 codons; in the standard code, 61 of them specify the 20 amino acids and three, UAA, UAG and UGA, stop translation [1]. This page shows the codon table for the standard code and for three widely used variants from the registry of genetic codes kept by the US National Center for Biotechnology Information (NCBI) [1], lists the codons for each amino acid, and translates DNA or RNA sequences into protein.
Codon table
First base: left; second base: top; third base: right. ▲ possible initiation codon in the NCBI table · red: stop codon · dashed outline: differs from the standard code. Select a codon to highlight all codons for the same amino acid.
Codons for each amino acid
The list follows the genetic code selected in the codon table above and changes with it.
DNA and RNA to protein translator
Stop codons are shown as * (one-letter) or Ter (three-letter). A codon with ambiguous bases is translated when all the codons it can stand for give the same result, otherwise it is shown as X (Xaa). UGA and UAG are always translated as stop codons in the standard code, although in some genes they encode selenocysteine or pyrrolysine (see below). How the input is handled and how ORFs are defined is described in How the translator works.
How the code is read
A messenger RNA is read from its 5′ end to its 3′ end, one codon after another, without gaps or overlaps. Which bases are grouped together depends on where reading starts, so any sequence can be read in three frames, beginning at its first, second or third base. A double-stranded DNA has two strands, so a stretch of DNA has six possible reading frames, three on each strand.
In E. coli, protein synthesis was shown to start at AUG, read by an initiator transfer RNA carrying N-formylmethionine, while AUG inside a coding sequence is read as methionine [2]. Other codons can also serve as starts, and the NCBI tables mark them separately from the amino acids they code for: the standard code allows initiation at UUG and CUG as well as AUG, and the bacterial code also lists GUG, AUU, AUC and AUA. In the NCBI tables an initiation codon is shown as methionine whatever its sequence, while the same codon inside a gene keeps its usual meaning [1]. In Escherichia coli, for example, UUG is estimated to start about 3% of proteins [1].
Translation ends at UAA, UAG or UGA, the three codons that were shown in the 1960s to signal the end of a protein chain [2].
Why most amino acids have several codons
With 61 sense codons and 20 amino acids, most amino acids have more than one codon. In the standard code, methionine and tryptophan have one codon each, and leucine, serine and arginine have six each. Codons for the same amino acid are called synonymous.
Most synonymous codons differ only in their third base. When Nirenberg's group tested the triplets one by one in 1965, they found that the base at the 3′ end of a codon was recognised least strictly: codons ending in U or C, in G or A, or in any of the four bases often gave the same amino acid [3]. In 1966 Francis Crick proposed an explanation, the wobble hypothesis. The first two bases of a codon pair with the anticodon of the transfer RNA by the standard rules, but the pairing at the third position is looser, so a single transfer RNA can read more than one codon. By his rules, G in the anticodon can pair with U or C, U can pair with A or G, and inosine can pair with U, C or A [4]. Nirenberg's group later showed that a purified alanine transfer RNA from yeast, which has inosine in its anticodon, reads GCU, GCC and GCA [2].
Wobble explains how one transfer RNA reads codons that differ in the third base. It does not explain why leucine, serine and arginine have six codons. Their codons fall into two separate blocks of the table that differ at the first base (leucine: UUA and UUG, and CUN; arginine: CGN, and AGA and AGG) or at the first two bases (serine: UCN, and AGU and AGC), and since the first two positions pair by the standard rules, the two blocks have to be read by different transfer RNAs [4].
The arrangement of the code is not random. Codons with U as the second base code for the hydrophobic amino acids phenylalanine, leucine, isoleucine, methionine and valine, and codons with A as the second base code for the hydrophilic amino acids tyrosine, histidine, glutamine, asparagine, lysine, aspartic acid and glutamic acid; amino acids with similar side chains, such as aspartic and glutamic acids, have similar codons [2].
Variant genetic codes
When the code was compared in E. coli, the frog Xenopus and the hamster, it turned out to be essentially the same [2], and the code was considered universal [5]. In 1979 a study of human mitochondrial DNA showed otherwise: in the gene for cytochrome oxidase subunit II, three UGA codons stood where the corresponding bovine protein has tryptophan, showing that UGA is read as tryptophan rather than as a stop. The same study suggested that AUA codes for methionine rather than isoleucine [5]. The NCBI registry now lists 27 translation tables [1]. The calculator offers four of them:
- Table 1, the standard code.
- Table 2, vertebrate mitochondria. UGA codes for tryptophan, AUA for methionine, and AGA and AGG are listed as stop codons. In humans, however, AGA and AGG are not recognised as stops: the mitochondrial ribosome shifts back by one base, and the CO1 and ND6 reading frames end at UAG instead. Some mitochondrial genes end in an incomplete stop codon, U or UA, which is completed to UAA when the RNA is polyadenylated [1].
- Table 3, yeast mitochondria. UGA codes for tryptophan, AUA for methionine, and the four CUN codons for threonine instead of leucine [1]. In this code leucine has only two codons and threonine has eight.
- Table 11, bacteria, archaea and plant plastids. The codons have the same meanings as in the standard code; the table differs in the codons that can start translation: GUG and UUG starts are documented, and in rare cases AUU [1].
For the other codes, see the NCBI registry [1].
Selenocysteine and pyrrolysine
Two amino acids are inserted at what are normally stop codons. In 1986 two groups independently showed that selenocysteine is encoded by UGA. In E. coli, the gene for the selenium-containing subunit of formate dehydrogenase H has a UGA codon in frame at position 140, and translation continues efficiently past it only when selenium is available [6]. In the mouse, the selenocysteine in the active site of glutathione peroxidase is encoded by UGA, which was confirmed in the messenger RNA, while the gene itself ends with UAA [7]. Since UGA also serves as a stop codon, something other than the codon itself must decide how it is read [7].
In 2002 pyrrolysine was found to be encoded by UAG in the methylamine methyltransferase genes of the archaeon Methanosarcina barkeri. These genes contain an in-frame UAG that is read through efficiently; a dedicated transfer RNA with the anticodon CUA was identified, together with an aminoacyl-tRNA synthetase that charges it with lysine, and the authors described pyrrolysine as the 22nd genetically encoded amino acid [8]. The crystal structure of one of these enzymes showed a residue distinct from the 21 known amino acids, a lysine linked through its side-chain nitrogen to a pyrroline ring, for which the name L-pyrrolysine was proposed [9].
In both cases the reading depends on the gene and its context, not on the codon alone, so the translator, like the NCBI tables, shows UGA and UAG as stop codons.
How the code was deciphered
In 1961 Marshall Nirenberg and Heinrich Matthaei found that a cell-free extract of E. coli made a polypeptide of phenylalanine alone when given synthetic polyuridylic acid (poly U) as a template. They concluded that one or more U residues code for phenylalanine; whether the code was read in single bases, triplets or larger units was still unknown. In a note added in proof they reported that poly C directs the incorporation of proline [10].
The code was deciphered over the following five years in two stages [2]. First, randomly ordered polynucleotides of known base composition gave the composition of the codons; experiments with poly(A-C) of different A:C ratios showed that codons are triplets. Then the order of bases was found with short synthetic trinucleotides, which bind a specific aminoacyl transfer RNA to the ribosome: UUU bound phenylalanine transfer RNA, while UU did not [2]. By 1965 the method had been applied to 45 of the 64 triplets [3]. Har Gobind Khorana's group, using chemically synthesised trinucleotides, also determined codon sequences, and by 1966 the code was complete [2].
How the translator works
- Input. Spaces, line breaks and digits are ignored, so sequences copied with position numbers can be pasted directly. A FASTA header line (starting with >) is skipped; it must come before the sequence, and only one sequence can be translated at a time. Any other character is reported with its line and column. Upper and lower case are both accepted.
- DNA or RNA. A sequence containing T is treated as DNA and one containing U as RNA. A sequence that contains both is rejected, as this usually means an error.
- Ambiguous bases. The IUPAC codes R, Y, S, W, K, M, B, D, H, V and N are accepted. A codon containing them is expanded into all the codons it can stand for; if they all give the same amino acid, or all are stop codons, that result is shown; otherwise the codon is shown as X, with a note when one of the possibilities is a stop codon.
- Frames and positions. Frames +1, +2 and +3 start at the first, second and third base of the sequence; frames −1, −2 and −3 are read from the reverse complement, starting at the last, second-last and third-last base. All positions refer to the sequence as entered, counting bases only. Bases left over at the end of a frame are not translated, and their number is reported.
- Open reading frames. An ORF is counted from an AUG to the first stop codon in the same frame. Only AUG is used as a start, even in codes that allow other initiation codons; an AUG inside an ORF is not reported as a separate ORF, and a reading frame that has no stop codon before the end of the sequence is not counted. A reading frame interrupted by an ambiguous codon that may be a stop codon is not counted either, and the search continues from the next AUG. The length in bases includes the stop codon; the length in amino acids does not. The minimum length is 75 bases by default and can be changed. ORFs are highlighted in the output together with their stop codons, and the longest ORF is highlighted more strongly.
The translator works with the sequence exactly as entered. It does not remove introns or account for splicing, RNA editing, frameshifting or the insertion of selenocysteine and pyrrolysine, and an ORF it finds is not necessarily a gene. The sequence is processed in your browser and is not sent anywhere.
References
- Elzanowski A, Ostell J. The Genetic Codes. National Center for Biotechnology Information, Bethesda, MD. Updated 23 September 2024. https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi
- Nirenberg M. Historical review: Deciphering the genetic code – a personal account. Trends Biochem Sci 2004;29(1):46–54. https://doi.org/10.1016/j.tibs.2003.11.009
- Nirenberg M, Leder P, Bernfield M, Brimacombe R, Trupin J, Rottman F, O'Neal C. RNA codewords and protein synthesis, VII. On the general nature of the RNA code. Proc Natl Acad Sci USA 1965;53(5):1161–1168. https://doi.org/10.1073/pnas.53.5.1161
- Crick FHC. Codon—anticodon pairing: the wobble hypothesis. J Mol Biol 1966;19(2):548–555. https://doi.org/10.1016/S0022-2836(66)80022-0
- Barrell BG, Bankier AT, Drouin J. A different genetic code in human mitochondria. Nature 1979;282(5735):189–194. https://doi.org/10.1038/282189a0
- Zinoni F, Birkmann A, Stadtman TC, Böck A. Nucleotide sequence and expression of the selenocysteine-containing polypeptide of formate dehydrogenase (formate-hydrogen-lyase-linked) from Escherichia coli. Proc Natl Acad Sci USA 1986;83(13):4650–4654. https://doi.org/10.1073/pnas.83.13.4650
- Chambers I, Frampton J, Goldfarb P, Affara N, McBain W, Harrison PR. The structure of the mouse glutathione peroxidase gene: the selenocysteine in the active site is encoded by the 'termination' codon, TGA. EMBO J 1986;5(6):1221–1227. https://doi.org/10.1002/j.1460-2075.1986.tb04350.x
- Srinivasan G, James CM, Krzycki JA. Pyrrolysine encoded by UAG in Archaea: charging of a UAG-decoding specialized tRNA. Science 2002;296(5572):1459–1462. https://doi.org/10.1126/science.1069588
- Hao B, Gong W, Ferguson TK, James CM, Krzycki JA, Chan MK. A new UAG-encoded residue in the structure of a methanogen methyltransferase. Science 2002;296(5572):1462–1466. https://doi.org/10.1126/science.1069556
- Nirenberg MW, Matthaei JH. The dependence of cell-free protein synthesis in E. coli upon naturally occurring or synthetic polyribonucleotides. Proc Natl Acad Sci USA 1961;47(10):1588–1602. https://doi.org/10.1073/pnas.47.10.1588