Hiatal hernias are diagnosed through a handful of well-established tests, and the choice of test depends on what your doctor needs to learn. The most common tools are the barium swallow X-ray, upper endoscopy, and high-resolution manometry, each of which reveals different things about the hernia’s size, type, and effect on swallowing. Many hiatal hernias are also discovered by accident on CT scans ordered for completely unrelated reasons. No single test catches every hernia every time, so doctors sometimes combine two or more methods to build a complete picture.
The Barium Swallow
The barium swallow has been a cornerstone of hiatal hernia diagnosis for decades, and it remains one of the most straightforward ways to see the anatomy in action. You drink a chalky liquid containing barium, which coats the lining of your esophagus and stomach. A radiologist then takes X-ray images or watches on a live fluoroscopy screen as the barium travels down. Because barium shows up brightly on X-ray, the images reveal whether part of your stomach has pushed up through the diaphragm and, if so, how far.
The standard diagnostic threshold is a gap of more than 2 centimeters between the gastroesophageal junction (where your esophagus meets your stomach) and the diaphragmatic hiatus (the opening in your diaphragm the esophagus passes through). If that distance exceeds 2 cm on the images, a sliding hiatal hernia is diagnosed.1PubMed Central. Preoperative diagnosis of hiatal hernia: barium swallow X‑ray, high-resolution manometry, or endoscopy? The same 2 cm criterion applies across multiple diagnostic methods, which is one reason it comes up repeatedly in hiatal hernia conversations.2Med Pharm Rep. The management of hiatal hernia: an update on diagnosis and treatment
Patient positioning during the barium swallow matters more than most people realize. Sliding hernias often slip back down into the abdomen when you stand upright, which can make them invisible on images taken in that position. Having you lie face-down and slightly rotated (a prone, right anterior oblique position) increases the likelihood of catching smaller sliding hernias that would otherwise reduce themselves and disappear from view.3European Society of Radiology. Barium contrast swallow: Useful or outdated? Even when the exact junction between esophagus and stomach is hard to pinpoint, the presence of stomach folds (rugae) visible above the diaphragm can confirm the hernia.
One limitation worth knowing: barium swallow can overestimate the size of the hernia. Research has found that the measurements taken on X-ray do not always match what a surgeon sees once they are actually operating, so the preoperative size estimate from a barium swallow may not be perfectly reliable for surgical planning.4PubMed Central. Preoperative diagnosis of hiatal hernia: barium swallow X‑ray, high-resolution manometry, or endoscopy? – Section: Discussion
Upper Endoscopy
Upper endoscopy (also called esophagogastroduodenoscopy, or EGD) gives doctors a direct, real-time look at the lining of your esophagus, stomach, and upper small intestine. A thin, flexible tube with a camera on the end is passed down your throat while you are sedated. Unlike barium swallow, endoscopy lets the doctor see the tissue itself, not just the outline of the organs. That means it can pick up complications like Cameron lesions (small erosions in the stomach lining caused by the hernia rubbing against the diaphragm) and inflammation from acid reflux, in addition to diagnosing the hernia itself.
Three of the four recognized hernia types can be identified by endoscopy, including the common sliding type and the less common paraesophageal types. During the procedure, the endoscopist can also assess the “flap valve” at the top of the stomach by turning the camera around to look back at the junction from below, a maneuver called retroflexion. This view is graded on a scale (the Hill grade) that helps quantify how badly the valve mechanism has been disrupted.5Foregut: The Journal of the American Foregut Society. How I Teach It: Endoscopic Evaluation of Hiatal Hernia
In head-to-head comparisons, endoscopy tends to outperform barium swallow at simply detecting whether a hernia is present. One study found that endoscopy identified hiatal hernias in about 98% of confirmed cases, compared to 75% for barium swallow. Endoscopy was also better at correctly classifying the type of hernia, getting it right about 80% of the time versus 50% for barium swallow.6PubMed. Is a barium swallow complementary to endoscopy essential in the preoperative assessment of laparoscopic antireflux and hiatal hernia surgery? That said, endoscopy is not perfect either. In another study of patients with confirmed hernias, upper endoscopy missed about a third of them, showing a sensitivity of around 66%.7PubMed Central. Identification of Sliding Hiatus Hernia by High-Resolution Manometry and Upper Gastrointestinal Endoscopy in Patients with Gastro-Oesophageal Reflux Disease The discrepancy between studies likely reflects differences in hernia size, the patient population being studied, and the skill of the endoscopist. Small hernias are easier to miss.
High-Resolution Manometry
High-resolution manometry (HRM) is a different kind of test altogether. Rather than producing images, it measures pressure along the length of your esophagus. A thin catheter studded with pressure sensors is passed through your nose and into your esophagus, and it records how your esophageal muscles squeeze during swallowing. The test creates a color-coded pressure map that lets doctors see the exact location and strength of two key structures: the lower esophageal sphincter (the muscular ring at the bottom of your esophagus) and the crural diaphragm (the part of the diaphragm that normally wraps around that sphincter).
In a person without a hiatal hernia, those two structures sit right on top of each other. When a hernia is present, they separate. A separation of 2 cm or more on manometry is considered diagnostic.2Med Pharm Rep. The management of hiatal hernia: an update on diagnosis and treatment The power of HRM lies in its ability to detect and measure that separation with fine precision and to classify the junction into subtypes based on how far apart the two pressure zones have moved.8Journal of Neurogastroenterology and Motility. High-Resolution Manometry for Assessing Hiatal Hernia in a Patient With Severe Reflux Esophagitis
HRM is especially valuable for detecting very small hernias, under 2 cm, that older imaging methods and conventional manometry used to miss entirely. The detailed pressure maps it produces have fundamentally changed how researchers understand the relationship between small hernias and acid reflux.9Gut and Liver. Clinical Significance of Hiatal Hernia However, HRM is not always a great standalone screening tool. In one study, its sensitivity for detecting hernias was only about 48%, meaning it missed more than half of confirmed cases.7PubMed Central. Identification of Sliding Hiatus Hernia by High-Resolution Manometry and Upper Gastrointestinal Endoscopy in Patients with Gastro-Oesophageal Reflux Disease Its primary role is usually to characterize esophageal motility before surgery rather than to serve as the first-line test for finding a hernia.
CT Scans and Incidental Discovery
CT scans are not typically ordered specifically to diagnose a hiatal hernia, but they find them anyway. A CT of the chest or abdomen produces detailed cross-sectional images that clearly show whether stomach tissue has migrated above the diaphragm. CT is considered especially valuable when doctors suspect a complication like gastric volvulus (a dangerous twisting of the stomach), because it can reveal the rotation axis, signs of compromised blood supply, and other anatomical details that guide emergency surgical decisions.10International Journal of Surgery Case Reports. Gastric volvulus as a rare complication of hiatal hernia: A rare case report
Increasingly, hiatal hernias are turning up as incidental findings on CT scans done for entirely different reasons. In a study of patients undergoing lung cancer screening, about 8.8% were found to have a hiatal hernia they had not been evaluated for. Roughly two-thirds of those patients were actually experiencing symptoms like heartburn or difficulty swallowing, but more than half had never been seen by a gastroenterologist, and nearly two-thirds had never had an endoscopy.11Foregut: The Journal of the American Foregut Society. Prevalence and Management of Hiatal Hernia Found on Imaging During Lung Cancer Screening About a quarter of those patients were referred to a thoracic surgeon based on their symptoms or the type of hernia found, and roughly one in ten ultimately qualified for surgery.
The takeaway from these findings is that if a CT scan done for another reason mentions a hiatal hernia in the report, it is worth following up on rather than ignoring. Many people live with symptoms they have gotten used to, and the incidental finding may be the prompt that leads to appropriate treatment.
pH Monitoring and Reflux Testing
pH monitoring does not diagnose a hiatal hernia directly, but it plays an important supporting role. A small sensor placed in the esophagus (sometimes on a thin catheter, sometimes on a wireless capsule clipped to the esophageal wall) records how often stomach acid washes back up and how long it lingers. This test is mainly used to confirm whether you have pathological acid reflux, but it also provides indirect evidence about the hernia.
Research shows a clear relationship between hernia size and reflux severity. Hernias larger than 2 cm are significantly more likely to be associated with pathological levels of acid reflux.12PubMed Central. Hiatal Hernia Size and Reflux Parameters in Gastro-Oesophageal Reflux Disease: Evidence From a Retrospective Cohort So while pH monitoring will not tell you the hernia’s shape or exact position, abnormal reflux patterns can flag the need for further anatomical investigation with endoscopy or barium swallow. pH data is also essential for deciding whether anti-reflux surgery would actually help, because not everyone with a hiatal hernia has significant reflux, and surgery is less likely to improve symptoms if acid exposure is normal.
In children, combined impedance-pH monitoring (which tracks both acidic and non-acidic reflux events) has shown promise as a screening tool for sliding hiatal hernias. By comparing the ratio of reflux episodes detected by the pH probe versus impedance probes, doctors can get a reasonable indication of whether a hernia is present without jumping straight to endoscopy or sedation, which carry different risk profiles in younger patients.13PubMed. Combined multichannel intraluminal impedance and pH monitoring assists the diagnosis of sliding hiatal hernia in children with gastroesophageal reflux disease
When a Hernia Mimics a Heart Problem
One of the more unsettling aspects of hiatal hernia diagnosis is how closely the symptoms can resemble cardiac emergencies. Large hiatal hernias can produce chest pain, palpitations, and shortness of breath that look and feel a lot like a heart attack. The pain comes from acid washing into the lower esophagus or from the herniated stomach mechanically pressing on surrounding structures, including the heart itself. Differentiating this from actual coronary ischemia is genuinely difficult, and emergency physicians have to rule out cardiac causes before attributing chest pain to a hernia.14PubMed Central. Hiatal hernia mimicking heart problems
This overlap means some patients go through cardiac workups (EKGs, stress tests, coronary angiograms) before anyone thinks to look at the diaphragm. If you have had repeated episodes of chest pain that cardiac testing cannot explain, a hiatal hernia is one of the diagnoses worth investigating. An upper endoscopy or barium swallow can settle the question relatively quickly once someone thinks to order one.
Ultrasound as a Simpler Alternative
Ultrasound is not the standard tool for diagnosing hiatal hernias, but a small body of research suggests it deserves more attention. Transabdominal ultrasound (the same kind used to image a pregnancy or gallstones) can visualize the gastroesophageal junction and detect sliding hernias without any radiation, sedation, or contrast agents. Studies have found it to be a well-tolerated approach with good diagnostic accuracy, and researchers have suggested it could serve as an initial screening step, potentially sparing some patients from more expensive or invasive procedures.15PubMed. Sliding gastric hiatal hernia diagnosis by transabdominal ultrasonography: an easy, reliable and non-invasive procedure16PubMed. Accuracy of ultrasonography in the diagnosis of sliding hiatal hernias
The catch is that ultrasound depends heavily on the operator’s skill and the patient’s body type. It works best for sliding hernias and may not reliably detect paraesophageal types or provide the kind of detailed anatomical mapping that surgery planning requires. For now, it remains more of a research interest and an option for patients who cannot tolerate other tests (for example, those who cannot swallow barium or who should avoid radiation) rather than a routine first-line tool.
Why Doctors Often Combine Tests Before Surgery
If surgery is on the table, doctors rarely rely on a single test. The current approach to pre-operative evaluation of paraesophageal hernias calls for a history and physical exam, an upper endoscopy, and some form of imaging such as a barium swallow or CT scan at a minimum. Additional tests like manometry or pH monitoring are added when symptoms do not clearly match the imaging findings or when the surgical team needs more information about esophageal function.17PubMed. Preoperative Workup of Patients with Paraesophageal Hernias: Every Test for Every Patient?
The reason for this layered approach is that each test has blind spots. Barium swallow gives the best dynamic view of how the hernia behaves during swallowing and can reveal motility problems that endoscopy misses. Endoscopy offers the best tissue-level view and can detect complications like Cameron lesions or Barrett’s esophagus. Manometry tells the surgeon how well the esophagus squeezes and whether the sphincter is functioning, which affects the type of surgical repair chosen. No single test answers all of those questions, and surgeons who operate on incomplete information run a higher risk of unexpected findings on the operating table.
For patients who are not surgical candidates or whose hernias are small and manageable with medication, a single test (usually endoscopy or barium swallow) may be sufficient. The extent of workup is matched to the clinical question being asked: are we confirming the hernia exists, or are we planning a repair?
Why Some Hernias Get Missed
Given the range of available tests, it might seem like diagnosing a hiatal hernia should be straightforward. In practice, small sliding hernias are notoriously slippery. They slide up and down, sometimes reducing themselves entirely during the test. A patient who is upright during a barium swallow may show a perfectly normal anatomy, only for the hernia to reappear when they lie flat. Similarly, an endoscopy performed on a patient whose hernia happens to be reduced at the time of the procedure may come back normal.
The sensitivity numbers bear this out. Endoscopy catches roughly two-thirds of confirmed hernias in some study populations, and manometry catches less than half.7PubMed Central. Identification of Sliding Hiatus Hernia by High-Resolution Manometry and Upper Gastrointestinal Endoscopy in Patients with Gastro-Oesophageal Reflux Disease These are not small miss rates. If your symptoms strongly suggest a hiatal hernia but one test comes back negative, it does not necessarily mean you do not have one. A different test, or the same test performed under different conditions (lying down versus standing, for example), may catch what was missed.
This is also why clinical suspicion matters. Experienced doctors factor in the pattern of symptoms, your age, your weight, your response to acid-suppressing medication, and other clues alongside test results. Diagnostic testing for hiatal hernias is rarely a single decisive moment. It is more often a process of accumulating evidence from multiple angles until the clinical picture becomes clear enough to guide treatment.