Magnesium formate dehydrate, or formic acid magnesium salt, has been used in studies to develop a multiresidue method for determining pesticides in fruits and vegetables, as well as for the simultaneous determination of tropane alkaloids and glycoalkaloids in grains and seeds.