Worried about your symptoms?
Start the Heartburn test with our free AI Symptom Checker.
This will help us personalize your assessment.
By starting the symptom checker, you agree to the Privacy Policy and Terms of Use
Try one of these related symptoms.
Heartburn
Acid reflux
Gastric discomfort
Burning in my chest
Acid reflux after eating
Acid reflux whenever I lie down
Acid reflux when I overeat
Chest discomfort gets better when I drink something
Burning sensation in throat and chest
Pressure in the stomach
Heartburn after meals
Can't sleep because of heartburn
Heartburn is a burning pain in the chest, just behind the breastbone. The pain often worsens after eating, in the evening, or when lying down or bending over.
Seek professional care if you experience any of the following symptoms
Generally, Heartburn can be related to:
Cancer of the stomach. The primary symptom is indigestion or "heartburn." Sometimes people have nausea or bloating and weight loss and fatigue as well. It is diagnosed when a doctor, usually a gastroenterologist, puts a tube with a camera down the throat while the patient is sleeping and takes a biopsy of any abnormality they see in the stomach. Once the cancer has been diagnosed by biopsy, CT scans, PET scans and MRIs may be ordered as well. Known risk factors include alcohol, occupational exposures such as rubber, an infection called "H pylori," pernicious anemia, gastric acid reflux (GERD) and age.
A condition where the stomach's surface lining is inflamed. Weaknesses or injury to the mucus-lined barrier that usually protect the stomach wall allow digestive juices to damage and inflame the stomach lining. A number of diseases and conditions can increase the risk of gastritis, including a bacteria infection called H. pylori. Some symptoms are belly ache, belly pain, nausea and vomiting.
Ulcers are sores that can develop in the stomach and small intestines. In severe cases, the ulcers can be deep and cause bleeding within the gut wall. Common causes include the bacteria H. pylori, and painkillers such as Diclofenac, Ibuprofen, Naproxen, Advil, Aleve (NSAIDs).
Sometimes, Heartburn may be related to these serious diseases:
This is a life-threatening syndrome in pregnancy and a form of severe pre-eclampsia (high blood pressure with associated organ damage in pregnancy). HELLP stands for Hemolysis (rupture of red blood cells); EL (elevated liver enzymes causing liver dysfunction); LP (low platelet counts, resulting in bleeding).
Your doctor may ask these questions to check for this symptom:
Reviewed By:
Unnati Patel, MD, MSc (Family Medicine)
Dr.Patel serves as Center Medical Director and a Primary Care Physician at Oak Street Health in Arizona. She graduated from the Zhejiang University School of Medicine prior to working in clinical research focused on preventive medicine at the University of Illinois and the University of Nevada. Dr. Patel earned her MSc in Global Health from Georgetown University, during which she worked with the WHO in Sierra Leone and Save the Children in Washington, D.C. She went on to complete her Family Medicine residency in Chicago at Norwegian American Hospital before completing a fellowship in Leadership in Value-based Care in conjunction with the Northwestern University Kellogg School of Management, where she earned her MBA. Dr. Patel’s interests include health tech and teaching medical students and she currently serves as Clinical Associate Professor at the University of Arizona School of Medicine.
Yoshinori Abe, MD (Internal Medicine)
Dr. Abe graduated from The University of Tokyo School of Medicine in 2015. He completed his residency at the Tokyo Metropolitan Health and Longevity Medical Center. He co-founded Ubie, Inc. in May 2017, where he currently serves as CEO & product owner at Ubie. Since December 2019, he has been a member of the Special Committee for Activation of Research in Emergency AI of the Japanese Association for Acute Medicine. | | Dr. Abe has been elected in the 2020 Forbes 30 Under 30 Asia Healthcare & Science category.
Content updated on Jan 30, 2025
Following the Medical Content Editorial Policy
Was this page helpful?
We would love to help them too.
With a free 3-min Heartburn quiz, powered by Ubie's AI and doctors, find possible causes of your symptoms.
This questionnaire is customized to your situation and symptoms, including the following personal information:
Biological Sex - helps us provide relevant suggestions for male vs. female conditions.
Age - adjusts our guidance based on any age-related health factors.
History - considers past illnesses, surgeries, family history, and lifestyle choices.
Your symptoms

Our AI

Your report

Your personal report will tell you
✔ When to see a doctor
✔︎ What causes your symptoms
✔︎ Treatment information etc.
See full list
Female, Teens
Ubie helped me to share my symptoms and get a small range of possible diseases/conditions, and the highest one was heartburn, which is what my doctor ended up diagnosing me with!
(Mar 25, 2025)
Q.
Is Heartburn Keeping You Awake? Tips for Nighttime Indigestion
A.
Nighttime heartburn and indigestion are common, typically caused by acid reflux that worsens when lying down, and you can often reduce symptoms by finishing meals 2 to 3 hours before bed, elevating the head of your bed, choosing smaller portions, avoiding individual trigger foods, limiting alcohol and smoking, and wearing looser clothing. There are several factors to consider, including when to use antacids, H2 blockers, or PPIs, when frequent or severe symptoms warrant medical care, and what other conditions can mimic heartburn, so see the complete guidance below to understand key details that could affect your next steps.
References:
* Katz PO, Dunbar KB, Schnoll-Sussman FH, Greer KB, Yadlapati R, Spechler SJ. ACG Clinical Guideline: Diagnosis and Management of Gastroesophageal Reflux Disease. Am J Gastroenterol. 2021 Jan 1;116(1):27-53. doi: 10.14309/ajg.0000000000001031. PMID: 33427976.
* Spechler SJ. Nocturnal gastroesophageal reflux disease: recent updates on diagnosis and treatment. Curr Opin Gastroenterol. 2020 Jul;36(4):307-313. doi: 10.1097/MOG.0000000000000656. PMID: 32449733.
* Antunes C, Aleixo C, Nunes J, Cabral S, Pinho A, Antunes I, Rodrigues S. Lifestyle and Dietary Modifications for the Management of Gastroesophageal Reflux Disease: An Evidence-Based Approach. Am J Lifestyle Med. 2021 May-Jun;15(3):291-303. doi: 10.1177/1559827620980429. Epub 2021 Feb 23. PMID: 34093259; PMCID: PMC8160868.
* Fass R, Dicpinigaitis PV, Carroll T, Cheatham B, Reichelderfer M. Nocturnal gastroesophageal reflux disease: update on prevalence, pathophysiology, and management. World J Gastroenterol. 2015 Mar 14;21(10):2898-908. doi: 10.3748/wjg.v21.i10.2898. PMID: 25780302; PMCID: PMC4358814.
* Johnson DA, Orr WC, DeMeester TR, Castell DO. Positional therapy for gastroesophageal reflux disease. Curr Treat Options Gastroenterol. 2017 Mar;15(1):16-24. doi: 10.1007/s11938-017-0120-x. PMID: 28108849.
Q.
Is Your NSAID Safe? Why Your Body Reacts & Medical Steps for Safe Relief
A.
NSAIDs relieve pain by blocking COX-1 and COX-2, which also reduces protective prostaglandins, so benefits come with real risks to the stomach, kidneys, heart, and bleeding. There are several factors to consider, including your health conditions, other medicines, dose, and duration; see the complete details below. Use them more safely by sticking to the lowest effective dose for the shortest time, avoiding multiple NSAIDs, taking with food, checking for interactions, and considering alternatives like acetaminophen or topical NSAIDs, and seek immediate care for black or bloody stools, vomiting blood, chest pain, sudden shortness of breath, severe abdominal pain, slurred speech, or one-sided weakness; personalized guidance and next steps are outlined below.
References:
* pubmed.ncbi.nlm.nih.gov/37625076/
* pubmed.ncbi.nlm.nih.gov/33927055/
* pubmed.ncbi.nlm.nih.gov/37456385/
* pubmed.ncbi.nlm.nih.gov/37704289/
* pubmed.ncbi.nlm.nih.gov/36767598/
Q.
Persistent Burning? Why Your Stomach is Hurting & Medically Approved Next Steps
A.
Persistent stomach burning often points to irritation from acid-related problems such as stomach ulcers, gastritis, GERD, medication side effects, or H. pylori infection; ulcer pain can be gnawing, may change with meals, and may come with bloating, nausea, or burping. Medically approved next steps include seeing a clinician if symptoms last more than 1 to 2 weeks or keep returning, testing for H. pylori and considering endoscopy, and starting treatments like PPIs, antibiotics when indicated, and stopping NSAIDs, while watching for emergency red flags like vomiting blood, black stools, severe sudden pain, or fainting. There are several factors to consider that could change your plan; for complete details and guidance on triggers, lifestyle changes, and when to seek urgent care, see below.
References:
* O'Malley, T., & Ford, A. C. (2022). Dyspepsia: clinical aspects and management. *Clinical Medicine*, *22*(4), 361-366.
* Staller, K., & Sperry, S. (2022). Functional Dyspepsia: An Update on the Pathophysiology and Treatment. *Current Treatment Options in Gastroenterology*, *20*(3), 40-51.
* Savarino, E., & De Bortoli, N. (2022). Current treatment options for gastroesophageal reflux disease. *F1000Research*, *11*, 178.
* Lanas, A., & Carrera-Lasfuentes, P. (2021). Peptic ulcer disease: an update. *Therapeutic Advances in Gastroenterology*, *14*, 17562848211029227.
* Malfertheiner, P., Megraud, F., Rokkas, T., O'Morain, C., & Sepe, L. (2023). Management of Helicobacter pylori Infection: The Maastricht VI/Florence Consensus Report. *Gut*, *72*(11), 1999-2022.
Q.
Still Burning? Why Your Chest is Burning & Medically Approved Famotidine 20mg Steps
A.
Most burning chest pain is from acid reflux heartburn; famotidine 20 mg, an H2 blocker, can reduce acid and relieve symptoms within 30 to 60 minutes for up to 12 hours, especially when taken 15 to 60 minutes before trigger foods and used short term for no more than 14 days with lifestyle changes. There are several factors to consider. See below for dosing specifics, who should talk to a doctor first, urgent red flags that need immediate care, and other causes that could change your next steps.
References:
* Khan S, Rehman U, Muhammad N, et al. Efficacy and Safety of Famotidine for the Treatment of Gastroesophageal Reflux Disease: A Systematic Review and Meta-Analysis. Cureus. 2019 Jan 10;11(1):e3871. doi: 10.7759/cureus.3871. PMID: 30678652; PMCID: PMC6329068.
* Patel D, Mohiuddin SS. Update on the Pharmacological Management of Gastroesophageal Reflux Disease. Cureus. 2021 Jun 22;13(6):e15822. doi: 10.7759/cureus.15822. PMID: 34213038; PMCID: PMC8219463.
* DeVault KR. Approach to the Patient with Heartburn. Med Clin North Am. 2018 Sep;102(5):769-779. doi: 10.1016/j.mcna.2018.04.001. Epub 2018 Jun 20. PMID: 30501655.
* Al-Jahdhami B, Al-Maani F, Al-Harthi S. Non-Cardiac Chest Pain: Role of the Esophagus. Curr Gastroenterol Rep. 2021 Aug 14;23(9):16. doi: 10.1007/s11894-021-00810-7. PMID: 34260388.
* Jain S. Approach to the Patient with Dyspepsia and Heartburn. Med Clin North Am. 2020 Jul;104(4):619-633. doi: 10.1016/j.mcna.2020.02.007. Epub 2020 Apr 11. PMID: 32822471.
Q.
Chronic Heartburn? Why Your Chest Is Burning & Medically Approved Next Steps
A.
Chronic chest burning is most often heartburn from acid reflux or GERD, triggered by large or fatty meals, caffeine, alcohol, lying down after eating, smoking, excess weight, pregnancy, or certain medicines, and may include sour taste, regurgitation, cough, hoarseness, or trouble swallowing; seek urgent care for chest pain that radiates, shortness of breath, vomiting blood, black stools, worsening swallowing, or unexplained weight loss. Medically approved next steps include lifestyle changes, OTC antacids, H2 blockers, or PPIs, and seeing a clinician for frequent or persistent symptoms with possible testing like endoscopy or pH monitoring. There are several factors to consider that could change your plan; see the important details below.
References:
* Katz, P. O., Dunbar, K. B., & Schnoll-Sussman, F. H. (2022). ACG Clinical Guideline: Diagnosis and Management of Gastroesophageal Reflux Disease. *The American Journal of Gastroenterology*, *117*(1), 27–56.
* Spechler, S. J. (2021). Pathophysiology of gastroesophageal reflux disease: challenges and opportunities. *The American Journal of Gastroenterology*, *116*(2), 263–269.
* Khan, A. A., & Khan, Z. (2020). Lifestyle Modification in GERD: An Evidence-Based Approach. *Cureus*, *12*(7), e9299.
* Lirio, D., Khondaker, T., & Fass, R. (2022). Non-erosive reflux disease: A disease of the modern age. *World Journal of Gastrointestinal Pharmacology and Therapeutics*, *13*(2), 16–29.
* Vakil, N., & Vaezi, M. F. (2019). Role of Upper Endoscopy in GERD: What Is Its Current Position? *Current Gastroenterology Reports*, *21*(9), 42.
Q.
Burning Inside? Why Your Chest is Smoldering & Medically Approved Next Steps
A.
Chest burning is most often acid reflux, but other conditions like esophagitis, ulcers, anxiety, lung or gallbladder problems, and especially heart disease can cause similar symptoms; seek emergency care if it is new, severe, or includes pressure, spreading pain, shortness of breath, sweating, fainting, or vomiting blood. For nonurgent cases, proven next steps include meal timing and portion changes, avoiding triggers, weight and smoking management, appropriate antacids or acid reducers, and seeing a clinician for persistent symptoms or possible endoscopy; important details on who should be tested, medication choices, and long term risks are outlined below.
References:
* Ng KJP, Leong TWM, Lim JPK, Tan SRL, Oh EHC, Chan JWH, Tang SJT, Tan SEL. Chest pain: A systematic review of diagnosis and management. World J Clin Cases. 2023 Feb 16;11(5):980-993. doi: 10.12998/wjcc.v11.i5.980. PMID: 36873919.
* Drossman HE, Nanduri SK, Drossman DA. Gastroesophageal Reflux Disease (GERD) and Chest Pain: A Review of the Pathophysiology, Diagnosis, and Management. Am J Gastroenterol. 2020 Jan;115(1):15-28. doi: 10.14309/ajg.0000000000000305. PMID: 31780826.
* Pandharipande RBN, Balaraman SLG, Chen CC. Non-cardiac chest pain: a comprehensive review. Expert Rev Gastroenterol Hepatol. 2022 Mar;16(3):237-247. doi: 10.1080/17474124.2022.2033068. PMID: 35081258.
* Chaitman KR, Fleg JL, Maron PR, Varosy RE. Angina Pectoris: Pathophysiology, Diagnosis, and Management. J Am Heart Assoc. 2018 May 1;7(9):e008985. doi: 10.1161/JAHA.118.008985. PMID: 29712711.
* Singh GD, Ma TL, Leong MFC. Esophageal Disorders Causing Chest Pain: A Clinical Review. World J Gastroenterol. 2020 Aug 7;26(29):4235-4246. doi: 10.3748/wjg.v26.i29.4235. PMID: 32879576.
Q.
Is there truth that baking soda is good for heartburn?
A.
Yes—baking soda can neutralize stomach acid and provide quick, short-term relief for occasional heartburn, aligning with guidelines that permit antacids for mild, infrequent symptoms. However, it’s not a long-term fix and carries important risks (very high sodium, gas/bloating, drug interactions, and rare alkalosis), and frequent reliance may mask GERD—there are several factors to consider; see the safe dosing tips, better OTC options, lifestyle changes, and red‑flag symptoms to act on below. If your symptoms occur more than twice weekly or are severe, seek medical evaluation.
References:
Katz PO, & Gerson LB. (2013). Guidelines for the diagnosis and management of gastroesopha… American Journal of Gastroenterology, 23338043.
Kamath PS, & Wiesner RH. (2001). A model to predict survival in patients with end-stage liv… Hepatology, 11157951.
D'Amico G, Garcia-Tsao G, & Pagliaro L. (2006). Natural history and prognostic indicators of … Hepatology, 16447202.
Q.
Does the duration of heartburn vary with different age groups?
A.
Heartburn can feel different for people of different ages. Kids and teenagers can have heartburn that lasts longer and might continue as they grow up.
References:
Portale G, Peters J, Hsieh CC, Tamhankar A, Arain M, Hagen J, et al. (2007). When are reflux episodes symptomatic?. Diseases of the esophagus : official journal of the International Society for Diseases of the Esophagus, 17227310.
https://pubmed.ncbi.nlm.nih.gov/17227310/
El-Serag HB, Gilger M, Carter J, Genta RM, & Rabeneck L. (2004). Childhood GERD is a risk factor for GERD in adolescents .... The American journal of gastroenterology, 15128341.
https://pubmed.ncbi.nlm.nih.gov/15128341/
Brzana RJ, & Koch KL. (1997). Gastroesophageal reflux disease presenting with .... Annals of internal medicine, 9139556.
Q.
How long does heartburn last?
A.
A typical heartburn episode can last from a few minutes to several hours, depending on various factors such as diet and individual health conditions.
References:
Portale G, Peters J, Hsieh CC, Tamhankar A, Arain M, Hagen J, et al. (2007). When are reflux episodes symptomatic?. Diseases of the esophagus : official journal of the International Society for Diseases of the Esophagus, 17227310.
https://pubmed.ncbi.nlm.nih.gov/17227310/
Allen ML, Mellow MH, Robinson MG, & Orr WC. (1990). The effect of raw onions on acid reflux and reflux symptoms. The American journal of gastroenterology, 2327378.
https://pubmed.ncbi.nlm.nih.gov/2327378/
Decktor DL, Robinson M, Maton PN, Lanza FL, & Gottlieb S. (1995). Effects of Aluminum/Magnesium Hydroxide and Calcium .... American journal of therapeutics, 11854825.
Q.
When should I be concerned about the length of my heartburn symptoms?
A.
You should be concerned about heartburn if it happens often or doesn't go away, as it might be a sign of a condition like GERD.
References:
Richter JE, Peura D, Benjamin SB, Joelsson B, & Whipple J. (2000). Efficacy of omeprazole for the treatment of symptomatic .... Archives of internal medicine, 10871975.
https://pubmed.ncbi.nlm.nih.gov/10871975/
Ahuja V, Yencha MW, & Lassen LF. (1999). Head and neck manifestations of gastroesophageal reflux .... American family physician, 10498113.
https://pubmed.ncbi.nlm.nih.gov/10498113/
Berlth F, Lorenz F, Kleinert R, Langhammer N, Hadzijusufovic E, & Chon SH. (2022). GERD and Barett: Natural Course of One Disease. Therapeutische Umschau. Revue therapeutique, 35440194.
Our symptom checker AI is continuously refined with input from experienced physicians, empowering them to make more accurate diagnoses.

“World’s Best Digital
Health Companies”
Newsweek 2024

“Best With AI”
Google Play Best of 2023

“Best in Class”
Digital Health Awards 2023 (Quarterfinalist)

Which is the best Symptom Checker?
Ubie’s symptom checker demonstrated a Top-10 hit accuracy of 71.6%, surpassing the performance of several leading symptom checkers in the market, which averaged around 60% accuracy in similar assessments.
Link to full study:
https://www.medrxiv.org/content/10.1101/2024.08.29.24312810v1Heartburn and acid reflux
https://www.nhs.uk/conditions/heartburn-and-acid-reflux/