Hypermagnesemia may occur, usually in patients with impaired renal function. Can reduce the absorption of drugs, such as ketoconazole, and possibly itraconazole, whose absorption is dependent on acid gastric pH. May occasionally cause constipation. Flatulence from released carbon dioxide may occur in some patients. Can cause hypercalcemia and alkalosis, particularly in patients with renal impairment or after high doses.