What to Take for Stomach Acid: Antacids to PPIs

For quick relief from excess stomach acid, over-the-counter antacids containing calcium carbonate or magnesium are the fastest option, working within minutes. If you need longer-lasting control, acid-reducing tablets called H2 blockers suppress acid production for 4 to 10 hours. And for persistent heartburn lasting more than two weeks, a short course of a proton pump inhibitor (PPI) offers the strongest suppression available without a prescription. The right choice depends on how often your symptoms flare and how long they last.

Antacids for Fast, Short-Term Relief

Antacids work by directly neutralizing the acid already in your stomach. Brands like Tums, Rolaids, Maalox, and Mylanta use a combination of calcium carbonate and magnesium as their active ingredients. You’ll feel relief within a few minutes, but it fades relatively quickly, usually within an hour or two. That makes antacids ideal for occasional heartburn after a heavy meal, not for daily symptoms.

Baking soda (sodium bicarbonate) works the same way and is a common home remedy. A half teaspoon dissolved in a glass of water can settle acid quickly. But it carries limits: don’t use it for more than two weeks straight, and don’t exceed five teaspoons in a day. Taking it with large amounts of milk increases the chance of side effects. If you find yourself reaching for baking soda regularly, that’s a sign you need something stronger or a conversation with your doctor.

H2 Blockers for Longer Control

If antacids wear off too fast or you’re dealing with heartburn several times a week, H2 blockers are the next step up. Famotidine (sold as Pepcid) is the most widely available option. Instead of neutralizing acid that’s already there, it reduces how much acid your stomach produces in the first place. It takes about an hour to kick in, but the effects last 4 to 10 hours, making it a better choice for predictable symptoms like nighttime heartburn.

For acid reflux (GERD), the typical approach is 20 mg twice a day, morning and bedtime, for up to six weeks. For stomach ulcers, the same dose is used for up to eight weeks. You can also take a single dose before a meal you know will trigger symptoms. H2 blockers are available over the counter at lower doses and by prescription at higher ones.

PPIs for Persistent Symptoms

Proton pump inhibitors like omeprazole (Prilosec) and lansoprazole (Prevacid) are the most powerful acid suppressors you can buy without a prescription. They block acid production at the source and are designed for people with frequent heartburn, meaning two or more days per week. A standard OTC course runs 14 days, and most guidelines recommend durations of 5 days to 8 weeks depending on the condition.

PPIs work best when taken 30 minutes before your first meal of the day. Unlike antacids or H2 blockers, they don’t provide instant relief. It can take one to four days for the full effect to build. The tradeoff is much more complete acid suppression over 24 hours.

For most people, PPIs are safe for short-term use. Long-term use (months to years) has been linked to lower absorption of iron, vitamin B12, magnesium, and calcium, though these risks are considered relatively low in the general population. They’re more notable in elderly or malnourished patients. Some people do need PPIs indefinitely, particularly those with severe erosive esophagitis, Barrett’s esophagus, or a history of esophageal ulcers. If you’ve been on a PPI for more than eight weeks without a doctor’s guidance, it’s worth checking whether you still need it.

Foods That Make Acid Worse

What you take out of your diet can matter as much as what you take from the pharmacy. Certain foods relax the valve between your esophagus and stomach, letting acid splash upward. They also slow digestion, keeping food in your stomach longer and increasing acid exposure. According to Johns Hopkins Medicine, the biggest offenders are foods high in fat, salt, or spice:

  • Fried food and fast food
  • Fatty meats like bacon and sausage
  • Cheese and pizza
  • Processed snacks like potato chips
  • Spicy seasonings including chili powder, cayenne, and black pepper
  • Tomato-based sauces
  • Citrus fruits
  • Chocolate and peppermint
  • Carbonated beverages

You don’t necessarily need to eliminate all of these permanently. Tracking which ones trigger your symptoms and cutting those specifically is more sustainable than a blanket restriction.

How You Sleep Matters

Nighttime acid is particularly damaging because you’re lying flat and swallowing less, so acid sits in your esophagus longer. Two adjustments help. First, elevate your upper body with a wedge pillow (stacking regular pillows doesn’t work as well because it bends you at the waist rather than lifting your torso). Second, sleep on your left side. A study monitoring 57 people with chronic heartburn found that while sleeping position didn’t change how often acid flowed back up, acid cleared much faster when participants lay on their left side compared to their right side or back. Faster clearance means less tissue irritation and less pain.

Avoiding meals within two to three hours of bedtime also reduces the amount of acid your stomach is actively producing when you lie down.

Symptoms That Need More Than OTC Treatment

Most acid-related discomfort responds well to the options above. But certain symptoms signal something beyond routine heartburn. These include difficulty swallowing or pain when you swallow, persistent vomiting, unexplained weight loss, loss of appetite, chest pain, vomit that contains blood or looks like coffee grounds, and stool that appears black or tarry. Any of these warrants a medical evaluation rather than continued self-treatment, as they can point to complications like esophageal damage or bleeding in the digestive tract.