Famotidine can be taken with or without food. To prevent heartburn and acid indigestion, take famotidine 15-60 minutes before eating food or drinking beverages that can cause indigestion. Do not take more than 2 tablets in 24 hours unless directed by your doctor.