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
| Base | Count |
|---|---|
| A | 9 |
| T | 8 |
| G | 14 |
| C | 8 |
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
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.