What codon optimization changes
Most amino acids have more than one codon, and each organism uses its synonymous codons unevenly. A gene moved into a new host, such as a human gene expressed in E. coli, can carry codons that the host rarely uses. Clusters of rare codons can slow translation and lower the yield of the protein (Kane, 1995). Codon optimization rewrites the DNA with codons the host uses more, without changing a single amino acid.
Paste one coding sequence from its start codon, or one protein in one-letter code, as plain text or one FASTA record. Choose the host and select Optimize. The result is the new DNA, its codon adaptation index (CAI) and GC content next to your sequence's, and the host's codon usage table with your codon counts. Everything runs in your browser; the sequence is not uploaded.
Use Compare codons to inspect the original and optimized triplets at each position. Filter to changed codons or rare input codons; Comparison CSV saves all positions, regardless of the displayed filter or page. Protein input shows generated codons, with original-DNA fields left blank in the CSV. Positions count from base 1 of the coding DNA; one or two trailing input bases that cannot form a codon are excluded and reported separately.
How the tool optimizes
Each amino acid gets the codon the host uses most for it: the "one amino acid, one codon" method. It is what Biopython 1.85's CodonAdaptationIndex.optimize does, and every result here is tested against Biopython, trained on the same host genes. The protein stays the same, and a stop at the end becomes the host's most used stop codon.
The method is simple and predictable, but not the only one. It uses a single codon for every copy of an amino acid, so it can change the GC content a lot and repeat the same codon many times. Other methods pick codons in proportion to the host's usage, or also balance GC content and avoid repeats, restriction sites and RNA structure near the start codon (Gustafsson and colleagues, 2004).
Codon adaptation index (CAI)
The CAI of Sharp and Li (1987) scores how closely a gene follows a host's codon preferences. Each codon's relative adaptiveness, w, is its count in the host's genes divided by the count of the most used codon for the same amino acid. A codon the host never uses counts as 0.5. The CAI is the geometric mean of w over the gene's codons, from 0 to 1, where 1 means every codon is the host's most used one.
ATG and TGG are left out, because methionine and tryptophan have only one codon each, so their w is always 1. As in Biopython, the stop codon stays in the mean, scored against the host's three stops. Sharp and Li built their reference from highly expressed genes. Here, CAI measures how common a sequence's codons are in the included reference coding sequences, without selecting highly expressed genes.
Host codon usage tables
Compare all 64 codons across E. coli, yeast and human without entering a sequence. These frequencies describe the reference coding sequences, not protein expression or the supply of tRNAs.
64 codons · 20 amino acids and 3 stops.
Per 1,000 uses every included codon in each host as its denominator, including starts and stops.
| Codon · 5′ → 3′ | E. coli | Yeast | Human |
|---|---|---|---|
| Alanine · Ala · A | |||
DNA GCTRNA GCU | 15.216.0% | 20.336.8% | 18.326.1% |
DNA GCCRNA GCC | 25.727.0% | 12.322.3% | 28.040.0% |
DNA GCARNA GCA | 20.221.2% | 16.229.4% | 16.022.9% |
DNA GCGRNA GCG | 34.035.7% | 6.311.4% | 7.710.9% |
| Arginine · Arg · R | |||
DNA CGTRNA CGU | 21.238.3% | 6.214.0% | 4.47.9% |
DNA CGCRNA CGC | 22.240.2% | 2.65.9% | 10.418.5% |
DNA CGARNA CGA | 3.56.3% | 3.06.8% | 6.110.8% |
DNA CGGRNA CGG | 5.39.7% | 1.94.2% | 11.420.3% |
DNA AGARNA AGA | 1.93.5% | 21.147.4% | 12.121.5% |
DNA AGGRNA AGG | 1.12.0% | 9.621.7% | 11.821.0% |
| Asparagine · Asn · N | |||
DNA AATRNA AAU | 17.444.7% | 36.459.7% | 17.348.1% |
DNA AACRNA AAC | 21.555.3% | 24.640.3% | 18.651.9% |
| Aspartic acid · Asp · D | |||
DNA GATRNA GAU | 32.062.6% | 38.165.4% | 22.447.0% |
DNA GACRNA GAC | 19.137.4% | 20.234.6% | 25.253.0% |
| Cysteine · Cys · C | |||
DNA TGTRNA UGU | 5.144.3% | 8.062.3% | 10.646.5% |
DNA TGCRNA UGC | 6.555.7% | 4.837.7% | 12.253.5% |
| Glutamic acid · Glu · E | |||
DNA GAARNA GAA | 39.869.0% | 45.969.9% | 30.843.1% |
DNA GAGRNA GAG | 17.831.0% | 19.730.1% | 40.756.9% |
| Glutamine · Gln · Q | |||
DNA CAARNA CAA | 15.434.7% | 26.968.4% | 12.826.9% |
DNA CAGRNA CAG | 29.065.3% | 12.431.6% | 34.873.1% |
| Glycine · Gly · G | |||
DNA GGTRNA GGU | 24.733.7% | 22.745.4% | 10.616.2% |
DNA GGCRNA GGC | 29.840.7% | 9.919.8% | 22.334.0% |
DNA GGARNA GGA | 7.810.6% | 11.222.4% | 16.425.1% |
DNA GGGRNA GGG | 11.015.0% | 6.212.4% | 16.224.7% |
| Histidine · His · H | |||
DNA CATRNA CAU | 12.957.0% | 13.764.3% | 11.142.6% |
DNA CACRNA CAC | 9.743.0% | 7.635.7% | 15.057.4% |
| Isoleucine · Ile · I | |||
DNA ATTRNA AUU | 30.550.9% | 30.246.3% | 15.936.8% |
DNA ATCRNA AUC | 25.342.2% | 16.925.9% | 19.745.7% |
DNA ATARNA AUA | 4.16.9% | 18.127.8% | 7.617.6% |
| Leucine · Leu · L | |||
DNA TTARNA UUA | 13.812.9% | 26.327.6% | 7.98.0% |
DNA TTGRNA UUG | 13.712.8% | 26.928.2% | 13.013.1% |
DNA CTTRNA CUU | 11.010.3% | 12.212.9% | 13.313.4% |
DNA CTCRNA CUC | 11.210.5% | 5.55.8% | 18.919.0% |
DNA CTARNA CUA | 3.93.6% | 13.514.2% | 7.17.2% |
DNA CTGRNA CUG | 53.349.9% | 10.811.3% | 39.139.4% |
| Lysine · Lys · K | |||
DNA AAARNA AAA | 33.776.7% | 42.558.0% | 25.544.4% |
DNA AAGRNA AAG | 10.223.3% | 30.742.0% | 32.055.6% |
| Methionine · Met · M | |||
DNA ATGRNA AUG | 27.9100.0% | 20.8100.0% | 21.2100.0% |
| Phenylalanine · Phe · F | |||
DNA TTTRNA UUU | 22.357.4% | 26.559.4% | 17.046.8% |
DNA TTCRNA UUC | 16.642.6% | 18.140.6% | 19.353.2% |
| Proline · Pro · P | |||
DNA CCTRNA CCU | 7.015.7% | 13.430.9% | 17.928.5% |
DNA CCCRNA CCC | 5.512.3% | 6.916.0% | 20.332.2% |
DNA CCARNA CCA | 8.419.0% | 17.640.8% | 17.427.7% |
DNA CCGRNA CCG | 23.452.9% | 5.312.4% | 7.311.6% |
| Serine · Ser · S | |||
DNA TCTRNA UCU | 8.414.6% | 23.326.0% | 15.518.7% |
DNA TCCRNA UCC | 8.614.9% | 14.115.7% | 17.621.2% |
DNA TCARNA UCA | 7.012.2% | 18.821.0% | 12.815.4% |
DNA TCGRNA UCG | 8.915.5% | 8.79.7% | 4.65.5% |
DNA AGTRNA AGU | 8.615.0% | 14.616.3% | 12.715.2% |
DNA AGCRNA AGC | 16.027.8% | 10.111.2% | 19.923.9% |
| Threonine · Thr · T | |||
DNA ACTRNA ACU | 8.816.5% | 20.134.3% | 13.525.4% |
DNA ACCRNA ACC | 23.543.8% | 12.421.1% | 18.534.8% |
DNA ACARNA ACA | 6.912.8% | 17.930.6% | 15.328.7% |
DNA ACGRNA ACG | 14.426.8% | 8.214.0% | 5.911.2% |
| Tryptophan · Trp · W | |||
DNA TGGRNA UGG | 15.2100.0% | 10.4100.0% | 11.9100.0% |
| Tyrosine · Tyr · Y | |||
DNA TATRNA UAU | 16.056.8% | 18.956.6% | 12.045.2% |
DNA TACRNA UAC | 12.243.2% | 14.543.4% | 14.654.8% |
| Valine · Val · V | |||
DNA GTTRNA GUU | 18.325.8% | 21.638.7% | 11.018.5% |
DNA GTCRNA GUC | 15.321.6% | 11.320.2% | 14.023.4% |
DNA GTARNA GUA | 10.915.4% | 12.021.5% | 7.212.0% |
DNA GTGRNA GUG | 26.437.2% | 10.919.6% | 27.446.0% |
| Stop | |||
DNA TAARNA UAA | 2.164.0% | 1.047.8% | 0.528.4% |
DNA TAGRNA UAG | 0.27.1% | 0.522.5% | 0.422.4% |
DNA TGARNA UGA | 0.928.9% | 0.629.8% | 0.849.3% |
Scroll through all 64 codons. DNA and RNA triplets are both written 5′ → 3′.
Download all three hosts (CSV)Every download includes all 64 codons per host, raw counts, both frequency measures, relative adaptiveness and source details.
E. coli codon usage
E. coli K-12 MG1655
RefSeq assembly GCF_000005845.2 (ASM584v2)
- Complete CDS
- 4,294
- Codons counted
- 1,330,718
Yeast codon usage
S. cerevisiae S288C
RefSeq assembly GCF_000146045.2 (R64)
- Complete CDS
- 5,955
- Codons counted
- 2,853,391
Human codon usage
Human (H. sapiens)
MANE v1.5 Select RefSeq transcripts (GRCh38)
- Complete CDS
- 19,248
- Codons counted
- 11,193,713
The tables count complete coding sequences (CDS), including their start and stop triplets. Pseudogenes, partial CDS, translation exceptions (such as selenocysteine), ambiguous bases and internal stops are excluded. Yeast mitochondrial genes are excluded. The human set uses MANE Select v1.5 on GRCh38, one representative transcript per gene (NCBI MANE; Morales and colleagues, 2022). It does not represent every human isoform or a particular tissue.
In the optimization result above, the most used codon for each amino acid is outlined. A codon used less than 0.2 times as often as the most used one for its amino acid is striped as rare. In E. coli, these are the arginine codons AGA (1.9 per thousand), AGG (1.1) and CGA (3.5), the isoleucine codon ATA (4.1), the leucine codon CTA (3.9) and the TAG stop (0.2). Host table (CSV) in that result downloads the chosen host's full table.
Worked example: EGFP for E. coli
The example is the coding sequence of EGFP, the enhanced green fluorescent protein, from NCBI record U55762.1 (the pEGFP-N1 cloning vector). Its codons follow human genes closely: its CAI is 0.957 for human, 0.696 for E. coli and 0.516 for yeast. Optimizing it for E. coli changes 126 of its 240 codons, raises the CAI to 1.000 and lowers the GC content from 61.5% to 48.9%.
Before you order a gene
Read the optimized sequence before using it. The GC content calculator compares original and optimized FASTA records and shows composition in sliding windows. Check that your cloning sites are not created or lost with the restriction digest calculator on Plasmid Map, and that the GC content and any repeats suit your synthesis provider. Translate it back with DNA to protein to confirm the protein. A high CAI does not guarantee expression, which also depends on the promoter, the start of the mRNA (check a Kozak context or a Shine-Dalgarno sequence), the protein's folding and toxicity, and the growth conditions.
Sources: host annotations from NCBI RefSeq and MANE (see the source summaries above); Biopython 1.85 CAI and optimization documentation. Automated tests compare every weight, CAI value and optimized sequence with Biopython 1.85; see sources and methods.