FLXCode Molarity Calculator

FLXCode apps

Appearance

Molarity Calculator

Solve for molarity, the mass to weigh, moles or volume. Type a formula and the molar mass is worked out for you.

If filled, it wins over the formula.

Example Molarity

0.4 M Molarity

Results
Molarity0.4 mol/L
Millimolar400 mM
Molar mass used58.44 g/mol
Moles0.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

  1. Choose what to solve for: molarity, mass to weigh, moles or volume.
  2. Fill the other boxes. Pick a unit for each, such as g, mg, mol, mL or mM.
  3. If mass is involved, type the formula (like NaCl) or the molar mass in g/mol.

Worked examples

Solve forGivenAnswerNote
Molarity5.844 g NaCl in 250 mL0.4 MThe default example
Mass to weigh0.1 M NaCl, 500 mL2.922 gHow much salt to put in the flask
Mass to weigh1 M NaOH, 100 mL4 gA standard base solution
Molarity10 g glucose (C6H12O6) in 0.5 L0.111 MVolume in litres
Moles0.25 M, 40 mL0.01 molNo formula needed
Volume0.05 mol HCl at 0.5 M100 mLAmount given in moles
Molarity36.5 g HCl in 1 L1.001 MAbout 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 findUse
Molarity (M)M = n ÷ V
Moles (n)n = M × V
Volume (V)V = n ÷ M
Moles from massn = mass ÷ molar mass
Mass from molaritymass = 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

Share Molarity Calculator