Nighttime heartburn responds to three different classes of over-the-counter medicine, and choosing the right one depends on whether you need relief in minutes, hours of coverage, or a reset for heartburn that strikes several nights a week. Lying down makes reflux mechanically worse because gravity no longer helps keep stomach acid where it belongs, which is why heartburn that barely registers at lunch can wake you at 2 a.m. This guide compares antacids, H2 blockers, and proton pump inhibitors like Prilosec OTC, including the strict 14-day course rules printed on the PPI label, so you can match the tool to the problem instead of guessing at the pharmacy shelf.
Antacids: fastest relief, shortest coverage
Antacids such as calcium carbonate and magnesium hydroxide work by chemically neutralizing acid that is already in your stomach, which makes them the fastest-acting option of the three classes. Relief typically begins within minutes, but because the medicine is neutralizing existing acid rather than reducing production, the effect fades as the stomach secretes more. For a single spicy-dinner incident, an antacid at bedtime is a reasonable fix. For heartburn that returns night after night, antacids become a treadmill: you are treating each episode without changing the pattern, and label directions cap how many doses you may take in 24 hours.
H2 blockers: slower start, hours of coverage
H2 blockers such as famotidine reduce acid production by blocking histamine signals to the stomach’s acid-producing cells, and they occupy the middle ground on speed and duration. They do not neutralize acid on contact the way antacids do, so relief takes longer to arrive, but suppression of acid production lasts for hours, which fits the overnight window well. Famotidine labels also allow taking a dose before a meal you expect to cause heartburn, which makes H2 blockers useful as short-term prevention. As with antacids, the label limits use to two weeks of continuous self-treatment before you should see a doctor.
Prilosec OTC and the 14-day course rules
Prilosec OTC, whose active ingredient is omeprazole 20 mg, is a proton pump inhibitor intended specifically for frequent heartburn, defined on the label as heartburn occurring 2 or more days a week. It is not a rescue medicine. The FDA-approved Drug Facts label is explicit about how it must be used, and these rules are the core of using a PPI safely:
- Take 1 tablet daily before eating, as a complete 14-day course.
- The label states it may take 1 to 4 days for full effect, so it is not for immediate relief.
- Do not take it for more than 14 days in a row unless directed by a doctor.
- Do not repeat a 14-day course more often than every 4 months unless directed by a doctor.
The 14-count packs of Prilosec OTC tablets and Prilosec OTC Wildberry map exactly to one course, while the 42-count pack covers three courses across a year. If frequent heartburn returns before the 4-month mark, the label’s answer is not another course on your own initiative. It is a conversation with a doctor, because heartburn needing that much suppression deserves a diagnosis.
Side-by-side: which class for which night
The three classes solve different problems, and the honest comparison looks like this:
| Class | Example ingredient | Onset | Duration | Best for | Key label limits |
|---|---|---|---|---|---|
| Antacid | Calcium carbonate | Minutes | Short | Occasional episodes, immediate relief | Daily dose caps on label |
| H2 blocker | Famotidine | Under an hour | Several hours | Overnight coverage, pre-meal prevention | Max 14 days of self-treatment |
| Proton pump inhibitor | Omeprazole 20 mg (Prilosec OTC) | 1 to 4 days for full effect | 24 hours per dose | Frequent heartburn, 2+ days a week | 14-day course, max every 4 months |
Red flags: when nighttime heartburn means see a doctor
See a doctor promptly, rather than reaching for any over-the-counter product, if heartburn comes with trouble swallowing, vomiting with blood, bloody or black stools, unexplained weight loss, or chest pain spreading to the arm or jaw with sweating or shortness of breath, since chest pain can signal a heart attack rather than reflux. These warnings come straight from the Prilosec OTC Drug Facts label, which directs you to ask a doctor before use if any apply. The same goes for heartburn lasting more than 3 months, or heartburn that persists after a full 14-day omeprazole course. Simple habits help alongside medicine: finish eating 2 to 3 hours before lying down, and raise the head of the bed. You can browse all digestive options in our Gut & Digestive Health section.
FAQ
Can I take Prilosec OTC only on nights I have heartburn?
No, Prilosec OTC is designed as a daily 14-day course, not an as-needed rescue tablet. The label notes full effect can take 1 to 4 days, so skipping days undermines how the medicine works. For one-off episodes, an antacid or H2 blocker is the better match.
What if my heartburn comes back a month after finishing a course?
The Prilosec OTC label directs not to repeat a 14-day course more often than every 4 months unless a doctor tells you to. Heartburn returning that quickly is a reason to get evaluated, since it can indicate GERD or another condition needing prescription management.
Can I combine an antacid with Prilosec OTC?
Many people use a fast-acting antacid for breakthrough symptoms during the first days of an omeprazole course, since the PPI takes 1 to 4 days to reach full effect. Follow the directions on both labels, and ask a pharmacist or doctor about your specific combination and any other medicines you take.