Annealing Temperature Calculator

Calculate primer melting temperature (Tm) and recommended PCR annealing temperature from your forward and reverse primer sequences.

Enter your forward primer sequence (and reverse primer, if you have one), and this calculator works out melting temperature (Tm) using either the Wallace rule or the salt-adjusted formula, plus a recommended starting annealing temperature for your PCR reaction.

Primer sequences PCR primer design
Only A, T, G, C are counted — spaces and other characters are ignored
Enter both primers to get the recommended annealing temp for the pair
mM
Standard PCR buffer: 50 mM

What is annealing temperature?

In PCR (polymerase chain reaction), the annealing step is where short DNA primers bind to their complementary sequence on the template strand before DNA polymerase extends them. Getting the annealing temperature right is one of the most important variables in getting a PCR reaction to work — too high, and the primers won't bind at all; too low, and they bind to the wrong places, producing nonspecific bands or no clean product.

Annealing temperature (Ta) is closely tied to, but distinct from, a primer’s melting temperature (Tm) — the temperature at which half of a primer-template duplex has dissociated into single strands. Ta is generally set a few degrees below Tm, giving primers a temperature window where they bind specifically to their intended target without binding loosely enough to attach to similar-but-not-identical sequences elsewhere in the template.

How Tm is calculated

Wallace rule (short primers, under ~14 nt) Tm = 2°C × (A + T) + 4°C × (G + C)

The Wallace rule is the simplest Tm estimation method, counting each base directly: A-T base pairs are weighted at 2°C each (they form two hydrogen bonds), and G-C base pairs at 4°C each (they form three hydrogen bonds and pack more tightly). It’s fast and reasonably accurate for short primers, but becomes less reliable as primer length increases beyond about 14 nucleotides, since it doesn’t account for the physical chemistry of longer duplexes or ionic strength effects.

Salt-adjusted formula (14–70 nt primers, most common in practice) Tm = 81.5 + 16.6 × log₁₀[Na⁺] + 0.41 × (%GC) − 600 ÷ N

Worked example — 21 nt primer, 57% GC content, 50 mM Na⁺:

  1. log₁₀(0.050) ≈ −1.301
  2. 16.6 × (−1.301) ≈ −21.6
  3. 0.41 × 57 ≈ 23.4
  4. 600 ÷ 21 ≈ 28.6
  5. Tm = 81.5 − 21.6 + 23.4 − 28.6 ≈ 54.7°C
  6. Annealing temp: 54.7 − 5 ≈ 49.7°C

This salt-adjusted formula (a simplified version of the Marmur-Doty equation) accounts for both GC content and the salt concentration of the reaction buffer, since higher salt concentrations stabilize the DNA duplex and raise the effective melting temperature. It’s the more commonly used formula in practice for typical PCR primers, which usually run 18 to 30 nucleotides long.

Wallace rule vs. salt-adjusted formula

MethodBest forAccounts for salt?Typical accuracy
Wallace ruleShort primers, under 14 ntNoRough estimate
Salt-adjustedStandard primers, 14–70 ntYesBetter for typical PCR conditions
Nearest-neighborHighest precision, any lengthYesMost accurate, more complex to compute

Both formulas offered by this calculator are simplified estimation methods rather than the most rigorous approach available. The nearest-neighbor method — which accounts for the specific thermodynamic contribution of each adjacent base pair combination, not just an overall count — is generally considered the most accurate Tm prediction method and is what most professional primer design software (Primer3, IDT’s OligoAnalyzer, NEB’s Tm calculator) uses internally. It requires a lookup table of thermodynamic parameters for all 16 possible dinucleotide combinations, which is beyond the scope of a quick estimation calculator like this one, but is worth knowing about if a critical experiment’s primer design would benefit from the extra precision.

It’s common — and generally fine — for different Tm calculation methods to disagree by a few degrees for the same primer sequence, since each method makes different simplifying assumptions about duplex thermodynamics. This is one reason experienced molecular biologists treat any single calculated Tm as an estimate rather than an exact value, and why empirical optimization (discussed below) remains standard practice even when a calculated value is available. When comparing primers designed with different tools or calculated by different lab members, it’s worth confirming everyone used the same method — a primer pair that looks mismatched in Tm by one method might actually be well-matched by another.

Choosing the right annealing temperature

Standard rule of thumb Ta = (lower primer Tm) − 5°C

When a PCR reaction uses two primers (forward and reverse, as almost all standard PCR does), the annealing temperature should be based on whichever primer has the lower Tm — since both primers need to anneal simultaneously for the reaction to work, and setting Ta based on the higher-Tm primer risks the lower-Tm primer failing to bind adequately.

The 5°C-below-Tm guideline is a reasonable starting point, not a guarantee. Real PCR optimization commonly involves running a gradient PCR — a single reaction setup tested across a range of annealing temperatures simultaneously (most modern thermocyclers support this directly) — to empirically find the temperature that gives the cleanest, most specific product for a given primer pair and template. This calculator’s output is best treated as the center point of a reasonable gradient range to test, particularly for a new or previously untested primer pair.

GC content and primer design

GC contentCharacteristics
Under 40%Lower Tm, less stable duplex, may need longer primer
40–60%Ideal range for most standard PCR primers
Over 60%Higher Tm, more stable, but higher risk of secondary structure

Most primer design guidelines recommend keeping GC content in the 40–60% range where practical, since this tends to produce primers with a workable Tm in the standard PCR temperature range without an elevated risk of forming secondary structures (hairpins, self-dimers, or primer-dimers with the partner primer) that can interfere with amplification. Very high or very low GC content isn’t automatically disqualifying — some target sequences simply don’t offer a choice — but it’s worth being aware that primers at the extremes of this range sometimes need additional troubleshooting.

Primer length also interacts with GC content in practice: a shorter primer in a low-GC region may have too low a Tm to be usable, while a longer primer in a high-GC region can develop a Tm high enough to approach the practical ceiling of standard thermocycler protocols. Most standard PCR primers run 18 to 25 nucleotides, which offers enough sequence specificity to reliably target a unique site in most genomes while keeping Tm in a convenient, easy-to-work-with range.

Common PCR optimization issues

Beyond annealing temperature itself, several related issues commonly surface during PCR primer troubleshooting:

Primer-dimers form when a primer’s 3′ end has partial complementarity to itself or to the other primer in the pair, allowing them to anneal to each other rather than to the template. This wastes reaction components and can produce a small, primer-length spurious band on a gel. Primer design software typically flags this risk during design; a Tm calculation alone doesn’t catch it.

Nonspecific amplification — extra bands beyond the intended product — often indicates an annealing temperature that’s too low, allowing primers to bind imperfectly-matched sequences elsewhere in the template. Raising the annealing temperature (within a gradient PCR test) is the first troubleshooting step for this symptom.

No amplification at all can indicate an annealing temperature that’s too high for the actual primer Tm, though it can also stem from unrelated issues (template quality, primer concentration, magnesium concentration, or a genuine absence of the target sequence) — annealing temperature is one variable to check among several when troubleshooting a failed reaction.

Magnesium concentration interacts with annealing specificity in a way that’s easy to overlook when focused purely on temperature. Mg²⁺ ions stabilize the primer-template duplex similarly to how salt does in the Tm formula above, meaning a reaction with unusually high magnesium can tolerate (or even require) a somewhat different annealing temperature than the calculated Ta alone would suggest, and excess magnesium is itself a common cause of nonspecific amplification independent of temperature. Most standard PCR protocols specify a magnesium concentration in the 1.5–3 mM range; deviating significantly from a kit or protocol’s specified concentration changes the effective stringency of annealing beyond what temperature alone controls.

Touchdown PCR is a technique worth knowing about for primer pairs that are difficult to optimize with a single fixed annealing temperature. Rather than using one Ta throughout all cycles, a touchdown protocol starts several degrees above the calculated Ta for the first several cycles (maximizing specificity when template concentration is still high) and steps the temperature down gradually over subsequent cycles, eventually settling at or below the calculated Ta for the remaining cycles. This technique can rescue an otherwise problematic primer pair by favoring correct binding early, before nonspecific products have a chance to accumulate and get amplified alongside the intended target.

Real-world applications

Standard genotyping or cloning PCR — amplifying a specific known sequence for downstream cloning, sequencing, or genotyping — is the most common use case for a Tm/Ta calculation like this one, typically with primers in the 18–25 nt range designed against a known reference sequence.

qPCR (quantitative PCR) primer design follows similar Tm principles but with tighter design constraints, since qPCR assays are more sensitive to primer efficiency differences — qPCR primer pairs are commonly designed to have closely matched Tm values (often within 1–2°C of each other) specifically to ensure both primers perform consistently across the many amplification cycles a quantitative assay runs through.

Site-directed mutagenesis primers — used to introduce a specific point mutation into a plasmid — often run longer than standard PCR primers (sometimes 25–45 nt) to maintain adequate binding affinity around the mismatched mutation site, which shifts these primers toward the upper end of the salt-adjusted formula’s applicable range and sometimes warrants the more precise nearest-neighbor method for critical applications.

Common mistakes to avoid

  • Using the Wallace rule for a longer primer. This simple formula gets progressively less accurate for primers over about 14 nucleotides — use the salt-adjusted formula for standard 18–30 nt PCR primers.
  • Basing Ta on the higher-Tm primer instead of the lower one. Both primers must anneal for PCR to work — always use the lower Tm of the pair when setting a single annealing temperature.
  • Treating the calculated Ta as final without empirical testing. These formulas provide a reasonable starting estimate, not a guarantee — a gradient PCR to empirically optimize annealing temperature is standard practice for any new or critical primer pair.
  • Ignoring salt concentration differences between formulas and actual reaction conditions. The salt-adjusted formula’s accuracy depends on entering a Na⁺ concentration that reasonably matches your actual PCR buffer — using a generic default when your buffer differs meaningfully can shift the estimate.
  • Designing primers with very high or very low GC content without extra scrutiny. These are more prone to secondary structure and Tm estimation error — extra caution (and possibly the more precise nearest-neighbor method) is warranted outside the 40–60% GC range.
  • Not checking for primer-dimer potential separately from the Tm calculation. A Tm/Ta calculator doesn’t evaluate self- or cross-complementarity — use dedicated primer design software for a full check before ordering primers for a critical experiment.
  • Assuming a fixed annealing temperature works when it doesn’t need to. For a genuinely difficult primer pair, a touchdown PCR protocol (starting above the calculated Ta and stepping down over cycles) can succeed where a single fixed temperature fails — worth trying before concluding a primer pair simply doesn’t work.
Frequently asked questions
What annealing temperature should I use for PCR?
A common rule of thumb is to set the annealing temperature 5°C below the melting temperature (Tm) of the primer with the lower Tm in your pair. For example, if your forward primer has a Tm of 58°C and your reverse primer has a Tm of 55°C, use 50°C as your starting annealing temperature. Always validate with a gradient PCR for a new primer pair.
What's the difference between Tm and annealing temperature?
Melting temperature (Tm) is the theoretical temperature at which half of a primer-template duplex has dissociated. Annealing temperature (Ta) is the actual temperature used during the PCR annealing step, typically set about 5°C below the lower primer's Tm to ensure specific, reliable binding during the reaction.
Should I use the Wallace rule or the salt-adjusted formula?
Use the Wallace rule (Tm = 2×(A+T) + 4×(G+C)) for short primers under about 14 nucleotides. For standard PCR primers in the 18-30 nucleotide range, the salt-adjusted formula is more accurate, since it accounts for both GC content and the salt concentration of your PCR buffer.
What GC content should my primers have?
Most primer design guidelines recommend 40-60% GC content for standard PCR primers. This range tends to produce a workable Tm without an elevated risk of secondary structures like hairpins or primer-dimers. Primers outside this range aren't automatically unusable, but may need extra troubleshooting.
Why isn't my PCR working even though I calculated the annealing temperature?
Annealing temperature is one of several variables that affect PCR success. Also check: primer concentration, magnesium concentration (typically 1.5-3 mM), template quality and quantity, and whether your primers have significant self- or cross-complementarity (primer-dimer risk) that a Tm calculation alone doesn't catch.
What is touchdown PCR?
Touchdown PCR starts with an annealing temperature several degrees above the calculated Ta for the first few cycles, then gradually decreases it over subsequent cycles. This favors specific primer binding early in the reaction, before nonspecific products accumulate, and can rescue amplification for primer pairs that are difficult to optimize with a single fixed temperature.