Several things work well for heartburn, ranging from simple habit changes to over-the-counter medications that neutralize or reduce stomach acid. The right approach depends on how often you experience it and how quickly you need relief. For occasional heartburn, an antacid or a few lifestyle shifts may be all you need. Frequent episodes, more than twice a week, usually call for stronger options.
Why Heartburn Happens
At the base of your esophagus sits a ring of muscle that opens to let food into your stomach and closes to keep acid from traveling back up. Certain foods, body positions, and habits cause that muscle to relax when it shouldn’t, allowing stomach acid to splash into the esophagus. That burning sensation behind your breastbone is the result.
Foods high in fat, salt, or spice are the most common triggers. Fried food, fast food, pizza, bacon, sausage, cheese, and processed snacks all slow digestion and relax that muscular valve. Tomato-based sauces, citrus fruits, chocolate, peppermint, and carbonated drinks do the same thing through slightly different mechanisms. You don’t necessarily need to cut all of these permanently, but identifying your personal triggers is one of the most effective long-term strategies.
Over-the-Counter Medications
Three categories of heartburn medication are available without a prescription, and they work at different speeds and durations.
Antacids are the fastest option. Products containing calcium carbonate or magnesium hydroxide neutralize acid that’s already in your stomach, providing relief within minutes. The tradeoff is that they wear off relatively quickly, making them best for occasional, mild episodes.
H2 blockers (famotidine is the most common) work by blocking one of the signals that tells your stomach to produce acid. They kick in within about 30 minutes and suppress acid for 4 to 8 hours. This makes them a solid choice when you anticipate heartburn, such as before a large meal, or when you need longer relief than an antacid provides.
Proton pump inhibitors (PPIs) like omeprazole block the final step of acid production entirely, creating intense, long-lasting suppression. They take one to four days to reach full effect, so they aren’t useful for immediate relief. PPIs are designed for people dealing with frequent heartburn or diagnosed acid reflux. Long-term use has been linked to reduced bone density, certain nutrient deficiencies, and a higher risk of gut infections, so it’s worth reassessing periodically whether you still need them rather than staying on them indefinitely.
Lifestyle Changes That Make a Real Difference
Medications treat the symptom. These habits address the cause.
- Eat smaller meals more often. A full stomach puts pressure on that lower esophageal valve. Spreading your food across four or five smaller meals instead of three large ones reduces that pressure significantly.
- Stay upright after eating. Gravity helps keep acid where it belongs. Wait at least two to three hours after a meal before lying down.
- Elevate the head of your bed. Raising it by several inches (using a wedge pillow or blocks under the frame) lets gravity work for you overnight. Stacking regular pillows doesn’t achieve the same angle.
- Sleep on your left side. In this position, your esophagus and its muscular valve sit higher than your stomach, allowing acid to drain back down more quickly than in any other sleeping position.
- Lose weight if you carry extra around your midsection. Abdominal fat increases pressure on the stomach and pushes acid upward.
- Wear loose clothing. Tight belts and waistbands compress the stomach in the same way excess weight does.
Home Remedies Worth Trying
Baking soda (sodium bicarbonate) is a pantry antacid. Half a teaspoon dissolved in a glass of water can neutralize stomach acid quickly. The Mayo Clinic advises not exceeding five teaspoons in a day and not using it for more than two weeks straight. Because baking soda is high in sodium, it’s a poor choice if you’re managing high blood pressure, kidney disease, or any condition requiring a low-sodium diet. It can also interfere with other medications, so take it at least one to two hours apart from any other pills.
Ginger has shown promise for upper digestive symptoms including heartburn, nausea, and early fullness. Small clinical trials found improvements in these symptoms at daily doses around 1,500 mg, though the evidence is still limited and researchers haven’t settled on a standardized form or dose. Fresh ginger tea or ginger chews are the most practical options, and they’re generally well tolerated.
Deglycyrrhizinated licorice (DGL) is a form of licorice with a compound removed that can raise blood pressure. It soothes and protects irritated tissue in the esophagus and stomach. A typical dose, recommended by integrative medicine programs at several universities, is two to four 380-milligram lozenges chewed before meals. DGL is widely available at health food stores and pharmacies.
Heartburn During Pregnancy
Heartburn affects a large percentage of pregnant women, especially in the second and third trimesters, as the growing uterus pushes the stomach upward and hormonal changes relax the esophageal valve. The same lifestyle strategies apply: smaller meals, avoiding fatty and spicy foods, staying upright after eating, and elevating the head of the bed at night. Drinking fluids between meals rather than with meals can also help.
Antacids and H2 blockers are generally considered safe during pregnancy, though most guidance recommends avoiding them in the first trimester as a precaution. If lifestyle changes aren’t enough, these are typically the first medications to try.
Foods That Help Rather Than Hurt
While trigger foods get most of the attention, some foods actively work in your favor. Non-citrus fruits like bananas and melons are low in acid. Vegetables, oatmeal, and whole grains absorb stomach acid and are unlikely to trigger reflux. Lean proteins like chicken, turkey, and fish, prepared without heavy fats or frying, are well tolerated. Ginger, as noted above, may provide additional benefit beyond simply being non-triggering.
A general pattern emerges: meals that are lower in fat, moderate in portion size, and free of known trigger ingredients produce less acid and move through the stomach faster. The less time food sits in your stomach, the less opportunity acid has to creep back up.
Signs That Need Medical Attention
Most heartburn is uncomfortable but harmless. Certain symptoms, however, signal something more serious. Difficulty swallowing, pain when swallowing, unexplained weight loss, vomiting blood, or black and bloody stools all warrant prompt evaluation. Heartburn that persists despite two weeks of over-the-counter treatment also deserves a closer look, as it may indicate a condition that requires different management.

