Heartburn usually responds well to a combination of over-the-counter medication, simple habit changes, and avoiding the foods that triggered it. For immediate relief, an antacid that neutralizes stomach acid works within minutes. For longer-lasting or recurring heartburn, stronger options and lifestyle adjustments can keep it from coming back.
Fast-Acting Options for Immediate Relief
If you need the burning to stop right now, antacids are your quickest option. Products containing calcium carbonate or magnesium hydroxide work by directly neutralizing the acid already sitting in your stomach and esophagus. Relief typically comes within minutes, though the effect wears off relatively fast, usually within an hour or two.
A step up from antacids are H2 blockers, which reduce the amount of acid your stomach produces in the first place. These take about an hour to kick in, but the effects last four to ten hours. If you know a meal is likely to give you trouble, taking an H2 blocker beforehand can prevent heartburn from starting.
Proton pump inhibitors (PPIs) are the strongest over-the-counter option, but they’re not designed for quick relief. They can take one to four days to reach full effectiveness, and they’re meant for people dealing with heartburn multiple times a week. The American College of Gastroenterology recommends using OTC PPIs for up to eight weeks. If you still need them after that, it’s worth getting evaluated for an underlying issue like GERD.
Home Remedies That Actually Help
Baking soda is essentially an antacid you already have in your kitchen. The Mayo Clinic lists a dose of half a teaspoon dissolved in a glass of water, taken every two hours as needed, with a maximum of five teaspoons per day. It neutralizes acid the same way commercial antacids do, but it’s high in sodium, so it’s a short-term fix rather than a daily habit.
Chewing sugar-free gum after a meal is a surprisingly effective trick. A study from King’s College London found that chewing gum for 30 minutes after eating reduced the time acid spent in the esophagus significantly. The mechanism is simple: chewing stimulates saliva production, and all that extra swallowing pushes acid back down into the stomach where it belongs. Participants who chewed gum cut their post-meal acid exposure nearly in half compared to those who didn’t.
Ginger has some clinical support for upper digestive symptoms. Studies have used doses ranging from 400 mg to 3 grams per day, with one trial finding that 1,650 mg per day improved reflux-like symptoms. Ginger tea or ginger chews after a meal are a reasonable option, though the evidence is stronger for nausea relief than for heartburn specifically.
Foods and Drinks to Avoid
Heartburn happens when the valve between your esophagus and stomach (the lower esophageal sphincter) relaxes when it shouldn’t, letting acid splash upward. Certain foods make that valve more likely to open. High-fat and acidic foods are the two biggest categories to watch.
The most common triggers include:
- High-fat foods: fried anything, full-fat ground beef, sausage, marbled steak, ice cream, cream cheese, creamy salad dressings, pizza, and fried chips
- Acidic foods: tomatoes, citrus fruits (oranges, grapefruit, lemons), tomato-based sauces and salsas
- Beverages: coffee, tea, soda, alcohol (beer, wine, and liquor), citrus juice, and hot chocolate
- Spicy ingredients: hot sauce, cayenne, jalapeños, black pepper, and curry
- Others: garlic, onion, chocolate, and peppermint
You don’t necessarily have to cut all of these permanently. Pay attention to which ones consistently bother you. Many people find that a few specific triggers are responsible for most of their episodes, and avoiding just those makes a big difference.
How You Eat Matters Too
Large meals stretch the stomach and put pressure on that lower valve, making reflux more likely. Eating smaller portions more frequently puts less strain on the system. Eating slowly also helps, since gulping down food tends to introduce more air into the stomach and increases pressure.
Timing matters as much as portion size. Lying down within two to three hours of eating is one of the most reliable ways to trigger heartburn. Gravity is doing real work keeping acid in your stomach while you’re upright. When you lie flat, that advantage disappears. If heartburn hits at night, try elevating the head of your bed by about six inches using blocks or a wedge pillow. Simply stacking regular pillows doesn’t work as well because it bends you at the waist rather than keeping your whole torso angled.
Sleeping on your left side also helps. The stomach curves to the left, and in this position gravity keeps the pool of acid away from the valve at the top of the stomach. Right-side sleeping does the opposite, positioning acid right at the opening to the esophagus.
Heartburn During Pregnancy
Heartburn is extremely common during pregnancy, especially in the second and third trimesters, because hormonal changes relax the esophageal valve and the growing uterus pushes upward on the stomach. Calcium-based antacids are generally considered safe during pregnancy, but not all heartburn medications carry the same safety profile. Some are fine in small amounts while others should be avoided entirely, so checking with your provider before starting anything beyond basic antacids is worthwhile.
The non-medication strategies, like eating smaller meals, staying upright after eating, and sleeping on your left side, are particularly useful during pregnancy since they carry zero risk.
Signs That Heartburn Needs Medical Attention
Occasional heartburn after a big or spicy meal is normal. But certain symptoms suggest that acid has been causing real damage. The American College of Gastroenterology identifies these as warning signs:
- Difficulty swallowing or a feeling that food is getting stuck behind your chest
- Vomiting blood that looks red or resembles coffee grounds
- Black, tarry stools, which can indicate bleeding in the digestive tract
- Unexplained weight loss with an inability to tolerate foods
- Chronic coughing, hoarseness, or shortness of breath from acid reaching the airway
Heartburn that happens more than twice a week for several weeks may be GERD, which responds well to treatment but benefits from a proper diagnosis so you’re using the right approach rather than masking a problem with antacids indefinitely.

