A multi-stage reactor system for preparing biodiesel is used to increase efficiency and yield and reduce impurities. A three-stage transesterification reaction for preparing biodiesel can include one high-shear cavitation reactor and two low-shear cavitation reactors, preferably in series, and optionally one or more separation vessels for removing waste and recycling triglyceride feedstock, catalyst and alcohol to the high-shear cavitation reactor.