This tool converts a DNA sequence into its corresponding mRNA transcript and then translates that mRNA into the amino acid sequence of a protein, using the standard genetic code. You enter a DNA coding strand sequence (5′ to 3′), and the calculator outputs the mRNA sequence (with U for T) and the single-letter amino acid sequence, including the stop codon position. The conversion follows the central dogma of molecular biology, where DNA is transcribed to mRNA and mRNA is translated to protein.
Formula
The conversion is a two-step process, each following a well-defined biological rule:
- Transcription (DNA to mRNA): The DNA coding strand is read in the 5′ to 3′ direction. Each thymine (T) is replaced by uracil (U) in the mRNA. The sequence is otherwise identical to the coding strand. If you have the template (antisense) strand instead, the mRNA is complementary to it, with A pairing to U, T to A, C to G, and G to C.
- Translation (mRNA to protein): The mRNA is read in triplets called codons, starting from the first AUG (start codon). Each codon specifies one amino acid according to the standard genetic code table. The translation stops when a stop codon (UAA, UAG, or UGA) is encountered. The output is the sequence of amino acids in single-letter code (e.g., M for methionine, A for alanine).
Variables: seq is the input DNA sequence (string of A, T, C, G). The mRNA output is seq with every T replaced by U. The protein output is the translation of the mRNA from the first AUG to the first in-frame stop codon.
Worked Example
Using the default sequence: ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG
Step 1: Transcription – Replace every T with U:
AUGGCCAUUGUAAUGGGCCGCUGAAAGGGUGCCCGAUAG
Step 2: Find the start codon – The first three bases are AUG, which is the start codon (methionine). Reading in triplets from position 1:
AUG | GCC | AUU | GUA | AUG | GGC | CGC | UGA | AAG | GGU | GCC | CGA | UAG
Step 3: Translate each codon using the standard table:
AUG = M (Met), GCC = A (Ala), AUU = I (Ile), GUA = V (Val), AUG = M (Met), GGC = G (Gly), CGC = R (Arg), UGA = Stop, AAG = K (Lys), GGU = G (Gly), GCC = A (Ala), CGA = R (Arg), UAG = Stop.
Step 4: Stop at the first stop codon – The first stop is UGA at position 8. The protein sequence is therefore:
MAIVMGR
The calculator outputs the full mRNA and the protein sequence, which for this example is MAIVMGR (7 amino acids).
Assumptions
- The input is the coding (sense) strand of DNA, written 5′ to 3′.
- Translation begins at the first AUG codon and ends at the first in-frame stop codon (UAA, UAG, or UGA).
- The standard genetic code is used (not mitochondrial, bacterial, or alternative codes).
- No introns are present; the sequence is assumed to be mature mRNA coding sequence (exons only).
- Post-translational modifications (cleavage, glycosylation, etc.) are not considered.
How to Read the Results
The mRNA sequence is the direct transcript you would use for further analysis, such as designing primers for reverse transcription or checking codon usage. The protein sequence is given in single-letter amino acid code, which is the standard format for bioinformatics tools. The first amino acid is always methionine (M) because translation starts at AUG. If your sequence has no AUG, the tool will not translate it (you should check that you have the correct reading frame).
Note that the protein sequence stops at the first stop codon. Any codons after that are not translated. This is biologically correct, but if you are working with a partial gene, you may want to manually extend the sequence past the stop codon to see the full open reading frame (ORF).
Common Mistakes and Misconceptions
- Using the template strand instead of the coding strand: The template strand is complementary and antiparallel. If you input the template strand, the mRNA will be wrong. Always confirm which strand you have.
- Forgetting to replace T with U: DNA uses thymine, RNA uses uracil. The mRNA output must have U, not T.
- Starting translation at the wrong AUG: Some sequences have AUG codons in the middle. The standard rule is the first AUG, but in eukaryotes, the context (Kozak sequence) can cause ribosomes to skip the first AUG. This tool uses the simple first-AUG rule.
- Assuming all AUGs are start codons: AUG also codes for methionine internally. The tool only starts at the first one.
- Reading the wrong frame: If you shift the reading frame by one base, you get a completely different protein. The tool always reads from position 1 of the input.
When to Use This Converter
This converter is useful for students learning the central dogma, researchers verifying a cloned gene sequence before ordering a synthetic construct, and anyone working with cDNA sequences. It is also helpful for checking whether a DNA sequence has an open reading frame (a start codon followed by a long stretch of codons without a stop). For example, a typical bacterial gene of 1,000 base pairs will encode a protein of roughly 333 amino acids (1000/3 minus the stop codon).
You can also use it in reverse: if you have a protein sequence and want the DNA that encodes it, you would need a codon optimization tool, which considers the organism’s codon usage bias. This converter only works in the DNA→RNA→protein direction.
Limitations of the Standard Genetic Code
The standard genetic code is used by most nuclear genes in animals, plants, and bacteria. However, several exceptions exist:
- Mitochondrial code: In human mitochondria, UGA codes for tryptophan instead of stop, and AUA codes for methionine instead of isoleucine.
- Alternative nuclear codes: Some ciliates (e.g., Tetrahymena) use UAA and UAG to code for glutamine instead of stop.
- Selenocysteine: The codon UGA can specify selenocysteine (Sec, U) when a specific stem-loop structure (SECIS element) is present in the mRNA.
- Pyrrolysine: In some archaea and bacteria, UAG can code for pyrrolysine (Pyl, O).
If you are working with mitochondrial genes or unusual organisms, you must use the appropriate genetic code table. This converter uses the standard code only.
Frequently Asked Questions
What is the difference between the coding strand and the template strand?
The coding strand (also called the sense strand) has the same sequence as the mRNA (except T vs U). The template strand (antisense) is complementary to the mRNA and is the one actually read by RNA polymerase. This converter expects the coding strand, so if you have the template, you must first reverse-complement it.
Why does my protein sequence end with a stop codon in the output?
The output shows only the amino acids, not the stop codon. The stop codon is not translated into an amino acid; it signals the ribosome to release the protein. If you see a truncated sequence, it means a stop codon appeared early, which could indicate an incomplete gene or an incorrect reading frame.
Can I paste a whole gene with introns?
No. This tool assumes the input is mature mRNA coding sequence (exons only). If you paste genomic DNA with introns, the translation will be wrong because introns are not removed. You need a splice-aware tool or a cDNA sequence.
How do I convert a protein sequence back to DNA?
You cannot do it uniquely because the genetic code is degenerate—most amino acids are encoded by multiple codons. You would need a reverse translation tool that picks one codon per amino acid, usually based on the organism’s codon usage bias. That is a different calculation.
What does the single-letter amino acid code mean?
Each letter corresponds to one amino acid: A=Alanine, C=Cysteine, D=Aspartic acid, E=Glutamic acid, F=Phenylalanine, G=Glycine, H=Histidine, I=Isoleucine, K=Lysine, L=Leucine, M=Methionine, N=Asparagine, P=Proline, Q=Glutamine, R=Arginine, S=Serine, T=Threonine, V=Valine, W=Tryptophan, Y=Tyrosine. These are the standard IUPAC abbreviations used in all bioinformatics software.
Related
Formula used
in seq | DNA coding strand (5' to 3') | - | ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG | 0 out mrna | mRNA sequence | - | replace(seq, T, U) | 0 out prot | Protein sequence (single-letter) | - | translate(seq) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Normality to g/L Converter & Formula29.220 g/L
- Normality to meq/mL Conversion Calculator1.0000 meq/mL
- Normality Test Q-Q Plot: How to Read It
- Normality Test Results: How to Analyze Them
- Normality Slay the Spire?
- Normality Test for Paired t Test: How to Check