Milk of magnesia (magnesium hydroxide) problem; sometimes it works, sometimes it doesn't. Why?

Amount taken. The amount taken plus the amount of fluid consumed plus your varying diet plus activity all have an impact. Feel free to vary the dose up and down as needed and make sure you drink enough water.