1001Ferramentas
🧬Converters

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.

Complement

Base pairing, and why the output reads 3' to 5'

One input box takes a DNA sequence — the loaded example is ATGCGTACGTAC — and the script walks it letter by letter through a four-entry table: A becomes T, T becomes A, G becomes C and C becomes G. The example returns TACGCATGCATG, refreshed on every keystroke. Input is uppercased first, so lowercase sequence works untouched, which matters because reference genomes soft-mask repetitive regions in lowercase. Base pairing is all the page does: no GC content, no melting temperature, no alignment, no restriction site search.

Orientation is the catch. Bases come out in the same left-to-right positions they went in, but the two DNA strands are antiparallel. If your input is written 5' to 3', as convention demands, the output read left to right runs 3' to 5'. It is the correct partner base for base, stacked under the input the way a double helix is drawn, and that is exactly what you want when checking pairing, an annealing site or a point mutation on both strands. It is not what you order as an oligo. To write the partner strand in the conventional 5' to 3' form, reverse the output: TACGCATGCATG read backwards is GTACGTACGCAT, which is precisely what the reverse complement tool returns in one step.

Any character outside the four bases is replaced by an empty string, silently. ATGNCGT returns TACGCA — six letters from a seven-character input, because the N dropped out and the neighbours closed the gap. IUPAC ambiguity codes (R, Y, S, W, K, M), alignment gap dashes and position numbers all disappear the same way. U is not in the table either, so pasting RNA deletes every uracil: AUGC comes back as TCG. An input with no valid base at all leaves the result box blank, with no error message. One habit avoids the whole trap: compare the length of what you pasted with the length of what came out, and treat any difference as a warning.

Frequently asked questions

Is the strand I get back written 5' to 3'?
No. The bases are emitted in the same order as the input, and since the strands are antiparallel, the output read left to right corresponds to the 3' to 5' direction. To get the partner strand in conventional 5' to 3' form, reverse the result, or use the reverse complement tool, which already delivers that orientation.
Why did the N or the U vanish from my sequence?
The pairing table holds only four keys: A, T, G and C. Every other character maps to an empty string and disappears without warning — the N for an undetermined base, the degenerate codes R, Y, S, W, K and M, alignment dashes, and the uracil in RNA. The result comes out shorter and neighbouring bases close the gap, shifting positions.
What is the difference between complement and reverse complement?
The complement swaps each base for its partner while keeping the order: ATGC becomes TACG. The reverse complement swaps and then flips the order, giving GCAT. Both describe the same physical strand; only the direction it is written in changes. For primers and ordered oligos always use the reverse complement, which comes out 5' to 3'.

Related Tools