Purity is typically measured using analytical techniques such as chromatography, mass spectrometry, and nuclear magnetic resonance. These methods help in identifying and quantifying impurities. The choice of method depends on the nature of the substance and the type of impurities expected.