This DNA complement tool turns a sequence into its complement, reverse, reverse complement and RNA form, counts the bases and gives the GC content. Paste a sequence and press Convert; it accepts the ambiguity codes used in real sequence files.
What the DNA complement tool gives you
| Output | What it is | Example for ATGC |
|---|---|---|
| Complement | Every base swapped for its pairing partner, in the same order | TACG |
| Reverse | The sequence written backwards | CGTA |
| Reverse complement | The complement, read from the other end | GCAT |
| RNA | The same sequence with U in place of T | AUGC |
Because the two strands of a double helix run in opposite directions, they are called antiparallel. [1] The reverse complement is the sequence of the opposite strand written in the usual direction, so it is the answer you need when you want a primer or a probe that binds your sequence. A plain complement keeps the order and is useful for aligning two strands position by position.
Base pairing rules
Adenine pairs with thymine and guanine pairs with cytosine in DNA. In RNA, uracil replaces thymine, so adenine pairs with uracil. [1] The tool follows these rules, and when you paste a sequence that contains U and no T it works in RNA letters throughout, so A becomes U and U becomes A.
IUPAC ambiguity codes
Sequence files often contain letters other than A, C, G and T where a base is uncertain. The standard degenerate symbols are R (A or G), Y (C or T), S (G or C), W (A or T), K (G or T), M (A or C), B (not A), D (not C), H (not G), V (not T) and N (any base). [3] Each has a complement made of the complements of its bases: R pairs with Y, K with M, B with V and D with H, while S, W and N are their own complements.
How the GC content is worked out
GC content is the share of bases that are guanine or cytosine, usually written as a percentage. [2] This tool counts G and C and divides by the number of A, C, G, T and U bases. Letters such as N or R are left out of both counts and shown separately, which is our own working, because an ambiguous base cannot be counted as GC or AT. The value matters in practice because a higher GC content tends to mean a higher melting temperature, which is used when planning PCR primers. [2]
How to use it
- Paste your sequence, with or without a FASTA header and line breaks.
- Press Convert and read the table.
- Use the button to copy the reverse complement, for example to paste it into a primer design tool.
- Check the base counts to confirm the length and composition.
Typical uses
- Finding the sequence of the opposite strand for a primer or probe.
- Checking a sequence read from the minus strand.
- Converting a DNA coding sequence to RNA for a lesson or an assignment.
- Comparing the GC content of several fragments.
- Cleaning a pasted sequence from a database record by removing spaces and numbers.
Working through an example
Take the short sequence ATGCGCTAAGG. Its complement, base by base, is TACGCGATTCC. Written backwards, the original reads GGAATCGCGTA. The reverse complement is CCTTAGCGCAT, which is the complement read from the opposite end. The sequence has eleven bases, of which six are G or C, so its GC content is 54.55 percent. If you paste the RNA form, AUGCGCUAAGG, the tool detects the U, works in RNA letters, and gives UACGCGAUUCC as the complement.
Why strand direction matters
DNA strands have a direction, written from the 5' end to the 3' end, and the two strands of a helix run in opposite directions. Enzymes that copy DNA and the primers used in PCR both work in one direction only. A primer that binds the top strand must therefore be the reverse complement of the region it targets, not its plain complement. That is why most sequence software, and this tool, give the reverse complement its own line and a copy button.
Plain complements remain useful. Lining up a complement under the original shows the pairs one position at a time, which is how textbooks draw a double helix, and it is the easiest way to check a mispaired base.
Common mistakes
- Using the complement when the reverse complement is needed. A primer that pairs with a sequence is written in the opposite direction.
- Forgetting that DNA and RNA use different letters: a sequence with both T and U is rejected, because it cannot be either.
- Counting N as GC or AT. It is neither.
- Treating the result as a validated primer. Primer design also depends on length, melting temperature and secondary structure.
The conversion runs in your browser and no sequence is stored or sent. The tool is meant for study and routine checks; for clinical or research work, verify results against the original data.
What next
Use this often? Add DNA Compleme to your Home screen.
Frequently asked questions
What does the DNA complement tool do?
It converts a sequence into its complement, reverse, reverse complement and RNA form, counts the bases and reports the GC content. It accepts IUPAC ambiguity codes such as N, R and Y.
What is the difference between the complement and the reverse complement?
The complement swaps each base for its partner and keeps the order. The reverse complement also reverses the order, so it reads in the usual direction along the opposite strand.
How is GC content calculated here?
G and C bases are divided by the total of A, C, G, T and U bases and shown as a percentage. Ambiguous letters such as N are left out of both counts and listed separately.
Can I paste RNA?
Yes. A sequence with U and no T is treated as RNA, and its complement is written in RNA letters, with A pairing to U.
Is my sequence stored?
No. The tool works in your browser and does not send the sequence anywhere.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.