Barium sulfate suspension, often simply called barium, is a contrast agent used during Xrays. Specifically it is used to improve visualization of the gastrointestinal tract (esophagus, stomach, intestines) on plain Xray or computed tomography. It is taken by mouth or used rectally.