Altered fecal levels of chromogranins (Cg) and secretogranins (Sg) are demonstrated in irritable bowel syndrome (IBS), but their role in IBS pathophysiology remains unknown. This study aimed to determine if granins are associated with bacterial composition, immune activation and IBS symptoms. Protein levels of fecal granins (CgA, CgB, SgII and SgIII) were analysed with immunoassays. Mucosal mRNA expression of granins, TPH1 and immune markers were evaluated with RT-qPCR. 16S rRNA gene sequencing was performed on fecal and mucosal bacteria. The intestinal granin profile, based on fecal protein levels and mucosal mRNA expression, could not discriminate between IBS patients (n = 88) and healthy subjects (HS, n = 33). IBS patients dominated by high fecal or mucosal granin levels, respectively, did not differ in symptom or immune profiles. Fecal-dominated and mucosal-dominated granin clusters of IBS patients and HS, demonstrated separate fecal and mucosal bacterial profiles and high fecal abundance of granins were associated with a less diverse bacterial composition and the Bacteroides enterotype. The intestinal granin profiles of IBS patients and HS are linked to the intestinal bacterial composition, diversity and enterotypes. These findings suggest that granins may be one of several host-produced factors regulating the microbiota composition of the intestine.