Skip to content

Primer Melting Temperature Calculator

The Wallace rule stops working above about 14 bases.

Work out Primer Melting Temperature. The Wallace rule stops working above about 14 bases. States the assumption instead of hiding it.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these

A, T, G and C only

M

Standard PCR buffer is about 0.05 M

Melting temperature, GC method

51.8 °C

20 bases, 50% GC

Length20 bases
GC content10 of 20 (50%)
GC method — 64.9 + 41(G+C−16.4)/N51.8 °C
Salt-adjusted for sodium50.4 °C

All three are approximations to nearest-neighbour thermodynamics, which is what a real primer design tool uses. The Wallace rule holds only below about 14 bases and ignores salt entirely. Annealing temperature is conventionally set a few degrees below the lower Tm of the primer pair.

How the Primer Melting Temperature Calculator works

Melting temperature for a DNA primer by the Wallace rule, the GC method and a salt-adjusted form, with each shown only in the length range it is valid for. All three approximate nearest-neighbour thermodynamics, and knowing which is being quoted matters more than the decimal places.

Also known as: primer tm calculator · what annealing temperature should i use · dna melting temperature from sequence · oligo melting point calculator

Three formulas, three ranges of validity

The Wallace rule — 2(A+T) + 4(G+C) — is arithmetic you can do in your head, and it holds reasonably for oligonucleotides under about 14 bases. It assigns a fixed contribution per base and ignores everything else, including salt, sequence order and concentration.

The GC method, 64.9 + 41 × (G + C − 16.4)/N, accounts for length properly and covers roughly 14 to 70 bases. It still treats the sequence as a bag of bases rather than a chain, so two primers with identical composition and different order get identical answers when in reality they differ by a degree or two.

The salt-adjusted form adds a term in log[Na⁺], correcting for the ionic strength both other methods ignore. That correction is not small — moving from 0.01 M to 0.1 M sodium shifts Tm by roughly 16 °C, which is more than most people expect from a buffer component they never think about.

Why GC content raises the melting temperature

The usual explanation is hydrogen bonds: G–C pairs have three, A–T pairs have two, so GC-rich duplexes hold together harder. That is true and it is not the whole story.

Base stacking contributes at least as much. The flat aromatic faces stack along the helix axis, and the stacking energy depends on which bases are adjacent — a GC step is more stabilising than a CG step even though both are one G and one C. This is exactly what nearest-neighbour models capture and what composition-only formulas cannot.

The practical consequence is that two primers of identical length and GC content can differ by a degree or two in real melting temperature purely from sequence order. For most PCR that is within tolerance; for multiplex reactions where several primer pairs must anneal at one temperature it is not.

From Tm to an annealing temperature

Annealing temperature is conventionally set about 5 °C below the lower Tm of the primer pair. Too high and neither primer binds well, so yield collapses. Too low and primers bind to partially matched sites, producing spurious products that then amplify alongside the real one.

Matching the pair matters more than either individual value. Primers whose Tm values differ by more than about 5 °C cannot both work well at one annealing temperature — one is always compromised — so redesigning to bring them together beats tuning the thermal cycler.

A gradient PCR settles it empirically: run the same reaction across a row of annealing temperatures and pick the one giving the cleanest product. Any calculated Tm, including a nearest-neighbour one, is a starting point for that experiment rather than a substitute for it.

Where to go next

The Primer Melting Temperature question rarely arrives on its own. These are the ones that usually come with it:

Frequently asked questions

What is the melting temperature of a primer?

The temperature at which half the primer is bound to its template and half is free. Annealing temperature is conventionally set a few degrees below it.

What is the Wallace rule?

Tm = 2(A+T) + 4(G+C) in degrees Celsius. It is quick and holds reasonably below about 14 bases, but it ignores salt concentration entirely and drifts badly on longer sequences.

Why does GC content raise the melting temperature?

A G–C pair is held by three hydrogen bonds against two for A–T, and GC-rich stacking is more favourable. More energy is needed to separate the strands.

Does salt concentration matter?

Considerably. Sodium ions screen the negative charge on the phosphate backbone, so the strands repel each other less and the duplex is more stable. Raising sodium raises Tm, which the Wallace rule and the basic GC formula both ignore.

What annealing temperature should I use?

Usually about 5 °C below the lower of the two primer Tm values. Too high and the primers do not bind; too low and they bind to unintended sites, giving spurious products.

Which method is most accurate?

None of these three. Nearest-neighbour thermodynamics, which accounts for each adjacent base pair rather than just base composition, is what a real design tool uses — these approximations are for sanity checks and quick comparisons.

What is the nearest-neighbour method?

It sums thermodynamic parameters for each adjacent base pair in the sequence rather than just counting bases, then computes Tm from the resulting ΔH and ΔS along with primer and salt concentrations. It is what commercial design tools use and what all three formulas here approximate.

Does primer concentration affect Tm?

Yes — duplex formation is a bimolecular reaction, so higher primer concentration favours the bound state and raises Tm. None of the three formulas here includes it; nearest-neighbour calculations do.

Does magnesium matter as much as sodium?

More, per mole. Mg²⁺ carries twice the charge and screens the phosphate backbone far more efficiently, so PCR buffers at 1.5 to 2 mM Mg²⁺ contribute meaningfully to duplex stability despite the low concentration.

What makes a good primer besides Tm?

18 to 25 bases, 40 to 60% GC, a G or C at the 3′ end to anchor extension, no runs of four or more identical bases, no self-complementarity that would form hairpins, and no complementarity between the pair that would give primer dimers.

Why do my two primers need matched Tm values?

Because both anneal at the same temperature in the same tube. A pair differing by more than about 5 °C cannot both work well — one binds poorly or the other binds non-specifically — so redesigning to match them beats adjusting the cycler.

Does RNA have the same melting behaviour?

No. RNA duplexes are generally more stable than DNA of the same sequence, and RNA–DNA hybrids are different again. Each needs its own set of nearest-neighbour parameters, so a DNA formula applied to RNA gives a systematically wrong answer.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/primer-melting-temperature-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Primer Melting Temperature Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/primer-melting-temperature-calculator" style="color:#64748b">Primer Melting Temperature Calculator</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators