It is also useful for preventing hyperammonemia caused as a side effect of administration of valproic acid. Small intestine bacterial overgrowth
Lactulose is used as a test of small intestine bacterial overgrowth (SIBO). Recently, the reliability of it for diagnosing SIBO has been seriously questioned. A large amount of it is given with subsequent testing of molecular hydrogen gas in the breath. The test is positive if an increase in exhaled hydrogen occurs before that which would be expected by normal  digestion by the normal gut flora in the colon. An earlier result has been hypothesized to indicate digestion occurring within the small intestine. An alternate explanation for differences in results is the variance in small bowel transit time among tested subjects. Pregnancy
No evidence of harm to the baby has been found when used during pregnancy. It is generally regarded as safe during breastfeeding. Side effects
Common side effects of lactulose are abdominal cramping, borborygmus, and flatulence. In normal individuals, overdose is considered uncomfortable, but not life-threatening. Uncommon side effects are nausea and vomiting. In sensitive individuals, such as the elderly or people with reduced kidney function, excess lactulose dosage can result in dehydration and electrolyte disturbances such as low magnesium levels. Ingestion of lactulose does not cause a weight gain because it is not digestible, with no nutritional value. Although lactulose is less likely to cause dental caries than sucrose, as a sugar, a potential for this exists. This should be taken into consideration when taken by people with a high susceptibility to this condition.
Lactulose is a non-absorbable sugar used in the treatment of constipation and hepatic encephalopathy. It is used by mouth for constipation and either by mouth or in the rectum for hepatic encephalopathy. It generally begins working after 8–12 hours, but may take up to 2 days to improve constipation.Common side effects include abdominal bloating and cramps. A potential exists for electrolyte problems as a result of the diarrhea it produces. No evidence of harm to the baby has been found when used during pregnancy. It is generally regarded as safe during breastfeeding. It is classified as an osmotic laxative.Lactulose was first made in 1929, and has been used medically since the 1950s. It is on the World Health Organizations List of Essential Medicines. It is available as a generic and brand-name product. Lactulose is made from the milk sugar lactose, which is composed of two simple sugars, galactose and glucose. History
In 1957, Peitele discovered that lactulose is a bifidobacterium proliferation factor. In 1964, Hoffman found that only bifidobacteria, Lactobacillus and Streptococcus could metabolise lactulose into lactic acid and acetic acid. In 1966, Baicier found that lactulose can promote the growth of basophilic gram-positive bacteria lacking urease (e.g. Escherichia coli) and reduce ammonia production. It has been proven that lactulose reduces blood ammonia, and it has been successfully used in the treatment of hepatic encephalopathy. In 1979, Nianmoleyou treated viral hepatitis with lactulose and he found that lactulose has the effect of reducing plasma endotoxin.