Heartburn: Why It Happens, How to Get Relief, and When to See a Doctor
Heartburn is a burning feeling that rises from your stomach into the center of your chest, often after meals or when you lie down. It is very common and usually manageable with simple changes and over-the-counter medicine. This page explains what causes it, how to ease it at home, the warning signs that need urgent care, and how to find the right specialist near you.
At a Glance
What Heartburn Feels Like
Heartburn has nothing to do with your heart. It is a burning feeling that starts behind your breastbone and can move up toward your throat. Most people notice it after a large or fatty meal, when bending over, or when lying down at night.
The burning happens when acid from your stomach flows backward into the esophagus, the tube that carries food from your mouth to your stomach. That lining is not built to handle acid, so even a small amount causes that hot, irritating feeling.
Other sensations often come with it:
- Sour or bitter taste: Acid or food can rise into the back of your throat or mouth, a feeling called regurgitation.
- Trouble swallowing: Food may feel like it sticks or goes down slowly.
- A lump in the throat: Some people feel pressure or fullness without true pain.
- Silent reflux: Heartburn can also show up as a chronic cough, hoarseness, a sore throat in the morning, or worsening asthma. The burning may be mild or absent, which is why this form often goes unrecognized.
Occasional heartburn after a spicy dinner is normal. When it happens two or more times a week, or wakes you at night, it points to a longer-lasting problem worth checking.
Common Causes of Heartburn
Most heartburn comes from acid reflux, but the same burning feeling can signal several different digestive conditions. Naming the cause matters because the treatment differs.
Acid reflux and GERD
The most frequent cause is acid reflux, where the muscle at the bottom of the esophagus relaxes when it should stay closed. When reflux happens often, it is called gastroesophageal reflux disease (GERD). A weak or stretched hiatal hernia makes this more likely by letting part of the stomach push up through the diaphragm.
Inflammation and infection
Long-term acid exposure can inflame the esophagus, a condition called esophagitis. Inflammation in the stomach lining, or gastritis, causes a similar burning, often along with nausea. A common trigger for both gastritis and a stomach ulcer is infection with Helicobacter pylori bacteria.
Less common but important causes
- Allergic inflammation: Eosinophilic esophagitis causes burning and food getting stuck, most often in younger adults with a history of allergies.
- A precancerous change: Years of reflux can lead to Barrett's esophagus, which requires ongoing monitoring.
- Motility problems: Achalasia and gastroparesis slow how food and acid move through the digestive tract, mimicking heartburn.
- Neighboring organs: Gallstones and pancreatitis can produce upper-belly burning that is easy to confuse with reflux.
Lifestyle factors feed nearly all of these: large meals, alcohol, caffeine, smoking, extra weight around the middle, and certain medicines all loosen the valve or increase acid.
When to Seek Emergency or Urgent Care
Most heartburn is not dangerous, but some warning signs need fast attention because they can point to a heart problem or serious damage in the digestive tract.
Call 911 right away if heartburn-like chest pain comes with any of these:
- Pressure, squeezing, or tightness in the chest
- Shortness of breath or breaking out in a cold sweat
- Pain spreading to your arm, neck, jaw, or back
- Lightheadedness or feeling faint
These can be signs of a heart attack, which is sometimes mistaken for heartburn. It is always safer to be checked.
Go to the emergency room or see a doctor urgently if you have:
- Vomiting blood, or vomit that looks like coffee grounds
- Black, tarry, or bloody stools
- Trouble swallowing, or food getting stuck
- Choking or severe pain when you swallow
- Unexplained weight loss along with the heartburn
- Heartburn that keeps you from eating or drinking
These signs can mean bleeding, a narrowed esophagus, or another condition that needs prompt testing. Do not wait to see if they pass on their own.
How to Get Relief and Self-Care
For occasional heartburn, simple steps and over-the-counter medicine work well. Many people feel better within days of changing a few habits.
Fast relief
- Antacids such as calcium carbonate (Tums) neutralize acid in minutes and are good for sudden, mild heartburn.
- H2 blockers like famotidine reduce acid for several hours and can be taken before a meal you expect to trigger symptoms.
- Proton pump inhibitors (PPIs) such as omeprazole (Prilosec) lower acid the most and work best for frequent heartburn. They take a day or two to reach full effect, so they prevent heartburn rather than stop an attack already underway. Use the OTC versions for up to 14 days, then talk to a doctor before continuing.
Everyday habits that help
- Eat smaller meals and slow down.
- Stay upright for two to three hours after eating, and avoid late-night meals.
- Raise the head of your bed about six inches, or use a wedge pillow.
- Cut back on common triggers: fried and fatty foods, tomato sauce, citrus, chocolate, peppermint, coffee, alcohol, and carbonated drinks.
- Lose extra weight if you carry it around your middle, and quit smoking.
- Wear loose clothing around the waist.
Keep a simple food and symptom diary for a week or two. It often reveals the specific foods and timing that set off your heartburn, which makes it far easier to avoid them.
How Heartburn Is Diagnosed
Many people never need testing. A doctor can often diagnose reflux from your symptoms and may simply start treatment to see if it helps. Testing comes into play when symptoms are frequent, severe, or not improving.
Common tests include:
- Upper endoscopy: A thin, flexible camera looks at the lining of the esophagus and stomach. This is the main way to find inflammation, ulcers, narrowing, or Barrett's changes, and to take small tissue samples.
- pH monitoring: A small sensor measures how much acid reaches the esophagus over 24 hours, which confirms reflux when the diagnosis is unclear.
- Esophageal manometry: This measures the muscle squeeze and valve function in the esophagus, useful when swallowing problems suggest achalasia.
- Breath, stool, or blood tests for H. pylori when an ulcer or gastritis is suspected.
Your doctor chooses tests based on your symptoms and red flags. Tell them about every medicine and supplement you take, since some can either cause heartburn or affect test results.
When to See a Doctor and Which Specialist
See a doctor if heartburn happens two or more times a week, wakes you at night, does not improve after two weeks of over-the-counter treatment, or comes with any of the red flags above. Frequent heartburn left untreated can damage the esophagus over time.
Start with your primary care doctor. They can confirm the likely cause, adjust your medicines, and treat most reflux. If symptoms are stubborn, severe, or need a scope, you will be referred to a gastroenterologist, a specialist in the digestive tract who performs endoscopy and manages conditions like GERD, Barrett's esophagus, ulcers, and swallowing disorders.
This page is meant to inform, not to diagnose. A burning chest can have many causes, and only an in-person exam can sort out which one is yours. If you are unsure whether your symptoms are urgent, it is always reasonable to call your doctor or seek care.
When you are ready to be seen, you can find a gastroenterologist near you using the grid below, which lists specialists by state and city across the country.
Find Help for Heartburn Near Me
Browse CMS-verified providers who treat heartburn by state.
Related care
Conditions, procedures, treatments and tests connected to heartburn.
Related conditions
Treatments
Tests & screenings
Frequently Asked Questions
Common questions about heartburn
What is the difference between heartburn, acid reflux, and GERD?
Acid reflux is the backward flow of stomach acid into the esophagus. Heartburn is the burning feeling that reflux causes. GERD is the diagnosis given when reflux happens often enough to bother you regularly or cause damage to the esophagus.
What is the best over-the-counter medicine for heartburn?
For quick relief of mild heartburn, antacids like Tums work in minutes. For frequent heartburn, a proton pump inhibitor such as omeprazole (Prilosec) lowers acid the most but takes a day or two to work. H2 blockers like famotidine fall in between. Use OTC PPIs for no more than 14 days without a doctor's advice.
What are good home remedies for heartburn?
Eat smaller meals, stay upright for two to three hours after eating, and avoid late-night snacks. Raise the head of your bed. Cutting back on fatty foods, coffee, alcohol, chocolate, and spicy or acidic foods often helps. Losing extra weight and quitting smoking make a lasting difference.
When should I worry about heartburn?
Worry if heartburn-like chest pain comes with shortness of breath, sweating, or pain in the arm or jaw, which can signal a heart attack. Also seek care for trouble swallowing, vomiting blood, black or bloody stools, unexplained weight loss, or heartburn that does not improve with treatment.
Can heartburn be a sign of something serious?
Usually not, but ongoing acid reflux can lead to esophagitis, ulcers, or Barrett's esophagus, a precancerous change. Burning in the chest can also be confused with heart disease. Frequent or worsening symptoms deserve a medical evaluation.
What is silent heartburn?
Silent reflux happens when stomach acid irritates the throat and voice box without much burning. It can show up as a chronic cough, hoarseness, a frequent need to clear your throat, or a sore throat in the morning. A doctor can help confirm whether reflux is the cause.
How long does it take heartburn medicine to work?
Antacids relieve symptoms within minutes. H2 blockers work in about 30 to 60 minutes and last several hours. Proton pump inhibitors take one to four days to reach full effect, so they prevent heartburn rather than stop an attack already underway.
Medical disclaimer: This content is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with questions about a medical condition. If you have a medical emergency, call 911. Our editorial standards