Does Coffee Give You Heartburn? Causes & Fixes
Yes, coffee can give you heartburn, especially if you drink it on an empty stomach or in large amounts. The caffeine and natural acids in coffee relax the lower esophageal sphincter (LES)—the muscle that keeps stomach contents from flowing back up—and also stimulate stomach acid production, which together create the perfect conditions for acid reflux and the burning sensation known as heartburn.
What Causes Heartburn After Coffee?
Heartburn happens when stomach acid backs up into the esophagus. Coffee contributes in several ways:
- Caffeine relaxes the LES. This muscle normally acts as a one-way valve. When it relaxes too much, acid can escape upward.
- Coffee increases stomach acid. Both regular and decaf coffee stimulate gastrin, a hormone that triggers acid secretion.
- Acidic compounds. Coffee has a pH around 4.5–5.0, which can irritate an already inflamed esophagus.
- Other compounds. Catechols and N-alkanoly-5-hydroxytryptamides in coffee can increase acid production independent of caffeine.
Why Some People Get It and Others Don't
Not everyone who drinks coffee gets heartburn. Individual susceptibility depends on:
- Your LES tone—some people naturally have a weaker sphincter.
- Hernia or other anatomical issues—a hiatal hernia can make reflux more likely.
- What you eat with coffee—fatty or spicy foods worsen reflux.
- Smoking and alcohol—both also relax the LES, compounding coffee's effect.
- Genetics—how your body metabolizes caffeine and handles acid varies.
Does Decaf Coffee Cause Heartburn Too?
Yes, but often less. Decaf still stimulates acid production, though to a lesser degree than regular coffee. Some studies suggest that decaf may cause less reflux than regular, but it is not completely reflux-free. If you are sensitive, switching to decaf might help, but it is not a guaranteed fix.
How to Drink Coffee Without Heartburn
You don't necessarily have to give up coffee. Try these strategies:
- Drink it after a meal—food buffers acid and keeps the LES more stable.
- Choose a darker roast—dark roasts contain less of the compounds that trigger acid production than light roasts.
- Try cold brew—cold brewing extracts less acid and fewer bitter compounds, which may be gentler on the stomach.
- Limit to one or two cups—more coffee means more acid and more relaxation of the LES.
- Skip the whipped cream and heavy cream—high-fat additions slow digestion and increase reflux risk.
- Don't lie down right after drinking—wait at least 2–3 hours before lying flat.
Is It Heartburn or Something Else?
Heartburn is a symptom, not a disease. It can be mistaken for other conditions:
- Angina or heart attack—chest pain from the heart can feel similar, especially if it comes with shortness of breath, sweating, or pain in the arm or jaw.
- Gastritis—inflammation of the stomach lining can cause burning pain in the upper abdomen.
- Gallbladder issues—pain after eating, especially fatty meals, can be mistaken for heartburn.
If you have frequent heartburn (more than twice a week), it may be gastroesophageal reflux disease (GERD). See a doctor for proper diagnosis.
What to Do When Heartburn Strikes
If you get heartburn after coffee, you can try:
- Antacids (like calcium carbonate) to neutralize acid quickly.
- H2 blockers (like famotidine) to reduce acid production for a few hours.
- Proton pump inhibitors (like omeprazole) for longer-lasting relief, but these are usually for daily symptoms and should be used under medical guidance.
- Chewing gum—stimulates saliva, which washes acid back down.
These are general suggestions, not medical advice. Always read labels and consult a healthcare provider if symptoms persist.
Frequently Asked Questions
Does adding milk to coffee help with heartburn?
For some people, yes. Milk can buffer stomach acid temporarily and may reduce irritation. However, whole milk's fat content can relax the LES and worsen reflux later. If you try milk, use low-fat or non-fat versions.
Is cold brew less likely to cause heartburn than hot coffee?
Cold brew is typically less acidic than hot brewed coffee because the cold extraction process pulls out fewer acidic compounds. Many people with reflux find cold brew easier on the stomach, but it still contains caffeine, which can relax the LES.
Can I develop heartburn from coffee even if I never had it before?
Yes. Changes in weight, pregnancy, medications, stress, or diet can weaken the LES over time. You may suddenly become sensitive to coffee even if you've tolerated it for years.
Does espresso cause more heartburn than drip coffee?
Espresso is more concentrated, so a single shot has more caffeine per ounce than drip coffee. However, a typical serving of drip coffee (8 oz) has more total caffeine than a single espresso shot (1 oz). For heartburn, the total amount of coffee and how it's brewed matter more than the type.
How long does coffee-induced heartburn last?
It varies. A single episode can last from a few minutes to several hours, depending on how much acid is produced and how quickly it clears from the esophagus. If it lasts more than a few hours or occurs frequently, see a doctor.
Is it safe to drink coffee every day if I get heartburn sometimes?
Occasional heartburn after coffee isn't usually dangerous, but frequent reflux can damage the esophagus over time. If you have heartburn more than twice a week, talk to a healthcare provider about management strategies.