PCR Annealing Temperature Calculator
Calculate optimal PCR annealing temperature from primer Tm values.
Uses the Wallace rule and a salt-adjusted formula for specific, efficient amplification.
What Is the Annealing Temperature? The annealing temperature (Ta) is the temperature at which primers bind specifically to the template DNA during PCR. It must be high enough to prevent non-specific binding but low enough to allow efficient primer hybridization. Too high → no product. Too low → multiple non-specific bands.
Melting Temperature (Tm) Methods The Tm is the temperature at which half the primer-template duplexes are dissociated.
Wallace Rule (for short primers, up to about 20 bases): Tm = 2°C × (A + T) + 4°C × (G + C) Simple but it drifts high for longer primers. Works well for 15 to 20 bp primers, which is most of what goes into a routine PCR.
Salt-adjusted formula (for longer duplexes): Tm = 81.5 + 16.6 × log₁₀[Na⁺] + 0.41 × (%GC) − 675/N Where N = primer length and [Na⁺] = salt concentration in molar.
This formula is often misapplied, and it matters here. It was derived for long duplexes, and the −675/N term is what breaks it on short ones. At N = 19 that single term subtracts 35.5°C; at N = 200 it subtracts only 3.4. Feed it a normal 20-mer primer and it returns a Tm ten to fifteen degrees below what the primer really melts at, which would send you into the thermocycler with an annealing temperature far too low and a gel full of non-specific bands.
So this calculator picks the method by primer length, rather than treating one as universally “more accurate”:
- 20 bases or fewer: Wallace, which is what the rule was built for.
- 21 bases or more: the salt-adjusted formula, which is where it starts behaving.
Both numbers are always shown, so you can see the gap for yourself.
Nearest-Neighbor Thermodynamics (most accurate): This method accounts for stacking interactions between adjacent base pairs. The Tm is calculated from ΔH° and ΔS° values for each dinucleotide pair. Tools like Primer3 use this approach, and it is worth reaching for when a primer pair is giving trouble that the simpler formulas cannot explain.
Calculating the Optimal Annealing Temperature Once you have the Tm of both primers, the annealing temperature is set 5°C below the lower Tm: Ta = Tm(lower) − 5°C For a well-designed pair, Ta usually falls between 50°C and 65°C. If this page hands you something well outside that window, the primers are the problem, not the arithmetic: too short, too AT-rich, or badly mismatched to each other. Gradient PCR is often used to empirically find the best Ta in the range Tm − 10°C to Tm − 2°C.
GC Content and Tm GC base pairs have three hydrogen bonds; AT pairs have only two. Higher GC content → higher Tm → higher annealing temperature → more specific PCR. Primers should ideally have 40 to 60% GC content. GC clamps (G or C at the 3’ end) improve binding stability and specificity.
Salt Concentration Effect Higher salt (Mg²⁺, Na⁺) stabilizes the duplex, raising the Tm by 0.5 to 1°C per mM Mg²⁺. Standard PCR uses 1.5 to 2.5 mM MgCl₂. Higher Mg²⁺ can reduce specificity by stabilizing mismatches.
Primer Design Guidelines Optimal primer length: 18 to 22 bases. Length beyond 30 bases rarely improves specificity. Tm difference between forward and reverse primer: ideally less than 5°C. Avoid runs of four or more identical bases, such as GGGG. They cause polymerase slippage. Avoid 3’-end complementarity between primers to prevent primer dimers. A G or C at the 3’ end (a GC clamp) anchors the extending end where it matters most.
Worked example
The two placeholder sequences on this page are both 19 bases.
Forward, ATGCTAGCTATGCTAGCTA: 8 of 19 bases are G or C, so 42.1% GC.
Wallace Tm = 2 × 11 + 4 × 8 = 22 + 32 = 54.0°C
Reverse, GCATCGATCGATCGATCGA: 10 of 19 are G or C, so 52.6% GC.
Wallace Tm = 2 × 9 + 4 × 10 = 18 + 40 = 58.0°C
Both are 20 bases or shorter, so the recommendation comes off Wallace. The lower of the two is 54.0, giving Ta = 54.0 − 5 = 49.0°C, with a gradient range of 44.0 to 52.0°C.
Run the same two primers through the salt-adjusted formula and you get 41.6 and 46.0°C, which would have recommended 36.6°C. That is 12.4 degrees adrift, and at 36.6°C those primers would bind more or less anywhere on the template.
The 4°C spread between the two primers is inside the 5°C guideline, so this pair is usable as designed. The forward primer at 42% GC is on the low side, though, and if the reaction misbehaves that is the one to lengthen first.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.