Famotidine is the active ingredient in PEPCID and is a histamine-2 blocker. Famotidine works by decreasing the amount of acid the stomach produces.