Capacity expansion is the process of providing new facilities over time to meet rising demand. A general mathematical model of this process is presented, incorporating uncertain future demand (including the possibility of ‘surprises’), non-zero lead times and random cost overruns. In this model the decision maker controls the rate of investment in the current expansion project. Optimization is studied by methods of stochastic control theory. Numerical algorithms are presented which determine the optimal policy in some simple cases.