Calculators  ›  Sequence Tools  ›  Reverse Complement

Reverse Complement Calculator

Instantly calculate the reverse complement of any DNA or RNA sequence. Evaluate antiparallel strand orientation for primer design, vector map reading, and molecular cloning.

  • Supports standard sequences and IUPAC ambiguous bases.
  • Strips FASTA headers, numbers, and whitespace automatically.
  • Toggles seamlessly between DNA and RNA mode.

Common uses: 🔬 Primer Design ✂️ Cloning Orientation 🎯 Antisense Probes ✓ Free · No login

Reverse Complement Generator

Paste any DNA or RNA sequence to instantly generate the complement and reverse complement. DNA strands are antiparallel — the template strand runs 3′→5′ while the coding strand runs 5′→3′. The reverse complement is what the opposite strand looks like read in the correct 5′→3′ direction. Essential for PCR reverse primer design and cloning.

Sequence Tools A↔T   G↔C   then Reverse

Sequence Input

DNA mode — A↔T, G↔C
Load example
FASTA or raw
0 bp
FASTA headers (>…), spaces, digits and line breaks are stripped automatically. IUPAC ambiguous codes (N, R, Y, K, M…) are supported and reverse-complemented correctly.
Length
GC%
AT%
Tm est.

Generated Sequences

Original sequence
5′ → 3′
Enter a sequence…
Complement
Step 1 — replace each base with its pair
3′ → 5′
⭐ Reverse complement
Step 2 — reverse the complement
5′ → 3′

Antiparallel Duplex View

The two strands of the DNA double helix run in opposite directions — this is what antiparallel means. The top strand (5′→3′) is your input sequence. The bottom strand (3′→5′) is the complement, aligned directly below with hydrogen bond symbols (|) between paired bases. The reverse complement is simply the bottom strand read from right to left.

Enter a sequence to see the duplex view.
💡 Reading the duplex: The top line is your input (5′→3′). The | symbols represent hydrogen bonds (G-C = 3 bonds, A-T = 2 bonds). The bottom line is the complement strand (3′→5′). To get the reverse complement, read the bottom strand from right to left — that is the sequence of the opposite strand written in the standard 5′→3′ direction.

Antiparallel DNA Concept

This diagram shows the key concept: the two DNA strands are oriented in opposite directions. The coding strand runs 5′→3′ (left to right). The template strand runs 3′→5′ (left to right), which means it is 5′→3′ from right to left — that is the reverse complement direction.

5′ → coding strand → 3′
A
T
G
C
G
T
A
C
T
A
C
G
C
A
T
G
3′ ← template strand ← 5′
5′-ATGCGTAC-3′
Original
5′-GTACGCAT-3′
Reverse complement
Step 1 — Complement
Replace each base:
A→T, T→A, G→C, C→G
ATGCGTAC → TACGCATG
Step 2 — Reverse
Flip the complement string:
Left ↔ Right
TACGCATG → GTACGCAT

How It Works updates as you type

The reverse complement is always generated in exactly two steps, regardless of sequence length. Both steps are applied to every base independently — position within the sequence does not matter.

Step 1 — Complement Each Base
A ↔ T    G ↔ C
Original: ?
Complement: ?
Each nucleotide is independently replaced by its Watson-Crick complement. The direction of the strand stays the same at this step — only the bases change. In RNA mode, T is replaced by U so the complement is A↔U, G↔C.
Step 2 — Reverse the Complement
Complement[::-1]
Complement: —read right to left→
Revcomp (5′→3′): ?
Reversing the complemented string gives you the sequence of the opposite strand written in the 5′→3′ direction — the convention for all reported sequences. Length is identical: ?
IUPAC Ambiguous Base Rules
R↔Y   K↔M   B↔V   D↔H   S↔S   W↔W   N↔N
R (A or G) complements Y (C or T) — both ambiguity sets are preserved.
IUPAC codes represent ambiguous positions where two or more bases are possible. Each code has a defined complement that preserves the ambiguity correctly. N (any base) complements N.
Palindromic Sequences
seq = revcomp(seq)
EcoRI: 5′-GAATTC-3′
RevComp: 5′-GAATTC-3′ ← identical!
A DNA sequence is palindromic when it equals its own reverse complement. Most Type II restriction enzymes recognise 4–8 bp palindromic sequences — the tool detects and flags these automatically with a ✨ warning.

Base Pairing Rules

Watson-Crick base pairing rules determine which bases pair with which. G-C pairs form 3 hydrogen bonds (more stable); A-T pairs form 2 hydrogen bonds. IUPAC ambiguous codes are fully supported.

Base Complement (DNA) Bonds
A T 2 bonds (= =)
T A 2 bonds (= =)
G C 3 bonds (≡)
C G 3 bonds (≡)
A U 2 bonds (RNA only)
IUPAC Code Meaning Complement
R A or G (puRine) Y C or T
K G or T (Keto) M A or C
B not A (C,G,T) V not T
D not C (A,G,T) H not G
N any base N any base

How to Use Reverse Complement in the Lab

Understanding when and why to use the reverse complement is as important as computing it. Follow these steps for common laboratory applications.

  1. 1
    Identify your target region on the reference sequence

    Start with the coding strand of your gene (5′→3′, usually shown in databases like NCBI, Ensembl, or UniProt). Note the exact start and end positions of the region you want to amplify or clone. Coordinates are always given for the forward (coding) strand.

  2. 2
    Design your forward primer from the coding strand

    The forward (sense) primer matches the 5′ end of your target region and is identical to the coding strand sequence. Paste it into the GC Content calculator to check GC% (target 40–60%) and Tm. Aim for 18–25 bp in length.

  3. 3
    Generate the reverse complement for your reverse primer

    Copy the 3′ end of your target region from the coding strand. Paste it into this tool to get the reverse complement — that is the sequence of your reverse (antisense) primer. The reverse primer binds to the template (bottom) strand and extends towards the forward primer.

    Example:
    Target 3′ end: 5′-ATGCGTAC-3′
    Reverse primer: 5′-GTACGCAT-3′ (reverse complement)
    The primer is written 5′→3′ for synthesis ordering.
  4. 4
    Check primer pair Tm balance

    Calculate GC% and Tm for both the forward primer and the reverse complement (reverse primer) using the GC Content or Tm Calculator tools. The Tm values should be within 2–5 °C of each other. Large Tm mismatches reduce efficiency because one primer anneals while the other does not.

  5. 5
    Add restriction sites or overhangs if needed

    For cloning, add a restriction site sequence to the 5′ end of your reverse primer (after generating the core reverse complement). Common additions include EcoRI (GAATTC), BamHI (GGATCC), or NdeI (CATATG). The restriction site itself is not complemented — only the target-binding region needs to be the reverse complement.

  6. 6
    Verify with in silico PCR before ordering

    Run both primers through an in silico PCR tool (e.g. Primer-BLAST on NCBI) to confirm specificity against the reference genome. Check that the expected amplicon size is correct and that no off-target products are predicted. Only then submit primers for synthesis.

Tips & Common Mistakes

Always order the reverse primer as the reverse complement

The most common mistake in PCR primer design is ordering the basic complement (3′→5′) rather than its reverse complement (5′→3′). DNA synthesis is always performed 5′→3′, so ordering a simple complement means you will get the physically wrong molecule.

Use the reverse complement when designing probes for the antisense strand

Fluorescent probes (TaqMan, molecular beacons) and hybridisation probes that target the antisense strand must be designed as the reverse complement of the coding strand sequence. Check that the probe Tm is 8–10 °C higher than the primers for TaqMan assays.

Cloning overhang placement

When adding a restriction site to a reverse primer (e.g. EcoRI), the site must be written so that after the PCR product is cut, the sticky end is on the correct side. Ensure you append the overhang to the 5′ end of the finalized reverse complement sequence.

The reverse complement is orientation-specific

Flipping the sequence backward changes orientation but fails to pair the bases (it will completely fail to anneal). Complementing without reversing gives the complement read 3′→5′. Only the reverse complement (both steps together) gives the correct sequence read 5′→3′.

Do not use U in a DNA primer sequence

RNA mode replaces T with U (uracil), which is the RNA base. DNA oligonucleotides use T (thymine). If you are designing a DNA primer, keep the tool in DNA mode. RNA mode is only for analysing mRNA, siRNA, shRNA, or aptamer sequences that will be used as RNA molecules.

Palindromic sequences in primers cause self-annealing

If your primer sequence is palindromic (equals its own reverse complement), it can fold back on itself to form a very stable hairpin or self-dimer. This reduces the effective primer concentration in the reaction and produces primer-dimer artifacts. The tool flags palindromic sequences automatically.

Common Applications

🔬
PCR Reverse Primer Design
The reverse primer binds the antisense strand — it must be the reverse complement of the 3′ end of the target region.
✂️
Cloning & Restriction Sites
Restriction enzyme sites added to reverse primers must face correctly — use the revcomp to ensure the right orientation.
🧬
Sequencing Primer Design
Sanger and next-generation sequencing often require primers targeting both strands — revcomp gives the antisense primer.
🔍
BLAST & Genome Searches
BLAST returns hits on both strands — the revcomp of a minus-strand hit is the sequence in the gene's natural orientation.
🎯
siRNA & shRNA Design
The guide strand of an siRNA is the antisense (reverse complement) of the mRNA target sequence to trigger RISC-mediated silencing.
🔧
Gibson Assembly & Overlaps
Gibson assembly primers include overlapping ends — the reverse primer's 5′ overhang must be the revcomp of the adjacent fragment's end.

What is Reverse Complement?

The reverse complement is the sequence of the opposite strand of a double-stranded DNA molecule, read in the standard 5′ to 3′ direction. Because DNA is antiparallel, the two strands run in opposite directions. The reference sequence you see in a database is typically the coding (forward) strand running 5′ → 3′. To determine the sequence of the template (bottom) strand that binds to it, you must find its reverse complement.

Why Reverse Complement Matters

Understanding orientation correctly is critical to avoiding costly laboratory errors. Biological enzymes, including DNA polymerases, synthesize nucleic acids strictly in the 5′ → 3′ direction. Therefore, you must order all synthetic oligonucleotides in this orientation.

  • Reverse Primers: Because a reverse primer binds to the template strand and extends backward, its sequence is exactly the reverse complement of the target's coding strand.
  • Database Interpretation: Alignment tools like BLAST often return minus-strand hits; generating the reverse complement gives you the gene's natural orientation.
  • Antisense Targeting: Designing CRISPR gRNAs or siRNAs requires knowing the precise sequence of the opposing strand.

How the Reverse Complement Generator Works

Our tool instantly processes any standard or ambiguous nucleic acid sequence. It automatically sanitizes your input by stripping out FASTA headers, spaces, and numbers, ensuring strict evaluation of valid characters.

  • DNA & RNA Compatibility: Seamlessly toggle between analyzing DNA or RNA (swapping thymine for uracil).
  • IUPAC Codes: Fully supports degenerate bases (e.g., R, Y, N) commonly used in consensus alignments.

Step-by-Step Logic (Complement → Reverse)

Generating the correct sequence always follows two distinct, sequential operations applied directly to your input string:

  1. Complement: Replace every single nucleotide with its Watson-Crick pairing partner.
  2. Reverse: Take the newly generated complement string and flip it backward. This corrects the orientation so the final string reads 5′ → 3′.

Worked Example (DNA Sequence)

Visualizing a short DNA fragment demonstrates how the directionality changes at each functional step. Let's trace the sequence 5′-ATGCGTAC-3′:

Step Direction Sequence
Original (Coding Strand) 5′ → 3′ ATGCGTAC
1. Complement (A↔T, G↔C) 3′ → 5′ TACGCATG
2. Reverse Complement 5′ → 3′ GTACGCAT

Result: The final output sequence is the exact text string you would provide to a synthesis facility to order a reverse primer for this specific region.

Reverse Complement in Primer Design

A standard PCR requires a forward primer (identical to the target's 5′ coding sequence) and a reverse primer. Because the reverse primer acts as a piece of the coding strand that binds the template strand, its sequence is the reverse complement of the target region's 3′ end.

  • ⚖️ Tm Balance: Always verify that both forward and reverse primers have closely matching melting temperatures using a Tm Calculator.
  • 🛡️ Stability: Evaluate the resulting reverse complement using a GC Content Calculator to ensure appropriate binding strength without severe secondary structures.

Frequently Asked Questions

What is the reverse complement of a DNA sequence?
The reverse complement is obtained by first taking the complement of each base (A↔T, G↔C) and then reversing the order of the resulting sequence. This gives the sequence of the antiparallel complementary strand, read 5′ to 3′.
Why do I need the reverse complement of a DNA sequence?
Reverse complements are used in primer design (a reverse primer anneals to the reverse complement strand), BLAST searches, vector map reading, and understanding double-stranded DNA orientation in molecular cloning.
What is the difference between complement and reverse complement?
The complement operation replaces bases with their pairs but maintains the original 3′ → 5′ reading direction. The reverse complement does this and then flips the string, restoring the standard 5′ → 3′ orientation required for experimental use.
Does this calculator support RNA sequences?
Yes. By activating RNA mode, the calculator correctly recognizes and uses Uracil (U) instead of Thymine (T) for both input and pairing logic.
Can I paste a FASTA formatted file directly?
Absolutely. The tool is programmed to detect and remove standard FASTA header lines (which begin with a ">" symbol) as well as any hidden whitespace or line breaks.