DNA Melting Temperature Calculator
Find the melting temperature of a DNA primer with the Wallace rule or the GC formula, and see the GC content and annealing point.
What it does
The melting temperature of a DNA primer is the point at which half of the double helix falls apart into single strands. Every primer design starts with that number, because the annealing step of a PCR run has to sit just below it or the primer will not bind. The training material for DNA amplification from the National Institute of Justice puts the useful band at 52 to 58 degrees C for the melting temperature of a working primer, and warns that a primer with a melting temperature above 65 degrees C tends to stick to itself.
The oldest shortcut is the Wallace rule, and it is still the one most people quote. Every A and T pair adds 2 degrees C and every G and C pair adds 4 degrees C, because a G and C base pair stacks three hydrogen bonds where an A and T pair stacks two. The method needs nothing but the sequence, which is why it stays popular for quick checks and for teaching.
Longer primers need more heat to come apart, and GC rich primers need more heat than AT rich primers of the same length, so the formula was later rewritten to say that directly. The version from Marmur and Doty, published in 1962 in the Journal of Molecular Biology, reads the melting temperature off the percentage of GC bases and the length of the strand, and a salt corrected version adds the contribution of the ions in the buffer. Both are documented in the Biopython melting temperature module, which is the reference implementation many labs compare their own numbers against.
This page runs all three versions on the same sequence so the differences are visible rather than hidden. The Wallace rule gives the quick classroom answer. The GC formula gives a better estimate for a real primer, and the salt corrected version moves the number again when you tell it how much salt sits in the tube. Every primer also comes with a suggested annealing temperature five degrees below the melting point.
None of these formulas is exact. They are estimates that ignore the order of the bases, the stacking energy of neighbouring pairs, the concentration of the strands and the divalent ions in the mix. Programs such as Primer3 work from nearest neighbour thermodynamics instead and are what most laboratories design primers with. The value of this page is that it shows the classic numbers and the reasoning behind them, and it is fast enough to use while sketching a set of primers.
How to use
- Pick the temperature scale you want to read the answer in.
- Choose the formula: the Wallace rule for a quick check, the GC formula for a better estimate, or the salt corrected version when you know the buffer.
- Paste or type the primer sequence using the letters A, C, G, T and U. Spaces are ignored and lowercase letters are accepted.
- If you chose the salt corrected formula, enter the monovalent salt concentration in millimolar, usually 50 mM for a standard PCR buffer.
- Read the melting temperature, then set the PCR annealing temperature about 5 degrees below it.
- Check the GC content as well. A primer near 50 % GC is usually the easiest one to design, and a very long or very short primer will melt outside the useful band.
Formula
- Tm
- Melting temperature of the duplex in degrees C.
- A, T, G, C
- Counts of each base in the sequence.
- %GC
- Share of the bases that are G or C, from 0 to 100.
- N
- Length of the sequence in bases.
- [Na+]
- Monovalent salt concentration in moles per litre, so 50 mM is 0.05.
The salt term is the Schildkraut and Lifson correction, so it is the molar concentration that goes into the logarithm, not the millimolar one. All three formulas ignore base order, which matters: two primers with the same length and the same GC content can differ by several degrees in real melting point. A U in the sequence is counted as a T, since the two bases pair with the same strength.
Worked example
Example: a 20 base primer at 55 % GC
Defaults: Celsius, the Wallace rule, and the sequence ATGCCAGTGCCAAGGTGCAA.
- Count the bases: 6 A, 3 T, 6 G and 5 C, so the primer is 20 bases long.
- Count G and C together: 6 + 5 = 11, which gives a GC content of 11 / 20 = 55.0 %.
- Wallace rule: Tm = 2 x (6 + 3) + 4 x (6 + 5) = 18 + 44 = 62.0 °C.
- The GC formula gives 69.3 + 0.41 x 55.0 - 650 / 20 = 59.3 °C for the same primer.
- The salt corrected version at 50 mM sodium gives 81.5 + 0.41 x 55.0 - 675 / 20 + 16.6 x log10(0.05) = 48.7 °C.
- An annealing temperature about 5 degrees below the Wallace value gives 57.0 °C.
- The tool shows 62.0 °C, 55.0 %, 20 bases and an annealing temperature of 57.0 °C.
Reference table
| GC content | G or C bases in 20 | Wallace rule | GC formula |
|---|---|---|---|
| 0 % | 0 | 40.0 degrees C | 36.8 degrees C |
| 20 % | 4 | 48.0 degrees C | 45.0 degrees C |
| 40 % | 8 | 56.0 degrees C | 53.2 degrees C |
| 60 % | 12 | 64.0 degrees C | 61.4 degrees C |
| 80 % | 16 | 72.0 degrees C | 69.6 degrees C |
| 100 % | 20 | 80.0 degrees C | 77.8 degrees C |
Limits
- The formulas ignore the order of the bases, so two primers with the same length and GC content can melt several degrees apart in the tube.
- No nearest neighbour term is used, so hairpins, self complementary stretches and primer dimers are not detected.
- Only monovalent salt is handled. Magnesium and other divalent ions raise the melting point, and the salt corrected formula here does not model them.
- The numbers are estimates for primer design, not a substitute for running the primer on the real template.
Common mistakes
- Putting the salt concentration in millimolar into the logarithm. The correction needs the molar value, so 50 mM has to be written as 0.05.
- Using the Wallace rule on a long probe and expecting the same answer as the GC formula. The two rules were never meant to agree for long strands.
- Reading the annealing temperature as the melting temperature. Annealing runs cooler, usually 3 to 5 degrees below, or the primer will not pair with the template in time.
- Forgetting that every C and G adds 2 degrees C more than every A and T, so swapping a single base can move the melting point by 2 degrees.
- Choosing a primer with a very high GC content and expecting it to be specific. GC rich primers bind well but also stick to each other.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the melting temperature of the primer ATGCCAGTGCCAAGGTGCAA by the Wallace rule?
62.0 °C. The primer holds 6 A, 3 T, 6 G and 5 C bases, so Tm = 2 x (6 + 3) + 4 x (6 + 5) = 18 + 44 = 62.0 °C.
What is the GC content of that same primer?
55.0 %. Eleven of the twenty bases are G or C, so 11 divided by 20 gives 55.0 %.
A 25 base primer is 40 % GC. What does the GC formula give?
59.7 degrees C. Tm = 69.3 + 0.41 x 40 - 650 / 25 = 69.3 + 16.4 - 26 = 59.7 degrees C.
Questions
What is the melting temperature of a primer?
The temperature at which half of the double stranded DNA has separated into single strands. Below it the two strands stay paired, above it they fall apart.
Which formula should I use?
The Wallace rule for a fast check on a short primer, the GC content formula for a better estimate on a real primer, and the salt corrected version when you know what is in the buffer. For final design, use a nearest neighbour program.
What annealing temperature should I set?
About 5 degrees below the melting temperature, which for the worked example is 57.0 degrees C. The training guidance for DNA amplification puts useful primer melting temperatures between 52 and 58 degrees C.
Why does more GC raise the melting temperature?
A G and C base pair stacks three hydrogen bonds while an A and T pair stacks two, and the base stacking also holds the strands together. Both effects need more heat to break.
Does the salt in the buffer matter?
Yes. Salt ions shield the negative charges on the phosphate backbone, so a low salt buffer melts at a lower temperature. Moving from 1 M down to 0.05 M sodium costs about 21 degrees C by the Schildkraut and Lifson correction.
How close are these numbers to the real melting point?
The classic rules are close, usually within a few degrees for a well behaved primer under standard salt conditions. They ignore base order, so nearest neighbour software is more accurate for anything that will be ordered.
Sources
- National Institute of Justice: DNA amplification, primer melting temperature
- Biopython documentation: Bio.SeqUtils.MeltingTemp, the Wallace rule and the GC formulas
- Marmur J and Doty P, Journal of Molecular Biology 1962: base composition from thermal denaturation temperature