Aims We investigate the role of nitric oxide (NO) in the hypersecretion of acid and pepsinogen induced by stomach distension. Main method The rat stomach was distended by instillation of saline through an acute fistula under urethane anesthesia. Key findings Both secretions of acid and pepsinogen were increased by the distension depending on the volume of saline introduced, and responses were attenuated by bilateral cervical vagotomy or prior administration of atropine. N G-nitro- l-arginine methyl ester (L-NAME) had a dual effect on these responses, causing an increase in the acid response and a decrease in the pepsin response, both in an l-arginine-sensitive manner. Distension of the stomach increased the luminal NO release; this response was suppressed by vagotomy and L-NAME. Intragastric application of FK409, a NO donor, dose-dependently increased pepsinogen secretion while decreasing acid secretion in the stomach without distension. However, serosal application of both FK409 and 8-bromo-guanosine cyclic 3′, 5′-monophosphate (8-Br-cGMP) stimulated the secretion of pepsinogen in isolated mouse stomachs in vitro. The stimulatory effect of FK409 on pepsinogen secretion was totally abolished by LY83583, a guanylate cyclase inhibitor. Significance Distension of the stomach increases both acid and pepsinogen secretion through a vagal–cholinergic pathway in addition to the luminal release of NO, and NO affects these responses in opposite ways, suppressing the acid response while enhancing the pepsin response, both mediated by a guanylate cyclase/cGMP pathway.