A patient with documented ZE syndrome responded to intravenous magnesium infusion by increased gastric acid output and increased serum gastrin concentration. A patient with acid hypersecretion but no gastrinoma had no substantial alteration in acid output or serum gastrin concentration following magnesium administration. This suggests that magnesium caused gastrin to be released from a gastrinoma.