A rigorous solution is developed from first principles to guide the preliminary design of cutoff walls installed to contain the migration of contaminants from source zones. The full analytic solution is used to develop a criterion for determining the configuration and hydraulics of optimal wall designs. The solution is used to demonstrate the interaction between the properties of the wall, the Darcy flux, and the concentration of contaminants at the outside face of the well. For a particular wall design, the containment criterion can be used to estimate the long-term concentration that will develop at the outside face of the wall. Alternatively, for a given concentration on the outside face of the cutoff wall, the containment criterion can be used to estimate the Darcy flux required to balance the outward diffusion of contaminants. The results of numerical simulations are presented to evaluate the analytic approach. The numerical results confirm that for a wall with known transport properties, a specified Darcy flux is associated with a unique outside contaminant concentration.