Acrylamide has been well known for its neurotoxicity, genotoxicity, carcinogenicity, etc. Recently, the immunotoxicity of acrylamide has been reported by different research groups, although the underlying mechanisms of acrylamide endangering immune systems have not been fully elucidated. In this study, mouse monocyte–macrophage cells model was used to clarify the toxic mechanism of acrylamide and the inhibitory effect of Yam polysaccharides (YPS) on acrylamide‐induced damage. We found that acrylamide induced RAW 264.7 cell death in a time‐ and concentration‐dependent manner. After acrylamide (2.0, 3.0, 4.0 mmol/L) treatment for 24 h, cell apoptosis, autophagy, and pyroptosis were observed. However, the levels of autophagy and pyroptosis decreased at a high concentration of acrylamide (4.0 mmol/L). Acrylamide upregulated P2X7 expression, but the P2X7 level was not showing a monotone increasing trend. When the P2X7 antagonist was applied, the effect of acrylamide on autophagy and pyroptosis was weakened. Additionally, acrylamide triggered the occurrence of oxidative stress and a decreased nitric oxide (NO) level. However, reactive oxygen species (ROS) generation, the decrease of heme oxygenase‐1 (HO‐1) expression, and the increase of inducible nitric oxide synthase (iNOS) expression were reversed by the inhibition of P2X7. Yam polysaccharides (50.0 μg/ml) significantly inhibited acrylamide‐induced oxidative stress and cell death (including apoptosis, autophagy, and pyroptosis). Yam polysaccharides also effectively reversed the increase of iNOS expression induced by acrylamide. However, Yam polysaccharides promoted the expression of P2X7 rather than prohibit it. These results indicated that acrylamide caused RAW 264.7 cell death due to pro‐apoptosis as well as excessive autophagy and pyroptosis. Apoptosis might be more predominant than autophagy and pyroptosis under a higher concentration of acrylamide (4.0 mmol/L). P2X7‐stimulated oxidative stress was responsible for acrylamide‐induced programmed cell death (PCD), but P2X7 showed limited regulatory effect on apoptosis. Yam polysaccharides with antioxidant activity inhibited acrylamide‐induced cell death (apoptosis, autophagy, and pyroptosis), but exerted limited effect on the acrylamide‐induced P2X7 expression. These findings would offer an insight into elucidating the immunotoxic mechanism of acrylamide and the potential approaches to control its toxicity.