You can get rid of heartburn fast by taking an over-the-counter antacid, which neutralizes stomach acid within minutes. For longer-lasting relief or recurring episodes, a combination of medication, dietary changes, and simple positional adjustments can keep heartburn from coming back. Here’s what actually works, how quickly each option kicks in, and what to do if heartburn becomes a regular problem.
Fastest Ways to Stop Heartburn Right Now
If you’re dealing with heartburn at this moment, your quickest option is an antacid. These neutralize the acid already in your stomach and start working within minutes. The tradeoff is that the relief doesn’t last very long, typically an hour or two.
For something more sustained, H2 blockers (sold as famotidine, or Pepcid) take about an hour to kick in but keep working for 4 to 10 hours. They reduce the amount of acid your stomach produces rather than just neutralizing what’s already there.
Proton pump inhibitors like omeprazole (Prilosec) are the strongest option, but they’re not designed for immediate relief. They take one to four days to reach full effect. These are better suited for people who get heartburn frequently and want to prevent it rather than treat it in the moment.
The Baking Soda Option
Baking soda (sodium bicarbonate) is a legitimate antacid that many people already have in the kitchen. The standard approach is half a teaspoon dissolved in a full glass of water, which you can repeat every two hours if needed. It works by neutralizing stomach acid on contact.
There are a few important caveats. Don’t use baking soda for more than two weeks straight. It contains a large amount of sodium, so it’s a poor choice if you have high blood pressure, heart disease, kidney disease, or are on a sodium-restricted diet. Don’t take it within one to two hours of other medications, because it can interfere with absorption. And avoid combining it with large amounts of milk, which increases the risk of side effects. If you find yourself reaching for baking soda regularly, that’s a sign you need a different strategy.
Foods That Cause Heartburn
Heartburn happens when stomach acid backs up into your esophagus. At the bottom of your esophagus sits a ring of muscle that’s supposed to stay closed after you swallow. Certain foods relax that muscle and slow digestion, letting food sit in your stomach longer and giving acid more opportunity to escape upward.
The biggest offenders are foods high in fat, salt, or spice:
- Fried food, fast food, and pizza
- Fatty meats like bacon and sausage
- Cheese and processed snacks like potato chips
- Chili powder, cayenne, black pepper, and white pepper
Several other foods cause the same problem through different mechanisms:
- Tomato-based sauces
- Citrus fruits
- Chocolate
- Peppermint
- Carbonated beverages
You don’t necessarily need to eliminate all of these permanently. Pay attention to which ones trigger your symptoms specifically. Most people find that two or three items on this list are their main culprits, and cutting back on those makes a noticeable difference.
When and How You Eat Matters
Stop eating at least three hours before you lie down. There’s a straightforward physical reason for this: when your stomach is full and you go horizontal, gravity is no longer helping keep acid where it belongs. Giving your stomach three hours to empty significantly reduces the chance of nighttime reflux.
Smaller, more frequent meals also help. A large meal stretches the stomach, which puts pressure on that muscular valve at the top and makes it more likely to let acid through. Eating slowly gives your body time to process food before volume becomes a problem.
Sleep Position Makes a Real Difference
If heartburn hits you at night, two adjustments can help considerably. First, elevate the head of your bed by 6 to 8 inches using blocks or a wedge placed under the mattress or bed frame. Propping yourself up with extra pillows doesn’t work as well because it bends your body at the waist, which can actually increase abdominal pressure.
Second, sleep on your left side. Your stomach sits to the left of your esophagus, so when you lie on your left, the stomach hangs below the point where it connects to the esophagus. This makes it physically harder for acid to travel upward. Research from Amsterdam UMC confirmed that left-side sleeping reduces acid reflux compared to sleeping on the right side or on your back. Combining left-side sleeping with head elevation is particularly effective for people with regular nighttime symptoms.
Does Ginger Help?
Ginger has a reputation as a natural remedy for digestive issues, but there’s currently no clinical research confirming it works specifically for acid reflux. If you want to try it, keep your intake under 4 grams per day (less than an eighth of a cup). Going above that threshold can actually trigger additional heartburn, which is the opposite of what you want. Ginger tea or small amounts of fresh ginger are reasonable to experiment with, but don’t rely on it as your primary treatment.
Heartburn During Pregnancy
Heartburn is extremely common during pregnancy, driven by hormonal changes that relax the valve between your stomach and esophagus, plus the physical pressure of a growing uterus pushing upward. Dietary and lifestyle changes (smaller meals, not lying down after eating, elevating the head of the bed) should be the first approach.
If those aren’t enough, antacids and H2 blockers are generally considered safe during pregnancy, though Johns Hopkins Medicine advises staying away from these medications during the first trimester. Talk with your provider before starting any medication while pregnant.
When Heartburn Might Be Something Else
Chest pain from heartburn and chest pain from a heart attack can feel surprisingly similar. Both can cause a burning or pressure sensation in the chest. The key differences are in the accompanying symptoms. Heart attack warning signs include:
- Pressure, tightness, or squeezing in the chest or arms that spreads to the neck, jaw, or back
- Shortness of breath
- Cold sweat
- Lightheadedness or sudden dizziness
- Unexplained fatigue
Heartburn typically gets worse when you bend over or lie down and often follows a meal. It tends to produce a burning sensation that stays in the chest and throat rather than radiating to other areas. If you experience any of the heart attack symptoms listed above, especially cold sweat, radiating pain, or shortness of breath, call emergency services immediately. It’s always better to get checked and find out it was heartburn than to wait and find out it wasn’t.
If Heartburn Keeps Coming Back
Occasional heartburn after a heavy meal is normal. Heartburn that shows up two or more times per week may indicate gastroesophageal reflux disease (GERD), which is a chronic condition where the valve between your stomach and esophagus isn’t closing properly on a regular basis. Left untreated over years, persistent acid exposure can damage the lining of the esophagus.
For frequent heartburn, the general approach starts with lifestyle modifications (the dietary and sleep changes described above) combined with a proton pump inhibitor taken daily. Your doctor can help determine how long you need medication and whether further evaluation, such as an endoscopy, makes sense based on your symptoms and how long you’ve had them.

