The degree of acidity or alkalinity of a liquid is a function of its hydrogen ion concentration. pH is a way of expressing hydrogen ion activity.