Calculateus

Molarity Calculator

Calculate the molarity of a solution from moles of solute and volume, or from mass and molar mass.

Result

Molarity
1 mol/L
Moles of Solute
1 mol

About the Molarity Calculator

The Molarity Calculator determines the molar concentration of a solution from its solute's mass and molar mass, combined with the total solution volume. It's aimed at chemistry students and lab work where you need to know how many moles of a dissolved substance are packed into each liter of solution, the most common concentration unit in titrations and reaction stoichiometry.

How It Works

Enter the mass of solute in grams, its molar mass in grams per mole, and the total solution volume in liters. The calculator first divides mass by molar mass to get moles of solute, then divides that by volume to return molarity in mol/L. If molar mass or volume is entered as zero or negative, it returns an error instead of a result.

moles = mass (g) / molar mass (g/mol); molarity (mol/L) = moles / volume (L)

Examples

1 Molar Sodium Chloride

Dissolving 58.44 g of NaCl (molar mass 58.44 g/mol) and diluting to 1 L of solution gives 1 mole of solute and a molarity of exactly 1.0 mol/L, a standard 1M saline reference solution.

Dilute Glucose Solution

Dissolving 18 g of glucose (molar mass 180 g/mol) into 0.25 L of solution gives 0.1 mol of solute and a molarity of 0.4 mol/L.

Advantages

  • Handles the full path from raw mass to final concentration in one step, without a separate moles calculation.
  • Returns both molarity and the intermediate moles value, so you can verify the calculation partway through.
  • Reduces titration and dilution prep errors by removing manual division from the workflow.

Common Mistakes

  • Using the volume of solvent added rather than the final total solution volume, which slightly overstates molarity since dissolving a solute usually increases total volume somewhat.
  • Looking up the wrong molar mass, such as using the mass of one element instead of the full compound, which throws off the mole calculation entirely.
  • Entering solution volume in milliliters without converting to liters first, producing a result that's off by a factor of 1000.

Edge Cases to Watch For

  • Molar mass and volume must both be greater than zero; entering zero or a negative value for either returns an error rather than a divide-by-zero result.
  • The calculator assumes the volume entered is the total volume of the finished solution, not the volume of solvent added before the solute dissolves, since dissolving a solid changes total volume slightly.
  • Molarity depends on solution volume, which expands with temperature, so a molarity value calculated at one temperature will drift slightly if the same solution is measured again at a different temperature.

Common Use Cases

  • Chemistry students preparing solutions of a specific known concentration for lab work
  • Analysts calculating reagent concentrations before titrations or reaction stoichiometry
  • Educators generating molarity practice problems with realistic compound values
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

What is molarity?

Molarity (mol/L, or M) measures the concentration of a solution as moles of dissolved solute per liter of total solution - it's calculated as moles of solute (mass ÷ molar mass) divided by the solution's volume in liters.

Conclusion

Molarity ties together how much solute you dissolve and how much total solution you end up with, and it's the concentration figure most chemistry calculations start from. This calculator handles both the mass-to-moles conversion and the final division so the numbers stay consistent.