DNA Reverse Complement Tool
Calculate the reverse complement of a DNA sequence, in the 5-to-3 direction. Essential for primer design and sequence analysis in molecular biology.
Reverse comp.
—
Reverse complement and the PCR reverse primer
The tool takes one DNA field — the example is ATGCGTACGTAC — and chains two operations: it splits the sequence into characters, reverses their order, then swaps each base for its partner using the A with T, G with C table. Reversing before or after complementing makes no difference to the answer, and the example returns GTACGTACGCAT. Check it by hand: the complement of ATGCGTACGTAC is TACGCATGCATG, and read backwards that is GTACGTACGCAT. The output already comes out 5' to 3', the convention in which primers and oligos are written, quoted and ordered.
This is the everyday PCR operation. The forward primer copies the start of the amplicon on the top strand; the reverse primer is the reverse complement of the end of that same amplicon. If the region finishes with GGTCAGTTCACG on the top strand, your reverse primer is CGTGAACTGACC — paste the first and compare. There is a quick sanity check too: palindromic restriction sites return themselves. GAATTC, the EcoRI site, has GAATTC as its reverse complement, so if input and output differ there, you mistyped something. The same transformation flips a BLAST hit that landed on the minus strand back to plus-strand orientation before you line it up against the reference, or reorients a read that came off the opposite sequencing primer.
Two kinds of limit apply. The first is degenerate code: the table has four keys, so every other letter maps to nothing. A degenerate primer like ACGTRYN comes back as ACGT — four bases instead of seven, with no warning — whereas a proper reverse complement would map R to Y, Y to R and N to N and preserve the length. Ordering an oligo from that output is an expensive mistake. U is missing from the table as well, so RNA returns mangled. The second limit is scope: the page performs the sequence transformation and nothing else. No melting temperature, no GC content, no hairpin or primer-dimer screen. And because the reversal runs over the whole pasted text, a FASTA with a header or several records comes back scrambled, header letters folded in among the bases.
Frequently asked questions
How do I use this to design a reverse primer?
Why is the output shorter than what I pasted?
Is the reverse complement just the sequence written backwards?
Related Tools
DNA Complement Strand Tool
Generate the complementary strand of a DNA sequence by pairing bases (A↔T, G↔C). Paste the sequence and get the matching strand instantly for molecular biology.
DNA to RNA Transcription Tool
Paste the coding strand of DNA and get the matching messenger RNA, with every thymine swapped for uracil. The sequence matches the gene, only in RNA.
Six-Frame Translation and ORF Finder
Translate a DNA sequence in all six reading frames and list the ORFs, with the position on the strand, length in amino acids and the predicted protein.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg and iNvErTeD. Runs in your browser.
Torque Nm to lb·ft Converter
Convert torque between newton-meters (Nm) and pound-feet (lb·ft) instantly. Handy for mechanics, bolt torque specs and imported car manuals.
Note to MIDI Number
Convert a musical note (like A4 or C#3) into its MIDI note number. Handy when programming synths, sequencers and virtual instruments.