Unit Converter
Molarity Calculator
Calculate molarity from a mass, a molar mass and a volume, find the mass for a given molarity, or convert between M, mM, µM and nM.
Molarity Calculator examples
Here this calculator is applied to sodium chloride in each of its three modes.
| Input | Expected result |
|---|---|
| 5.844 g NaCl (58.44 g/mol) in 1 L | 0.1 M · 100 mM |
| 0.15 M NaCl, 500 mL | 4.383 g (0.075 mol) |
| 0.1 M | 100 mM · 100,000 µM · 100 mol/m³ |
Supported units & limits
The molar mass is an input in g/mol, and must be greater than 0. Mass, volume and molarity must be greater than 0 and at most 10¹². Molarity is per litre of final solution, not per litre of solvent, and the volume of a solution changes with temperature, so a stated molarity applies at its temperature. The tool does not look up molar masses, account for hydrates or purity, or convert to molality, for which a density is needed. Results use floating-point arithmetic and rounding follows the chosen precision. This calculator expects the molar mass of the exact form you weigh, including any water of hydration.
Common mistakes
The volume is the volume of the final solution, not the volume of solvent you add, so dissolve the solute and then make up to the mark. Use the molar mass of the exact compound, including water of hydration: CuSO₄·5H₂O is 249.69 g/mol, not 159.61. A solution that is 1 M is not the same as 1 molal. Do not mix mg with g or mL with L; the Molarity Converter handles the units you choose.
Privacy
Conversions run in your browser. This site does not upload or store the values you enter. We use Google Analytics (through Google Tag Manager) to count page visits, and Microsoft Clarity to see how pages are used, such as clicks and scrolling; both may set cookies, and Clarity is set to mask text on the page. The hosting server may keep standard access logs when you load a page.
Conversion guide
Measure to the final volume
Weigh the solute, dissolve it in less than the final volume of solvent, then make up to the mark in a volumetric flask. Use the molar mass of the exact form of the compound, including hydrates, and note the temperature if precision matters. For a buffer recipe, run this calculator once for each component at the same final volume.
Molarity Calculator FAQ
How do I calculate molarity from grams?
Divide the mass by the molar mass to get moles, then divide by the volume of the solution in litres. For 5.844 g of NaCl in 1 L, that is 5.844 ÷ 58.44 ÷ 1 = 0.1 M.
How many grams do I need for a given molarity?
Multiply the molarity by the volume in litres and by the molar mass. For 0.15 M in 500 mL of NaCl, 0.15 × 0.5 × 58.44 = 4.383 g.
What is the difference between molarity and molality?
Molarity is moles per litre of solution and changes with temperature. Molality is moles per kilogram of solvent and does not. Use the molality tool, with a density, to convert.
Can this calculator work in millimolar?
Yes. This calculator accepts and reports M, mM, µM and nM, and also shows mol/m³ in unit mode.
Does this calculator account for temperature?
No. This calculator uses the volume you enter; if the solution was made up at another temperature, its molarity changes slightly as the volume changes.