pH is to measure the amount of hydrogen ion activity (H+) in the chemical solution, and its acidity or alkalinity. Its formula is pH=-log([H+]).