Calculate concentration in mol/L from moles and volume, or from a weighed mass and molar mass — for example, 58.44 g/mol for sodium chloride.
Molarity Calculator
Get solution concentration in mol/L from moles — or straight from the grams you weighed and the solute molar mass.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Molarity Result
Calculated locally in your browser
—
Name
—
Input method
—
Moles of solute
—
Mass of solute
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Molarity is moles of solute divided by litres of finished solution. Half a mole made up to one litre gives a 0.5 molar solution. From a solid, divide mass by molar mass first: 29.22 grams of sodium chloride divided by 58.44 grams per mole is half a mole, the same result.
- M = n / V with V in litres
- n = mass / molar mass
- 1 M NaCl needs 58.44 g per litre
Molar masses of common solutes
Reference values for this calculator.
| Solute | Molar mass (g/mol) |
|---|---|
| NaCl (table salt) | 58.44 |
| Glucose C6H12O6 | 180.16 |
| NaOH | 40.00 |
| HCl | 36.46 |
| Sucrose | 342.30 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Enhancement: accepts either moles directly or a weighed mass plus molar mass (for example NaCl at 58.44 g/mol), and also reports millimolar for dilute lab work.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Half-molar salt
0.5 mol NaCl made up to 1 L
| Calculation | Steps |
|---|---|
| M = 0.5 / 1 = 0.5 mol/L. | 0.5 M sodium chloride. |
Result
Example 2
Weighed solid
29.22 g NaCl, molar mass 58.44, in 1 L
| Calculation | Steps |
|---|---|
| Moles = 29.22 / 58.44 = 0.5 mol; M = 0.5 / 1 = 0.5 M. | Same 0.5 M from the balance alone. |
Result
Example 3
Dilute standard
0.01 mol in 0.25 L
| Calculation | Steps |
|---|---|
| M = 0.01 / 0.25 = 0.04 mol/L = 40 mmol/L. | 0.04 M, a dilute working standard. |
Result
How to use this calculator
Step 1
Choose moles directly, or mass plus molar mass if you weighed a solid.
Step 2
Enter the amount and the final solution volume in litres (millilitres divided by 1,000).
Step 3
Read molarity in mol/L, with millimolar shown for dilute solutions.
Step 4
Sanity-check against the molar-mass table below: common solutes run from 40 to about 342 g/mol.
Frequently asked questions
What is molarity?
Molarity is the concentration of a solution in moles of solute per litre of finished solution, symbol M. A 1 M solution contains one mole of solute in every litre.
How do I get moles from grams?
Divide the mass by the molar mass: moles = grams / (g/mol). For NaCl, 29.22 g / 58.44 g/mol = 0.5 mol.
Is volume the solvent or the solution?
The final solution. Dissolve the solute, then top up to the target volume — the solute itself changes the volume slightly, which is why volumetric flasks are filled to the mark after dissolving.
How is molarity different from molality?
Molality uses kilograms of solvent instead of litres of solution, so it does not change with temperature; molarity does, slightly, because liquids expand.
What does 0.5 M mean in grams per litre for NaCl?
Multiply molarity by molar mass: 0.5 x 58.44 = 29.22 g of NaCl per litre of solution.
About this calculator
A molarity calculator turns a recipe for a chemical solution — so many moles, or so many grams of a known compound — into its concentration in moles per litre, the unit nearly all solution chemistry is written in.
Concentration is a ratio, and molarity picks the two units chemists can measure most directly: amount of substance, counted in moles via a balance and a molar mass, and volume, read off glassware. Because a mole counts particles (6.022 x 10^23 of them), molarity lets reactions be planned particle-for-particle.
The commonest mistakes are using the volume of solvent added instead of the final solution volume, and forgetting the grams-to-moles step. A weighed solid is never entered as moles directly: 58.44 g of NaCl is one mole, but 58.44 g of glucose is only about a third of a mole, because their molar masses differ.
Use it when preparing lab solutions, checking a students dilution homework, scaling a buffer recipe, or converting a products grams-per-bottle label into the molar terms a protocol expects.
How to calculate it yourself
Step 1
Find the amount of solute in moles — directly, or as mass divided by molar mass.
Step 2
Measure or set the final solution volume and convert it to litres.
Step 3
Divide moles by litres.
Step 4
Optionally multiply by the molar mass to restate the recipe as grams per litre.
Real-life examples
Making saline for a school lab
A teacher needs a litre of roughly 0.5 M sodium chloride for an osmosis practical and only has a balance.
Moles needed = 0.5; mass = 0.5 x 58.44 = 29.22 g, dissolved and topped up to 1.00 L.
Weighing 29.22 g and making up to a litre gives the 0.5 M solution the worksheet assumes.
Checking a glucose drip concentration
A trainee converts a 5% glucose label: 50 g per litre, molar mass 180.16 g/mol.
Moles per litre = 50 / 180.16 = 0.2775 mol, so concentration is about 0.28 M.
The drip is roughly 0.28 M glucose — the figure needed for the osmolarity comparison in training.
Ideas & use cases
- Recipe scaling: halve or double a protocol by rerunning the same molarity at a new volume to get the new mass.
- Label translation: convert household grams-per-litre figures into molarity to compare with published lab values.
- Dilution planning: pair the result with M1V1 = M2V2 to work out how much stock solution a bench experiment needs.
Limitations & sources
- Reports concentration only; it does not handle dilution chains (use M1V1 = M2V2 separately), activity coefficients, or temperature volume correction.
Sources: Standard definition of molarity, SI Brochure / IUPAC Gold Book · Molar masses from standard atomic weights (CIAAW)
