How to Perform a PCR Test Step by Step

Understand the complex process of PCR. This guide details every step, from sample preparation and thermal cycling to final result interpretation.

Performing a PCR test comes down to mixing a handful of ingredients in a tiny tube, then repeatedly heating and cooling that tube so a specific stretch of DNA gets copied millions of times over. The whole process, from assembling reagents to reading results on a gel, can take as little as a few hours. But each step has details that determine whether you end up with a clean band of amplified DNA or a frustrating smear of nothing. Here is how the process works from start to finish, along with the practical know-how that separates a successful reaction from a failed one.

Extracting DNA Before the Reaction

Before anything goes into the thermal cycler, you need a usable DNA (or RNA) template. The source of that template varies enormously: it might be a patient’s nasal swab, a blood sample, a piece of tissue, soil, food, or even ancient bone. Whatever the source, the goal of extraction is the same: separate the nucleic acids from everything else in the sample while keeping them intact enough to serve as a copying template.

Two extraction methods dominate modern labs. Spin-column kits use a small silica membrane inside a centrifuge tube. You lyse (break open) the cells, pass the liquid through the column so DNA sticks to the silica, wash away proteins and salts, then elute the purified DNA into a clean buffer. The alternative is magnetic-bead extraction, where silica-coated or carboxyl-coated magnetic particles bind the nucleic acids; a magnet pulls the beads to the side of the tube while you wash away contaminants, then you release the DNA into solution. Magnetic beads tend to recover more nucleic acid and produce lower threshold-cycle values in downstream quantitative PCR, meaning they capture more of the target material. For most routine lab work, though, either method produces template clean enough to amplify.

Quality matters here more than people expect. If your extraction carries over substances from the original sample, those contaminants can cripple the reaction downstream. Blood contains heme, soil contains humic acid, and food matrices have their own cocktail of problematic molecules. Getting a clean extract is the unglamorous foundation that the rest of the protocol depends on.

Assembling the Reaction Mix

Once you have purified template DNA, the next step is combining it with the other reaction components in a thin-walled PCR tube or plate well. The standard reaction mix contains template DNA, two oligonucleotide primers (short single-stranded DNA sequences that bracket the region you want to copy), a thermostable DNA polymerase, free nucleotides (the building blocks abbreviated dNTPs), and a buffer solution that maintains the right salt concentration and pH. That is it. The entire reaction typically sits in a volume of 20 to 50 microliters, smaller than a single raindrop.

Each ingredient has a job. The primers tell the polymerase where to start copying. The dNTPs supply the raw material, the individual A, T, G, and C units that get strung together into new DNA strands. The buffer keeps the magnesium ion concentration in the right range, which the polymerase needs to function. And the polymerase itself, most commonly Taq polymerase originally isolated from a heat-loving bacterium, is the molecular workhorse that builds the new strands. It survives the high temperatures used to separate DNA strands because it evolved in hot springs.

Everything gets pipetted on ice to prevent the polymerase from acting prematurely. Even at room temperature, primers can bind loosely to non-target sequences, and if the polymerase starts extending those mis-primed sites before cycling begins, you end up with unwanted products. This is why many modern protocols use “hot start” polymerases or chemically modified primers that only become active once the reaction reaches high temperature. Hot start approaches are especially useful in multiplex reactions, where several primer pairs share the same tube and the risk of nonspecific amplification increases.

Designing Primers That Actually Work

Primers are arguably the most important variable in the entire protocol. Two short DNA sequences, each typically 18 to 25 bases long, define what gets amplified. One primer binds the forward strand, the other binds the reverse strand, and the stretch of DNA between them is your target. If the primers are poorly designed, nothing else you do will rescue the experiment.

Good primers share a few characteristics. They should have a melting temperature (the temperature at which they detach from the template) in the range of roughly 55 to 65 °C, and both primers in a pair should have melting temperatures within a couple of degrees of each other. Primers that fold back on themselves to form hairpins, or that bind to each other to form dimers, waste reagents and compete with the intended reaction. These secondary structures become a serious concern when working with GC-rich templates, where the high stability of G-C base pairs makes both the template and the primers prone to forming unwanted structures.

In practice, most people design primers using free software tools that check for self-complementarity, calculate melting temperatures, and flag potential problems. The software takes the guesswork out, but understanding what it is checking for helps you troubleshoot when a reaction that looks good on screen fails at the bench.

The Three Thermal Cycling Steps

With the reaction assembled, the tube goes into a thermal cycler, a programmable heating block that rapidly shifts temperature according to your protocol. A standard PCR run repeats three temperature steps about 25 to 35 times. Each cycle roughly doubles the amount of target DNA, so after 30 cycles you can go from a handful of template molecules to billions of copies.

The three steps within each cycle are:

  • Denaturation: The reaction heats to around 94–98 °C for 15 to 30 seconds. At this temperature, the two strands of the double-stranded DNA template separate, giving the primers access to bind.
  • Annealing: The temperature drops to around 50–65 °C for 15 to 60 seconds. This cooler temperature lets the primers find and bind to their complementary sequences on the now-single-stranded template. The exact annealing temperature depends on the primers’ melting temperature; too high and the primers won’t stick, too low and they’ll bind non-specifically to the wrong sequences.
  • Extension: The temperature rises to about 72 °C, the optimal working temperature for Taq polymerase. The enzyme reads along each template strand and builds a new complementary strand, starting from the primer and adding nucleotides one by one. Extension time depends on the length of the target: a rule of thumb is about one minute per kilobase of expected product.

Before cycling begins, most protocols include an initial denaturation step at 94–98 °C for two to five minutes. This ensures the template is fully separated and, if you are using a hot-start polymerase, activates the enzyme. After the final cycle, a final extension step at 72 °C for five to ten minutes gives the polymerase time to finish any incomplete strands. Then the cycler holds the tubes at 4 °C until you retrieve them.

The whole cycling program typically runs for one to three hours, depending on the number of cycles, the length of each step, and how fast the thermal cycler ramps between temperatures. Modern fast-cycling instruments can finish in under an hour for short targets.

Seeing Your Results on a Gel

After thermal cycling, you have a tube of liquid that looks no different from when you started. The DNA is invisible. To confirm that the reaction worked, you need to visualize the product, and the most common way to do that is agarose gel electrophoresis.

You pour a slab of agarose gel (think of it as a molecular sieve made from seaweed extract), load a small aliquot of your PCR product mixed with a loading dye into a well at one end, and apply an electric current. DNA carries a negative charge, so it migrates toward the positive electrode. Smaller fragments move through the gel’s pores faster than larger ones, so the products separate by size. You run a DNA ladder, a set of fragments of known sizes, alongside your samples so you can estimate the size of whatever shows up.

To see the DNA, you need a fluorescent dye that binds to it. The traditional choice has been ethidium bromide, a potent intercalating dye that fluoresces under ultraviolet light. It works well but is mutagenic, so labs have increasingly switched to safer alternatives. Dyes like GelRed, GelGreen, SYBR Green, and Midori Green offer comparable or better sensitivity and can often be visualized without intense UV exposure. GelRed in particular, when used at the right concentration in the loading buffer, does not alter band mobility, which means fragment size determination stays accurate. Some labs even use visible-light LED systems instead of UV transilluminators, which further reduces the safety concerns associated with UV exposure while still exciting common dyes at their visible absorption peaks.

A successful reaction shows a single bright band at the expected size. A faint band might mean low template input or suboptimal conditions. Multiple bands suggest nonspecific amplification, and a complete absence of any band means either the reaction failed or there was no target DNA in the sample to begin with.

What Goes Wrong and How to Fix It

PCR has a reputation for being finicky, and the most common culprits behind failed reactions fall into a few categories.

Inhibitors carried over from sample extraction are a persistent headache. Substances like heme from blood, humic acid from soil, calcium ions, and various food-matrix compounds can block the DNA polymerase from doing its job or interfere with primer binding. The classic fix is to dilute the DNA extract, which reduces inhibitor concentration but also reduces template concentration, a tradeoff that is not always acceptable. A better approach for tough samples is to use inhibitor-tolerant polymerase blends that power through contaminants, or to add more aggressive purification steps before setting up the reaction. For especially stubborn matrices like soil or forensic samples with high levels of humic acid or metal ions, specialized extraction techniques may be the only reliable option.

Contamination is the other major enemy. Because PCR is so sensitive, even a trace amount of previously amplified DNA drifting into your reaction mix can produce a false positive. This is called carryover contamination, and it is a real problem in high-throughput labs that run the same assay hundreds of times a day. One widely used countermeasure is to incorporate dUTP (a modified nucleotide) into all PCR products and then treat new reaction mixes with uracil-DNA glycosylase (UNG) before cycling begins. UNG destroys any uracil-containing DNA from previous runs while leaving the natural thymine-containing template untouched. Beyond enzymatic safeguards, standard lab hygiene matters enormously: separate pre-PCR and post-PCR work areas, dedicated pipettes, frequent glove changes, and the use of no-template controls (reaction tubes with everything except DNA) to catch contamination when it happens.

Nonspecific amplification, where you get extra bands you did not want, usually traces back to primer design issues or an annealing temperature that is too low. Raising the annealing temperature by a degree or two, or switching to a hot-start polymerase, often cleans things up. Gradient thermal cyclers let you test several annealing temperatures simultaneously across a single row of tubes, which saves time when optimizing a new assay.

Real-Time PCR and How It Differs

Standard or “endpoint” PCR tells you whether your target sequence was present: you see a band or you don’t. But it does not tell you how much target was there to start with, because by the time the reaction finishes, the exponential amplification has plateaued and products of very different starting quantities can look similar on a gel. Real-time PCR (also called quantitative PCR, or qPCR) solves this by measuring the accumulation of product during each cycle, not just at the end.

In a qPCR run, a fluorescent signal is monitored after every cycle. The cycle at which the fluorescence crosses a set threshold, called the Ct or Cq value, is inversely proportional to the amount of starting material: the more target DNA in the original sample, the fewer cycles it takes to generate detectable fluorescence. The two most popular detection chemistries are SYBR Green, a dye that fluoresces when it binds any double-stranded DNA, and TaqMan probes, short labeled sequences that bind specifically to the target and release fluorescence as the polymerase chews through them. SYBR Green is cheaper and simpler to set up, but TaqMan probes offer greater specificity because the signal depends on the probe matching the target sequence, not just on any double-stranded DNA being present. One comparison of the two methods in detecting drug-resistant tuberculosis found TaqMan-based qPCR to be about twice as analytically specific as the SYBR Green method.

When the starting material is RNA rather than DNA, a reverse transcription step converts the RNA into complementary DNA (cDNA) before amplification. This combined workflow is called RT-qPCR and is the backbone of clinical diagnostics for RNA viruses, gene expression studies, and much of the COVID-19 testing infrastructure that became globally familiar during the pandemic.

Digital PCR and Absolute Quantification

Digital PCR, particularly droplet digital PCR (ddPCR), takes a conceptually different approach to counting molecules. Instead of watching a fluorescence curve rise over many cycles, ddPCR partitions the reaction into thousands or millions of tiny droplets, each containing either zero or a small number of target molecules. After amplification, each droplet is scored as positive or negative, and statistics give you an absolute count of the starting molecules without needing a standard curve. This provides far greater precision and sensitivity than real-time PCR for certain applications.

The sensitivity advantage became especially visible during COVID-19 testing. One study comparing ddPCR and standard RT-PCR for SARS-CoV-2 detection found that ddPCR could reliably detect as few as about two copies per reaction, while standard RT-PCR required roughly 500 times more copies to achieve the same confidence. That kind of difference matters enormously for patients with low viral loads who might be missed by a less sensitive test. A separate analysis of approved SARS-CoV-2 assays found that the limit of detection across different platforms varied over 10,000-fold, with the best assays detecting around 100 copies per milliliter of transport media and the worst missing patients at many times that concentration. The estimated clinical sensitivity of a well-optimized assay was about 90%, meaning roughly one in ten truly infected individuals could still receive a false-negative result.

Multiplex PCR and Running Several Targets at Once

Sometimes you need to detect more than one target in a single reaction. Multiplex PCR uses multiple primer pairs in the same tube, each designed to amplify a different DNA sequence. Clinical labs use multiplex panels to screen for respiratory viruses, sexually transmitted infections, or foodborne pathogens in one go, saving both time and sample volume.

The challenge is that multiple primer pairs are more likely to interact with each other, forming primer dimers or competing for reagents in ways that suppress amplification of one or more targets. Careful primer design is critical: all primer pairs need compatible melting temperatures, and none should form stable duplexes with any other primer in the mix. Hot-start polymerases help here by preventing any extension until cycling begins, reducing the window during which primers can misbehave at low temperatures. On the detection end, multiplex qPCR typically uses TaqMan-style probes labeled with different fluorescent colors so each target generates a distinguishable signal.

Miniaturized and Point-of-Care Systems

The traditional PCR setup involves benchtop equipment and trained technicians, but the technology has been shrinking. Microfluidic PCR devices integrate sample preparation, amplification, and detection onto a chip the size of a credit card. These systems use tiny reaction volumes (sometimes less than a microliter), which cuts reagent costs and speeds up thermal cycling because less liquid needs to be heated and cooled. The trade-off is that these platforms are usually designed for specific pre-validated assays rather than the flexible, anything-goes experimentation that bench PCR allows.

Isothermal amplification methods like LAMP (loop-mediated isothermal amplification) are sometimes confused with PCR, but they work at a single constant temperature and do not require a thermal cycler at all. They are simpler to deploy in resource-limited settings, though they come with their own primer design complexity and are less versatile than PCR for research applications. If you have seen rapid molecular tests used in pharmacies or field clinics, many of those are isothermal rather than true PCR, even though the public often lumps them together.

The gap between a traditional research-grade PCR workflow and a point-of-care test continues to narrow. Fully integrated cartridge-based systems now handle extraction, amplification, and readout with minimal hands-on time. For the bench scientist running custom experiments, the step-by-step process described above remains the standard. But for clinical diagnostics, the trend is toward sealed, automated platforms where the user loads a sample and receives a yes-or-no answer without ever pipetting a primer.