Yes, you can take famotidine before surgery, and in many cases your anesthesia team will specifically ask you to. Famotidine is commonly used as a pre-surgical medication to reduce stomach acid, which lowers the risk of a serious complication called aspiration, where stomach contents enter the lungs during anesthesia. Whether you’ll be asked to take it depends on your individual risk factors and the type of procedure.
Why Famotidine Is Used Before Surgery
When you’re under general anesthesia, your normal protective reflexes (like the ability to cough or swallow) are suppressed. If acidic stomach contents travel up into your airway, they can cause a dangerous lung injury known as aspiration pneumonitis. The risk is highest when stomach acid has a pH below 2.5 and the volume exceeds a certain threshold.
Famotidine works by blocking acid-producing receptors in the stomach lining, which raises the pH of your stomach fluid and reduces its volume. In clinical trials, a single oral dose reduced acid output by more than 80% compared to placebo, raising the average stomach pH from around 1.7 (very acidic) to well above 4. That shift dramatically changes the equation: even if a small amount of fluid reaches the lungs, it’s far less likely to cause tissue damage.
Who Needs It and Who Doesn’t
The American Society of Anesthesiologists draws a clear line here. For patients at increased risk of pulmonary aspiration, acid-blocking medications like famotidine may be given before surgery. But for patients with no elevated risk who are undergoing elective procedures, routine use is not recommended.
You’re generally considered higher risk if you have:
- Obesity, which increases abdominal pressure and reflux likelihood
- A history of GERD or frequent heartburn
- A hiatal hernia or conditions that slow stomach emptying (like diabetes-related gastroparesis)
- Pregnancy, particularly if you’re having a cesarean section under general anesthesia
- Emergency surgery, where you may not have fasted beforehand
In cesarean deliveries specifically, H2 blockers like famotidine have been studied extensively. Compared to placebo, they reduced the rate of dangerously acidic stomach contents at the time of intubation by about 91%, and significantly lowered excessive stomach volume as well. Pregnant patients are at naturally higher aspiration risk because of hormonal changes that relax the valve between the stomach and esophagus, so pre-surgical acid reduction is a standard part of many C-section protocols.
Timing and Dosage
For oral famotidine, the typical pre-surgical dose is 40 mg taken at least 3 hours before the procedure. That window gives the medication enough time to suppress acid production and reach peak effectiveness. If you’re already in a hospital setting and the timeline is shorter, your anesthesia team can give 20 mg intravenously 15 to 30 minutes before intubation, which works faster.
You might wonder how you’re supposed to swallow a pill if you’ve been told not to eat or drink before surgery. Standard fasting guidelines allow you to take approved medications with a small sip of water, typically well under a full glass, up to 2 hours before your procedure. Your surgical team will give you specific instructions about which medications to take the morning of surgery and how much water is acceptable.
Interactions With Anesthesia
Famotidine has no known interactions with common anesthetic agents, which is one reason it’s a popular choice as a pre-surgical medication. It won’t interfere with the drugs used to put you to sleep or keep you sedated.
One minor consideration: famotidine can slightly enhance the effects of certain opioid painkillers, including morphine. This isn’t dangerous, but it’s something your anesthesia team accounts for when choosing pain management during and after the procedure. As long as your surgical team knows you’ve taken it, there’s nothing to worry about.
If You Already Take Famotidine Daily
If you’re already on famotidine for heartburn, ulcers, or GERD, you’ll typically be told to continue taking it as part of your preoperative medication plan. In fact, stopping acid-reducing medications before surgery could leave you with higher stomach acidity at exactly the wrong time. Your pre-surgical instructions will usually list famotidine among the medications that are safe (or even encouraged) to take with a small sip of water on the morning of your procedure.
If you take famotidine over the counter for occasional heartburn and you have surgery coming up, mention it during your pre-operative appointment. Your anesthesiologist may want to adjust the dose or timing to align with the surgical schedule, or may decide it’s not necessary based on your individual risk profile.
What to Expect on Surgery Day
If your surgical team prescribes famotidine before your procedure, it will typically appear on a short list of medications to take the morning of surgery. You’ll swallow it with a small amount of water, usually at a specific time your team designates. Some hospitals give it the evening before surgery as well as the morning of, to ensure stomach acid stays low overnight.
You won’t feel any noticeable effects from the medication. Famotidine doesn’t cause drowsiness or change how anesthesia feels. Its work happens entirely in the stomach, quietly reducing acid production in the background while you go through your normal pre-surgical preparation.

