A sample preparation method involving extraction, enrichment and derivatization of acidic degradation products of nerve agents was developed using magnetic strong anion exchange resins (MSAX). The method was performed in a single vial involving magnetic dispersive solid phase extraction (MDSPE). Analytes were derivatized with N,O-bis(trimethylsilyl)trifluoroacetamide (BSTFA) in the presence of resins. MSAX were custom synthesized using Fe3O4 nanoparticles as core, 4-vinylpyridine-co-divinylbenzene as polymer shell and quaternary pyridinium function as anion-exchanger. Hydroxide ions were the counter-anions of MSAX to effectively capture the acidic alkyl alkylphosphonic acids (AAPAs) and alkylphosphonic acids (APAs). Quantitative measurements of analytes were performed in the selected ion monitoring mode of GC–MS. Full scan mode of analysis was followed for identifications. Under the optimized conditions analytes were recovered in the range of 39.7–98.8% (n=3, relative standard deviations (RSD) from 0.3 to 6.5%). Limits of detection (LODs) were in the range of 0.1–1.1ngmL−1; and the linear dynamic range was 5–1000ngmL−1 with r2 of 0.9977–0.9769. Applicability of the method was tested with rain-, tap-, muddy-water and Organization for Prohibition of Chemical Weapons (OPCW) Proficiency Test samples.