Gastroesophageal reflux is usually diagnosed based on the patient’s symptoms and medical history. Additional tests such as upper endoscopy, barium swallow, and pH monitoring may be performed to confirm the diagnosis and assess the severity of the condition.