Magnesium carbonate is a white powdery compound with the chemical formula MgCO3. It is commonly used as a dietary supplement and as an antacid to relieve symptoms of heartburn, indigestion, and upset stomach. In addition, it is used in the production of ceramics, glass, and cement.