How to design primers: the rules and how they change by purpose

About 8 min read · Updated 2026-09-30

A good primer binds only where you want, at the temperature you want, without interfering with its partner. This guide puts numbers on those three rules and explains how qPCR and cloning primers differ.

Try it with the tool

Paste a template for suggested primer pairs that follow these rules, or check your own primers for Tm, dimers and hairpins in plain words — with one-click Primer-BLAST.

Open primer design & check →

1. The rules at a glance

ItemRecommendedWhy
Length18–25 ntToo short binds elsewhere; too long adds secondary structure and cost
GC content40–60%Too low binds weakly; too high binds non-specifically
Tm55–65 °C, pair within 3 °CBoth must bind well at one annealing temperature
3′ end1–3 G/C in the last 5 bases; ending in G or C helpsExtension starts at the 3′ end — too weak won't extend, too strong extends anywhere
RepeatsNo more than 4 identical bases; avoid AT/GC repeatsThey slip and misprime
Dimers, hairpinsΔG involving the 3′ end above −5 kcal/molPrimers that pair and extend make primer-dimer products

Tm differs by a few degrees between calculators and salt conditions. Compare both primers with the same calculator and treat the absolute value as a guide.

2. Reverse primer orientation — the most common mistake

The forward primer is copied directly from the template; the reverse primer is the reverse complement of the far end. Both are written and ordered 5′→3′.

Template …ATGGCTTCCACC … GGTACCTTGAAC…
Forward = ATGGCTTCCACC · Reverse = GTTCAAGGTACC

If the reverse is copied as-is, both primers face the same way and no product forms. A design tool with the template handles orientation for you.

Forward and reverse primer orientation5′-ATGGCTTCCACC ··· ··· GGTACCTTGAAC-3′3′-TACCGAAGGTGG ··· ··· CCATGGAACTTG-5′Forward: ATGGCTTCCACCtop strand as-is (5′→3′)Reverse: GTTCAAGGTACCbottom strand 5′→3′ = reverse complementamplified region (product)
The forward primer copies the top strand; the reverse primer is the bottom strand read 5′→3′ (the reverse complement of the top-strand end). The primers must face each other to amplify the region between them.

3. What is different about qPCR primers

Checking published or database-validated primers (e.g. PrimerBank) first is also worthwhile — but still confirm efficiency and melt curves in your own conditions.

4. Cloning primers carry a "tail"

Cloning primers add the needed sequence to the 5′ end of the template-binding part (18–25 nt, set by Tm).

Method5′ addition
Restriction cloning4–6 extra bases + restriction site (+ Kozak GCCACC for expression)
Gibson · HiFi20–30 nt identical to the vector end
In-Fusion15 nt identical to the vector end
Golden GateExtra bases + Type IIS site such as BsaI + 4-nt overhang

Calculate Tm from the binding part only. Including the tail inflates the Tm and leads to the wrong annealing temperature.

Cloning primer anatomyRestriction cloningextra bases4–6 ntenzyme siteGAATTCKozakGCCACC (opt.)template-binding part18–25 nt · Tm from here only3′ →5′Gibson · In-Fusionsame as vector end (overlap)15–30 nttemplate-binding part18–25 nt · Tm from here only3′ →5′
Anatomy of cloning primers. The 5′ tail does not bind the template, so Tm is calculated from the template-binding part on the right only.

5. Two things to do after designing

  1. Check specificity with NCBI Primer-BLAST to see whether other genes also give products (how-to).
  2. Order and resuspend: desalted purity is enough for routine PCR and qPCR; long cloning primers (>40 nt) sometimes get a higher purification grade. On arrival, make a 100 µM stock from the nmol on the tube (nmol × 10 = µL to add) and use a 10 µM working dilution.

Paste a template for suggested primer pairs that follow these rules, or check your own primers for Tm, dimers and hairpins in plain words — with one-click Primer-BLAST.

Open primer design & check →