FoldRx drug discovery pipeline is live

Primer dimer & hairpin checker

Maintained by the Talindrew team · Last updated

A primer that is complementary to itself forms dimers or hairpins instead of binding template. This check slides the oligo against its own reverse complement and reports the longest self-complementary run, the longest run anchored at the 3′ end (the dangerous kind: polymerase extends it), and any hairpin with a stem of four or more pairs.

Result

VerdictPalindrome, fully self-complementary
Longest self-dimer run8bp
Longest 3′-anchored run8bp
Hairpin (stem ≥ 4, loop ≥ 3)none found

Sliding self-alignment scan (OligoCalc approach, Kibbe 2007). Runs ≥ 4 bp, especially 3′-anchored ones, risk primer-dimers; ΔG-based scoring like IDT OligoAnalyzer's is on the roadmap. Verify borderline oligos there.

Keep this calculation and use it on a real construct

Free account. You land on this calculator with your numbers already filled in, next to your sequences, cloning wizards and lab notebook.

Open it in Talindrew, free

What it looks like

self-dimerGGGATCCCCCCTAGGG5′3′3′5′Self-dimer: longest run 8 bp (palindrome), 3′-anchored run 8 bphairpinNo hairpin found8 nt is too short to fold: a 4 bp stem and 3 nt loop need 11
Top: a second copy of the oligo, turned to run 3′ to 5′, slides along the first and stops where the longest unbroken run of Watson-Crick pairs forms, the self-dimer the widget reports. Bottom: the oligo folds back on itself at the hairpin the widget finds (stem of 4 or more bp, loop of 3 or more nt). Pairs are counted by the widget's sliding scan, not scored by ΔG. Long oligos are drawn around the paired region, and a loop longer than 22 nt as dots.

Formula

Slide seq vs revcomp(seq) at every offset → longest complementary run; hairpin: inverted repeat, stem ≥ 4, loop ≥ 3

Source: Sliding self-alignment as in OligoCalc (Kibbe, NAR 2007)

Worked example

Given: 8-mer GGGATCCC (BamHI site with G/C padding)

  1. 1.Reverse complement of GGGATCCC is GGGATCCC: the oligo is a palindrome.
  2. 2.Every base pairs in the self-alignment: an 8/8 self-dimer, 3′-anchored.
  3. 3.Two such oligos anneal to each other completely: as a primer this sequence would dimerise, not prime.

Palindrome: fully self-complementary (8 bp run)

How the calculation flows

The oligo is aligned against its own reverse complement at every offset; contiguous matches mark self-complementary stretches that can pair.oligo5′ → 3′vs revcompall alignmentsruns + hairpinslongest matchesverdictdimer risk
The oligo is aligned against its own reverse complement at every offset; contiguous matches mark self-complementary stretches that can pair.

Units & constants

Self-dimer thresholdRuns ≥ 4 bp worth attention; ≥ 6 bp significant
3′-anchored runsMost dangerous: extendable by polymerase into artefacts
Hairpin criteriaStem ≥ 4 bp, loop ≥ 3 nt (minimum stable loop)
MethodSequence alignment scan (v1); ΔG-based NN scoring on the roadmap
Cross-checkIDT OligoAnalyzer hairpin/self-dimer for thermodynamic ΔG values
PriceFree

Why are 3′ self-complementary ends the worst?

A dimer paired anywhere else is an equilibrium nuisance; a dimer paired at the 3′ end is a substrate. The polymerase extends it, converting two primers into a stable double-stranded artefact that amplifies exponentially and consumes primer, the classic 'primer-dimer' band at the gel front. Design rule: avoid 3 or more bases of self-complementarity within the last 5 nucleotides.

What does a hairpin do to a primer?

An intramolecular stem-loop competes with template binding, effectively lowering the primer's available concentration and its apparent Tm. Stems of ≤ 3 bp are usually harmless at annealing temperatures; stems of 4+ closing near the 3′ end can kill priming outright. Sequence-level scanning finds the candidates; a ΔG calculation (IDT OligoAnalyzer) tells you whether they are stable at your annealing temperature.

When is self-complementarity intentional?

Palindromes are how restriction sites work, GGATCC (BamHI) reads the same on both strands, and annealed-oligo cloning deliberately orders two complementary oligos. Molecular beacons rely on engineered hairpins. The check flags the physics; whether it is a bug or the design depends on what the oligo is for.

Frequently asked questions

Not automatically. A 4 bp internal run is common and usually harmless. Redesign when the run is ≥ 6 bp, sits at the 3′ end, or IDT OligoAnalyzer reports a self-dimer ΔG more negative than about −9 kcal/mol.

Version 1 is a sequence-level scan (the OligoCalc approach): fast, dependency-free and right about which stretches can pair. Thermodynamic scoring of those stretches with nearest-neighbor ΔG, what IDT does, is on the roadmap; until then, use the linked OligoAnalyzer for borderline calls.

Related calculators & guides

Use this calculator inside the app

Free to use. No download required. Sign in and you land right back on this calculator.

Start for free