Talk to your doctor or pharmacist about other medicines if you need additional relief. Relieves heartburn. Pepcid (Famotidine) works well for heartburn but may not last as long or start working as quickly as other antacids. Tums (Calcium carbonate) is an effective, first-line medication for hearburn.