Milk of magnesia is alkaline because it has a pH of 10.5, which means that it would neutralize any acidic substance encountered. Hence, it is an excellent antacid. It neutralizes excess stomach acid or hydrochloric acid. The hydroxide ions of the milk combine with the hydrogen ions in the stomach acid to reduce excess acidity in the stomach.