Primer Tm Calculator
Paste one or more primer sequences to estimate melting temperature with the Wallace and salt-adjusted formulas, along with GC content and 3′ end GC.
What this primer Tm calculator does
Paste one or more primer sequences — one per line or in FASTA format — and the calculator returns the length, GC content, Wallace melting temperature, salt-adjusted melting temperature and the GC content of the last five bases at the 3′ end. It is intended for quick primer checks, not as a replacement for a nearest-neighbor design tool.
The salt-adjusted estimate assumes 50 mM Na⁺ by default. The page does not add Mg²⁺, dNTPs or primer concentration to the calculation; those factors can shift the real Tm by several degrees.
What melting temperature means
Tm is the temperature at which half of the primer–template duplexes are dissociated. In a PCR reaction, the annealing temperature is usually set 3–5 °C below the primer Tm. A primer that is too short or too AT-rich has a low Tm and may bind weakly; a primer that is too GC-rich can form stable secondary structures or misprime.
Typical design targets are 18–25 nucleotides, 40–60% GC and a Tm around 55–65 °C. These are starting points, not rules — the right values depend on the polymerase, buffer and cycling conditions.
The two formulas
Wallace rule
For short primers (roughly 14–20 nucleotides), the Wallace rule is:
Tm = 2 × (A + T) + 4 × (G + C)
It is simple and ignores salt, so it is best used as a quick sanity check. For longer primers it tends to overestimate the Tm.
Salt-adjusted formula
For primers of roughly 14–30 nucleotides, a common salt-adjusted estimate is:
Tm = 81.5 + 16.6 × log₁₀[Na⁺] + 0.41 × GC% − 600 / N
Here [Na⁺] is the sodium concentration in mol/L and N is the primer length. The calculator uses 50 mM Na⁺ (0.05 M). If your buffer has a different salt concentration, the real Tm will differ; for critical design, use a nearest-neighbor calculator that accepts your exact buffer composition.
Worked example
Take the 20-nucleotide primer ATGGCCATTGTAATGGGCCG:
- Length: 20 nt
- GC content: 55.0%
- Wallace Tm: 62.0 °C
- Salt-adjusted Tm at 50 mM Na⁺: 52.5 °C
- 3′ end (last five bases,
GGCCG): 5/5 GC
The two estimates differ because they model the duplex differently. The Wallace rule counts only base composition; the salt-adjusted formula includes the sodium concentration and the length term. A 3′ end with five G/C bases is also a warning sign: it can promote non-specific extension. In a real design, adjust the length or the 3′ end and check the result with a nearest-neighbor tool.
Reading the 3′ end
The last five bases at the 3′ end are where the polymerase begins extension. A common guideline is to avoid more than three G/C bases in the last five, and to avoid a 3′ end that is complementary to another primer (primer-dimer risk). The calculator reports the count so you can spot a strong GC clamp quickly.
What the calculator does not model
- Nearest-neighbor stacking — the most accurate Tm methods use the enthalpy and entropy of each dinucleotide step, not just GC content.
- Mg²⁺ and dNTPs — divalent cations stabilize the duplex and raise the Tm; the default calculation does not include them.
- Primer concentration — higher primer concentrations shift the equilibrium and change the Tm.
- Mismatches and secondary structure — a mismatch lowers the Tm; hairpins and primer-dimers compete with the intended duplex.
For critical primer design, use Primer3, IDT OligoAnalyzer or a nearest-neighbor implementation with your actual buffer composition. This page is for quick checks and for comparing candidate primers before that step.
Common uses
- Checking a primer before ordering it.
- Comparing several candidate primers by length, GC and Tm.
- Estimating the annealing temperature range for a PCR run.
- Spotting a GC-rich 3′ end or an unusually AT-rich primer.
- Pairing with the GC content calculator and reverse complement tool.
Frequently asked questions
What is primer Tm?
Tm is the melting temperature — the temperature at which half of the primer–template duplexes are separated. PCR annealing temperatures are usually set a few degrees below the primer Tm.
Which formula should I use?
Use the Wallace rule for short primers (about 14–20 nt) and the salt-adjusted formula for 14–30 nt. For critical design, use a nearest-neighbor calculator; both formulas here are approximations.
What salt concentration does it assume?
The salt-adjusted estimate uses 50 mM Na⁺. If your buffer has a different sodium concentration, the Tm will differ; use a tool that accepts your exact buffer composition.
Does it account for Mg²⁺?
No. Magnesium stabilizes the duplex and raises the Tm. The calculator does not include Mg²⁺, dNTPs or primer concentration, so treat the result as an estimate.
What is a good Tm for a primer?
Many protocols target 55–65 °C, but the right value depends on the polymerase and buffer. More important is that the forward and reverse primers have similar Tm values, so both anneal efficiently at the same temperature.
Can I calculate Tm for multiple primers?
Yes — paste one primer per line or a multi-record FASTA file. Each primer is reported separately with its own length, GC content and Tm.