Skip to content
The Calculatorz
Molecular biology

Primer Melting Temperature (Tm) Calculator

Estimate a DNA primer's melting temperature, length and GC content, with a suggested annealing temperature.

Results are calculation aids for study and laboratory planning. Follow your protocol, kit instructions and supervisor's guidance, and verify critical values independently.

Primer sequence

Primer

How to use this calculator

Paste a DNA primer sequence using the letters A, C, G and T. Spaces, numbers and line breaks are ignored. The calculator reports the length, GC content and two basic melting-temperature estimates: the Wallace rule, used for short oligonucleotides under 14 bases, and the GC-content formula used for longer primers. Primer pairs should have similar Tm values, ideally within about 5 °C.

Formula

Wallace rule: Tm = 2 °C × (A + T) + 4 °C × (G + C). GC-content formula (14 bases or more): Tm = 64.9 + 41 × (G + C − 16.4) ÷ N, where N is the length. GC content = (G + C) ÷ N × 100. A common starting annealing temperature is about 5 °C below the lower primer Tm.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewJanBioinformatics Graduate, Genomic Data Analyst

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

Which Tm formula should I use?

Use the Wallace rule for short oligos under 14 bases and the GC-content formula for longer primers. For the most accurate results, use a nearest-neighbour calculator that accounts for salt and primer concentration, such as those provided by polymerase suppliers.

What is a good GC content for a primer?

About 40–60% is commonly recommended, with a G or C at the 3′ end to help binding, but avoid runs of several G or C bases.

What length should primers be?

Most PCR primers are 18–25 bases long, which balances specificity with efficient binding.

Why do different tools give different Tm values?

They use different models and assume different salt, magnesium and primer concentrations. Compare primers using the same tool.

Is annealing temperature the same as Tm?

No. Annealing is usually set a few degrees below Tm and then optimised, for example with a gradient PCR. Some high-fidelity polymerases recommend higher annealing temperatures.

Does the calculator handle degenerate bases or RNA?

No. It accepts only A, C, G and T. Degenerate bases and RNA sequences need specialised calculators.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Wallace, R. B., Shaffer, J., Murphy, R. F., Bonner, J., Hirose, T., & Itakura, K. (1979). Hybridization of synthetic oligodeoxyribonucleotides to ΦX174 DNA: The effect of single base pair mismatch. Nucleic Acids Research, 6(11), 3543–3557. View source
  2. Kibbe, W. A. (2007). OligoCalc: An online oligonucleotide properties calculator. Nucleic Acids Research, 35(Web Server issue), W43–W46. View source
  3. Bustin, S. A., et al. (2009). The MIQE guidelines: Minimum information for publication of quantitative real-time PCR experiments. Clinical Chemistry, 55(4), 611–622. View source
  4. Clark, M. A., Douglas, M., & Choi, J. (2018). Biology 2e. OpenStax. View source
  5. Parker, N., Schneegurt, M., Thi Tu, A.-H., Lister, P., & Forster, B. M. (2016). Microbiology. OpenStax. View source