Milk of magnesia is a liquid supplement that contains magnesium hydroxide. It has been used for many years as an over-the-counter remedy for occasional constipation and heartburn. It works by drawing water into the intestines to soften stool and by neutralizing stomach acid.
Milk of magnesia is available without a prescription and is sold under various brand names as well as generic versions. It usually starts working within 30 minutes to 6 hours when used as a laxative. Although it is generally safe for short-term use, people with kidney disease or certain medical conditions should use it only under the guidance of a healthcare provider, as excess magnesium can build up in the body.
People use milk of magnesia for occasional constipation, heartburn, acid indigestion, and upset stomach. It is approved and widely used for these purposes when taken as directed. Long-term or excessive use is not recommended because it can lead to diarrhea, dehydration, electrolyte imbalances, or dependence on laxatives.