Abstract Background Sciatica and low back pain are prevalent clinical types of neuropathic pain that significantly impair patients' quality of life. Conventional therapies often lack effectiveness, making these conditions challenging to treat. Electroacupuncture (EA) is an effective physiotherapy for pain relief. Prior research has demonstrated a relationship between the frequency of neuropathic pain and the analgesic impact of EA stimulation. This work aimed to assess the analgesic effects of EA in a rat model of chronic compression of the dorsal root ganglion (CCD) and to understand the underlying processes. Methods We established a rat CCD model to simulate sciatica and low back pain. EA was applied to rats with CCD at various frequencies (2 Hz, 100 Hz, and 2/100 Hz). The paw withdrawal threshold (PWT) was measured to assess analgesic effects. Additionally, protein levels of the purinergic receptor P2X3 (P2X3) and the expression of nociceptive neuronal markers were analyzed using immunohistochemistry and western blot (WB) techniques. The study also measured levels of proinflammatory cytokines TNF-α and IL-1β in the dorsal root ganglion (DRG). The involvement of P2X3 receptors was further investigated using the P2X3 agonist, α,β-methylene ATP (α,β-meATP). Results CCD rats developed pronounced mechanical allodynia. EA stimulation at all tested frequencies produced analgesic effects, with 2/100 Hz showing superior efficacy compared to 2 Hz and 100 Hz. The expression of P2X3 was increased in ipsilateral DRG of CCD model rats. P2X3 were co-labeled with isolectin B4 (IB4) and transient receptor potential vanilloid (TRPV1), indicating their role in nociception. 2/100 Hz EA treatment significantly reduced mechanical allodynia and inhibited the overexpression of P2X3, TRPV1, substance P (SP), and calcitonin gene-related peptide (CGRP) in the ipsilateral DRG of CCD model rats. Additionally, EA reduced the levels of proinflammatory cytokines TNF-α and IL-1β in the ipsilateral DRG, indicating an anti-inflammatory effect. The P2X3 agonist α,β-me ATP attenuated the analgesic effect of 2/100 Hz EA in CCD rats. The WB and immunofluorescence results consistently demonstrated P2X3 inhibition contributed to the analgesic effects of 2/100 Hz EA on CCD-induced neuropathic pain. Conclusions Our findings suggest that 2/100 Hz EA alleviates neuropathic pain in rats by inhibiting the upregulation of P2X3 receptors in the ipsilateral DRG. This study backs up EA as a viable treatment option for sciatica and low back pain in clinical settings.