Flask to Pharmacy: follow a drug from synthesis to the shelf
Pick one of 23 common medicines and follow it through eight stages, from the reaction in the flask to the pack on the pharmacy shelf. At each stage you make a decision, and the page shows what that decision does to the stability and shelf life of your product.
The eight stages
- Synthesis. The key reactions step by step, with skeletal structures and curved arrows, a short quiz and a yield calculator. The steps are the ones taught in medicinal chemistry courses, simplified for clarity.
- Purification. How the crude product is cleaned up, and how to read a batch record: which results release a batch and which reject it, even when the appearance is fine.
- Pre-formulation. The properties of the drug that decide everything later: ionisation and pKa, charge against pH, solubility and stability against pH, and the Biopharmaceutics Classification System.
- Formulation. Choose the excipients for the dosage form. Each ingredient brings or fixes a risk. A filler that reacts with the drug's amine, or an alkaline lubricant for an acid-labile drug, shows up in the stability score.
- Manufacture. Choose the process, for example direct compression, wet granulation or aseptic filling, and try a small simulation of the key step, such as tablet compression, capsule filling or reconstituting a vial.
- Quality control. Release or reject realistic batch records, and diagnose common defects from their symptoms.
- Packaging. Moisture, light and oxygen barriers, child-resistant closures, and what happens to the product once the pack is opened.
- Your product. The result: your formula, process and pack judged together, shown on a carton with your own name on it.
What it teaches
Three ideas run through every drug. First, the same functional group that makes a molecule work is often the one that makes it unstable: an amide hydrolyses, a phenol oxidises, a primary amine reacts with lactose. Second, a dosage form is a set of compatible choices, so a good excipient for one drug can be a poor one for another. Third, the pack is part of the formulation, because it decides how much water, light and oxygen the drug meets over its life.
Some examples. Ciprofloxacin chelates calcium, magnesium, aluminium and iron, which is why it should not be taken with antacids or iron tablets; both of those are also in the list below. Ceftriaxone precipitates with calcium, so it must never be mixed with calcium-containing infusions. Amoxicillin is sold as a dry powder because its β-lactam ring is destroyed by water, and the made-up suspension keeps for only about two weeks in a refrigerator. Ferrous sulfate oxidises to a brown ferric salt, and iron tablets are a common cause of serious poisoning in small children, which is why child-resistant packaging matters.
The drugs and dosage forms
Pain and fever
- Paracetamol (Tablet 500 mg; Syrup 120 mg/5 mL; Suppository 125 mg). Pick a dosage form at stage 4: the same drug becomes a tablet, a syrup or a suppository, and each asks different questions.
- Ibuprofen (Film-coated tablet 200 mg). A greener three-step industrial route, and a drug that sticks to the press.
- Naproxen (Film-coated tablet 250 mg). Only one mirror-image form is the medicine, and the ring system is light-sensitive.
- Diclofenac (topical) (Gel 1 %). A gel instead of a tablet: the polymer, the pH and the drug salt all have to agree.
Cold and allergy
- Diphenhydramine (Capsule 25 mg). A stable cation makes the ether easy to build, and easy to break again in acid.
- Cetirizine (Film-coated tablet 10 mg). A molecule that is positive in one place and negative in another, and what that does to solubility.
- Loratadine (Tablet 10 mg). A methyl group is swapped for a carbamate in a single clever step.
- Xylometazoline (Nasal spray 0.1 %). A positively charged drug in a nasal bottle: which ingredients and plastics would grab it?
Stomach
- Omeprazole (Delayed-release capsule 20 mg). A drug that is destroyed by the very acid it is meant to switch off, so it must be built into a coated pellet.
- Famotidine (Film-coated tablet 20 mg). A water-sensitive drug with a very narrow pH window, in a small tablet.
- Antacid (Mg and Al hydroxide) (Oral suspension 5 mL dose). No organic chemistry at all: just salts, and a suspension that has to stay suspended.
Skin and local anaesthetic
- Lidocaine (topical) (Cream 4 %). An amide that resists hydrolysis, in a cream where the pH sets how much drug can cross the skin.
Vitamins, minerals and salts
- Vitamin C (Tablet 500 mg). A fragile antioxidant: the same group that makes it useful makes it oxidise in the tablet.
- Folic acid (Tablet 5 mg). A tiny dose of a light-sensitive vitamin: mixing it evenly and keeping it dark are the problems.
- Caffeine (Tablet 100 mg). A purine ring built from urea in four steps, and a molecule that sublimes and forms hydrates.
- Ferrous sulfate (Coated tablet 200 mg (65 mg iron)). A metal salt that rusts, tastes of metal, and is the commonest cause of serious poisoning in small children.
- Oral rehydration salts (Sachet for 1 litre). No synthesis at all: the chemistry is in the gut wall, and the formulation challenge is keeping salt and sugar dry.
Infection, heart and diabetes
- Metformin (Film-coated tablet 500 mg). A one-step synthesis, a very polar drug, and a large dose that is hard to press into a swallowable tablet.
- Amoxicillin (Powder for oral suspension 250 mg/5 mL). An antibiotic with a strained four-membered ring: stable as a dry powder, and a ticking clock once water is added.
- Sulfamethoxazole (Tablet 400 mg (with trimethoprim 80 mg)). A sulfonamide built with a protecting group, and an aromatic amine that browns with lactose.
- Ciprofloxacin (Film-coated tablet 500 mg). It binds calcium, magnesium, aluminium and iron: the reason it cannot be taken with antacids or iron tablets.
- Atenolol (Tablet 50 mg). A beta-blocker made in two steps with a strained ring, and a secondary amine that reacts with lactose.
- Ceftriaxone (Powder for injection 1 g). An injectable antibiotic: sold dry, sterile, and with a lethal incompatibility with calcium.
Limits of the tool
The shelf-life score is a teaching model with illustrative values. It rewards sensible choices and penalises well-known incompatibilities, but it is not a stability study and does not predict the shelf life of a real product. The synthesis steps are simplified teaching versions and are not manufacturing procedures; stereochemistry is omitted for some intermediates, and the structures are drawn from standard textbook descriptions. The pharmaceutics content has not been checked against a pharmacopoeia, so please check a textbook or the current pharmacopoeia before relying on any detail. The site and tool were built with the help of AI tools, so errors can slip through; the contact page explains how to report one.
Related
Aspirin: from salicylic acid to the tablet is a longer worked example of the same eight-stage idea. The mechanisms behind the synthesis steps are in the reaction library, and the curved-arrow guide explains how to read the arrows.