Physics & Chemistry
Primer Melting Temperature (Tm) and GC Content Calculator
Primers are short single-stranded DNA sequences, usually 18 to 25 bases long, that bind to a template and give DNA polymerase a starting point in the polymerase chain reaction, sequencing and many other molecular biology techniques. One of the most important properties of a primer is its melting temperature, or Tm, the temperature at which half of the primer molecules are bound to their complementary sequence and half have separated. The Tm guides the choice of annealing temperature in PCR: if the annealing temperature is too high, primers do not bind and the reaction fails; if it is too low, primers bind to the wrong places and produce unwanted products. Guanine–cytosine pairs are held by three hydrogen bonds and adenine–thymine pairs by two, so primers with more G and C have higher melting temperatures. This calculator gives two classic estimates. For short oligonucleotides under 14 bases, it uses the Wallace rule, two degrees for each A or T plus four degrees for each G or C. For longer primers, it uses the basic formula Tm equals 64.9 plus 41 times the number of G and C bases minus 16.4, divided by the length. It also reports GC content, length and an approximate molecular weight for an unmodified oligonucleotide. A 20-base primer with 10 G and C bases has a GC content of 50 percent and an estimated Tm of about 51.8 degrees Celsius. These quick formulas ignore salt, magnesium and primer concentrations, which strongly affect real melting temperatures. Primer design software and suppliers' calculators use nearest-neighbour thermodynamics for more accurate values, so treat the results as a first check.
How to use this calculator
- Type or paste the primer sequence using A, C, G and T; spaces are ignored.
- Read the estimated melting temperature and the method used.
- Check the GC content, ideally about 40–60%.
- Compare the Tm of the forward and reverse primers; they should be within a few degrees.
- Set the PCR annealing temperature a few degrees below the lower Tm and optimise if needed.
Good primer design
Primers commonly have a length of 18 to 25 bases, GC content of about 40 to 60 percent and a G or C at the 3' end, called a GC clamp, which helps binding. Avoid runs of four or more of the same base, sequences that are complementary to themselves and could form hairpins, and complementarity between the forward and reverse primers, which can cause primer dimers.
Check primer specificity against the target genome or sequence database to ensure they bind only where intended. Free online tools from sequence databases and suppliers can do this automatically.
From Tm to annealing temperature
A common starting point is an annealing temperature about 3 to 5 degrees below the lower of the two primers' melting temperatures, then optimising with a temperature gradient if the PCR machine allows it. Some high-fidelity polymerases have their own recommended rules, so follow the enzyme manufacturer's guidance.
Buffer conditions shift real melting temperatures. Higher salt and magnesium concentrations stabilise binding and raise Tm, while additives such as DMSO lower it, which is why calculators that account for these conditions give more reliable values.
Formula & method
Wallace rule (under 14 bases): Tm = 2 × (A + T) + 4 × (G + C) °CBasic formula (14 bases or more): Tm = 64.9 + 41 × (G + C − 16.4) ÷ N °CGC content = (G + C) ÷ N × 100Annealing temperature is often set about 3–5 °C below the lower primer TmWallace (N < 14): Tm = 2(A + T) + 4(G + C). Basic (N ≥ 14): Tm = 64.9 + 41(G + C − 16.4)/N. GC% = (G + C)/N × 100. MW ≈ 313.21A + 304.2T + 289.18C + 329.21G − 61.96.
Worked example
A 20-base primer
- Sequence AGCTAGCTAGCTAGCTAGCT: A = 5, G = 5, C = 5, T = 5.
- Tm = 64.9 + 41 × (10 − 16.4) ÷ 20 = 51.78 °C.
- GC content = 10 ÷ 20 = 50%.
Answer: The primer's estimated Tm is about 51.8 °C.
Frequently asked questions
What is primer Tm?
The temperature at which half of the primer is bound to its complementary DNA.
What is the Wallace rule?
Tm = 2 °C per A or T plus 4 °C per G or C, used for short oligos.
What GC content should a primer have?
Usually about 40 to 60 percent.
How close should two primers' Tm be?
Ideally within about 2 to 5 °C of each other.
Why do online tools give different values?
They use nearest-neighbour models and specific salt and primer concentrations.
Can I enter RNA sequences?
This tool accepts DNA letters only; replace U with T for an estimate.