Molarity Calculator

A bottle label that says 1 M sodium chloride and a recipe that says dissolve 58.44 g of salt in water to make a litre of solution are saying the same thing in two different languages. Molarity counts moles of solute in each litre of solution, and this free molarity calculator does the translation from the balance to the bottle: enter the mass of solute, its molar mass and the volume of the solution, and it returns the moles of solute and the molarity in mol/L, mmol/L and µmol/L. At the defaults, 58.44 g of sodium chloride with a molar mass of 58.44 g/mol in 1.0 L of solution, the answer is 1.000 mol of solute and 1.000 mol/L, which is 1,000 mmol/L or 1,000,000 µmol/L, with a mass concentration of 58.44 g/L. The calculation is two short steps, mass divided by molar mass to get moles, then moles divided by volume to get molarity, and the one thing it will not forgive is using the wrong volume. The volume in the formula is the volume of the whole solution, not the volume of solvent you added, and this article explains why that distinction matters before it shows the worked example.

Your Solution

Molarity is moles of solute divided by litres of solution, and the volume is the volume of the whole solution, not the volume of solvent you added. Dissolve the solute in less solvent than the final volume, then add solvent until the liquid reaches the mark on the volumetric flask: that final volume is the one that goes into the calculation. The calculator converts millilitres to litres for you, dividing by 1,000, and it assumes the solute dissolves completely. A salt that splits into ions in water still counts as one formula unit per mole here, so 1.000 mol/L of sodium chloride is the formal concentration, not 1.000 mol/L of sodium ions plus 1.000 mol/L of chloride ions.

Sodium chloride solution 1.000 mol/L 58.44 g in 1 L of solution Moderately concentrated solution 2 L mark 1.000 mol of solute in the flask 10 solute particles shown
Your solution
Solute
Moles of Solute
Molarity (mol/L)
Molarity (mmol/L)
Molarity (µmol/L)
In mass terms
Mass Concentration (g/L)
Formula Used
Molarity divides by litres of solution, not litres of solvent, and molality divides by kilograms of solvent, so the two are different denominators and different units. Molarity changes with temperature because a solution expands as it warms and its volume changes, while molality does not change, because a mass does not change with temperature. For dilute aqueous solutions the two numbers are close, because a litre of water weighs about a kilogram, but close is not the same, and the gap grows as the solution gets more concentrated.
SoluteMass (g)Molar Mass (g/mol)Volume (L)Moles (mol)Molarity (mol/L)

Eight common solutions at a stated mass and volume, worked out with the same formula. At the defaults, 58.44 g of sodium chloride in 1 L is 1.000 mol/L, so the highlighted row is sodium chloride.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

Founder & CEO, Techraxy

Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

What is a Molarity Calculator?

A molarity calculator is a tool that turns a weighed mass of solute and a final solution volume into a molar concentration. Molarity, also called molar concentration and written with a capital M, is the number of moles of solute in each litre of solution. A 1.000 mol/L solution, written 1.000 M, contains 1.000 mol of solute in every litre of the finished solution. The calculation needs the molar mass of the solute, because the balance weighs grams and the formula counts moles. Moles of solute equal the mass in grams divided by the molar mass in grams per mole, and molarity equals those moles divided by the volume of solution in litres. If you need the molar mass of a compound from its formula first, the Molar Mass Calculator works it out from the atomic weights of the elements in the formula. Molarity is the concentration unit chemists reach for first, because reactions run on counts of particles rather than on grams. One mole of sodium chloride and one mole of glucose contain the same number of formula units, even though one weighs 58.44 g and the other weighs 180.16 g, so equal molarities mean equal numbers of particles per litre, while equal masses do not. That is why protocols, reagent bottles and titration calculations are written in mol/L, and why a calculator that starts from a weighed mass is the everyday bridge between the balance and the bench.

How to Use the Molarity Calculator

Enter the solute mass in grams, the molar mass of the solute in g/mol, and the solution volume, in litres or millilitres. You can also type the solute name, which only labels the results; leaving it blank labels the results as Solution. The calculator updates as you type, and the Calculate button runs it again at any time. Read the results in order. Moles of solute is the first step of the calculation, shown so you can check it. Molarity in mol/L is the headline number, with the same value in mmol/L and µmol/L underneath, so you can quote whichever scale fits: mol/L for ordinary lab solutions, mmol/L for dilute biochemical solutions, µmol/L for trace work. The mass concentration in g/L is the mass divided by the volume, which is the same number in the units a balance and a measuring cylinder give you; the Mass Concentration to Molar Concentration Conversion Calculator starts from that number directly if you already have it. The formula line repeats the calculation in words. The diagram shows a volumetric flask on a lab bench, with the liquid level, the particle dots and the colour of the liquid all following your inputs. The liquid rises toward the red mark as the volume grows, the dots multiply as the moles of solute grow, and the liquid darkens as the molarity grows, so every input change moves the picture visibly. The Compare Solutions tab puts eight common solutions side by side, from sodium chloride to potassium chloride, each at a stated mass and volume, with the moles and the molarity for each. The row matching your mass, molar mass and volume is highlighted, so you can see at a glance where your solution sits among the familiar ones.

Molarity Calculator Formula

The formula is molarity in mol/L equals moles of solute in mol divided by volume of solution in litres, where moles of solute equal mass in grams divided by molar mass in g/mol. Written as one line, molarity equals mass divided by molar mass, all divided by volume of solution. Millimolarity is molarity times 1,000, micromolarity is molarity times 1,000,000, and mass concentration is mass divided by volume of solution. Written out for the defaults, 58.44 g of sodium chloride with a molar mass of 58.44 g/mol in 1.0 L of solution: 58.44 divided by 58.44 is 1.000 mol, and 1.000 divided by 1.0 is 1.000 mol/L. Multiplying by 1,000 gives 1,000 mmol/L, multiplying by 1,000,000 gives 1,000,000 µmol/L, and the mass concentration is 58.44 divided by 1.0, which is 58.44 g/L. With a volume in millilitres, divide by 1,000 first. For 58.44 g of sodium chloride in 500 mL: 500 divided by 1,000 is 0.5 L, 58.44 divided by 58.44 is 1.000 mol, and 1.000 divided by 0.5 is 2.000 mol/L. The most common mistake in this calculation is dividing by the volume of solvent instead of the volume of solution, which gives an answer that is too high, because the solvent added is always less than the final volume: the solute itself takes up volume, so a litre of solution contains less than a litre of solvent.

Worked Example

Take glucose, with a molar mass of 180.16 g/mol, at a mass of 180.16 g in 2 L of solution. First, convert the mass to moles: 180.16 divided by 180.16 is 1.000 mol. Then divide by the volume of solution: 1.000 divided by 2 is 0.500 mol/L. Multiplying by 1,000 gives 500 mmol/L, multiplying by 1,000,000 gives 500,000 µmol/L, and the mass concentration is 180.16 divided by 2, which is 90.08 g/L. The numbers were chosen so the check is easy: 180.16 g is exactly one mole of glucose, so the moles step gives 1.000 mol without any rounding, and the only remaining step is dividing by the 2 L volume. A second check with the defaults shows the same pattern for sodium chloride: 58.44 g is exactly one mole, so 58.44 g in 1 L is 1.000 mol/L, while the same 58.44 g in 0.5 L is 2.000 mol/L, because halving the volume doubles the concentration when the moles stay the same.

Benefits of Using a Molarity Calculator

The first benefit is getting the moles step right without mental arithmetic. The step from grams to moles is a division by the molar mass, and a wrong molar mass, such as using the anhydrous value for a hydrate, or a mass typed in milligrams by mistake, gives an answer that looks plausible and is wrong by a clean factor. The calculator shows the moles as its own result row, so a wrong molar mass shows up there first, before it can hide inside the molarity. The second benefit is keeping the volume honest. The volume that belongs in the formula is the final volume of the solution, measured after the solute has dissolved and the flask has been filled to its mark, and the calculator’s diagram draws exactly that: a volumetric flask with the liquid rising to the mark. Seeing the flask next to the number makes the rule concrete in a way a formula alone does not, and it is the rule students get wrong most often. The third benefit is quoting the answer on the scale your reader expects. A biochemist writes 500 µmol/L where a school lab writes 0.500 mmol/L and an industrial protocol writes 0.0005 mol/L, and all three are the same solution. The calculator prints all three scales from one entry, so the conversion between them, a factor of 1,000 each way, is done once and done correctly, instead of being reworked by hand each time the number is copied into a new document. The fourth benefit is checking a solution against familiar ones. The Compare Solutions tab holds eight standard preparations, and the highlighted row shows whether your solution matches one of them exactly. A 1.000 mol/L glucose solution needs 180.16 g per litre, while a 1.000 mol/L sodium chloride solution needs only 58.44 g, and seeing those two rows side by side is the fastest way to learn that equal molarities do not mean equal masses.

Frequently Asked Questions

How do you calculate molarity from grams?

Divide the mass in grams by the molar mass in g/mol to get moles of solute, then divide those moles by the volume of solution in litres. For 58.44 g of sodium chloride with a molar mass of 58.44 g/mol in 1.0 L: 58.44 divided by 58.44 is 1.000 mol, and 1.000 divided by 1.0 is 1.000 mol/L. If the volume is in millilitres, divide it by 1,000 first, so 500 mL becomes 0.5 L before it goes into the formula.

What is the difference between molarity and molality?

Molarity is moles of solute per litre of solution, and molality is moles of solute per kilogram of solvent, so the two share a numerator and differ in the denominator. Molarity divides by the volume of the whole finished solution, while molality divides by the mass of the solvent alone. Molarity changes with temperature because a solution expands as it warms and its volume changes, while molality does not change, because a mass does not change with temperature. The Molality Calculator works out molality from the same inputs, and it is a separate calculator because the two quantities are not interchangeable.

Why does the volume have to be the final solution volume?

Because the solute itself takes up volume once it dissolves. To make 1 L of a 1.000 mol/L sodium chloride solution you dissolve 58.44 g of salt in less than a litre of water, then add water until the total volume reaches the 1 L mark on the volumetric flask. If you instead added the salt to a full litre of water, the final volume would be slightly more than a litre and the molarity slightly less than 1.000 mol/L. The volume in the formula is always the volume after mixing, never the volume of solvent you started with.

What happens if I enter the volume in millilitres?

The calculator divides millilitres by 1,000 to get litres before doing anything else, so 500 mL becomes 0.5 L. Entering 58.44 g of sodium chloride with a molar mass of 58.44 g/mol in 500 mL gives 1.000 mol divided by 0.5 L, which is 2.000 mol/L. The result rows and the diagram all use litres, so the diagram label reads 0.5 L of solution for a 500 mL entry, and the mass concentration is still worked out in g/L.

Is 1 M the same as 1 m for a dilute aqueous solution?

Close, but not the same. For a dilute solution in water near room temperature, a litre of solution weighs about a kilogram, and the solvent in it weighs slightly less than a kilogram, so 1.000 mol/L and 1.000 mol/kg come out within a percent or two of each other. The gap grows as the solution gets more concentrated, because the solute takes up a larger share of the volume and the mass of the solution pulls further away from the mass of the solvent alone. Use molarity for bench work and titrations, and molality when the temperature will change or when a colligative property such as freezing point is involved.

Calculator Sources

Wikipedia — Molar concentration — with molarity defined as moles of solute per litre of solution, the symbol M, and the distinction from molality and from mass concentration.

Wikipedia — Molality — with molality defined as moles of solute per kilogram of solvent, its independence from temperature, and its use for colligative properties.

LibreTexts — Quantitative Units of Concentration — with molarity as moles of solute per litre of solution, molality as moles per kilogram of solvent, and the warning that molarity uses the total volume of the entire solution, not just the volume of solvent.

LibreTexts — Chemical Reactions in Solution — with molarity defined as moles of solute in exactly 1 L of solution, the preparation of a solution of known concentration from a solid solute, and the volume and molarity relation for moles.

Khan Academy — Molarity — with the definition of molarity as moles of solute per litre of solution, worked examples from weighed solids, and the millimole per millilitre equivalence.

Disclaimer

This calculator works out molarity from the mass of solute, its molar mass and the volume of solution, and it is for study, homework and general reference only. It assumes the solute dissolves completely and that the volume you enter is the final volume of the solution after mixing, not the volume of solvent added. A salt that splits into ions still counts as one formula unit per mole here, so the result is the formal concentration of the compound as written, not the concentration of any single ion in the solution. Molarity changes with temperature because the volume of a solution changes with temperature, so a molarity measured at one temperature is not exact at another; use molality instead when the temperature will change or when a precise value over a temperature range is needed. Check the molar mass against the exact chemical form in the bottle, because a hydrate has a different molar mass from the anhydrous form, and a wrong molar mass gives a wrong molarity. Do not use this calculator to prepare a solution for medical, clinical or safety critical use without checking the preparation against a laboratory protocol.

Last updated: 30 November 2026

ADVERTISEMENT

ADVERTISEMENT