A hard stomach can happen for various reasons, including constipation, gastric cancer, and some chronic digestive conditions, such as irritable bowel syndrome (IBS) and inflammatory bowel disease (IBD).