BioABC
Calculators · Sequence tools

GC Content Calculator

Paste a DNA or RNA sequence to calculate GC content, AT content, sequence length, and base composition. Accepts raw sequence or FASTA, counts IUPAC ambiguity codes separately, and runs entirely in your browser.

v0.1 — liveRuns in your browserDNA · RNA/tools/gc-content-calculatorSign in to save
GC content — calculatorInput: auto-detectLocal
300 bases in input
Paste, type, or drop a .fasta / .txt fileFASTA detected
Input format
⌘↵

Calculated in this page. Your sequence is never uploaded.

GC content
56.04 %of 298 counted bases (A+T+G+C)
Length
300
bases
AT content
44.0%
A + T/U
G
79
guanine
C
88
cytosine
A
64
adenine
T / U
67
thymine
Ambiguous
2
N×2
Records
1
FASTA
Base composition
BaseShareCount%
G
7926.3
C
8829.3
A
6421.3
T/U
6722.3
N*
20.7
01 · How it works

What the calculator counts

GC content is the proportion of a nucleic-acid sequence made up of guanine and cytosine. It is a basic descriptor of a sequence or genome: GC-rich regions melt at higher temperatures, behave differently in PCR, and often mark coding or regulatory features.

The calculator reads your input, discards line breaks, numbers, and FASTA header lines, then counts each letter. Uracil (U) is counted with thymine so RNA and DNA report the same way. Ambiguity codes are counted separately rather than guessed at — by default they are excluded from the GC denominator, which you can change above.

Multi-record FASTA input is summarized as a whole and broken out per record, so a file of amplicons or contigs can be scanned in one pass.

02 · Method
GC % = (G + C) / (A + T + G + C) × 100 AT % = (A + T) / (A + T + G + C) × 100 length = A + T + G + C + ambiguous U is counted as T N, R, Y, S, W, K, M, B, D, H, V → counted, reported separately

With “exclude ambiguous” switched off, the denominator becomes A + T + G + C + ambiguous, and the reported GC percentage falls accordingly.

03 · Worked example
ATGCGCGGTACCGGTTAACG
Sequence length20
G + C7 + 5 = 12
A + T4 + 4 = 8
GC content12 / 20 × 100 = 60.00 %
AT content8 / 20 × 100 = 40.00 %
04 · Frequently asked questions

It depends entirely on the organism and the region. Escherichia coli K-12 sits near 50.8 %, the human genome near 41 %, Plasmodium falciparum near 19 %, and many Streptomyces species above 70 %. Within a genome, coding sequence, isochores, and repeats can each differ by several points, so compare like with like.

05 · Related
File formats
Scientific notes
  1. Cornish-Bowden, A. (1985). Nomenclature for incompletely specified bases in nucleic acid sequences. Nucleic Acids Research 13(9), 3021–3030. — the IUPAC ambiguity codes recognized here.
  2. SantaLucia, J. (1998). A unified view of polymer, dumbbell, and oligonucleotide DNA nearest-neighbor thermodynamics. PNAS 95(4), 1460–1465. — why GC content alone is a rough proxy for melting temperature.
  3. NCBI. FASTA format description, BLAST user documentation. — the header and sequence-line conventions this parser follows.