X-rays often are used to evaluate digestive problems.
Standard X-Rays
Standard x-rays (plain x-rays Plain X-Rays X-rays are high-energy radiation waves that can penetrate most substances (to varying degrees). In very low doses, x-rays are used to produce images that help doctors diagnose disease. In high... read more ) can show some blockages or paralysis of the digestive tract, or abnormal air patterns in the abdominal cavity. They can also show significant enlargement of the liver, kidneys, and spleen.
Standard x-rays do not require any special preparation.
Barium X-Ray Studies of the Digestive Tract
X-ray studies using barium often provide more information than standard x-rays.
X-rays are taken after a person swallows barium in a flavored liquid mixture or as barium-coated food. The barium looks white on x-rays and outlines the digestive tract, showing the contours and lining of the esophagus (the hollow tube that leads from the throat to the stomach), stomach, and small intestine. Barium may collect in abnormal areas, showing ulcers, tumors, blockages, and erosions and enlarged, dilated esophageal veins.
Fluoroscopy
X-rays may be taken at intervals to determine where the barium is. In a continuous x-ray technique called fluoroscopy, the barium is observed as it moves through the digestive tract. With this technique, doctors can see how the esophagus and stomach function, determine whether their contractions are normal, and tell whether food is getting blocked.

Barium enema
Barium also can be given in an enema to outline the lower part of the large intestine.
Barium enema x-rays can show polyps, tumors, or other structural abnormalities. This procedure may cause crampy pain or slight to moderate discomfort.
Barium taken by mouth or as an enema is eventually passed in the stool, making the stool chalky white. Because barium can cause significant constipation, the doctor may give a gentle laxative to speed up the elimination of barium.
Although barium studies are still sometimes done to evaluate digestive problems, endoscopy Endoscopy Endoscopy is an examination of internal structures using a flexible viewing tube (endoscope). In addition to examinations, doctors can use endoscopy to do biopsies and give treatment. Endoscopes... read more and alternative imaging tests such as CT enterography Computed Tomography and Magnetic Resonance Imaging of the Digestive Tract Computed tomography (CT) and magnetic resonance imaging (MRI) scans are good tests for assessing the size and location of abdominal organs. Additionally, cancerous (malignant) or noncancerous... read more and CT colonography CT Colonography Computed tomography (CT) and magnetic resonance imaging (MRI) scans are good tests for assessing the size and location of abdominal organs. Additionally, cancerous (malignant) or noncancerous... read more have largely replaced barium studies because of their superior image quality.