
How to design PCR primers for cloning
How to design PCR primers for cloning: length, GC content, Tm matching, cloning tails, in silico checks before you order, and free software for order forms.
Updated October 2026.
Good PCR primers for cloning are 18–24 nucleotides of template-matching sequence with 40–60% GC, a melting temperature (Tm) of 55–65 °C, partner Tms within 2 °C, and a G or C at the 3' end. Cloning adds one more layer: a 5' tail that carries a restriction site, a Gibson overlap or a Golden Gate site. This guide gives the numbers, the checks to run before you order, and how to do it all in free software.
What makes a good PCR primer?
A good PCR primer binds once, at the right place, at the same temperature as its partner, and does not bind itself. These ranges, common to most primer design guides and vendor guidelines, apply to the template-binding part (not the tail):
- Length: 18–24 nucleotides. Shorter primers lose specificity; longer ones invite secondary structure.
- GC content: 40–60%. Below that the Tm drops; above it primers bind too tightly and mis-prime.
- Tm: 55–65 °C for each primer, calculated on the annealing region only.
- Tm matching: keep the forward and reverse primers within 2 °C of each other, and never more than 5 °C apart.
- GC clamp: end the primer with one or two G or C bases in the last five bases at the 3' end. More than three G or C bases in those last five makes the 3' end sticky and promotes mis-priming.
- Repeats: avoid runs of four or more of one base (AAAA) and dinucleotide repeats (ATATAT). Both cause slippage.
How do you calculate primer Tm and match a primer pair?
Use a nearest-neighbor Tm calculation with your actual salt and primer concentrations, and compare both primers with the same method. The simple "2 °C per A/T, 4 °C per G/C" rule is fine for a first guess but can be off by several degrees for real buffers.
Three habits keep pairs matched:
- Calculate Tm on the annealing part only. A 25-base tail does not bind the template in the first cycles, so including it inflates the number and hides a mismatch.
- Adjust length, not position, first. Add or remove a base or two at the 5' end of the annealing region to bring the pair within 2 °C.
- Set the annealing temperature from the lower Tm. A common starting point is 3–5 °C below the lower Tm. Many high-fidelity polymerases come with their own rule, so follow the enzyme's guidance when it differs.
How do you check PCR primers for hairpins, dimers and repeats?
Screen each primer for self-complementarity (hairpins and self-dimers) and screen the pair for cross-complementarity (primer dimers), paying most attention to the 3' ends. Paired 3' bases give the polymerase something to extend, which is how primer dimers form.
Practical thresholds:
- Hairpins: avoid any hairpin with a Tm close to your annealing temperature. One that melts well below it is usually harmless.
- Dimers: a common vendor guideline treats any dimer with a free energy more negative than about −9 kcal/mol as a problem. Be stricter with dimers that involve the 3' end.
- Off-target binding: search the whole template for other sites where the last 8–10 bases at the 3' end match. A second binding site means a second product.
How do you add restriction sites to cloning primers?
Put the restriction site in a 5' tail, in this order from 5' to 3': a few extra bases, the recognition site, then the annealing sequence. Most enzymes cut poorly at the very end of a DNA molecule, so the extra 3–6 bases give them room.
Before you commit to a pair of enzymes:
- Confirm neither enzyme cuts inside the insert. An internal site fragments the insert during the digest.
- Use two different enzymes for directional cloning. It prevents the insert going in backwards and stops the vector closing on itself.
- Keep the reading frame. For a fusion or a tagged protein, count from the vector's start codon through the site and into your coding sequence. Add one or two bases between the site and the annealing region if needed.
- Watch for methylation. Some enzymes are blocked by dam or dcm methylation on plasmid DNA from common E. coli strains.
What tails do Gibson and Golden Gate primers need?
Gibson primers carry a 5' tail of 20–40 bases that matches the neighboring fragment, so adjacent pieces overlap; Golden Gate primers carry a Type IIS site that cuts outside its own recognition sequence and leaves a 4-base overhang you choose.
- Gibson: each junction needs an overlap of roughly 20–40 bp. Our Gibson assembly design guide covers overlap placement and fragment counts.
- Golden Gate: a typical BsaI tail reads, 5' to 3': a few extra bases, GGTCTC, one spacer base, the 4-base overhang, then the annealing sequence. Overhangs must be unique within the assembly, and internal BsaI sites must be removed from every part first. Our Golden Gate assembly design guide covers overhang sets and domestication.
Tailed primers are often 40–60 bases long, which affects how you purify them when you order.
How can you simulate cloning an insert into a plasmid vector before ordering?
Build the final plasmid as a sequence file before you order anything: generate the PCR product from your primers, join it to the opened vector the way your method joins it, and read the result. A free sequence editor that simulates PCR, digests and assemblies does this in minutes and catches most design errors before they cost a week at the bench.
Check these points on the simulated construct:
- Product size: the amplicon length, tails included, matches what you expect to see on a gel.
- Junctions: read every junction base by base. Restriction junctions should reform the expected site (or destroy it, if that was the plan). Gibson junctions should show no duplicated or missing bases.
- Reading frame: translate from the start codon through each junction and into any tag. Look for frame shifts and premature stop codons.
- Unwanted sites: confirm the enzymes or Type IIS sites you use appear only where you put them.
- Primer binding: confirm each primer binds once on the template and that the pair points toward each other.
How do you order oligos for cloning?
Order primers as single-stranded DNA oligos, written 5' to 3' with tails included, at the smallest synthesis scale that covers your reactions. For most PCR primers, a small scale with standard desalting is enough.
- Purification: standard desalting works for routine PCR primers. For long tailed primers (roughly 60 bases and up), consider PAGE or HPLC purification, because the share of full-length product falls as length grows.
- Naming: use names that carry the target and direction, such as
lacZ_F_EcoRIandlacZ_R_XhoI, so the order form, tubes and sequence file all agree. - Order form: most vendors take a spreadsheet with name, sequence, scale and purification. Generate it from your design file to avoid copy-paste errors.
What are the most common primer design mistakes?
The most common mistakes are counting the tail in the Tm, forgetting the extra bases before a restriction site, and never simulating the final construct. Others that cost time:
- Writing the reverse primer as the top-strand sequence instead of its reverse complement.
- Choosing an enzyme that also cuts inside the insert.
- Breaking the reading frame at a fusion junction.
- Copying sequences by hand into an order form.
What should you check before ordering PCR primers?
Before you order, confirm each item on this list:
- Annealing region 18–24 nucleotides, 40–60% GC.
- Tm 55–65 °C, pair within 2 °C (5 °C at most), calculated without tails.
- One or two G or C bases at the 3' end, no more than three G or C in the last five.
- No runs of four or more identical bases, no strong 3' dimers or hairpins.
- One binding site per primer on the template.
- Tails in the right order, with extra bases before restriction sites.
- Simulated construct read through every junction, in frame, with no unwanted sites.
- Reverse primer written as the reverse complement, 5' to 3'.
- Order form generated from the design file, not retyped.
Designing it in TeselaGen Community (free)
TeselaGen Community is a free edition of the TeselaGen platform that includes the sequence editor, primer design, DNA assembly design with automatic assembly protocols, and Twist and IDT order forms. These steps take you from template to order form.
- Create a free account and add your sequences. Sign up on the TeselaGen Community page, then import or create your template and vector in the DNA Sequences library and open them in the sequence editor.
- Design primers for a region. Select the region to amplify, right-click and choose Create > Create PCR primers for this region. Set the product size, Tm range, primer length and GC content, plus advanced settings that include a GC clamp (the number of consecutive G or C bases required at the 3' end). You can also choose where the primers bind: any, internal or flanking.
- Pick a pair. Candidate pairs are listed with Tm, GC%, product size and a penalty score, where lower is better. Select the pairs you want; they are added to the sequence as primers and can be saved to the Oligos library.
- Add cloning tails and preview the product. Add the tail bases to each primer, then choose Tools > Simulate PCR, pick the forward and reverse primers, and review the predicted amplicon with its tails, length and GC%.
- Check enzymes and simulate the clone. Use the cut site filter and Simulate Digestion to confirm your enzymes cut where you expect. For Gibson, Golden Gate and other methods, create a design with the vector and insert, choose the method and submit it. The assembly protocol lists the assembled construct and the oligos it needs, and you can save the construct to the sequence library, open it in the editor and turn on translations to check the frame at each junction.
- Generate the order form. Open the IDT ordering tool from the Tools library, choose single-stranded oligos, select your primers, set tube or plate and purification, then score, price and submit. The order exports as a CSV to upload to IDT. The Twist ordering tool does the same for double-stranded gene fragments.
You can also ask TeselaGen CoScientist, the AI assistant included in Community, to do parts of this for you. Its example prompts include "Design PCR primers to amplify the lacZ gene from pUC19" and "Get me the pcDNA3.1 vector sequence and add it to my workspace."
For more on the sequence and assembly tools, see the molecular biology toolkit. To start, open the TeselaGen Community page and design your first pair.