ICP-MS operates by ionizing the sample with an inductively coupled plasma torch, which reaches temperatures of around 10,000 K. The ionized particles are then directed into a mass spectrometer, which separates them based on their mass-to-charge ratio. This allows for precise detection and quantification of elements within the sample.