Molarity Calculator
Solve for molarity, the mass to weigh, moles or volume. Type a formula and the molar mass is worked out for you.
https://flxcode.com/molarity-calculator/
If filled, it wins over the formula.
Example Molarity
Molarity
| Molarity | 0.4 mol/L |
|---|---|
| Millimolar | 400 mM |
| Molar mass used | 58.44 g/mol |
| Moles | 0.1 mol |
The steps, with your numbers
Molar mass of NaCl = 58.44 g/mol.
Moles = 5.844 g ÷ 58.44 g/mol = 0.1 mol.
Molarity = 0.1 mol ÷ 0.25 L = 0.4 M.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
Quick start
- Choose what to solve for: molarity, mass to weigh, moles or volume.
- Fill the other boxes. Pick a unit for each, such as g, mg, mol, mL or mM.
- If mass is involved, type the formula (like NaCl) or the molar mass in g/mol.
Worked examples
| Solve for | Given | Answer | Note |
|---|---|---|---|
| Molarity | 5.844 g NaCl in 250 mL | 0.4 M | The default example |
| Mass to weigh | 0.1 M NaCl, 500 mL | 2.922 g | How much salt to put in the flask |
| Mass to weigh | 1 M NaOH, 100 mL | 4 g | A standard base solution |
| Molarity | 10 g glucose (C6H12O6) in 0.5 L | 0.111 M | Volume in litres |
| Moles | 0.25 M, 40 mL | 0.01 mol | No formula needed |
| Volume | 0.05 mol HCl at 0.5 M | 100 mL | Amount given in moles |
| Molarity | 36.5 g HCl in 1 L | 1.001 M | About one mole of HCl |
The first row in full: Molar mass of NaCl = 58.44 g/mol. Moles = 5.844 g ÷ 58.44 g/mol = 0.1 mol. Molarity = 0.1 mol ÷ 0.25 L = 0.4 M.
The formulas
| To find | Use |
|---|---|
| Molarity (M) | M = n ÷ V |
| Moles (n) | n = M × V |
| Volume (V) | V = n ÷ M |
| Moles from mass | n = mass ÷ molar mass |
| Mass from molarity | mass = M × V × molar mass |
Volume is the volume of the finished solution in litres. Concentration units are converted first: 1 mM is 0.001 M and 1 µM is 0.000001 M.
Common mistakes
- Using mL where litres are needed. Divide by 1000 first. The unit list does this for you.
- Using the volume of water added instead of the volume of the finished solution.
- Taking the molar mass of the anhydrous salt for a hydrate, or the reverse.
- Weighing a solid that is not pure. A 98% reagent needs about 2% more mass.
To dilute a stock you have made, use the dilution calculator. For the molar mass alone, with the share of each element, see the molar mass calculator. The equation balancer gives mole ratios for a reaction.
Numbers this uses
Every constant the tool uses is listed here with its source. Where a number varies, you can edit it in the tool.
- Atomic weights is IUPAC 2021 abridged, for example H 1.008, O 15.999, Na 22.990, Cl 35.45. CIAAW standard atomic weights. The molar mass is shown to 2 decimals.
- Volume units is 1 mL = 0.001 L and 1 µL = 0.000001 L. SI prefixes.
- Mass units is 1 mg = 0.001 g and 1 kg = 1000 g. SI prefixes.
- Concentration units is 1 mM = 0.001 M and 1 µM = 0.000001 M. SI prefixes.
- Display is 4 significant figures. Our choice. Keep the digits your balance and glassware really give you.
Nothing you type is uploaded. We count events without cookies (details).
FAQ
What is the formula for molarity?
Molarity = moles of solute ÷ litres of solution, written M = n / V. To find moles from grams, divide the mass by the molar mass. So 5.844 g of NaCl (58.44 g/mol) is 0.1 mol, and in 250 mL (0.25 L) that is 0.4 M.
How do I make a 1 M solution?
Weigh the molar mass in grams per litre. For NaCl, 58.44 g into a volumetric flask, add some water to dissolve it, then fill to the 1 L mark. The volume is the volume of the finished solution, not the water you add.
What is the difference between molarity and molality?
Molarity is moles per litre of solution and changes a little with temperature. Molality is moles per kilogram of solvent and does not. This page is about molarity.
How do I convert mL to L for molarity?
Divide by 1000. 250 mL is 0.25 L. The tool does it for you if you choose mL or µL in the unit list. Using mL by mistake makes the answer 1000 times too high.
How do I find the mass of solute from molarity?
Choose "Mass to weigh". Mass = M × V × molar mass. A 0.1 M NaCl solution, 500 mL, needs 0.1 × 0.5 × 58.44 = 2.922 g.
What if I know the molar mass but not the formula?
Type it in the "or molar mass" box in g/mol. It wins over the formula, so it works for polymers, proteins or anything with a stated molar mass.
Does it work for hydrates?
Yes. Type the formula with the dot, like CuSO4·5H2O, and the molar mass includes the water. Weigh the hydrate you actually have, not the anhydrous salt.
Are my numbers sent anywhere?
No. Everything is calculated in your browser, and what you type is not put in the address bar, not stored and not counted.
More from FLXCode
Dilution Calculator (C1V1 = C2V2)New
Solve C1V1 = C2V2 for any one value. Units in M, mM, µM, % and mg/mL, L to µL. Shows the solvent to add.
Molar Mass CalculatorNew
Molar mass of any formula, with brackets and hydrates. Shows each element, its atom count and percent by mass.
Chemical Equation BalancerNew
Balance any chemical equation, with charges and hydrates. Whole-number coefficients and an atom count for each side.
Mean, Median, Mode CalculatorNew
Mean, median, mode and range of a list of numbers, with the working shown.