Stomach generic medicines contain compounds like calcium carbonate or magnesium hydroxide to treat acid reflux, ulcers, gastritis, and other gastrointestinal issues. They also reduce stomach acid production, or neutralising acid. They also provide relief from symptoms like heartburn, indigestion, and stomach pain.