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.
| Step | Sequence (5′ → 3′ as written) |
|---|---|
| Original | ATGGCC |
| Complement | TACCGG |
| Reverse complement | GGCCAT |
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
| Code | Bases | Complement |
|---|---|---|
| R | A or G | Y |
| Y | C or T | R |
| K | G or T | M |
| M | A or C | K |
| S | G or C | S |
| W | A or T | W |
| B | not A | V |
| V | not T | B |
| D | not C | H |
| H | not G | D |
| N | any base | N |
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
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.