Antacids are bases that neutralize excess stomach acid. They work by reacting with hydrochloric acid in the stomach to reduce acidity when levels are too high, such as during indigestion, heartburn, or acid reflux. Common antacids contain ingredients like calcium carbonate, magnesium hydroxide, and sodium bicarbonate. While they can relieve symptoms, antacids are not a treatment for underlying causes of excess stomach acid. Some people may experience side effects like diarrhea, constipation, or changes in bowel movements from regular antacid use.