Molarity is expressed as the number of moles of solute per volume of the solution. For example, we are given a solution of 2M NaOH this describes a solution that has 2 moles of NaOH per 1 L volume of the solution. Acids and bases can be measured through the concentrations of H+ and OH- ions in units of molarity. Hope this helps.