Pepcid AC provides fast and effective relief of heartburn, acid indigestion and sour stomach. This formula quickly dissolves in your mouth for fast-acting relief that lasts up to 12 hours. It also contains famotidine, a histamine-2 blocker that works by decreasing the amount of acid the stomach produces. Pepcid AC relieves heartburn associated with these common symptoms: