Flexi Says: The molarity (M) of a solution is the number of moles of solute dissolved in one liter of solution. To calculate the molarity of a solution, you divide the moles of solute by the volume of the solution expressed in liters. On the other hand, if you know the molarity and volume of the solution, the number of moles of solute can be calculated.