BenchMathLab calculators for molecular biology

How to calculate primer Tm and annealing temperature

Updated October 30, 2026

Skip the maths: use the Primer Tm & GC calculatorOpen calculator →

The melting temperature (Tm) of a primer is the temperature at which half of the primer–template duplexes have separated. It sets the annealing temperature of your PCR, so a good estimate saves a lot of optimisation.

Three ways to estimate Tm

Example

For the 24-mer AGCGGATAACAATTTCACACAGGA (10 G/C, 41.7% GC):

The spread shows why the method matters. Differences of several degrees are normal between tools and buffers.

Choosing the annealing temperature

Primer design checklist

Skip the maths: use the Primer Tm & GC calculatorOpen calculator →

Frequently asked questions

Why do different Tm calculators give different results?

They use different formulas and assume different salt, Mg²⁺ and primer concentrations. Compare tools using the same conditions, and use the polymerase vendor's calculator for their buffer.

Does Mg²⁺ change the Tm?

Yes. Mg²⁺ stabilises DNA duplexes and raises Tm. BenchMath's calculator corrects for Na⁺ only, so in Mg²⁺-containing PCR buffers the real Tm is usually a few degrees higher.

What annealing temperature should I start with?

About 3–5 °C below the lower primer Tm, then optimise with a gradient PCR if needed.