Antacids. Antacids — such as Tums, Rolaids, Maalox and Mylanta — are the fastest-acting heartburn relievers. They take effect in less than five minutes by quickly neutralizing acid in the stomach. For mild heartburn after a meal, antacids offer quick relief that lasts about 20-30 minutes.