Use of the overlap integral in X-ray diffraction (XRD) powder pattern recognition of crystalline materials is presented. The mathematical expression, derived specifically for diffraction data, provides a measure of similarity between two patterns. Each pattern is represented by a normalized mathematical function. The index of similarity, or overlap integral, indicates how faithfully the two functions overlap and ranges from zero to unity, reaching the latter limit when the two patterns become identical.