Structural transformations in crystalline solids are increasingly the basis of the functional behavior of materials. Recently, in diverse alloy systems, both low hysteresis and reversibility of phase transformations have been linked to the satisfaction of the nongeneric conditions of compatibility between phases. According to the Cauchy–Born rule, these conditions are expressed as properties of transformation stretch tensor. The transformation stretch tensor is difficult to measure directly due to the lack of knowledge about the exact transforming pathway during the structural change, and the complicating effects of microstructure. In this paper we give a rigorous algorithmic approach for determining the transformation stretch tensor from X-ray measurements of structure and lattice parameters. For some traditional and emerging phase transformations, the results given by the algorithm suggest unexpected transformation mechanisms.