Overview
A muscle at the bottom of the esophagus normally keeps stomach acid from flowing back up. When it relaxes or weakens, acid can splash up and cause burning. You may also have a sour taste, burping, or food coming back up.
Heartburn that happens more than twice a week may be gastroesophageal reflux disease (GERD). Over time, GERD can damage the esophagus. Heart attack pain can feel like heartburn, so be careful with new chest pain.
When to get medical care
Causes
Common causes include large or fatty meals, lying down after eating, being overweight, pregnancy, smoking, alcohol, coffee, chocolate, peppermint, spicy and acidic foods, and a hiatal hernia. Some medicines can also cause it, like NSAIDs, some blood pressure medicines, and some osteoporosis medicines.
OwieClear has pages on 5 conditions that can cause heartburn. Each shows how soon to get care.
Common causes
- Acid reflux (GERD)See a doctor if it doesn't get better
Stomach acid flowing back into the esophagus, causing heartburn or a sour taste.
- Esophagitis (inflamed food pipe)Often needs care today
Inflammation of the food pipe from reflux, pills that get stuck (like doxycycline, iron, or bone medicines), infections such as yeast or herpes in people with…
Less likely causes
- Chronic coughSee a doctor if it doesn't get better
A cough lasting more than 8 weeks in adults (4 weeks in children).
- Barrett's esophagusSee a doctor if it doesn't get better
Changes in the lining of the food pipe caused by long-term acid reflux.
- Esophageal adenocarcinomaSee a doctor if it doesn't get better
The type of esophageal cancer linked to long-term acid reflux and Barrett's esophagus, usually in the lower esophagus near the stomach.
What you can do at home
- Eat smaller meals, and avoid foods that trigger heartburn.
- Don't lie down for 2 to 3 hours after eating.
- Raise the head of your bed 6 to 8 inches with blocks or a wedge.
- Lose weight if you're overweight.
- Don't smoke, and limit alcohol and caffeine.
- Wear loose clothing around your waist.
Medicines
Antacids (Tums, Maalox) give quick relief. H2 blockers like famotidine (Pepcid) and proton pump inhibitors like omeprazole (Prilosec) reduce acid. Don't use them for more than 2 weeks without talking to your provider.
At the doctor
Heartburn is often diagnosed from your symptoms.
Questions you may be asked
- How often it happens and what triggers it
- What helps
- Trouble swallowing or weight loss
- Vomiting or black stools
- Your medicines
The exam
A physical exam.
Tests
- Often no tests needed
- An upper endoscopy if you have warning signs or symptoms that don't improve
- pH monitoring of the esophagus
- An ECG if heart pain is possible
Prevention
You can lower your chance of heartburn.
- Eat smaller meals
- Don't lie down after eating
- Keep a healthy weight
- Don't smoke
Check your symptoms
Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.
Sources
Last updated 2026-11-13.