The aim of this study was to investigate the frequency dependence of electroacupuncture (EA) in alleviating chronic visceral pain in patients with irritable bowel syndrome (IBS) and the differences in the gut microbiota and metabolites as potential mechanisms to explain frequency dependence.