Analytical solutions are sought for optimal temperature distributions to control the interlaminar stresses near the free edges of composite laminates subjected to uniaxial loading. Optimal through-thickness temperature gradients are obtained by minimizing appropriate performance indices that are functions of the far-field properties, with respect to the through-thickness temperature differences. Through the application of these temperatures, effects of local mismatches as well as global mismatches in two of the elastic properties, the Poisson's ratio and coefficient of mutual influence, are minimized. Numerical examples are given for several lay-ups made of graphite epoxy. It is shown that for a cross- or angle-ply laminate a uniform temperature rise or drop can completely eliminate all of the interlaminar stresses, whereas for other laminates nonuniform temperature distributions must be applied to minimize the stresses.