molecalculator

Moles & Molar Mass

RNA to Peptide Sequence: How Translation Works

Calculator No. 01-13636 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This page explains how an RNA sequence is converted into a peptide (protein) sequence through the process of translation. You input a messenger RNA (mRNA) sequence, and the calculator returns the corresponding peptide sequence using the standard genetic code, plus the reading frame and codon count.

Formula

The translation of mRNA to a peptide follows the genetic code, where each triplet of nucleotides (a codon) specifies one amino acid. The standard code is:

  • AUG – Methionine (start codon)
  • UUU, UUC – Phenylalanine
  • UUA, UUG, CUU, CUC, CUA, CUG – Leucine
  • UCU, UCC, UCA, UCG, AGU, AGC – Serine
  • UAU, UAC – Tyrosine
  • UGU, UGC – Cysteine
  • UGG – Tryptophan
  • CCU, CCC, CCA, CCG – Proline
  • CAU, CAC – Histidine
  • CAA, CAG – Glutamine
  • CGU, CGC, CGA, CGG, AGA, AGG – Arginine
  • AUU, AUC, AUA – Isoleucine
  • ACU, ACC, ACA, ACG – Threonine
  • AAU, AAC – Asparagine
  • AAA, AAG – Lysine
  • GUU, GUC, GUA, GUG – Valine
  • GCU, GCC, GCA, GCG – Alanine
  • GAU, GAC – Aspartic acid
  • GAA, GAG – Glutamic acid
  • GGU, GGC, GGA, GGG – Glycine
  • UAA, UAG, UGA – Stop (termination)

In the calculator, the function translate(s) reads the sequence from the 5′ end in groups of three nucleotides, starting at the first nucleotide. It maps each codon to its amino acid (using one-letter abbreviations) and stops at the first in-frame stop codon. The number of codons is floor(length / 3).

Worked Example

Using the default mRNA sequence AUGGCCAAGCUGGAG (length 15 nucleotides):

  1. Split into codons: AUG, GCC, AAG, CUG, GAG
  2. Translate each: AUG → M (Met), GCC → A (Ala), AAG → K (Lys), CUG → L (Leu), GAG → E (Glu)
  3. Concatenate: M-A-K-L-E → “MAKLE”
  4. No stop codon in this sequence, so the peptide is full length.
  5. Codons count = 15 / 3 = 5.

The calculator outputs: Peptide sequence: MAKLE, Reading frame: 1, Number of codons: 5.

Assumptions

  • The input is a single-stranded mRNA sequence written 5′ to 3′ (using A, U, G, C).
  • The standard genetic code is used (not mitochondrial or other variant codes).
  • Translation starts at the first nucleotide of the input; no scanning for a start codon is performed.
  • Only the first reading frame is considered; the sequence is not shifted to find alternative frames.
  • Stop codons (UAA, UAG, UGA) terminate translation; if present, the peptide ends there.
  • No post-translational modifications (e.g., cleavage, glycosylation) are considered.

How Translation Works in Cells

In living cells, the conversion of RNA to protein is a multi-step process. The mRNA is produced from DNA by transcription, then ribosomes read the mRNA in the 5′ to 3′ direction. Each codon is recognized by a transfer RNA (tRNA) carrying the corresponding amino acid. The ribosome catalyzes peptide bond formation between adjacent amino acids, building a polypeptide chain. Translation begins at an AUG start codon (usually encoding methionine) and ends at a stop codon, which does not code for an amino acid but triggers release of the completed peptide.

Choosing the Right Reading Frame

An RNA sequence can be read in three different reading frames (starting at position 1, 2, or 3). Each frame produces a different peptide. In practice, the correct frame is determined by the presence of a start codon (AUG) and a downstream open reading frame (ORF) that is not interrupted by stop codons. For example, the sequence AUGCGAUAA can be read as:

  • Frame 1: AUG (M), CGA (R), UAA (stop) → MR
  • Frame 2: UGC (C), GAU (D) → CD (no stop, but no start)
  • Frame 3: GCG (A), AUA (I) → AI

When analyzing unknown sequences, you would typically look for the longest ORF starting with AUG. The calculator here uses frame 1 for simplicity; you can manually shift the sequence by adding a nucleotide at the beginning to test other frames.

Common Mistakes and Misconceptions

  • Using DNA instead of RNA: The input must be RNA (with U instead of T). If you have a DNA sequence, replace T with U first.
  • Ignoring stop codons: Some users expect the peptide to continue past a stop codon; in reality, translation stops there.
  • Assuming the first AUG is always the start: In the calculator, we start at the first nucleotide, not the first AUG. For real genes, the ribosome scans for AUG.
  • Confusing one-letter and three-letter codes: The output uses one-letter codes (e.g., ‘M’ for methionine), which are standard in bioinformatics.
  • Not considering the direction: Always write the sequence 5′ to 3′. Reversing it would give a completely different, non-physiological peptide.

Limitations of the Simple Translation

This calculator performs a direct, unmodified translation. It does not account for:

  • Alternative genetic codes (e.g., mitochondrial, ciliate).
  • RNA editing (e.g., base changes after transcription).
  • Introns if the input is pre-mRNA (only mature mRNA should be used).
  • Post-translational modifications such as signal peptide cleavage, phosphorylation, or disulfide bond formation.
  • Overlapping genes or frameshifting.

For research purposes, tools like NCBI ORFfinder or Expasy translate are more comprehensive, but this calculator is a quick and educational tool.

Practical Applications

Translating RNA to peptide is fundamental in molecular biology. Researchers use it to:

  • Predict protein sequences from cloned genes.
  • Design primers for cloning or mutagenesis.
  • Verify that a synthetic RNA construct will produce the intended protein.
  • Teach the genetic code in classrooms.

For example, if you design an mRNA vaccine, you need to ensure the coding sequence translates to the correct antigenic peptide. This calculator helps check the sequence before synthesis.

Frequently Asked Questions

What is the difference between RNA and DNA in translation?

RNA uses uracil (U) instead of thymine (T). In translation, the mRNA sequence is read directly; DNA is first transcribed into mRNA. The genetic code is identical, but the base U pairs with A in RNA, whereas T pairs with A in DNA.

How do I find the correct reading frame?

Look for an AUG start codon near the 5′ end. Then read in triplets from that AUG until a stop codon (UAA, UAG, UGA) is encountered. The region between is the open reading frame (ORF). If you have a full mRNA, the first AUG is often the start, but not always (Kozak context matters).

Can a stop codon be read as an amino acid?

No, in the standard genetic code, UAA, UAG, and UGA are termination signals. They do not code for amino acids. However, in some organisms, UGA can code for selenocysteine (the 21st amino acid) under specific conditions, but that is rare and not covered here.

What if my RNA sequence has a T instead of U?

That would be a DNA sequence. Replace all T’s with U’s to convert it to RNA. For example, DNA ATGGCC becomes RNA AUGGCC. The calculator will not accept T’s, so you must convert first.

Why does the peptide sequence start with M in most real proteins?

Because the start codon AUG codes for methionine. In bacteria, the first amino acid is often formylmethionine (fMet), but it may be removed post-translationally. In eukaryotes, the initial methionine is frequently cleaved off, so mature proteins may not start with M.

Can I use this calculator for DNA sequences?

No, the calculator expects RNA (with U). If you have DNA, convert T to U first. Alternatively, you can use a DNA-to-protein tool that handles the conversion automatically.

Related

Formula used
in s | mRNA sequence (5' to 3') | - | AUGGCCAAGCUGGAG | 0
out pep | Peptide sequence | - | translate(s) | 0
out frame | Reading frame (1-3) | - | 1 | 0
out codons | Number of codons | - | floor(len(s)/3) | 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

The whole Moles & Molar Mass section →