In this paper, multivariate data analysis was proposed to analyze the impact of fat and muscle on heroin identification based on the profile of spectra of energy dispersive X-ray diffraction. In the space of principal components, results showed that different pure samples clustered in different areas, whereas the location of mixture samples moved between locations of pure samples. The impact of fat and muscle lies in moving the feature points between pure materials in the space of principal components.