CalculatorsConvertersAbout UsContact

Molarity Calculator

Find the molarity of a solution, the mass to weigh for a molar solution, a dilution, or convert between M, mM, µM and nM, with the working shown.

  • Free to use
  • No sign-up
  • Numbers stay in your browser

Last updated:

Find the Molarity of a Solution

g/mol

NaCl is 58.44 g/mol, filled in as the molar mass.

Show molarity in (optional)
Molarity of the solution
0.4004 M
5.85 g of NaCl is 0.1001 mol, in 250 mL of solution. That is 400.4 mM.
  • Molarity0.4004 mol/L
  • Moles0.1001 mol
  • In millimolar400.4 mM
  • Mass concentration23.4 g/L
  • Volume0.25 L
  • Molecules6.028 × 10²²

The working: moles = 5.85 g ÷ 58.44 g/mol = 0.1001 mol, then molarity = 0.1001 ÷ 0.25 L = 0.4004 M

Molarity changes slightly with temperature, because the volume of a liquid does.

Your numbers stay in your own browser. These are calculations only, so check them before you prepare a real solution.

About Molarity Calculator

Molarity (M) is the number of moles of a dissolved substance in one liter of solution. It tells you how strong a solution is, and it is the way most labs write concentration.

The Formula

M =nV
  • M = molarity (mol/L)
  • n = moles of solute (mol)
  • V = volume of solution (L)

The moles come from the mass: n = mass ÷ molar mass.

Molarity or Molality?

Molarity (M)Molality (m)
Perliter of solutionkg of solvent
Unitmol/Lmol/kg
Changes with temperatureYes, slightlyNo

Molality uses the mass of the solvent, so it does not change when the solution warms up.

Grams to Weigh for Common Solutions

The mass to dissolve for 1 liter of a 0.1 M and of a 1 M solution. Click a formula to open it in the calculator.

SubstanceFormulaMolar mass0.1 M, 1 L1 M, 1 L
Sodium chloride58.445.844 g58.44 g
Sodium hydroxide39.9973.9997 g39.997 g
Potassium chloride74.5487.4548 g74.548 g
Calcium chloride110.97811.098 g110.978 g
Sodium carbonate105.98810.599 g105.988 g
Sodium bicarbonate84.0068.4006 g84.006 g
Potassium nitrate101.10210.11 g101.102 g
Magnesium sulfate120.36112.036 g120.361 g
Glucose180.15618.016 g180.156 g
Copper(II) sulfate pentahydrate249.67724.968 g249.677 g

Worked out from the molar mass of each. For another volume, multiply by the liters.

Molar Units

Lab concentrations are written in small molar units. Each step down is a factor of 1,000.

UnitSymbolIn molar (M)
MolarM1
MillimolarmM0.001
MicromolarµM1 × 10⁻⁶
NanomolarnM1 × 10⁻⁹
PicomolarpM1 × 10⁻¹²

10 mM is ten millimolar, which is 0.01 M. A micromolar (µM) is a millionth of a molar.

Try an Example

Pick one to fill in the calculator and see its answer.

ExampleResult
0.4004 M
1 M
14.61 g
41.67 mL stock
4.504 g
0.005 M

Click an example to put it into the calculator.

Mass and Molarity at a Glance

How many grams of NaCl (58.44 g/mol) for 1 liter of different molarities.

MolarityMolesGrams of NaCl
0.05 M0.05 mol2.922 g
0.1 M0.1 mol5.844 g
0.5 M0.5 mol29.22 g
1 M1 mol58.44 g
2 M2 mol116.9 g

Grams = molarity × liters × molar mass.

Good to know

  • Use the volume of the whole solution, not just the water you started with. Dissolve the substance, then add water up to the final volume.
  • Molarity depends on temperature, because the volume of a liquid changes slightly when it warms up.
  • Mass in grams, molar mass in g/mol and volume in liters give a molarity in mol/L. The calculator changes mg, kg, mL and µL for you.
  • For a hydrate, use the molar mass that includes the water, such as 249.677 g/mol for CuSO₄·5H₂O.

What is included

  • Molarity from mass, molar mass and volume
  • Mass to weigh for a molar solution, in g, mg, µg or kg
  • Dilution with C₁V₁ = C₂V₂ and the water to add
  • M, mM, µM, nM and pM conversion
  • Molar mass filled in from a typed formula
  • Grams for common solutions, copy link and print

Important to know

Your numbers stay in your own browser and are never sent anywhere. These are calculations only, so check them before you prepare a real solution. Wear suitable protection, and always add the acid or the concentrated stock to the water.

Use this free molarity calculator, also called a molar concentration calculator, to find the molarity of a solution from the mass dissolved, the molar mass and the volume. Switch to Mass to Weigh to find how many grams you need for a solution of a chosen molarity, to Dilution to work out how much stock and water you need with C₁V₁ = C₂V₂, or to Convert Units to change between M, mM, µM, nM and pM. Choose grams, milligrams or kilograms for the mass and liters, milliliters or microlitres for the volume. Type a formula such as NaCl and the molar mass is filled in for you. Every answer shows the working, and tables list the grams to weigh for common solutions. It is free and instant, and your numbers stay in your browser.

What is molarity?

Molarity (symbol M), also called molar concentration, is the concentration of a solution measured in moles of dissolved substance per liter of solution. A 1 M solution has 1 mole of the substance in every liter. It is the most common concentration unit in chemistry labs, because it tells you directly how many particles are in a given volume.

The molarity formula

Molarity (M) = moles of solute (n) ÷ liters of solution (V)
Moles (n) = mass in grams ÷ molar mass in g/mol

Put together, M = mass ÷ (molar mass × volume in liters). Turned around, the mass to weigh out is mass = M × V × molar mass, and the volume is V = mass ÷ (M × molar mass).

How to calculate molarity

Divide the mass you dissolved by the molar mass to get the moles, then divide by the volume in liters. If you dissolve 5.85 g of sodium chloride (molar mass 58.44 g/mol) and make the solution up to 250 mL, you have 5.85 ÷ 58.44 = 0.1001 mol in 0.25 L, which is a molarity of 0.4004 M. Do not know the molar mass? Type the formula in the calculator, or use the Molar Mass Calculator.

How much to weigh out

To make a solution of a chosen molarity, multiply the molarity by the volume in liters to get the moles, then multiply by the molar mass. For 500 mL of a 0.5 M sodium chloride solution that is 0.5 × 0.5 = 0.25 mol, or 14.61 g. Dissolve it in some water, then add water up to the 500 mL mark so the final volume is right.

Diluting a stock solution

When you dilute a solution the amount of solute does not change, only the volume, so C₁ × V₁ = C₂ × V₂. To make 500 mL of 1 M solution from a 12 M stock, you need V₁ = 1 × 500 ÷ 12 = 41.67 mL of stock and 458.3 mL of water.

Safety note: when diluting concentrated acids, always add the acid slowly to the water, never the water to the acid, and wear eye protection and gloves.

mM, µM and nM

Lab solutions are often weak, so concentrations are written in smaller units. A millimolar (mM) is a thousandth of a molar, a micromolar (µM) a millionth and a nanomolar (nM) a billionth. To change a unit, move one step per factor of 1,000: 5 mM is 0.005 M, and 250 µM is 0.00025 M. The Convert Units tab does it for you and shows every unit at once.

From mg/mL to molarity

A concentration in mg/mL is the same number as g/L. Divide it by the molar mass to get mol/L. For example, 10 mg/mL of sodium chloride is 10 g/L ÷ 58.44 g/mol = 0.1711 M, or 171.1 mM.

Molarity or molality?

Molarity is moles per liter of solution, while molality (symbol m) is moles per kilogram of solvent. The volume of a liquid changes a little with temperature, so molarity changes too, but molality does not. For dilute water solutions at room temperature the two numbers are close.

pH from molarity

For a strong acid that gives one hydrogen ion per molecule, such as hydrochloric acid, the pH is −log₁₀ of the molarity. A 0.01 M solution has a pH of 2, and a 0.1 M solution a pH of 1. Weak acids and acids with more than one hydrogen need extra steps, so this shortcut does not apply to them.

View All Calculators

Frequently Asked Questions

How do I calculate molarity?

Divide the moles of solute by the volume of the solution in liters. The moles come from the mass divided by the molar mass. For 5.85 g of NaCl (58.44 g/mol) in 250 mL, the moles are 0.1001 and the molarity is 0.1001 ÷ 0.25 = 0.4004 M.

What is the molarity formula?

M = n ÷ V, where M is the molarity in mol/L, n is the moles of solute and V is the volume of the solution in liters. Since n = mass ÷ molar mass, you can also write M = mass ÷ (molar mass × V).

How do I find how many grams to weigh for a molar solution?

Multiply the molarity by the volume in liters and by the molar mass. For 500 mL of 0.5 M NaCl, that is 0.5 × 0.5 × 58.44 = 14.61 g. Use the Mass to Weigh tab.

How do I dilute a stock solution?

Use C₁V₁ = C₂V₂. The amount of solute stays the same when you add water. To make 500 mL of 1 M from a 12 M stock, V₁ = 1 × 500 ÷ 12 = 41.67 mL of stock, then add water up to 500 mL.

What is the difference between molarity and molality?

Molarity is moles per liter of solution. Molality is moles per kilogram of solvent. Molarity changes slightly with temperature because the volume does, while molality does not.

What do M, mM, µM and nM mean?

M is molar, or mol/L. mM is millimolar, a thousandth of a molar. µM is micromolar, a millionth, and nM is nanomolar, a billionth. Each step down the list multiplies the number by 1,000.

How do I convert mM to M?

Divide by 1,000. For example, 5 mM is 0.005 M, and 250 mM is 0.25 M. To go from M to mM, multiply by 1,000. The Convert Units tab does this and shows every unit.

How do I find the molar mass for the calculator?

Type the formula in the Formula box, for example NaCl, and the molar mass is filled in for you. You can also add up the atomic masses by hand, or use our Molar Mass Calculator. Sodium chloride is 58.44 g/mol.

Do I use the volume of the water or of the solution?

The volume of the finished solution. Dissolve the solute in some solvent, then add more until the total reaches the volume you want.

What is 1 molar, or a 1 M solution?

It is a solution with 1 mole of the dissolved substance in every liter. For sodium chloride that is 58.44 g dissolved and made up to 1 liter.

How do I find the pH from the molarity?

For a strong acid that gives one hydrogen ion per molecule, such as HCl, the pH is −log₁₀ of the molarity. A 0.01 M solution has a pH of 2. Weak acids and acids with more than one hydrogen need extra steps.

How many moles are in 2.5 grams of water?

Divide the mass by the molar mass. Water is 18.015 g/mol, so 2.5 g is 2.5 ÷ 18.015 = 0.1388 mol.

Does temperature change molarity?

Slightly. The volume of a liquid grows a little as it warms, so the same amount of solute is spread over more volume. For lab work at room temperature the difference is usually small.

How do I convert mg/mL to molarity?

A concentration in mg/mL is the same number as g/L. Divide it by the molar mass to get mol/L. For example, 10 mg/mL of NaCl is 10 ÷ 58.44 = 0.1711 M, or 171.1 mM.

Can I use it for hydrates?

Yes. Use the molar mass that includes the water. Type CuSO4·5H2O in the Formula box and the molar mass of 249.677 g/mol is filled in, with the five water molecules counted.

Are my numbers saved or shared?

No. The calculation happens in your browser, and the numbers you enter are not stored or sent to any server. A link you copy keeps the numbers after the # sign, which browsers never send to a server.