Laboratories use various techniques to analyze soil samples for contaminants. These include gas chromatography, mass spectrometry, and atomic absorption spectroscopy. These methods help identify and quantify the presence of carcinogens and other harmful substances in the soil.