Altered mucosal functions are documented in jejunal or colorectal mucosa from patients with irritable bowel syndrome (IBS). Our aim was to quantify ileal, ascending, and rectosigmoid colon mucosal expression of genes in IBS-diarrhea (D) and IBS-constipation (C). Forty-four patients with IBS-D, 30 with IBS-C, and 30 healthy volunteers underwent colonoscopic ileal, ascending, and rectosigmoid colon biopsies. Biopsies were stored in RNAlater at -80 °C, purified with on-column DNase, cDNA libraries prepared from 100-200 ng of total RNA, sequenced on Illumina NovaSeq 6000, and analyzed on Illumina's RTA version 3.4.4. Normalized mRNA expression was obtained using MAP-RSeq bioinformatics pipeline. Differential expressions in the groups (Log2-fold change) were measured using the bioinformatics package edgeR 2.6.2, corrected for false discovery rate (PADJ <0.05). There were 30 females with IBS-C and 31 females and 13 males with IBS-D. In IBS-D and IBS-C groups, there were differential expressions of 181 genes in ascending colon and 199 genes in rectosigmoid colon. The majority were gene upregulations in IBS-D with functions reflecting activation of inflammation genes, TRPV1 (visceral hypersensitivity) and neurotransmitters/receptors (specifically purinergic, GABA, and cannabinoid). Although gene differential expressions in the ascending and rectosigmoid colon mucosa of the two groups were different, the diverse upregulated genes involved immune functions, receptors, transmitters, ion channels, and transporters. Conversely, there was reduced expression of PI15 and PI16 genes that inhibit proteases. In patients with IBS-D and IBS-C, differential expressions of genes related to immune, transmitter, nociceptive, protease inhibition, channel, and transporter functions suggest opportunities to reverse the pathobiology and treat patients with IBS.NEW & NOTEWORTHY This study compares gene expression in mucosa of the terminal ileum, right colon, and left colon in patients with diarrhea- or constipation-predominant irritable bowel syndrome (IBS) and contrasts expression between these two disease entities and also between each entity and mucosa from healthy controls. The study shows there is differential expression of genes related to immune, transmitter, nociceptive, ion channel, and transporter functions, as well as reduced serine protease inhibition, in patients with IBS.