GC content calculator

This GC content calculator reports the percentage of G and C bases in a DNA or RNA sequence. Paste a sequence or a FASTA record to get the GC percent, the count of each base, AT content and GC skew, and for longer sequences a plot of GC content along the sequence.

Your sequence is read in your browser. Nothing you enter is sent or stored.

GC content calculatorOr describe it in Studio →

FASTA header lines, spaces, line breaks and numbers are ignored. The sequence stays in your browser.

GC content

56.4%

BaseCountShare
A923.1%
T820.5%
G1435.9%
C820.5%
Length
39 nt
AT content
43.6%
GC skew (G − C) ÷ (G + C)
0.273

To report

GC content 56.4% (39 nt; A 9, T 8, G 14, C 8)

Check your result: the four base counts should add up to the length when there are no N bases, 9 + 8 + 14 + 8 = 39 for the worked example, and GC% + AT% = 100 (56.4 + 43.6). The reverse complement must give the same GC% and the opposite skew.
GC in the 39-base worked example
56.4%
GC in the 39-base worked example
its GC skew
0.273
its GC skew
nucleotides before the GC profile is drawn
200
nucleotides before the GC profile is drawn
nucleotides per sequence
200,000
nucleotides per sequence
  • GC percent and base counts
  • AT content and GC skew
  • GC profile along the sequence
  • FASTA input, DNA or RNA
  • Runs in your browser, free

01

How GC content is calculated

GC content (%) = (G + C) ÷ (A + T + G + C) × 100

Only unambiguous bases are counted in the percentage. An N says nothing about composition, so it is listed separately and left out of the denominator; S (G or C) counts toward GC and W (A or T) toward AT.

02

Worked example

The calculator opens with this 39-nucleotide sequence:

ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG

BaseCount
A9
T8
G14
C8

GC content = (14 + 8) ÷ 39 × 100 = 56.4%

GC skew is (14 − 8) ÷ (14 + 8) = 0.273.

03

Why GC content matters

  • Melting temperature. G–C pairs have three hydrogen bonds and A–T pairs two, and GC-rich duplexes stack more strongly, so they melt at higher temperatures.
  • Primer design. Primers are usually designed with a GC content of roughly 40 to 60% and without long runs of a single base.
  • PCR and sequencing. Very GC-rich or very AT-rich regions amplify and sequence less evenly, which shows up as coverage bias.
  • Genome comparison. Average GC content differs widely between species and between regions of one genome.

04

The GC profile

For sequences of 200 nucleotides or more the calculator splits the sequence into consecutive windows and plots the GC percent of each. Peaks and dips show GC-rich and AT-rich stretches that a single average hides, for example a CpG island near a promoter.

05

GC skew

GC skew = (G − C) ÷ (G + C)

Skew measures the excess of G over C on the strand you entered. In many bacterial genomes its sign changes at the origin and terminus of replication. On the opposite strand the value has the opposite sign: check with the reverse complement tool.

06

Common mistakes with GC content

  • Counting N in the denominator. Ten N bases added to the worked example leave its GC content at 56.4%; dividing by all 49 characters would report 44.9%.
  • Expecting the same skew on both strands. GC% is identical on the reverse complement, but the skew flips sign: 0.273 on the strand you entered, −0.273 on the other.
  • Trusting one average for a long sequence. 100 G followed by 100 A is 50% GC overall, yet the profile’s 20-base windows run five at 100% and five at 0%. The profile shows what the average hides.

Trust

How this page is checked

  • The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
  • The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
  • Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.

Cite this page

Sciloom. (2026). GC content calculator. Zebra Nine Studio Inc. https://sciloom.si/gc-content-calculator

Read the full methodology · Who makes Sciloom

Frequently asked questions

How do I calculate GC content?

Count the G and C bases, divide by the total number of bases and multiply by 100. Paste the sequence above to have it counted.

What is a good GC content for primers?

Roughly 40 to 60% is the usual target, with the two primers of a pair similar to each other.

Does it work for RNA?

Yes. U is counted as the partner of A, and the table shows U instead of T for RNA sequences.

How are N bases handled?

They are counted separately and excluded from the percentage, so a sequence with many Ns is not reported as artificially AT- or GC-poor.

Need the other strand? The reverse complement tool is one click away.
Free to start, no sign-up.
Back to the tool ↑

More research tools