An antacid is a chemical that is swallowed in order to buffer gastric acid, raising the pH to reduce acid damage and relieve heartburn. Some also adsorb bile salts. Common types are: