A prescription medication that is used to treat stomach ulcers, heartburn, and acid reflux. It is typically taken once a day. Famotidine Tablet is a prescription medication that is used to treat stomach ulcers, heartburn, and acid reflux. It is typically taken once a day. Famotidine Tablet is an over-the-counter medication that is not typically available to people without a prescription. It is a common drug used by many people. Famotidine Tablet is also known by the brand name Pepcid.