pH is a logarithmic function of [H+]:
- If pH < 7, then the solution is acidic.
- If pH = 7, then the solution is neutral.
- If pH > 7, then the solution is basic.
With a pH greater than 7, milk of magnesia is basic. (Milk of magnesia is largely Mg(OH)2.)