Reverse complement

This tool gives the reverse complement of a DNA or RNA sequence. Paste a sequence or a FASTA record and copy the reverse complement, or switch to the reverse or the complement alone. Ambiguity codes are handled and the sequence never leaves your browser.

Your sequence is converted in your browser. Nothing you paste is sent or stored.

FASTA header lines, spaces, line breaks and numbers are ignored. The sequence stays in your browser.

Reverse complement (5′ → 3′)

CTATCGGGCACCCTTTCAGCGGCCCATTACAATGGCCAT

39 nt, DNA.

Check your result: take the reverse complement of the result and you should get your sequence back. The base counts swap: the 39-nucleotide example has 9 A and 14 G, and its reverse complement has 9 T and 14 C.
operations: reverse complement, reverse, complement
3
operations: reverse complement, reverse, complement
IUPAC ambiguity codes besides A, C, G and T/U
11
IUPAC ambiguity codes besides A, C, G and T/U
nucleotides in the worked example
39
nucleotides in the worked example
bases per sequence at most
200,000
bases per sequence at most
  • Reverse complement, reverse, complement
  • DNA and RNA
  • IUPAC ambiguity codes
  • FASTA headers and numbers ignored
  • Runs in your browser, free

01

What the reverse complement is

The two strands of DNA pair A with T and G with C, and run in opposite directions. The reverse complement of a sequence is the other strand, written 5′ to 3′: replace every base with its partner, then reverse the order.

StepSequence (5′ → 3′ as written)
OriginalATGGCC
ComplementTACCGG
Reverse complementGGCCAT
ATTAGCCGGCTA5′3′3′5′read the lower strand this way: 5′ ACGCAT 3′
Complement, then reverse. Each base pairs with its partner: A with T and G with C. The lower strand runs in the opposite direction, so to write it in the usual 5′ to 3′ order you read it from right to left. For ATGCGT that gives ACGCAT, the reverse complement.

02

Worked example

The tool opens with this 39-nucleotide sequence:

ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG

Its reverse complement is:

CTATCGGGCACCCTTTCAGCGGCCCATTACAATGGCCAT

03

When you need it

  • Reverse primers. A reverse primer is the reverse complement of the end of the target region as it appears on the reference strand.
  • Genes on the minus strand. To read a gene annotated on the reverse strand, take the reverse complement of the reference sequence.
  • Comparing reads. A sequencing read may match either strand; the reverse complement is what to search for on the other one.
  • Checking restriction sites. Many sites are palindromes: AAGCTT is its own reverse complement, which the tool points out.

04

Ambiguity codes

CodeBasesComplement
RA or GY
YC or TR
KG or TM
MA or CK
SG or CS
WA or TW
Bnot AV
Vnot TB
Dnot CH
Hnot GD
Nany baseN

IUPAC nucleotide codes. Characters that are not nucleotide codes, such as gaps and protein letters, are left out and counted.

05

RNA sequences

If the sequence contains U and no T it is treated as RNA, and the result uses U as well. To check the composition of the result use the GC content calculator; to read it as protein use the DNA to protein translator.

06

Common mistakes with reverse complements

  • Taking only the complement. The complement of the example still reads 3′ to 5′; written 5′ to 3′ it matches the true reverse complement at only 7 of 39 positions.
  • Taking only the reverse. The reverse of the example matches its reverse complement at 0 of 39 positions.
  • Assuming a sequence and its reverse complement always differ. 64 of the 4,096 possible 6-base sequences, 1.6%, are their own reverse complement, such as the HindIII site AAGCTT.
  • Pasting RNA with a stray T. A sequence with both U and T is read as DNA, so the result is written with T: AUGTTAG becomes CTAACAT.

Trust

How this page is checked

  • The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
  • The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
  • Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.

Cite this page

Sciloom. (2026). Reverse complement. Zebra Nine Studio Inc. https://sciloom.si/reverse-complement

Read the full methodology · Who makes Sciloom

Frequently asked questions

How do I find the reverse complement of a DNA sequence?

Swap each base for its partner (A↔T, G↔C) and reverse the order. Paste the sequence above and the tool does both steps.

What is the difference between complement and reverse complement?

The complement swaps the bases but keeps the order, so it reads 3′ to 5′. The reverse complement also reverses it, giving the other strand in the usual 5′ to 3′ direction.

Can I paste a FASTA file?

Yes. Lines starting with “>” are ignored, as are spaces, line breaks and position numbers.

Is my sequence uploaded?

No. Everything runs in your browser tab; the sequence is not sent anywhere.

Designing primers? Check the GC content of the result next.
Free to start, no sign-up.
Back to the tool ↑

More research tools