Peroxide value is used to detect rancidity in oils. It measures the amount of peroxides (primary oxidation products) present in the oil, which are formed during the oxidation process. The higher the peroxide value, the greater the extent of rancidity in the oil.