A method is provided for controlling production of low molecular weight heparin (LMW-heparin) when depolymerizing heparin with heparinase in a reaction mixture in a reactor. Depolymerization to a desired average molecular weight is monitored by measuring an increase in UV-absorption