A Microsoft (R) Visual Basic 6.0 (Microsoft Corporation, 1987-1998) code of 9 lumped-parameter models of unsteady flow is presented for the analysis of mean residence time in aquifers. Groundwater flow systems obeying plug and well-mixed flow models and their combinations in parallel or serial connection can be simulated by the code. Models can use tritium, tritiugenic He-3, oxygen-18, deuterium, krypton-85, chlorofluorocarbons (CFC-11, CFC-12 and CFC-113) and sulfur hexafluoride (SF6) as the environmental tracers. The executable code runs under all 32-bit Windows operating systems. Details of the code are explained and its limitations are indicated. (c) 2004 Elsevier Ltd. All rights reserved.