Mechanism Lab

Pharmacy · Interactive tool

Flask to Pharmacy: follow a drug from synthesis to the shelf

By Amr K. Alani, MSc Pharmaceutical Chemistry

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.

Open the tool full screen

The eight stages

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Quality control. Release or reject realistic batch records, and diagnose common defects from their symptoms.
  7. Packaging. Moisture, light and oxygen barriers, child-resistant closures, and what happens to the product once the pack is opened.
  8. 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

Cold and allergy

Stomach

Skin and local anaesthetic

Vitamins, minerals and salts

Infection, heart and diabetes

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.