Numerator, denominator and percentage
Base counts are nonnegative integers. fGC is a fraction 0…1, while GC% ranges from 0 to 100. In RNA, U replaces T.[1]
Count positions within a specified sequence window. Letter case does not change base identity. Spaces and FASTA headers are not bases. This calculator takes the four canonical counts; it does not claim to perform complete quality control on arbitrary raw files. A single DNA strand need not satisfy A=T or G=C. Corresponding pair relations hold for an entire perfectly complementary double strand.
Unknown bases and weighted windows
N is an unknown base, not automatically A or T. Excluding unknown positions makes the fraction describe only the known canonical positions. Report their coverage of all considered positions too. Other software may weight ambiguous IUPAC symbols or include them in the denominator. Biopython documents several policies; its default is not identical to every strict ACGT-only filter.[1]
When combining nonoverlapping windows, weight by their evaluated lengths. Equal denominators guarantee agreement with an unweighted mean for any percentages; unequal denominators generally require weighting.
GC skew instead compares G with C and is a different ratio. Equal GC content means neither identical sequences nor identical gene function. Melting temperature additionally depends on neighbouring bases, length and solution conditions.[2]
Count a sequence and expose ambiguity
Twenty known bases
- Given
- The teaching sequence is AAAAAATTTTGGGGGCCCCC.
- Find
- Count every base and determine GC content.
The four blocks contain 6 A,4 T,5 G and 5 C.
Divide numerator by denominator and convert to percent.
Result: GC content is 50%, with 100% canonical coverage.
Check: AT also contains 10 positions. GC+AT restores 20 with no duplicate or omitted positions.
Handle four unknown positions explicitly
- Given
- A 16-position window contains A 3,T 3,G 4,C 2 and N 4.
- Find
- Find canonical GC content and possible bounds for the whole window.
Only the 12 known ACGT positions enter this stated denominator.
The unresolved full sequence may contain zero through four additional GC positions.
Result: The known bases have 50% GC at 75% coverage; full-sequence GC is bounded only between 37.5% and 62.5%.
Check: Treating N as definitely AT would report only the lower bound while hiding an unsupported assumption.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Practise sequence fractions and references
Calculate · Foundation
Given A 20,T 30,G 35,C 15, find GC%.
Show hint
Include all four counts in the denominator.
Learning goal: Use the full denominator.
Show solution and calculation
N=100 and G+C=50, giving 50%.
Dividing only by G+C would wrongly produce 100% every time.
Rearrange · Application
A canonical 150-base sequence has 60% GC and nG=55. Find nC.
Show hint
First recover the GC count from fraction and length.
Learning goal: Recover discrete base counts from fractions.
Show solution and calculation
G+C=0.60·150=90, so C=90−55=35.
The remaining A+T count is 60.
Interpret · Application
Does reverse-complementing a canonical DNA sequence change GC content?
Show hint
Complementing swaps G with C and A with T.
Learning goal: Derive an invariant from the definition.
Show solution and calculation
No.
G+C and total length remain unchanged, and reversal does not alter counts.
This does not mean individual bases or GC skew stay the same.
Error analysis · Foundation
A file contains only NNNN. Should a canonical-base calculator report 0% GC?
Show hint
Check the number of known bases.
Learning goal: Do not turn missing information into an observed zero.
Show solution and calculation
No.
The canonical denominator is 0, so the fraction is undefined.0% would claim known bases are exclusively AT, which is not established.
Transfer · Challenge
Window 1 has 100 known bases at 60% GC; window 2 has 900 at 40%. Find their combined fraction.
Show hint
Weight by denominator size, not by the number of windows.
Learning goal: Aggregate fractions with the correct weights.
Show solution and calculation
GC counts 60 and 360 give 420 among 1000 bases, hence 42%.
The unweighted average 50% is wrong.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Composition is not a complete sequence assessment
Comparisons require matching counting policies, windows, masking and coverage. Short sequences have coarse discrete resolution: at length 20, changing one base alters GC by 5 percentage points. More decimal places do not create additional sequence information. Function, homology and primer quality require further analyses.[1]
Sources for this explanation
Quanta · Updated November 8, 2026
- Biopython Bio.SeqUtils API documentation: gc_fraction and ambiguous-base policies
- Biopython Bio.SeqUtils.MeltingTemp API: nearest-neighbour parameters, salt, concentration and mismatches
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a DE/EN article with a canonical denominator, coverage policy, sequence examples and exercises.
Cite this reference page
Quanta. GC content of a sequence. Updated November 8, 2026. https://quanta-study.de/en/formula-sheet/gc-gehalt-sequenz
When citing a specific scientific statement, also cite the specialist source linked to that statement.