letmecalc

Molarity Calculator

Calculate the molarity (molar concentration) of a solution from the mass of solute you dissolved, its molar mass, and the total solution volume. The result is given in moles per liter (mol/L, written M), along with the number of moles of solute.

Your numbers

g
g/mol

e.g. NaCl (table salt) is 58.44 g/mol.

L
Molarity
1 mol/L
Moles of solute
1 mol

How to calculate molarity

Molarity counts particles, not grams, so the first step converts mass to moles. Divide the mass of solute in grams by its molar mass in g/mol; for sodium chloride that is 58.44 g/mol, the sum of sodium (22.99) and chlorine (35.45). The second step divides those moles by the volume of the finished solution in liters. Note that this is the total volume after the solute has dissolved, not the volume of water you started with. If you measured in milliliters, divide by 1,000 first: 250 mL is 0.25 L. The calculator shows both the mole count and the molarity, each rounded to four decimal places, so very dilute solutions below 0.0001 mol/L will display as zero and are better expressed in mmol/L.

Formula
Moles = mass / molar mass | Molarity (mol/L) = moles / volume (L)

Worked example. Dissolving 58.44 g of NaCl (molar mass 58.44 g/mol) into 1 L of solution gives exactly 1 mol/L (a 1 M solution).

Worked example: a glucose solution

Suppose you dissolve 5.0 g of glucose (C6H12O6) and make the solution up to 500 mL. Glucose has a molar mass of 180.16 g/mol: six carbons at 12.011, twelve hydrogens at 1.008 and six oxygens at 15.999. Moles of glucose are 5.0 / 180.16 = 0.0278 mol. Dividing by 0.5 L gives 0.0555 mol/L, or about 55.5 mM. To work backwards and find how much solute to weigh out for a target concentration, multiply molarity by volume by molar mass. For 2 L of 0.5 M NaCl you need 0.5 x 2 x 58.44 = 58.44 g. Enter that mass here with the same volume and the calculator confirms 0.5 mol/L.

Common mistakes when preparing solutions

The most frequent error is adding solute to a full liter of water. The dissolved solid takes up space, so the final volume ends up slightly above 1 L and the concentration slightly below target. The correct method is to dissolve the solute in less water, then top up to the mark in a volumetric flask. The second error is mixing up mL and L, which makes the answer 1,000 times too small or too large. The third is ignoring water of crystallisation: copper sulfate pentahydrate (CuSO4.5H2O) has a molar mass of 249.69 g/mol, against 159.61 g/mol for the anhydrous salt. For 500 mL of 0.1 M solution you need 12.48 g of the hydrate but only 7.98 g of the anhydrous form. Always use the molar mass of the exact compound in the bottle.

Molarity, molality and dilution

Molarity (mol per liter of solution) changes slightly with temperature because liquids expand when warmed. Molality (mol per kilogram of solvent) does not, which is why it is preferred for freezing-point and boiling-point calculations. For dilute aqueous solutions near room temperature the two values are close. Once you have a stock solution, use the dilution equation M1 x V1 = M2 x V2 rather than weighing out solute again. To make 250 mL of 0.1 M solution from a 1 M stock, you need 0.1 x 250 / 1 = 25 mL of stock, topped up to 250 mL with water. Both volumes only need to be in the same unit, so mL works fine here.

Questions people ask

How do you calculate molarity?

Molarity is moles of solute divided by liters of solution: M = n ÷ V. To start from a mass, first divide the grams by the molar mass. 5.85 g of NaCl (molar mass 58.44 g/mol) is 0.1 mol, and in 0.5 L of solution that gives 0.1 ÷ 0.5 = 0.2 M.

Where do I find a substance's molar mass?

Add up the atomic masses of every atom in its chemical formula from the periodic table. Common lab reagents also list molar mass directly on the packaging or safety data sheet.

What does "1 M" mean?

1 M is shorthand for a 1 molar solution: exactly 1 mole of solute dissolved per liter of total solution volume.

How do I convert mL to L for the volume?

Divide milliliters by 1,000. For example, 250 mL is 0.25 L and 50 mL is 0.05 L. Entering 250 in the liters box would make the molarity 1,000 times too small.

How many grams do I need to make a solution of a given molarity?

Multiply the target molarity by the volume in liters and by the molar mass. For 0.25 L of 0.2 M NaCl that is 0.2 x 0.25 x 58.44 = 2.922 g.

What is the difference between molarity and molality?

Molarity is moles of solute per liter of solution, while molality is moles per kilogram of solvent. Molality does not change with temperature, so it is used in colligative property calculations; molarity is more convenient for everyday lab work with volumetric glassware.

Put this calculator on your site

Free to use on any site. Please keep the credit link.

<iframe
  id="letmecalc-molarity-calculator"
  src="https://letmecalc.com/embed/science/molarity-calculator"
  title="Molarity Calculator"
  width="100%"
  height="620"
  style="border:0;max-width:100%"
  loading="lazy"
></iframe>
<p><a href="https://letmecalc.com/science/molarity-calculator" target="_blank" rel="noopener">Molarity Calculator</a> by letmecalc</p>
<script>
(function () {
  var f = document.getElementById("letmecalc-molarity-calculator");
  window.addEventListener("message", function (e) {
    if (e.origin !== "https://letmecalc.com") return;
    if (!f || e.source !== f.contentWindow) return;
    var d = e.data;
    if (!d || d.source !== "letmecalc-embed" || d.type !== "resize") return;
    if (typeof d.height === "number" && d.height > 0) {
      f.style.height = d.height + "px";
    }
  });
})();
</script>