Multi-step synthesis planner (2D)

Compare two textbook routes to ibuprofen: yields multiply, side reactions steal product, and atom economy sets how much waste is built in.

Switch to 3D

Presets

Playback

Conditions

Route score weights

Temperature graph

Layers

Model check

The science

What this is

A route-planning lesson from process chemistry. Ibuprofen is made in two textbook ways: the classic six-step route and a three-step catalytic route. The page lets you set temperature, time, work-up loss and solvent use, then compares the two routes by overall yield, atom economy, waste (E-factor) and a weighted score. It is a numerical teaching model with illustrative rate parameters, not a laboratory procedure.

Yield stacks multiplicatively

If every step must work, the overall yield is the product of the step yields: Y = y1 x y2 x ... x yn. Six steps at 88 % each leave only 46 %; three steps at 96 % leave 88 %. The Monte Carlo check sends tens of thousands of virtual molecules through the route and counts how many arrive.

One step: conversion times selectivity

Each step is modelled as A -> P with rate constant k1 and a competing side reaction A -> S with k2, both first order with Arrhenius temperature dependence, k = A exp(-Ea/RT). The side reaction has the higher activation energy, so heating speeds the step up but lowers selectivity. The yield y = k1/(k1+k2) x (1 - exp(-(k1+k2) t)) therefore has a best temperature, found by golden-section search and checked against a brute-force grid and an RK4 integration of the rate equations.

Atom economy and E-factor

Atom economy is the mass of the product divided by the mass of all reagents that the equations consume: AE = M(product) / sum M(reagents). Every step equation is atom-balanced in the code (C, H, N, O, Cl, Na), so the by-products are exactly the leftover mass; the ideal E-factor equals 1/AE - 1. With the real yields, material for earlier steps has to be made in larger quantity, which is why a long, low-yield route is so wasteful: waste per kg of drug is computed from the mass of every reagent actually needed. Solvent use is added as kilograms of solvent per kilogram of intermediate, with a slider.

Honest simplifications

Rate parameters, temperatures and times are illustrative values chosen to give textbook-sized yields, not measured kinetics; the real industrial yields differ. Catalyst recycling, solvent recovery, purification, safety and cost are not modelled, and the three-step route's published atom economy of about 77 % ignores recovery of acetic acid. Reagent lists follow the usual textbook accounts.

Safety

The compounds and conditions here are pharmaceutical process chemistry and must only be handled by trained chemists in a proper laboratory or plant. Nothing on this page is a practical procedure.

What you see

Each flask is one step of a route. The liquid shifts from pale yellow to orange as the step converts, and turns dark brown as selectivity falls. The hotplate glows with the step temperature, the green bar is the step yield, and the vial and tablet pile at the end show the overall yield of each route. Animation speed is display only.

Overall yield after each step
Yield, conversion and selectivity against temperature for one step
Waste per kg of drug
Route score components
Made with 🟠 Blender · Three.js