Primer3
v2.6.1Design PCR primers for DNA sequences with Primer3 controls for regions, Tm, GC content, and product size.
A 600 bp template holds about 5,000 possible 18 to 27 nt primers on each strand. Primer3 tests every one of them for melting temperature, GC content, homopolymers and secondary structure, pairs the survivors into products of the right size, and returns the few pairs that sit closest to your optima. In a default run on a 600 bp test sequence it considered 5,010 left primers, kept 1,888 and returned five pairs.
The Primer3 webserver runs the Primer3 2.6.1 core (Untergasser et al., 2012), the same engine behind Primer3web, Primer3Plus and NCBI Primer-BLAST. It has two tasks: Design primer pairs searches a template for new pairs, and Check existing primers evaluates a left primer, a right primer or both against the template you submit. Each run returns a ranked results table and Primer3's complete native output.
Every Primer3 job costs 5 credits. The price does not change with template length, task, number of pairs requested or any other setting. The exact quote appears before you submit.
| Input | Accepted format | Limits |
|---|---|---|
DNA Sequence | Raw DNA sequence or one FASTA record, pasted or uploaded as .fasta, .fa, .fas, .txt or .seq | One required template. Up to 100,000 bp on paid plans and 10,000 nucleotides on the Free plan; files up to 10 MB. A FASTA file with several records is rejected. |
Job name | Text | Optional label stored with the run. |
The template may contain A, C, G, T and N. Primer3 rejects other IUPAC codes in the template, so replace them with N or with the base you expect. Lowercase letters are read as uppercase. If you need a FASTA record first, how to make a FASTA file covers the format.
Main settings holds the task, the Tm window, the product size range and the number of pairs. Advanced settings is collapsed by default and opens one group at a time: primer design, primer quality, secondary structure, PCR chemistry and 5′ overhangs. A field that depends on another one appears only when its parent is selected.
| Parameter | Type | Default | Description |
|---|---|---|---|
Task | enum | Design primer pairs | Design primer pairs runs Primer3's generic task; Check existing primers runs check_primers on the primers you enter. |
Left primer (5' -> 3') | string | conditional | Forward primer for Check existing primers. It must occur exactly in the template. |
Right primer (5' -> 3') | string | conditional | Reverse primer for Check existing primers, written 5′ to 3′. Its reverse complement must occur exactly in the template. |
Return primers that fail constraints | boolean | false | Under Check behavior. Returns entered primers that break a limit, with Primer3's description of each problem. |
Region mode | enum | Auto | Under Region constraints. Auto sets no region, Target region must lie inside the product, Included region holds both primers. |
Region start position | integer | 1 | 1-based start of the target or included region, 1 to 1,000,000. |
Region length (bp) | integer | 100 | Length of the target or included region, 1 to 100,000. |
Excluded region start | integer | optional | 1-based start of a stretch no primer may overlap, 1 to 1,000,000. Set it together with the length. |
Excluded region length (bp) | integer | optional | Length of the excluded stretch, 1 to 100,000. |
At least one primer is required for Check existing primers, and both must match the template before the job is accepted. Degenerate bases in a primer are not expanded, so a primer with an R or Y does not match.
| Parameter | Type | Default | Description |
|---|---|---|---|
Minimum Tm (C) | number | 57 | Lowest acceptable primer melting temperature, 0 to 100. |
Maximum Tm (C) | number | 63 | Highest acceptable primer melting temperature, 0 to 100. |
Minimum product size (bp) | integer | 100 | Shortest acceptable product, 1 to 100,000. |
Maximum product size (bp) | integer | 300 | Longest acceptable product, 1 to 100,000. |
Number of primer pairs | integer | 5 | How many ranked pairs to return, 1 to 20. |
| Parameter | Type | Default | Description |
|---|---|---|---|
Optimal Tm (C) | number | 60 | Tm that primers are ranked against, 0 to 100. It must lie inside the minimum and maximum. |
Minimum primer size (bp) | integer | 18 | Shortest primer, 1 to 36. |
Optimal primer size (bp) | integer | 20 | Length that primers are ranked against, 1 to 36. It must lie inside the minimum and maximum. |
Maximum primer size (bp) | integer | 27 | Longest primer, 1 to 36. Primer3 does not design primers longer than 36 nt. |
Minimum GC (%) | number | 20 | Lowest primer GC percentage, 0 to 100. |
Optimal GC (%) | number | optional | GC percentage that primers are ranked against, 0 to 100. It has no effect while both GC weights are 0. |
Maximum GC (%) | number | 80 | Highest primer GC percentage, 0 to 100. |
GC above optimum weight | number | 0 | Penalty per GC percentage point above Optimal GC (%). Above 0, it needs Optimal GC (%). |
GC below optimum weight | number | 0 | Penalty per GC percentage point below Optimal GC (%). Above 0, it needs Optimal GC (%). |
Optimal product size (bp) | integer | optional | Product length that pairs are ranked against, 1 to 100,000. It has no effect while both product weights are 0. |
Product above optimum weight | number | 0 | Penalty per base pair above Optimal product size (bp). Above 0, it needs Optimal product size (bp). |
Product below optimum weight | number | 0 | Penalty per base pair below Optimal product size (bp). Above 0, it needs Optimal product size (bp). |
Additional product size ranges (bp) | string | optional | Extra accepted product intervals such as 400-500, 600-700, separated by commas or semicolons. |
| Parameter | Type | Default | Description |
|---|---|---|---|
Max homopolymer length | integer | 5 | Longest single-base run allowed in a primer, 0 to 36. 0 turns the check off. |
GC clamp (3' end) | integer | 0 | Number of G or C bases required at the 3′ end, 0 to 5. |
Max GC at 3' end | integer | 5 | Most G or C bases allowed among the last five 3′ bases, 0 to 5. |
Max Ns accepted | integer | 0 | Most N bases allowed in a primer, 0 to 36. |
Max Tm difference (C) | number | 100 | Largest allowed Tm gap between the left and right primer, 0 to 100. |
| Parameter | Type | Default | Description |
|---|---|---|---|
Max 3' end stability (kcal/mol) | number | optional | Cap on the binding stability of the last five 3′ bases. Primer3's default of 100 is effectively off. |
Max self-complementarity Tm (C) | number | 47 | Highest Tm allowed for a primer binding another copy of itself, 0 to 100. |
Max 3' self-complementarity Tm (C) | number | 47 | The same limit for self-binding anchored at the 3′ end, 0 to 100. |
Max pair complementarity Tm (C) | number | 47 | Highest Tm allowed for the left primer binding the right primer, 0 to 100. |
Max 3' pair complementarity Tm (C) | number | 47 | The same limit for left/right binding anchored at a 3′ end, 0 to 100. |
Max hairpin Tm (C) | number | optional | Highest Tm allowed for a hairpin within one primer. Primer3's default is 47. |
| Parameter | Type | Default | Description |
|---|---|---|---|
Tm calculation method | enum | SantaLucia 1998 | Nearest-neighbor table: SantaLucia 1998 or Breslauer 1986. |
Salt correction formula | enum | SantaLucia 1998 | SantaLucia 1998, Schildkraut-Lifson 1965 or Owczarzy 2004. |
Salt concentration (mM) | number | 50 | Monovalent cations such as Na⁺ and K⁺, 0.001 to 500. |
Divalent cation concentration (mM) | number | 1.5 | Mg²⁺, 0 to 100. |
dNTP concentration (mM) | number | 0.6 | Total dNTPs, which bind Mg²⁺, 0 to 10. |
DNA concentration (nM) | number | 50 | Primer concentration, 0.001 to 1,000. |
Annealing temperature (C) | number | optional | Adds the bound-percentage columns. It cannot be combined with Owczarzy 2004. |
DMSO concentration (%) | number | optional | Lowers the predicted Tm; Primer3's default is 0. |
DMSO factor | number | optional | °C of Tm correction per percent DMSO; Primer3's default is 0.6. |
Formamide concentration (mol/L) | number | optional | Lowers the predicted Tm; Primer3's default is 0. |
| Parameter | Type | Default | Description |
|---|---|---|---|
Left primer 5' overhang | string | optional | Tail added to the 5′ end of the left primer, such as a restriction site. |
Right primer 5' overhang | string | optional | Tail added to the 5′ end of the right primer. |
Primer3 counts overhangs in product size and complementarity, while Tm and GC percentage describe only the part that binds the template. In Check existing primers, enter the primers without their tails and put the tails in these fields.
The Results tab shows one row per returned pair, or per primer when you check a single primer. The table can be copied or downloaded. Each job also stores primer3_results.json, which holds Primer3's full tag map (every primer, the explain counts, warnings and the predicted product Tm), and run.log, which records the arguments passed to Primer3.
| Column | Meaning |
|---|---|
Left Primer (5' -> 3'), Right Primer (5' -> 3') | Primer sequences as you would order them, including any overhang. |
Left Position (derived 1-based range), Right Position (derived 1-based range) | First and last template base each primer binds, counted from 1. |
Left Position (Primer3 0-based start,length) | Primer3's own coordinate: 0-based first base and length. |
Right Position (Primer3 0-based last-base,length) | Primer3's own coordinate for the right primer: 0-based rightmost base and length. |
Left Tm (C), Right Tm (C), Left GC%, Right GC% | Predicted melting temperature and GC content of the template-binding part. |
Product Size (bp) | Amplicon length, including overhangs. |
Pair Penalty, Left Penalty, Right Penalty | Primer3's ranking scores. Lower is closer to the optima. |
Pair Complementarity Tm (C), 3' Pair Complementarity Tm (C) | Tm of the most stable left/right primer duplex, anywhere and at the 3′ end. |
Left Self-Complementarity Tm (C) and the 3′ and right variants | Tm of the most stable duplex a primer forms with a copy of itself. |
Left Hairpin Tm (C), Right Hairpin Tm (C) | Tm of the most stable hairpin within one primer. |
Left End Stability, Right End Stability | Binding stability of the last five 3′ bases in kcal/mol. |
Left Bound (%), Right Bound (%) | Share of primer bound at the annealing temperature. Present only when one is set. |
Left Problems, Right Problems | Primer3's reasons a checked primer fails a limit. Present only with Return primers that fail constraints. |
A column appears only when Primer3 returns a value for it, so a run without an annealing temperature has no bound columns.
Take the top pair from the 600 bp default run above. The left primer GGAACAAGGACGCTGTCTGA binds bases 333 to 352 and the right primer AAAGCTCGCCGTTGGACATA binds 531 to 550, giving a 219 bp product. Their Tm values are 59.97 and 60.04 °C, and the pair penalty of 0.070 is simply the two primer penalties (0.034 and 0.037) added together, because each primer misses the 60 °C optimum by a few hundredths of a degree and has the optimal length of 20.
Start with the product, not the score. Check that Product Size (bp) suits the experiment and that the binding ranges flank the feature you need. The right primer is already written 5′ to 3′ and can be ordered as shown; reverse-complementing it again is a common mistake. Primer3 records the right primer by its rightmost template base, which is why the native coordinate 550,20 and the derived range 531-550 look different.
Pair Penalty ranks pairs within one run and has no universal cutoff. With the default settings it grows by 1 for each degree a primer's Tm sits from Optimal Tm (C) and by 1 for each base its length sits from Optimal primer size (bp), then adds the two primers together. A pair at 1.5 is therefore not bad in itself; it may just use a 22 nt primer. A pair with a slightly higher penalty can be the better choice when it places the amplicon better or has cleaner 3′ interactions.
Optimal GC (%) and Optimal product size (bp) enter this score only through their weights, which default to 0 as in Primer3. On a 1,500 bp test template with a 100 to 600 bp range, the top three products were 319, 321 and 477 bp. Setting Optimal product size (bp) to 550 changed nothing until both product weights were set to 0.05; the top three then became 550, 547 and 549 bp.
A weight sets how many penalty points one unit of distance costs, so it trades off against the Tm and length terms. A product weight of 0.05 makes 20 bp from the optimum cost as much as 1 °C of Tm, while a weight of 1 lets product size dominate the ranking. The weights rank pairs but never reject one; use the minimum and maximum limits for anything that must hold.
Left Tm (C) and Right Tm (C) depend on the PCR chemistry settings, which default to SantaLucia 1998, 50 mM monovalent salt, 1.5 mM Mg²⁺, 0.6 mM dNTPs and 50 nM primer. A kit with 3 mM Mg²⁺ raises every Tm by a degree or two, so match these fields to the real reaction before comparing a Tm with an annealing temperature. The bound percentages are thermodynamic estimates at one temperature, not a substitute for a gradient PCR.
The complementarity and hairpin columns are melting temperatures in °C, not percentages or alignment scores. Each is checked against a 47 °C limit by default. In the example, the left primer's hairpin Tm of 32.5 °C sits well below that limit and below the primer's own 60 °C Tm, so the hairpin melts before the primer anneals; a hairpin Tm within a few degrees of the limit deserves a closer look in Oligo Analyzer, which draws the structure.
The 3′ variants matter most, because a polymerase can extend a duplex that ends at the 3′ base. End stability is the binding energy of the last five 3′ bases in kcal/mol. The example primers sit at 3.27 and 2.29. A higher value means a stickier 3′ end that primes more readily, including at partial matches elsewhere in the template.
primer3_results.json includes PRIMER_LEFT_EXPLAIN, PRIMER_RIGHT_EXPLAIN and PRIMER_PAIR_EXPLAIN for every run. In the default example the left count reads considered 5010, GC content failed 2, low tm 1370, high tm 1750, ok 1888: most rejections came from the Tm window, and almost none from GC content.
The same counts explain an empty table. Raising the Tm window on that template to 75 to 77 °C leaves ok 27 on each strand, but the pair count reads considered 1, unacceptable product size 1, ok 0. Enough primers passed; none of them could be paired into a 100 to 300 bp product. The fix is to widen the product range or the Tm window, not to relax structure limits.
Use Target region when the amplicon must contain a feature such as a SNP, an exon junction or a repeat. For a SNP at position 350, set the start to 350 and the length to 1: primers can land anywhere, but the product must include that base. Included region restricts both primers to an interval, which suits a template with vector or low-quality ends. An excluded region keeps primers off one stretch, such as a known variant, and works with either mode.
Positions are 1-based. Leave clean sequence on both sides of a target, because Primer3 cannot place primers on bases you did not submit. Long runs of N, repeats and vector sequence reduce the number of legal sites, and GC Content shows unusual template composition before you design.
Set the product size range first. The default of 100 to 300 bp is a hard limit, and its minimum must fit inside the template or included region. Long-range products up to the template length are accepted; how long PCR takes explains why a longer product needs a longer extension step.
The default Tm window of 57 to 63 °C and primer length of 18 to 27 nt are a reasonable first pass. The default GC window of 20 to 80% is permissive; 40 to 60% is common for routine PCR, while AT-rich or GC-rich loci may need broader limits.
Max Tm difference (C) defaults to 100 °C, which imposes no pairing requirement, and many protocols use 3 to 5 °C. Tighten quality and structure limits one at a time and watch the explain counts to see which limit removes candidates.
When a region returns nothing, raise Maximum primer size (bp) or lower Minimum Tm (C) for an AT-rich template, broaden the GC limits if the composition requires it, and relax complementarity or hairpin limits last. Avoid shortening primers just to force a result, because a shorter oligo has more possible matches in a genome.
Primer3 searches only the submitted template, so a pair can look ideal and still amplify another locus. For genomic or cDNA samples, run the leading pairs through NCBI Primer-BLAST, which adds a BLAST search of the chosen organism to the same Primer3 design. Check known variants under the binding sites when samples are genetically diverse, and order the best two or three pairs rather than relying on one computational winner.
This tool runs Primer3's PCR pair design and primer checking. It does not design hybridization probes, sequencing primers or cloning primers, and it does not offer Primer3's mispriming libraries, quality scores, lowercase masking or its other penalty weights. A run takes one target or one included region and one excluded region; for several targets, run the template once per target. For RT-qPCR, exon-junction placement is not enforced, so place the target across the junction yourself.
Joint protein and coding DNA design from protein backbones
Humanize antibody sequences and evaluate humanness scores for therapeutic development.
Redesign chosen residues on a fixed protein structure.
Design sequences for a structure or an aligned ensemble
Optimize coding DNA for a target organism with DNA Chisel while preserving its translation.
Evolve antibody sequences or score paired-antibody variants with a neural continuous-time Markov chain.
Mutate DNA online by exact count or mutation rate, with reproducible controls and FASTA export.
Design protein sequences from 3D backbone structures with controllable sampling diversity.
Design protein sequences optimized for thermal stability from backbone structures.
Design antibody CDR loops from antibody-antigen complex structures using inverse folding.