A vibrating sample magnetometer (VSM) measures the magnetic properties of materials by vibrating a sample in a uniform magnetic field and measuring the magnetic moment. It works by vibrating a sample in between sensor coils within an electromagnet, which produces a magnetic field. The sensor coils detect the sample's magnetization and transmit the data to an amplifier, lock-in amplifier, and computer interface. VSMs can characterize the magnetic properties of powders, bulk materials, crystals, and single crystals. They are used to measure magnetic fields and determine the magnetic properties of minerals and ores.