Home › Text Tools › GC Content Calculator

GC Content Calculator

Paste a DNA or RNA sequence, or a multi-record FASTA file, to get its GC and AT percentage, exact base counts, GC skew and GC at each codon position. A sliding-window plot shows where GC-rich and AT-rich regions are.

Last updated:

Results update as you type. Spaces, numbers and FASTA headers are ignored.

Base composition

GC by codon position

Reading frame +1 from the first base. GC3 is often used to compare codon usage between genes.

Sliding-window GC content

GC skew (G − C) / (G + C)

Window skewCumulative G − C (right axis)
Advertisement
Advertisement

How to use the GC Content Calculator

  1. Paste your sequence. Plain text, GenBank-style numbered lines and FASTA (one or many records) all work; spaces and digits are ignored.
  2. Read the summary cards for GC %, AT %, length and skew. Base counts and codon-position GC appear below.
  3. Set the window and step for the sliding-window plot. Smaller windows show local detail; larger windows smooth out noise.
  4. Hover or tap the charts to read the GC % and skew of any window.
  5. Pick another record from the list or the summary table if you pasted a multi-FASTA file.
  6. Download the windows CSV or copy the summary for your notes.

GC content and GC skew formulas

GC content is the share of guanine and cytosine among the bases of a DNA or RNA sequence:

GC % = (G + C) / (A + T + G + C) × 100  and  AT % = (A + T) / (A + T + G + C) × 100

For RNA, U takes the place of T. Because G pairs with C through three hydrogen bonds and A with T through two, GC-rich DNA is more stable, melts at a higher temperature and can be harder to amplify by PCR or to sequence evenly.

GC skew compares the two bases on one strand: (G − C) / (G + C). It ranges from −1 (only C) to +1 (only G). The tool also draws the running total of G − C from the first base. In many bacterial chromosomes the leading strand is G-rich, so this cumulative curve reaches its lowest point near the origin of replication and its highest near the terminus.

Worked example

For the 20-base sequence ATGGCGTACGCTAGCTTAGC: A = 4, T = 5, G = 6, C = 5. GC = 11 of 20 bases, so GC content = 55.00% and AT content = 45.00%. GC skew = (6 − 5) / (6 + 5) = +0.0909, and AT skew = (4 − 5) / (4 + 5) = −0.1111.

Typical GC content ranges

Sequence typeApproximate GC contentNotes
Human genome (whole)about 41%Varies by region; gene-dense regions are GC-richer
CpG islandsover 50% (often 60–70%)Usually defined over windows of 200 bp or more with high CpG ratio
Escherichia coli K-12about 51%Close to balanced
Plasmodium falciparumabout 19%One of the most AT-rich genomes known
Streptomyces speciesabout 70–72%Very GC-rich soil bacteria
PCR primers40–60% recommendedHelps keep Tm in a useful range and avoids non-specific binding

Tips

  • Primers: aim for 40–60% GC with a G or C in the last one or two bases (a "GC clamp"), then check the melting temperature with the Primer Tm Calculator.
  • Finding genes: coding regions often have a different GC content (especially GC3) than the surrounding DNA. Combine the window plot with the ORF Finder.
  • Strand matters for skew, not for GC %: the reverse complement has exactly the same GC content but the opposite GC skew.
  • Noisy plot? Increase the window size. A spiky plot with tiny windows is normal because a few bases change the percentage a lot.

Frequently asked questions

How is GC content calculated?

GC content = (G + C) / (A + T + G + C) × 100. For example ATGCGC has 4 G or C bases out of 6, so its GC content is 66.67%. AT content is simply 100% minus the GC content when only A, T, G and C are present.

How are N and other ambiguous bases handled?

By default they are left out of the denominator, so a run of N in an unfinished assembly does not drag the GC % down. S (G or C) is counted as GC and W (A or T) as AT because their class is known. You can switch either behaviour off in the options.

What is GC skew?

GC skew = (G − C) / (G + C), measured in a window. It is positive where G outnumbers C on the strand you pasted. In many bacteria the skew changes sign at the origin and terminus of replication, so the minimum and maximum of the cumulative G − C curve are used to estimate where they are.

What window size should I use?

For genes and plasmids of a few kilobases, a window of 50 to 200 bp with a step of 10 to 25 bp works well. For whole bacterial genomes use windows of 1,000 to 10,000 bp. The window must be shorter than the sequence; if it isn't, the tool shows one window covering everything.

What are GC1, GC2 and GC3?

They are the GC content at the first, second and third position of each codon, counted in reading frame +1 from the first base. GC3 varies the most between genes and species because many third-position changes do not change the amino acid, so it is a common measure of codon usage bias.

Why does GC content matter?

GC pairs form three hydrogen bonds versus two for AT, so GC-rich DNA has a higher melting temperature. GC content affects PCR primer design, sequencing coverage, and is a classic trait used to compare genomes, which range from under 25% to over 70% GC.

Is my sequence uploaded?

No. All counting and plotting happens in your browser, so unpublished sequences never leave your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Primer Tm CalculatorPrimer melting temperature by basic, salt-adjusted and nearest-neighbor methods, plus Ta.DNA Reverse ComplementGet the reverse, complement or reverse complement of DNA/RNA, FASTA and IUPAC codes supported.DNA to Protein TranslatorTranslate DNA or RNA into protein in all six reading frames with stop codons highlighted.ORF FinderFind open reading frames in all 6 frames of a DNA sequence, with positions, lengths and protein translations.Word CounterCount words and characters and clean up text.Character CounterCount characters with and without spaces, words, lines and bytes, with live limit bars.Grammar CheckerCheck grammar, spelling and punctuation with clickable suggestions and one-click fixes.Word Count to PagesHow many pages is 1,000 words? Estimate pages by font, size, spacing and margins.X Post Character CounterCount X (Twitter) post characters and split long text into a thread.YouTube Title Length CheckerCheck YouTube title length, preview truncation and score it for clicks.Text CompareFind the differences between two texts.Word Frequency CounterFind the most used words and phrases in any text and turn them into a word cloud.Sentence CounterCount sentences and paragraphs, see average sentence length and spot long sentences.Readability CheckerScore your text with Flesch, Flesch-Kincaid, Gunning Fog, SMOG and more readability tests.Keyword Density CheckerFind the most used 1, 2 and 3-word phrases in your text and their keyword density %.Reading Time CalculatorEstimate how long a text takes to read or speak at any speed, and copy a “5 min read” badge.Palindrome CheckerCheck if a word, sentence or number is a palindrome and find the longest palindrome in text.Syllable CounterCount syllables per word, line and total, and check haiku 5-7-5 instantly.Text SummarizerSummarize long text into its key sentences and keywords, privately in your browser.Spell CheckerCheck spelling online: misspelled words are highlighted with suggestions you can click to fix.DictionaryLook up English word definitions with pronunciation audio, examples, synonyms and antonyms.Letter Frequency CounterCount how often each letter appears, compare with English frequencies and see top bigrams.Antonym FinderFind opposites of any word: direct antonyms, near antonyms and definitions, click to copy.British to American Spelling ConverterConvert UK spelling to US spelling and back (colour/color, organise/organize) with highlights.Homophone FinderLook up homophones like there/their/they're with definitions and examples from 400+ sets.N-Gram GeneratorGenerate word or character n-grams (1-5) with frequency counts, stopword filter and CSV export.Passive Voice CheckerHighlight passive voice in your writing, see the passive sentence %, and get active rewrites.Periodic Table Word SpellerSpell words and names with chemical element symbols and download them as element tiles.Related Words FinderFind words related to any word or topic: associations, describing adjectives and more.Synonym FinderFind synonyms grouped by relevance, filter by syllables or first letter and click to copy.Text Similarity CheckerCompare two texts for similarity with cosine, Jaccard and Levenshtein scores and shared phrases.Words That Start With FinderFind words that start with, end with or contain any letters, filtered by length.AI Token CounterCount GPT tokens in any text, see every token highlighted and estimate the API input cost.Elevator Pitch GeneratorBuild 10, 30 and 60-second elevator pitches with word counts and speaking time.Abbreviation FinderLook up what common abbreviations and acronyms stand for, or find the abbreviation for a phrase.Describing Words FinderEnter a noun and get adjectives that commonly describe it, sorted by how often they are used.Keyword ExtractorPull the top keywords and key phrases from any text with RAKE or TF-IDF scores.Line CounterCount total, non-empty, blank and unique lines in text or a .txt file, with line length stats.Podcast Intro Script GeneratorWrite podcast intro and outro scripts in five tones, with sponsor, call to action and read time.Restriction Enzyme FinderFind cut sites for 180+ restriction enzymes in DNA, with fragment sizes, a site map and a virtual gel.SAT Vocabulary Flashcards363 high-frequency SAT words with definitions and examples: flip cards, quizzes and saved progress.Text HighlighterHighlight chosen words and phrases in several colors, count each one and copy the colored text.Paragraph CounterCount paragraphs in any text, with words and sentences per paragraph and the longest and shortest.Resume Keyword ScannerCompare your resume to a job description: match score, missing skills and keyword counts.Scrabble Word CheckerCheck if a word is playable, see its Scrabble score, hooks, anagrams and two-letter word meanings.Sentiment AnalyzerScore the sentiment of reviews and messages per sentence, with positive and negative words.SMS Character CounterCount SMS characters and segments, detect GSM-7 vs Unicode and find the characters that cost extra.Social Media Character CounterCheck one post against X, Instagram, TikTok, LinkedIn, YouTube and more limits at once.Spelling Bee SolverEnter the 7 honeycomb letters to get every word, pangrams highlighted, points and a hint grid.Spelling PracticeType your weekly spelling words, hear each one read aloud, spell it and retry the misses.Spelling Test GeneratorTurn a word list into a spoken, auto-graded spelling test or a printable test with answer key.Transition Words FinderFind transition words by category with examples, and check the transitions in your essay.Writing Style AnalyzerHighlight hard sentences, adverbs, passive voice and complex words, with a grade level.Food Allergen CheckerPaste an ingredient list to highlight the 9 major food allergens and their hidden names.Google Ads Character CounterWrite responsive search ads with live 30/90/15 counters, pins, keyword insertion checks and a preview.
See all 53 Text Counters & Analyzers →