A hiatal hernia is diagnosed through imaging or a scope procedure, not a physical exam or blood test. Most hiatal hernias are actually found incidentally, during testing for heartburn, chest pain, or difficulty swallowing. The three core tests are a barium swallow X-ray, an upper endoscopy, and esophageal manometry. Your doctor will choose one or more based on your symptoms and whether surgery is being considered.
Barium Swallow X-Ray
A barium swallow is one of the most straightforward ways to visualize a hiatal hernia. You drink a chalky liquid containing barium, which coats the lining of your esophagus and stomach. A radiologist then takes X-rays, often using fluoroscopy (a real-time X-ray video), to watch the barium travel down. Because the coating outlines the shape of your digestive tract, the radiologist can see whether part of your stomach has pushed up through the diaphragm and into the chest cavity.
The test itself is painless and takes about 15 to 30 minutes. You’ll need to remove jewelry or anything that could interfere with imaging. Most people find the barium drink mildly unpleasant but tolerable. You may also be asked to swallow a small barium tablet, which helps reveal narrowing or other structural problems in the esophagus. The test has about 73% sensitivity for detecting hiatal hernias, meaning it catches roughly three out of four cases.
Upper Endoscopy
An upper endoscopy gives your doctor a direct, real-time look inside your esophagus and stomach using a thin, flexible tube with a camera on the end. It’s passed down your throat while you’re sedated. This test does two things at once: it can identify the hernia itself and check for complications like inflammation, ulcers, or changes to the esophageal lining caused by chronic acid exposure.
During the procedure, the doctor examines the gastroesophageal flap valve, the fold of tissue where the esophagus meets the stomach. This is graded on a scale from I to IV, known as the Hill classification. In grade I, the tissue fold wraps snugly around the scope. In grade II, the fold opens briefly but closes quickly. By grade III, the fold barely exists and doesn’t close properly. Grade IV means the fold is completely absent, the junction is wide open, and a hiatal hernia is always present. A higher grade correlates with more acid reflux and lower pressure in the valve that normally keeps stomach contents from backing up.
Preparation requires fasting: no solid food for eight hours and no liquids for four hours beforehand. If you take blood thinners, your doctor will likely ask you to stop them several days before the procedure to reduce bleeding risk. Like the barium swallow, endoscopy has about 73% sensitivity for hiatal hernias on its own.
Esophageal Manometry
Manometry measures the pressure and coordination of your esophageal muscles. A thin catheter with up to 36 pressure sensors, each spaced one centimeter apart, is threaded through your nose and down into your esophagus. You then take a series of swallows while the sensors record how your muscles contract and how well your lower esophageal sphincter relaxes to let food through.
This test is especially useful for hiatal hernias because a hernia separates two structures that normally sit right on top of each other: the lower esophageal sphincter and the diaphragm. Manometry can detect that separation as a distinct split in the pressure readings. The data is converted into a color-coded pressure map that makes the anatomy easy to interpret.
High-resolution manometry turns out to be the most accurate single test. In a study comparing it against endoscopy and barium X-ray in 90 patients, manometry had 92% sensitivity and 95% specificity for identifying hiatal hernias. That’s a meaningful jump over the 73% sensitivity of the other two tests. Manometry is commonly ordered when surgery is being considered, since precise measurements of sphincter function help the surgical team plan the repair.
pH Monitoring for Acid Reflux
pH monitoring doesn’t diagnose the hernia itself, but it measures how much acid is reaching your esophagus, which helps your doctor understand whether the hernia is causing significant reflux. A small probe is placed in the esophagus for 24 hours while you go about your normal routine. It continuously records the acid level.
The key measurement is the percentage of time your esophageal pH drops below 4, which indicates acid exposure. In healthy people, that number stays below about 3.4%. In people with reflux disease, it’s significantly higher. This test has strong diagnostic accuracy: 87% sensitivity and 97% specificity for separating people with true reflux disease from those without it. If your hernia is causing borderline symptoms and the diagnosis is uncertain, pH monitoring can clarify whether acid reflux is actually the problem.
Which Tests You’ll Actually Need
Not everyone needs all four tests. Current guidelines from the Society of American Gastrointestinal and Endoscopic Surgeons recommend performing only the tests that will change how your condition is managed. If you’re having mild heartburn and your doctor suspects a small hernia, a single barium swallow or endoscopy may be enough to confirm it and guide treatment.
The full workup, including barium swallow, endoscopy, and manometry, becomes important when surgery is on the table. Multiple research teams have concluded that all three tests are essential for a reliable preoperative evaluation. Some experts go further and argue that all three should be done to confidently rule out a hiatal hernia before starting any treatment plan. pH monitoring is typically added when the degree of acid reflux needs to be quantified, particularly if symptoms don’t clearly match the endoscopy findings.
Many hiatal hernias are small and produce no symptoms at all. If yours was found incidentally during testing for something else, further workup may not be necessary unless you develop reflux symptoms, difficulty swallowing, or chest pain that warrants investigation.

