For frequent Heartburn as well as rare heartburn symptoms, the same OTC antacids can work, says O'Brien. Most antacids, such as Maalox, Rolaids, and Tums, contain stomach acid-neutralizing calcium carbonate. Antacids may be based on aluminum or magnesium as well.