Pills are made by blending active ingredients with inactive fillers, compressing or encapsulating the mixture into a precise dose, and then coating the finished product for stability or controlled release. The process varies depending on whether the final product is a pressed tablet, a hard-shell capsule, or a softgel, but every method follows the same core principle: get an exact amount of drug into a form that dissolves predictably inside your body.
Turning Raw Powder Into Pressable Material
The active ingredient in most pills makes up only a small fraction of the total weight. The rest is a blend of inactive ingredients: fillers to add bulk, binders to hold everything together, and lubricants to keep the mixture from sticking to machinery. Before any of this can be pressed into a tablet, the powders need to flow smoothly and pack evenly. That’s where granulation comes in.
Wet granulation is the most common method. Workers mix the dry powders together, then spray in a liquid (often water or an alcohol-based solvent mixed with a binding agent) to form a damp mass. The wet clumps are dried, screened through a mesh to create uniform granules, dusted with a lubricant, and then sent to the compression stage. The process is time-consuming and requires multiple pieces of equipment, but it produces granules that flow consistently and compress well.
Dry granulation skips the liquid entirely. Instead, the blended powder is fed through a roller compactor that squeezes it into dense sheets or “slugs.” Those compacted sheets are then broken apart and screened into granules. This approach works best for drugs that are sensitive to moisture or heat, since no drying step is needed.
For the simplest formulations, manufacturers skip granulation altogether and use direct compression. The blended powder goes straight into the tablet press. This only works when the powders already flow well and pack evenly on their own, which limits it to certain drug and filler combinations.
How Tablets Get Pressed
Modern tablet presses are rotary machines, essentially large spinning carousels lined with dozens of small metal molds called dies. Each die has an upper and lower punch, like tiny pistons, that compress the powder from both sides simultaneously. The process runs continuously through four stages: filling, weight control, compression, and ejection.
First, a feeding mechanism (usually a spinning impeller or screw) distributes granules evenly into each die cavity as the carousel rotates. Sensors check the fill weight in real time to make sure every tablet contains the correct dose. Then the die passes between the upper and lower punches, which squeeze together under enormous pressure. Both the force and the duration of that squeeze determine how hard or how quickly the tablet will dissolve. After compression, an ejection cam pushes the lower punch upward, popping the finished tablet out of the die and onto a collection conveyor.
The speed of these machines is staggering. A mid-size rotary press typically produces 100,000 to 300,000 tablets per hour. The largest double-sided presses, which compress tablets on both the upstroke and downstroke, can exceed one million tablets per hour.
How Capsules Are Filled
Hard-shell capsules and softgels are made through completely different processes.
Hard capsules start as empty shells. Manufacturers dip rows of metal pins into a warm gelatin solution (or a plant-based polymer for vegetarian capsules). The gelatin dries around the pins, forming two halves: a slightly larger “body” and a slightly smaller “cap.” These are trimmed, separated, and shipped to the filling facility, where automated machines load a measured dose of powder, pellets, or miniature tablets into the body half, then snap the cap into place. This two-step approach is relatively simple and cost-effective.
Softgels are produced in a single continuous step on rotary die machines. Two thin ribbons of warm, flexible gelatin (made pliable by adding glycerin or sorbitol) feed from opposite sides into a set of rotating dies. At the exact moment the dies press together, a pump injects a measured dose of liquid or semi-solid fill material between the ribbons. The machine simultaneously forms the shell, fills it, and heat-seals the edges, punching out a finished capsule in one motion. This is why softgels always contain liquid or paste fills rather than dry powder.
Why Tablets Get Coated
Most tablets you see in a pharmacy have a thin film coating, and it does more than make the pill easier to swallow. Coating protects the drug from moisture and light, masks bitter tastes, and can control exactly where in your digestive tract the tablet breaks down.
Film coating works by spraying a fine mist of dissolved polymer onto tablets tumbling inside a rotating drum. The solvent evaporates quickly, leaving behind a smooth, uniform layer just microns thick. The coating liquid’s surface tension, viscosity, and temperature all have to be tightly controlled so it spreads evenly without pooling or flaking. Plasticizers are mixed into the coating solution to keep the dried film flexible rather than brittle.
Enteric coatings are a specialized version designed to survive stomach acid intact. These polymers remain solid at low pH (the acidic environment of your stomach) but dissolve once they reach the higher pH of your small intestine. This protects drugs that would be destroyed by stomach acid, or protects your stomach lining from drugs that cause irritation. The specific polymer chosen determines the exact pH at which the coating dissolves, some releasing the drug in the upper intestine at pH 5.5, others waiting until pH 6 or higher.
Quality Testing Before Pills Leave the Factory
Every batch of tablets goes through a battery of tests before it can be packaged. The most important is dissolution testing, which measures how quickly the drug releases from the tablet in simulated body conditions. For standard immediate-release tablets containing highly soluble drugs, the benchmark is that at least 80% of the active ingredient must dissolve within 30 minutes. Testing is done in a small vessel of acidic solution held at body temperature (37°C), with either a small basket or paddle stirring the liquid at a controlled speed.
Weight uniformity testing confirms that every tablet in a sample contains the same amount of material, which ensures consistent dosing. Hardness testing checks that tablets are strong enough to survive packaging and shipping without crumbling. And friability testing tumbles a batch of tablets in a rotating drum to see how much dust or chipping occurs from normal handling. If any test falls outside specifications, the entire batch can be rejected.
The Cleanroom Environment
Pharmaceutical manufacturing happens inside controlled environments where the air itself is filtered and monitored. Different stages of production require different levels of cleanliness, measured by the number of airborne particles per cubic meter of air. The most critical areas, where sterile products are directly exposed, allow no more than 3,520 particles (0.5 microns or larger) per cubic meter and should yield essentially zero microbial contamination. Less critical areas like equipment cleaning zones permit up to 3.52 million particles per cubic meter.
Temperature, humidity, and air pressure are all tightly regulated. Rooms where pills are manufactured maintain positive air pressure relative to surrounding hallways, so that when a door opens, clean air flows outward rather than letting contaminants drift in. Workers wear gowns, gloves, and often face shields. The metal tooling inside tablet presses (the punches and dies that shape each tablet) is inspected regularly under magnification for microscopic scratches or wear, cleaned with ultrasonic machines, dried with compressed air, and stored in humidity-controlled cabinets between production runs. Even tiny defects in tooling can cause weight variation or crumbling in the finished product.
From Press to Pharmacy Shelf
After passing quality checks, tablets move to high-speed packaging lines where they’re sorted into blister packs, bottles, or sachets. Blister packaging seals each tablet in its own individual pocket of plastic or aluminum foil, protecting it from moisture and making it easy to track whether a dose has been taken. Bottles are typically filled with a desiccant packet to absorb humidity. Every package is labeled with a lot number that traces back to the exact batch of raw materials, the specific press that made it, and the results of every quality test it passed. If a problem surfaces months or years later, manufacturers can trace it back to its origin within hours.