Pepcid is safe for dogs. Most vet recommends Pepcid for stomach ulcers, gas and other stomach problems. Though this medication is not approved by the FDA for dogs with years of practice, most vets recommend this medication for dogs.