To determine the molarity of a solution, divide the number of moles of solute by the volume of the solution in litres. The formula is Molarity (M) = moles of solute / volume of solution (L).