DNA Complement Calculator

DNA complement, length, and GC percent.

Biology and LifeUpdated 2026-10-122 min read
DNA Complement Calculator
Letters A, C, G, T only. Spaces are ignored.
Complement strand
...
Sequence length...
GC content...

What it does

Base pairing mirrors every strand. Adenine meets thymine while guanine meets cytosine, so ATGCCGTA reflects as TACGGCAT. Length and GC share ride along as free bookkeeping for primers and records.

The tool above pairs strict DNA letters. Defaults give an 8 letter complement at 50 % GC. A 10 letter GGCCAAATTT run gives CCGGTTTAAA at 40 % GC. Lowercase folds up and spaces strip out, while any other letter stops with a clear message.

GC percent hints at stability because triple bonded pairs hold tighter than double bonded ones. It never sets melting temperature alone; nearest neighbor math with salts does that job. Length caps at 5000 letters keep pastes sane.

This page gives the forward complement only. It does not reverse for reverse complement, translate proteins, or allow ambiguity codes. For cloning orientation, reverse the output string after.

How to use

  1. Type or paste the DNA letters.
  2. Use only A, C, G, T.
  3. Read the complement first.
  4. Read length for records.
  5. Read GC percent for context.
  6. Reverse by hand for reverse complement.

Formula

complement[i] = pair(base[i]) with A-T, G-C. GC% = (G+C)/length x 100.
seq
Input strand letters ACGT.
comp
Paired output strand.
GC
Share of G plus C.

DNA alphabet A, C, G, T up to 5000 letters. At any other letter there is no pairing to show. Ambiguity codes like N sit outside this strict page.

Worked example

Example: complement of ATGCCGTA

Defaults: ATGCCGTA. Only A, C, G, T accepted up to 5000 letters.

  1. Inputs: ATGCCGTA (8 letters).
  2. Pair: A-T, T-A, G-C, C-G gives TACGGCAT.
  3. Length: 8 letters.
  4. GC: G,C,G,C is 4 of 8, or 50 % GC.
  5. Lowercase accepted and spaces ignored. Tool shows the same.

Reference table

Checks
InputComplementGC
ATGCCGTATACGGCAT50 % GC
GGCCAAATTTCCGGTTTAAA40 % GC
AAAATTTT0 % GC
GGGGCCCC100 % GC
ACGTTGCA50 % GC

Limits

  • ACGT only. N and U excluded.
  • Forward complement. No auto reverse.
  • 5000 letters max.
  • No melting temp model.

Common mistakes

  • Including U from RNA.
  • Pasting FASTA headers with greater than signs.
  • Reading complement as reverse complement.
  • Counting spaces in length.
  • Using GC alone for melting temp.

Try it yourself

Quick checks. Answers sit tucked under each question.

GGCCAAATTT?

Pairs give CCGGTTTAAA at 10 letters with 40 % GC.

acgtACGT in mixed case?

Pairs give TGCATGCA at 8 letters with 50 % GC.

Questions

How is complement figured?

Swap A-T and G-C down the strand. Here TACGGCAT.

How is GC percent figured?

Count of G plus C over length. Here 50 % GC.

Does U work here?

No. Uracil belongs to RNA. This page takes DNA letters only.

Are lowercase and spaces fine?

Yes. Case folds and spaces strip before pairing.

Is this reverse complement?

No. This is the complementary strand, same direction naive. Reverse complement needs reversing after.

Does GC give melting temp?

Primer melting needs nearest neighbor math, not just GC share.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.