A computer program was developed to simulate disinfection byproduct formation, removal of natural organic matter, inorganic water quality changes, and disinfectant decay in water treatment processes. This article presents equations that simulate the formation of total trihalomethanes (TTHMs), removal of total organic carbon (TOC) and ultraviolet absorbance by alum coagulation, and changes in alkalinity and pH. These equations represent only a small fraction of the entire computer model. Model simulations are compared with limited sets of observed values. The central tendency of the model is to underpredict finished-water pH by 4 percent, finished-water TOC by 7 percent, and simulated distribution system TTHMs by 20-30 percent. A discussion of model limitations and research needs concludes the article. Includes 56 references, tables, figures.