GC Content Calculator
Calculate DNA GC percentage, AT percentage and base counts with clear handling of ambiguous bases.
Your result, clearly explained
Paste a sequence or load the example, then run the tool. Your sequence stays in this browser.
How to use
- Enter your DNA
Paste a sequence or one FASTA record.
- Calculate composition
Count G and C alongside the other bases.
- Check the denominator
Review known and ambiguous base counts before using the percentage.
Why ToolerWork?
Sequence calculations run inside your browser.
Strand direction, code table and approximation limits are explained.
Related Tools
View AllInspect DNA length, nucleotide counts, GC content, GC skew and approximate molecular size.
Measure RNA length, A/U/G/C composition, GC content and ambiguous nucleotide counts.
Generate the reverse complement of DNA, including IUPAC ambiguity codes.
Why use this tool?
- See the exact counts behind the GC percentage.
- Keep unknown bases visible instead of counting them as A or T.
- Export a compact composition report for notes or comparisons.
Method & assumptions
GC% = 100 × (G + C) / (A + C + G + T). Ambiguous IUPAC positions are excluded from this denominator and reported separately. Base-composition bars use the full sequence length. An all-ambiguous sequence has no defined GC percentage.
References: NCBI genetic codes
Explore all 10 biology tools →Frequently asked questions
How is GC content calculated?
Add the counts of G and C, divide by the number of A, C, G and T bases, then multiply by 100.
Does N count in the GC denominator?
No. N and other ambiguous IUPAC letters are excluded. The report shows both total positions and known bases so you can inspect the difference.
Why does GC content show a dash?
A sequence with no unambiguous A, C, G or T has no denominator. The tool reports an undefined percentage instead of a misleading zero.
Is GC percentage a melting-temperature prediction?
No. GC content is one contributor to duplex stability. Temperature estimates also depend on length, sequence, salt and concentration.
Can I calculate RNA GC content?
Use the RNA Sequence Analyzer, which accepts U instead of T and reports RNA GC content using known RNA bases.