Cimetidine (Tagamet HB) and Rolaids (calcium carbonate/magnesium hydroxide) are both used to treat heartburn, but they work differently and have different uses. Cimetidine is a histamine H2 receptor antagonist (H2RA) that reduces stomach acid production and is available both over-the-counter (OTC) and by prescription. It can treat heartburn, gastroesophageal reflux disease (GERD), and ulcers. Rolaids, on the other hand, is an antacid that neutralizes stomach acid and is only available OTC. It provides quick relief for heartburn and indigestion but doesn't last as long as cimetidine. Cimetidine can interact with many medications and may not work as well over time, while Rolaids can affect the absorption of some medications and is not meant for long-term use. Additionally, cimetidine is available as tablets, whereas Rolaids comes in chewable tablets and soft chews.