Most pharmacies count pills using a combination of manual counting trays, automated machines, and robotic dispensing systems. The method depends on the pharmacy’s size, the volume of prescriptions it fills, and whether the medication is a controlled substance. The process is more involved than it looks from the pickup window, with specific steps designed to get the count right and prevent cross-contamination between drugs.
Manual Counting by Hand
The most common method, especially in independent and lower-volume pharmacies, is a plastic counting tray and a spatula. The tray is a flat, triangular or rectangular surface with a lip around the edge and a small channel that funnels pills into a counting area. A pharmacy technician pours pills from the stock bottle onto the tray, then uses the spatula to slide them into groups of five across a scored line. Once the correct number is reached, the counted pills are swept into a bottle or vial through the tray’s pour spout, and the extras go back into the stock container.
This sounds simple, but doing it hundreds of times a day at speed is where errors creep in. A pilot study comparing traditional manual counting to a guided counting device found that manual methods produced an error rate of 12.6% of prescriptions with an inaccurate count, compared to 4.8% when technicians used a structured counting tool. Most of those errors are off by just one or two pills, but in a high-volume pharmacy filling several hundred prescriptions a day, even small mistakes add up.
Automated Counting Machines
Many chain pharmacies and busy independents use tabletop automated counters. These machines work by vibrating pills down a chute, one at a time, past an optical or infrared sensor that registers each tablet individually. The technician sets the target count, pours pills into the hopper, and the machine stops dispensing once the number is reached. The pills drop into a vial positioned underneath.
Some counters use a photoelectric eye, which is a small beam of light that breaks each time a pill passes through. Others use a camera-based system that photographs the pills on a platform and counts them by recognizing individual shapes. Camera-based systems can also flag pills that look different from what’s expected, catching the occasional wrong tablet that ended up in the wrong stock bottle. Both types are significantly faster than hand counting, processing a 30- or 90-day supply in seconds rather than a minute or more.
Robotic Dispensing Systems
High-volume pharmacies, including hospital pharmacies and large mail-order operations, use fully robotic systems. Brands like ScriptPro and Parata are among the most widely installed. These robots store hundreds of the most commonly dispensed medications in individual cells, each loaded with a specific drug. When a prescription order comes through the pharmacy’s computer system, it lands in a pending work queue. A pharmacist or technician verifies the order, and the robot retrieves the correct drug from its cell, counts the exact quantity, drops the pills into a vial, and prints and applies a label.
In systems like ScriptPro’s SP200, the software tracks which medications are stored in which cell and monitors inventory levels. Once filling is complete, a pharmacist reviews the finished prescriptions in a verification workspace before they’re placed on a shelf, typically in alphabetical order by the patient’s last name, for pickup. The robot handles the repetitive counting, freeing pharmacists to focus on checking for drug interactions and counseling patients.
Counting Controlled Substances
Controlled medications follow stricter rules. Federal regulations from the DEA require that Schedule I and Schedule II drugs (which include opioids like oxycodone, stimulants like amphetamine, and others with high abuse potential) receive an exact count or measure whenever a container is opened. This isn’t optional or approximate. Every tablet must be accounted for.
In practice, this means most pharmacies double-count Schedule II medications. A technician counts the pills once, and a pharmacist independently counts them again before the prescription is sealed. Many pharmacies keep a running log for these drugs, recording exactly how many tablets came in from the supplier, how many were dispensed for each prescription, and how many remain. If the numbers don’t reconcile, it triggers an investigation. Some pharmacies use dedicated counting trays or automated counters exclusively for controlled substances to maintain a clean chain of custody and avoid any ambiguity about what was counted where.
Preventing Cross-Contamination
One detail most people don’t think about is that counting trays and equipment touch residue from every drug that passes over them. This matters most for patients with serious drug allergies. Penicillin-based antibiotics and sulfa drugs are the two biggest concerns because allergic reactions to them can be severe.
Most pharmacies keep at least one dedicated counting tray that is used exclusively for penicillin and its relatives, and another for sulfa-based medications. These trays are typically marked with bright labels or colored tape so no one accidentally uses them for other drugs. The general-use tray gets wiped down between different medications, but the allergen-specific trays never touch non-allergen drugs at all.
For the general tray, cleaning protocols vary by pharmacy, but the standard approach involves wiping the surface with alcohol pads or sanitizing wipes between fills. Wet wipes and alcohol-based wipes are more effective at removing drug residue than dry wiping. Automated counters also need cleaning between drugs, which is one reason some pharmacies dedicate individual cells in their robots to specific medications rather than swapping drugs in and out of the same hopper.
What Happens After the Count
Counting is only one step in a longer chain. After the correct number of pills is in the vial, a pharmacist performs a final verification. This typically involves checking that the pill’s appearance (shape, color, imprint code) matches what the label says, confirming the count, and reviewing the prescription for accuracy. In many pharmacies, the technician places the stock bottle next to the filled vial so the pharmacist can visually compare them. Some systems photograph the pills during counting so the pharmacist can verify on screen without opening the vial.
The entire process, from the moment an electronic prescription hits the pharmacy’s system to the moment the labeled vial goes on the shelf, can take as little as a few minutes with robotic help or 10 to 15 minutes with manual counting and a busy queue. The goal at every step is the same: the right drug, the right dose, the right count, in the right patient’s hands.

