Home › Math & Science › Molarity Calculator
Molarity Calculator
Concentration problems all come down to one ratio, but the homework never hands you the numbers in the order the formula wants them. This free molarity calculator solves for whichever piece you are missing — molarity, moles, volume, or the mass to weigh out — using the molar mass to move between grams and moles for you.
How it works
Molarity ties three quantities together: the concentration M, the amount of solute in moles, and the volume of the finished solution in liters. Whenever mass appears instead of moles, the molar mass bridges the two — moles = mass ÷ molar mass. Pick what you want to find at the top and the calculator rearranges the same relationship rather than using a different formula for each mode.
Volume must always end up in liters inside the formula, so if you enter milliliters the calculator divides by 1,000 first — the single most common source of wrong answers in concentration homework. The results also translate the answer into the neighboring units chemists actually speak: a concentration of 0.2 mol/L is the same as 200 mmol/L, and it is also 0.2 mmol in every milliliter, because 1 mol/L and 1 mmol/mL are the same concentration wearing two labels.
Worked example
You dissolve 5.844 g of table salt, NaCl, and make the solution up to 500 mL. What is the molarity? Step 1: convert the mass to moles. NaCl has a molar mass of 58.44 g/mol, so 5.844 ÷ 58.44 = 0.1 mol. Step 2: convert the volume to liters — 500 mL = 0.5 L. Step 3: divide — 0.1 ÷ 0.5 = 0.2 M. Those are the calculator's default inputs, and 0.2 mol/L is exactly what it shows. Running the tool backwards is just as useful: to prepare 500 mL of a 0.2 M solution from scratch, choose "Mass to weigh out", enter 0.2 mol/L, 500 mL and 58.44 g/mol, and it tells you to weigh 5.844 g.
Common mistakes
Using milliliters straight in the formula is mistake number one — it makes your answer 1,000 times too small. Mistake number two is using the volume of water you added rather than the final solution volume; dissolving changes the total volume slightly, which is why volumetric flasks exist. And mistake number three is reaching for the mass of the solution instead of the mass of the solute: only the dissolved substance counts toward the moles.
FAQ
What is molarity, in simple terms?
Molarity is the concentration of a solution: how many moles of a dissolved substance (the solute) are in each liter of the finished solution. A 1 M solution has 1 mole per liter; a 0.2 M solution has a fifth of that. It is written with a capital M and measured in mol/L.
How do I calculate molarity from grams?
Convert the grams to moles first by dividing by the substance's molar mass, then divide by the volume in liters. Example: 5.844 g of NaCl (molar mass 58.44 g/mol) is 0.1 mol; dissolved and made up to 500 mL (0.5 L), the molarity is 0.1 ÷ 0.5 = 0.2 M. This calculator's molarity mode does both steps for you.
Is the volume the water I add, or the final solution volume?
The final solution volume. Molarity is defined per liter of solution, not per liter of solvent. In the lab you dissolve the solute in some water, then top up to the mark in a volumetric flask — that final volume is the one to enter here.
Where do I find the molar mass of my compound?
Add up the atomic weights of every atom in the formula — for NaCl, 22.99 (Na) + 35.45 (Cl) = 58.44 g/mol. Toolsped's Molecular Weight Calculator does that addition for any formula you type, including brackets and hydrates.
What is the difference between molarity and molality?
Molarity is moles per liter of solution; molality is moles per kilogram of solvent. They are close for dilute water solutions but not identical, and molality does not change with temperature while molarity shifts slightly as the liquid expands. This calculator works in molarity, the unit most labels and courses use.